Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

statware

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statware - npm Package Compare versions

Comparing version 0.2.10 to 0.2.11

2

package.json
{
"name": "statware",
"description": "Status aggregation suite with middle-ware like abilities. Used by the Ravenwall agent.",
"version": "0.2.10",
"version": "0.2.11",
"author": "Bryce B. Baril <bryce@ravenwall.com>",

@@ -6,0 +6,0 @@ "dependencies": {

@@ -34,21 +34,21 @@ module.exports = Stats

Stats.prototype.set = function (key, value) {
this.status[key] = value
this._stats[key] = value
}
Stats.prototype.increment = function (key) {
if (isNaN(this.status[key])) {
this.status[key] = 1
if (isNaN(this._stats[key])) {
this._stats[key] = 1
}
else {
this.status[key]++
this._stats[key]++
}
}
Stats.prototype.incrementHash = function (key, subkey) {
if (this.status[key] === undefined) {
this.status[key] = {}
if (this._stats[key] === undefined) {
this._stats[key] = {}
}
if (isNaN(this.status[key][subkey])) {
this.status[key][subkey] = 1
if (isNaN(this._stats[key][subkey])) {
this._stats[key][subkey] = 1
}
else {
this.status[key][subkey]++
this._stats[key][subkey]++
}

@@ -55,0 +55,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc