Socket
Socket
Sign inDemoInstall

dbtempo

Package Overview
Dependencies
13
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

3

lib/debug.js

@@ -7,5 +7,6 @@ import { LowDbKv } from './lowdbKv';

await db.add({ a: new Date() });
// console.log(await db.get('a'))
const { result } = await db.get('a');
// debugger
};
debug();
//# sourceMappingURL=debug.js.map

@@ -17,5 +17,3 @@ import { LowDbBase } from './baseLowDb';

try {
const keyJson = JSON.stringify(key);
const valueJson = JSON.stringify(kv[keyJson]);
this.db.data[keyJson] = valueJson;
this.db.data[key] = kv[key];
}

@@ -34,5 +32,3 @@ catch { }

await this.read();
const keyJson = JSON.parse(key);
const value = JSON.parse(this.db.data[keyJson]);
return { result: value };
return { result: this.db.data[key] };
}

@@ -55,3 +51,3 @@ catch (error) {

}
return data[key][fieldname] === value || JSON.parse(data[key][fieldname]) === value;
return data[key][fieldname] === value;
}

@@ -58,0 +54,0 @@ catch { }

{
"name": "dbtempo",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

@@ -18,3 +18,3 @@ "main": "lib/index.js",

"postversion": "git push && git push --tags",
"debug": "npm run build && node --trace-warnings --experimental-modules --es-module-specifier-resolution=node ./lib/debug.js"
"dev": "npm run build && node --trace-warnings --experimental-modules --es-module-specifier-resolution=node ./lib/debug.js"
},

@@ -21,0 +21,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc