sublevel-pouchdb
Advanced tools
Comparing version 6.0.4 to 6.0.5
@@ -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); |
{ | ||
"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 @@ |
@@ -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); |
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
32615
4
706
+ Addedinherits@2.0.3(transitive)
- Removedpull-stream@3.4.5
- Removedinherits@2.0.1(transitive)
- Removedpull-stream@3.4.5(transitive)
Updatedinherits@2.0.3