pouchdb-mapreduce-utils
Advanced tools
Comparing version 7.3.1 to 8.0.0
import { Set } from 'pouchdb-collections'; | ||
import argsarray from 'argsarray'; | ||
import { nextTick } from 'pouchdb-utils'; | ||
import inherits from 'inherits'; | ||
function QueryParseError(message) { | ||
this.status = 400; | ||
this.name = 'query_parse_error'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, QueryParseError); | ||
} catch (e) {} | ||
class QueryParseError extends Error { | ||
constructor(message) { | ||
super(); | ||
this.status = 400; | ||
this.name = 'query_parse_error'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, QueryParseError); | ||
} catch (e) {} | ||
} | ||
} | ||
inherits(QueryParseError, Error); | ||
function NotFoundError(message) { | ||
this.status = 404; | ||
this.name = 'not_found'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, NotFoundError); | ||
} catch (e) {} | ||
class NotFoundError extends Error { | ||
constructor(message) { | ||
super(); | ||
this.status = 404; | ||
this.name = 'not_found'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, NotFoundError); | ||
} catch (e) {} | ||
} | ||
} | ||
inherits(NotFoundError, Error); | ||
function BuiltInError(message) { | ||
this.status = 500; | ||
this.name = 'invalid_value'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, BuiltInError); | ||
} catch (e) {} | ||
class BuiltInError extends Error { | ||
constructor(message) { | ||
super(); | ||
this.status = 500; | ||
this.name = 'invalid_value'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, BuiltInError); | ||
} catch (e) {} | ||
} | ||
} | ||
inherits(BuiltInError, Error); | ||
function promisedCallback(promise, callback) { | ||
@@ -58,3 +59,3 @@ if (callback) { | ||
function callbackify(fun) { | ||
return argsarray(function (args) { | ||
return function (...args) { | ||
var cb = args.pop(); | ||
@@ -66,3 +67,3 @@ var promise = fun.apply(this, args); | ||
return promise; | ||
}); | ||
}; | ||
} | ||
@@ -69,0 +70,0 @@ |
@@ -5,45 +5,44 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var pouchdbCollections = require('pouchdb-collections'); | ||
var argsarray = _interopDefault(require('argsarray')); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
var inherits = _interopDefault(require('inherits')); | ||
function QueryParseError(message) { | ||
this.status = 400; | ||
this.name = 'query_parse_error'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, QueryParseError); | ||
} catch (e) {} | ||
class QueryParseError extends Error { | ||
constructor(message) { | ||
super(); | ||
this.status = 400; | ||
this.name = 'query_parse_error'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, QueryParseError); | ||
} catch (e) {} | ||
} | ||
} | ||
inherits(QueryParseError, Error); | ||
function NotFoundError(message) { | ||
this.status = 404; | ||
this.name = 'not_found'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, NotFoundError); | ||
} catch (e) {} | ||
class NotFoundError extends Error { | ||
constructor(message) { | ||
super(); | ||
this.status = 404; | ||
this.name = 'not_found'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, NotFoundError); | ||
} catch (e) {} | ||
} | ||
} | ||
inherits(NotFoundError, Error); | ||
function BuiltInError(message) { | ||
this.status = 500; | ||
this.name = 'invalid_value'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, BuiltInError); | ||
} catch (e) {} | ||
class BuiltInError extends Error { | ||
constructor(message) { | ||
super(); | ||
this.status = 500; | ||
this.name = 'invalid_value'; | ||
this.message = message; | ||
this.error = true; | ||
try { | ||
Error.captureStackTrace(this, BuiltInError); | ||
} catch (e) {} | ||
} | ||
} | ||
inherits(BuiltInError, Error); | ||
function promisedCallback(promise, callback) { | ||
@@ -65,3 +64,3 @@ if (callback) { | ||
function callbackify(fun) { | ||
return argsarray(function (args) { | ||
return function (...args) { | ||
var cb = args.pop(); | ||
@@ -73,3 +72,3 @@ var promise = fun.apply(this, args); | ||
return promise; | ||
}); | ||
}; | ||
} | ||
@@ -76,0 +75,0 @@ |
{ | ||
"name": "pouchdb-mapreduce-utils", | ||
"version": "7.3.1", | ||
"version": "8.0.0", | ||
"description": "PouchDB utilities used by pouchdb-mapreduce.", | ||
@@ -16,6 +16,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"argsarray": "0.0.1", | ||
"inherits": "2.0.4", | ||
"pouchdb-collections": "7.3.1", | ||
"pouchdb-utils": "7.3.1" | ||
"pouchdb-collections": "8.0.0", | ||
"pouchdb-utils": "8.0.0" | ||
}, | ||
@@ -22,0 +20,0 @@ "module": "./lib/index.es.js", |
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
2
216
18206
+ Addedpouchdb-binary-utils@8.0.0(transitive)
+ Addedpouchdb-collections@8.0.0(transitive)
+ Addedpouchdb-errors@8.0.0(transitive)
+ Addedpouchdb-md5@8.0.0(transitive)
+ Addedpouchdb-utils@8.0.0(transitive)
- Removedargsarray@0.0.1
- Removedinherits@2.0.4
- Removedargsarray@0.0.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedpouchdb-binary-utils@7.3.1(transitive)
- Removedpouchdb-collections@7.3.1(transitive)
- Removedpouchdb-errors@7.3.1(transitive)
- Removedpouchdb-md5@7.3.1(transitive)
- Removedpouchdb-utils@7.3.1(transitive)
Updatedpouchdb-collections@8.0.0
Updatedpouchdb-utils@8.0.0