sublevel-pouchdb
Advanced tools
+5
-3
@@ -142,4 +142,4 @@ 'use strict'; | ||
| function NotFoundError(reason) { | ||
| Error.call(this, reason); | ||
| function NotFoundError() { | ||
| Error.call(this); | ||
| } | ||
@@ -154,2 +154,4 @@ | ||
| var NOT_FOUND_ERROR = new NotFoundError(); | ||
| var sublevel = function (nut, prefix, createStream, options) { | ||
@@ -243,3 +245,3 @@ var emitter = new EventEmitter(); | ||
| if (err) { | ||
| cb(new NotFoundError(err)); | ||
| cb(NOT_FOUND_ERROR); | ||
| } else { | ||
@@ -246,0 +248,0 @@ cb(null, value); |
+8
-9
| { | ||
| "name": "sublevel-pouchdb", | ||
| "version": "6.0.4", | ||
| "version": "6.0.5", | ||
| "description": "Fork of level-sublevel with ony the subset of the API that PouchDB uses", | ||
@@ -15,9 +15,2 @@ "main": "./lib/index.js", | ||
| ], | ||
| "dependencies": { | ||
| "inherits": "2.0.1", | ||
| "level-codec": "6.2.0", | ||
| "ltgt": "2.1.2", | ||
| "pull-stream": "3.4.5", | ||
| "readable-stream": "1.0.33" | ||
| }, | ||
| "contributors": [ | ||
@@ -28,3 +21,9 @@ { | ||
| } | ||
| ] | ||
| ], | ||
| "dependencies": { | ||
| "inherits": "2.0.3", | ||
| "level-codec": "6.2.0", | ||
| "ltgt": "2.1.2", | ||
| "readable-stream": "1.0.33" | ||
| } | ||
| } |
| import inherits from 'inherits'; | ||
| function NotFoundError(reason) { | ||
| Error.call(this, reason); | ||
| function NotFoundError() { | ||
| Error.call(this); | ||
| } | ||
@@ -6,0 +6,0 @@ |
+3
-1
@@ -7,2 +7,4 @@ import events from 'events'; | ||
| var NOT_FOUND_ERROR = new NotFoundError(); | ||
| var sublevel = function (nut, prefix, createStream, options) { | ||
@@ -96,3 +98,3 @@ var emitter = new EventEmitter(); | ||
| if (err) { | ||
| cb(new NotFoundError(err)); | ||
| cb(NOT_FOUND_ERROR); | ||
| } else { | ||
@@ -99,0 +101,0 @@ cb(null, value); |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
32615
0.06%4
-20%706
0.28%+ Added
- Removed
- Removed
- Removed
Updated