@rei-network/database
Advanced tools
Comparing version 0.0.7 to 0.0.8
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -120,3 +124,3 @@ if (k2 === undefined) k2 = k; | ||
if (operationTarget == DBTarget_BloomBits) { | ||
dbOperation.baseDBOp.value = utils_1.compressBytes(value); | ||
dbOperation.baseDBOp.value = (0, utils_1.compressBytes)(value); | ||
} | ||
@@ -162,3 +166,3 @@ else { | ||
for (const tx of block.transactions) { | ||
dbOps.push(DBOp_set(DBTarget_TxLookup, ethereumjs_util_1.toBuffer(blockNumber), { | ||
dbOps.push(DBOp_set(DBTarget_TxLookup, (0, ethereumjs_util_1.toBuffer)(blockNumber), { | ||
txHash: tx.hash() | ||
@@ -451,7 +455,7 @@ })); | ||
const createEncodingLevelDB = (path) => { | ||
return levelup_1.default(encoding_down_1.default(leveldown_1.default(path))); | ||
return (0, levelup_1.default)((0, encoding_down_1.default)((0, leveldown_1.default)(path))); | ||
}; | ||
exports.createEncodingLevelDB = createEncodingLevelDB; | ||
const createLevelDB = (path) => { | ||
return levelup_1.default(leveldown_1.default(path)); | ||
return (0, levelup_1.default)((0, leveldown_1.default)(path)); | ||
}; | ||
@@ -458,0 +462,0 @@ exports.createLevelDB = createLevelDB; |
{ | ||
"name": "@rei-network/database", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "dist/index.js", | ||
@@ -22,3 +22,3 @@ "types": "dist/index.d.ts", | ||
"@rei-network/structure": "^0.0.2", | ||
"@rei-network/utils": "^0.0.3", | ||
"@rei-network/utils": "^0.0.4", | ||
"encoding-down": "^6.3.0", | ||
@@ -25,0 +25,0 @@ "leveldown": "^5.6.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66712
1232
+ Added@rei-network/utils@0.0.4(transitive)
- Removed@rei-network/utils@0.0.3(transitive)
Updated@rei-network/utils@^0.0.4