Socket
Socket
Sign inDemoInstall

croxydb

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

croxydb - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

15

adapters/mongo/index.js

@@ -152,4 +152,17 @@ "use strict";

return await this.add(db, parseInt(`-${number}`))
const content = await this.get(db);
if(isNaN(content)) {
throw new TypeError(this.message["errors"]["blankNumber"]);
}
let newNumber = content - number;
if(newNumber <= 0) {
await this.delete(db);
return 0;
}
return await this.set(db, newNumber)
}

@@ -156,0 +169,0 @@

2

package.json

@@ -40,3 +40,3 @@ {

},
"version": "0.0.15"
"version": "0.0.16"
}

@@ -5,3 +5,3 @@ # CroxyDB

# What's new in 0.0.15?
# What's new in 0.0.16?
- Fixed bugs.

@@ -8,0 +8,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