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

@neo-one/node-storage-levelup

Package Overview
Dependencies
Maintainers
2
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo-one/node-storage-levelup - npm Package Compare versions

Comparing version 3.7.1-n3 to 3.8.0

15

CHANGELOG.json

@@ -5,14 +5,9 @@ {

{
"version": "3.7.0",
"tag": "@neo-one/node-storage-levelup_v3.7.0",
"date": "Thu, 26 Aug 2021 21:09:01 GMT",
"version": "3.8.0",
"tag": "@neo-one/node-storage-levelup_v3.8.0",
"date": "Thu, 23 Sep 2021 21:28:34 GMT",
"comments": {
"minor": [
{
"comment": "Updates for Preview5"
}
],
"none": [
{
"comment": "Updates for first N3 MainNet release"
"comment": "Updates for MainNet updates"
}

@@ -22,3 +17,3 @@ ],

{
"comment": "Dependency @neo-one/client-common version bump from ^3.1.0 to ^3.7.0."
"comment": "Dependency @neo-one/client-common version bump from ^3.1.0 to ^3.8.0."
},

@@ -25,0 +20,0 @@ {

# Change Log - @neo-one/node-storage-levelup
This log was last generated on Thu, 26 Aug 2021 21:09:01 GMT and should not be manually modified.
This log was last generated on Thu, 23 Sep 2021 21:28:34 GMT and should not be manually modified.
## 3.7.0
Thu, 26 Aug 2021 21:09:01 GMT
## 3.8.0
Thu, 23 Sep 2021 21:28:34 GMT
### Minor changes
- Updates for Preview5
### Updates
- Updates for first N3 MainNet release
- Updates for MainNet updates

@@ -16,0 +12,0 @@ ## 3.1.0

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

nep17Balances: read.createReadAllFindStorage({
prefixSize: 4,
db,

@@ -25,2 +26,3 @@ searchRange: node_storage_common_1.keys.getAllNep17BalanceSearchRange,

nep17TransfersReceived: read.createReadFindStorage({
prefixSize: 4,
db,

@@ -36,2 +38,3 @@ getSearchRange: node_storage_common_1.keys.getNep17TransferReceivedSearchRange,

nep17TransfersSent: read.createReadFindStorage({
prefixSize: 4,
db,

@@ -52,2 +55,3 @@ getSearchRange: node_storage_common_1.keys.getNep17TransferSentSearchRange,

storages: read.createReadFindStorage({
prefixSize: 0,
db,

@@ -82,2 +86,3 @@ getSearchRange: node_storage_common_1.keys.getStorageSearchRange,

action: read.createReadAllFindStorage({
prefixSize: 4,
db,

@@ -84,0 +89,0 @@ searchRange: node_storage_common_1.keys.getAllActionSearchRange,

@@ -25,3 +25,3 @@ /// <reference types="node" />

}): ReadAllStorage<Key, Value>;
export declare function createFind$<Key, Value>({ db, getSearchRange, deserializeKey, deserializeValue, }: {
export declare function createFind$<Key, Value>({ db, getSearchRange, deserializeKey, deserializeValue, prefixSize, }: {
readonly db: LevelUp;

@@ -31,4 +31,5 @@ readonly getSearchRange: (key: Buffer, secondary?: Buffer) => StreamOptions;

readonly deserializeValue: (value: Buffer) => Value;
readonly prefixSize: number;
}): (lookup: Buffer, secondaryLookup?: Buffer) => Observable<StorageReturn<Key, Value>>;
export declare function createReadFindStorage<Key, Value>({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, }: {
export declare function createReadFindStorage<Key, Value>({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }: {
readonly db: LevelUp;

@@ -39,4 +40,5 @@ readonly getSearchRange: (key: Buffer, secondary?: Buffer) => StreamOptions;

readonly deserializeValue: (value: Buffer) => Value;
readonly prefixSize: number;
}): ReadFindStorage<Key, Value>;
export declare function createReadAllFindStorage<Key, Value>({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, }: {
export declare function createReadAllFindStorage<Key, Value>({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }: {
readonly db: LevelUp;

@@ -48,3 +50,4 @@ readonly searchRange: StreamOptions;

readonly deserializeValue: (value: Buffer) => Value;
readonly prefixSize: number;
}): ReadAllFindStorage<Key, Value>;
export {};

@@ -56,7 +56,7 @@ "use strict";

exports.createReadAllStorage = createReadAllStorage;
function createFind$({ db, getSearchRange, deserializeKey, deserializeValue, }) {
return (lookup, secondaryLookup) => streamToObservable_1.streamToObservable(() => db.createReadStream(getSearchRange(lookup, secondaryLookup))).pipe(operators_1.map(({ key, value }) => ({ key: deserializeKey(key.slice(1)), value: deserializeValue(value) })));
function createFind$({ db, getSearchRange, deserializeKey, deserializeValue, prefixSize, }) {
return (lookup, secondaryLookup) => streamToObservable_1.streamToObservable(() => db.createReadStream(getSearchRange(lookup, secondaryLookup))).pipe(operators_1.map(({ key, value }) => ({ key: deserializeKey(key.slice(prefixSize)), value: deserializeValue(value) })));
}
exports.createFind$ = createFind$;
function createReadFindStorage({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, }) {
function createReadFindStorage({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }) {
const readStorage = createReadStorage({

@@ -75,2 +75,3 @@ db,

deserializeValue,
prefixSize,
}),

@@ -80,3 +81,3 @@ };

exports.createReadFindStorage = createReadFindStorage;
function createReadAllFindStorage({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, }) {
function createReadAllFindStorage({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }) {
const readStorage = createReadStorage({

@@ -96,2 +97,3 @@ db,

deserializeValue,
prefixSize,
}),

@@ -98,0 +100,0 @@ all$,

@@ -9,2 +9,3 @@ import { ApplicationLog, BlockData, deserializeActionWire, Nep17Balance, Nep17BalanceKey, Nep17Transfer, Nep17TransferKey, StorageItem, StorageKey, TransactionData, } from '@neo-one/node-core';

nep17Balances: read.createReadAllFindStorage({
prefixSize: 4,
db,

@@ -21,2 +22,3 @@ searchRange: keys.getAllNep17BalanceSearchRange,

nep17TransfersReceived: read.createReadFindStorage({
prefixSize: 4,
db,

@@ -32,2 +34,3 @@ getSearchRange: keys.getNep17TransferReceivedSearchRange,

nep17TransfersSent: read.createReadFindStorage({
prefixSize: 4,
db,

@@ -48,2 +51,3 @@ getSearchRange: keys.getNep17TransferSentSearchRange,

storages: read.createReadFindStorage({
prefixSize: 0,
db,

@@ -78,2 +82,3 @@ getSearchRange: keys.getStorageSearchRange,

action: read.createReadAllFindStorage({
prefixSize: 4,
db,

@@ -80,0 +85,0 @@ searchRange: keys.getAllActionSearchRange,

@@ -25,3 +25,3 @@ /// <reference types="node" />

}): ReadAllStorage<Key, Value>;
export declare function createFind$<Key, Value>({ db, getSearchRange, deserializeKey, deserializeValue, }: {
export declare function createFind$<Key, Value>({ db, getSearchRange, deserializeKey, deserializeValue, prefixSize, }: {
readonly db: LevelUp;

@@ -31,4 +31,5 @@ readonly getSearchRange: (key: Buffer, secondary?: Buffer) => StreamOptions;

readonly deserializeValue: (value: Buffer) => Value;
readonly prefixSize: number;
}): (lookup: Buffer, secondaryLookup?: Buffer) => Observable<StorageReturn<Key, Value>>;
export declare function createReadFindStorage<Key, Value>({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, }: {
export declare function createReadFindStorage<Key, Value>({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }: {
readonly db: LevelUp;

@@ -39,4 +40,5 @@ readonly getSearchRange: (key: Buffer, secondary?: Buffer) => StreamOptions;

readonly deserializeValue: (value: Buffer) => Value;
readonly prefixSize: number;
}): ReadFindStorage<Key, Value>;
export declare function createReadAllFindStorage<Key, Value>({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, }: {
export declare function createReadAllFindStorage<Key, Value>({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }: {
readonly db: LevelUp;

@@ -48,3 +50,4 @@ readonly searchRange: StreamOptions;

readonly deserializeValue: (value: Buffer) => Value;
readonly prefixSize: number;
}): ReadAllFindStorage<Key, Value>;
export {};

@@ -49,6 +49,6 @@ import { map } from 'rxjs/operators';

}
export function createFind$({ db, getSearchRange, deserializeKey, deserializeValue, }) {
return (lookup, secondaryLookup) => streamToObservable(() => db.createReadStream(getSearchRange(lookup, secondaryLookup))).pipe(map(({ key, value }) => ({ key: deserializeKey(key.slice(1)), value: deserializeValue(value) })));
export function createFind$({ db, getSearchRange, deserializeKey, deserializeValue, prefixSize, }) {
return (lookup, secondaryLookup) => streamToObservable(() => db.createReadStream(getSearchRange(lookup, secondaryLookup))).pipe(map(({ key, value }) => ({ key: deserializeKey(key.slice(prefixSize)), value: deserializeValue(value) })));
}
export function createReadFindStorage({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, }) {
export function createReadFindStorage({ db, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }) {
const readStorage = createReadStorage({

@@ -67,6 +67,7 @@ db,

deserializeValue,
prefixSize,
}),
};
}
export function createReadAllFindStorage({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, }) {
export function createReadAllFindStorage({ db, searchRange, getSearchRange, serializeKey, deserializeKey, deserializeValue, prefixSize, }) {
const readStorage = createReadStorage({

@@ -86,2 +87,3 @@ db,

deserializeValue,
prefixSize,
}),

@@ -88,0 +90,0 @@ all$,

{
"name": "@neo-one/node-storage-levelup",
"version": "3.7.1-n3",
"version": "3.8.0",
"description": "NEO•ONE levelup node storage.",

@@ -16,6 +16,6 @@ "main": "./dist/cjs/index",

"dependencies": {
"@neo-one/client-common": "3.7.1-n3",
"@neo-one/node-core": "3.7.1-n3",
"@neo-one/node-storage-common": "3.7.1-n3",
"@neo-one/utils": "3.3.0-n3",
"@neo-one/client-common": "^3.8.0",
"@neo-one/node-core": "^3.8.0",
"@neo-one/node-storage-common": "^3.8.0",
"@neo-one/utils": "^3.2.0",
"@types/levelup": "^3.1.1",

@@ -22,0 +22,0 @@ "@types/abstract-leveldown": "^5.0.1",

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