New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cryptoeconomicslab/db

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cryptoeconomicslab/db - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

5

lib/witness.js

@@ -6,2 +6,3 @@ "use strict";

const utils_1 = require("@cryptoeconomicslab/utils");
const hash_1 = require("@cryptoeconomicslab/hash");
const _1 = require("./");

@@ -51,3 +52,3 @@ const coder_1 = require("@cryptoeconomicslab/coder");

const db = await getBucketByHint(witnessDb, hint);
const result = await db.get(primitives_1.Bytes.fromHexString(param));
const result = await db.get(hash_1.Keccak256.hash(primitives_1.Bytes.fromHexString(param)));
return result === null ? [] : [result];

@@ -89,3 +90,3 @@ }

if (type === TYPES.key) {
await db.put(primitives_1.Bytes.fromHexString(param), value);
await db.put(hash_1.Keccak256.hash(primitives_1.Bytes.fromHexString(param)), value);
}

@@ -92,0 +93,0 @@ else if (type === TYPES.range) {

13

package.json
{
"name": "@cryptoeconomicslab/db",
"version": "0.4.1",
"version": "0.5.0",
"description": "db",

@@ -32,12 +32,13 @@ "author": {

"dependencies": {
"@cryptoeconomicslab/coder": "^0.4.1",
"@cryptoeconomicslab/context": "^0.4.1",
"@cryptoeconomicslab/utils": "^0.4.1",
"@cryptoeconomicslab/coder": "^0.5.0",
"@cryptoeconomicslab/context": "^0.5.0",
"@cryptoeconomicslab/hash": "^0.5.0",
"@cryptoeconomicslab/utils": "^0.5.0",
"abstract-leveldown": "^6.2.2",
"jsbi": "^3.1.2"
},
"gitHead": "eaf8a8a1daf01d022b1ac36461f8ffd72d737f83",
"gitHead": "83bf87b438d3bc2161d92af731c0cc54da78c77f",
"devDependencies": {
"@cryptoeconomicslab/level-kvs": "0.0.6",
"@cryptoeconomicslab/primitives": "^0.4.1"
"@cryptoeconomicslab/primitives": "^0.5.0"
},

@@ -44,0 +45,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

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