datastore-level
Advanced tools
Comparing version 10.1.1 to 10.1.2
@@ -1,3 +0,3 @@ | ||
import { Batch, Key, KeyQuery, Pair, Query } from 'interface-datastore'; | ||
import { BaseDatastore } from 'datastore-core'; | ||
import { type Batch, Key, type KeyQuery, type Pair, type Query } from 'interface-datastore'; | ||
import { Level } from 'level'; | ||
@@ -4,0 +4,0 @@ import type { DatabaseOptions, OpenOptions } from 'level'; |
@@ -0,7 +1,7 @@ | ||
import { BaseDatastore, Errors } from 'datastore-core'; | ||
import { Key } from 'interface-datastore'; | ||
import { BaseDatastore, Errors } from 'datastore-core'; | ||
import filter from 'it-filter'; | ||
import map from 'it-map'; | ||
import sort from 'it-sort'; | ||
import take from 'it-take'; | ||
import sort from 'it-sort'; | ||
import { Level } from 'level'; | ||
@@ -12,2 +12,4 @@ /** | ||
export class LevelDatastore extends BaseDatastore { | ||
db; | ||
opts; | ||
constructor(path, opts = {}) { | ||
@@ -183,3 +185,3 @@ super(); | ||
return { | ||
next: async () => await new Promise((resolve, reject) => { | ||
next: async () => new Promise((resolve, reject) => { | ||
li.next((err, key, value) => { | ||
@@ -203,3 +205,3 @@ if (err != null) { | ||
}), | ||
return: async () => await new Promise((resolve, reject) => { | ||
return: async () => new Promise((resolve, reject) => { | ||
li.end(err => { | ||
@@ -206,0 +208,0 @@ if (err != null) { |
{ | ||
"name": "datastore-level", | ||
"version": "10.1.1", | ||
"version": "10.1.2", | ||
"description": "Datastore implementation with level(up|down) backend", | ||
@@ -157,3 +157,3 @@ "author": "Friedel Ziegelmayer<dignifiedquire@gmail.com>", | ||
"devDependencies": { | ||
"aegir": "^38.1.7", | ||
"aegir": "^39.0.9", | ||
"interface-datastore-tests": "^5.0.0", | ||
@@ -160,0 +160,0 @@ "ipfs-utils": "^9.0.4", |
@@ -1,7 +0,7 @@ | ||
import { Batch, Key, KeyQuery, Pair, Query } from 'interface-datastore' | ||
import { BaseDatastore, Errors } from 'datastore-core' | ||
import { type Batch, Key, type KeyQuery, type Pair, type Query } from 'interface-datastore' | ||
import filter from 'it-filter' | ||
import map from 'it-map' | ||
import sort from 'it-sort' | ||
import take from 'it-take' | ||
import sort from 'it-sort' | ||
import { Level } from 'level' | ||
@@ -235,3 +235,3 @@ import type { DatabaseOptions, OpenOptions, IteratorOptions } from 'level' | ||
return { | ||
next: async () => await new Promise((resolve, reject) => { | ||
next: async () => new Promise((resolve, reject) => { | ||
li.next((err, key, value) => { | ||
@@ -253,3 +253,3 @@ if (err != null) { | ||
}), | ||
return: async () => await new Promise((resolve, reject) => { | ||
return: async () => new Promise((resolve, reject) => { | ||
li.end(err => { | ||
@@ -256,0 +256,0 @@ if (err != null) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
141094
903