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

datastore-level

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datastore-level - npm Package Compare versions

Comparing version 10.1.1 to 10.1.2

2

dist/src/index.d.ts

@@ -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

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