You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling db.post with invalid arguments will throw an ambiguous error:
/usr/bin/node /home/diana/projects/sandbox/pouch-post.js
/home/diana/projects/sandbox/node_modules/pouchdb-core/lib/index.js:373
return callback(pouchdbErrors.createError(pouchdbErrors.NOT_AN_OBJECT));
^
TypeError: callback is not a function
at klass.<anonymous> (/home/diana/projects/sandbox/node_modules/pouchdb-core/lib/index.js:373:16)
at klass.<anonymous> (/home/diana/projects/sandbox/node_modules/pouchdb-utils/lib/index.js:177:21)
at /home/diana/projects/sandbox/node_modules/pouchdb-utils/lib/index.js:116:21
at new Promise (<anonymous>)
at klass.<anonymous> (/home/diana/projects/sandbox/node_modules/pouchdb-utils/lib/index.js:103:19)
at /home/diana/projects/sandbox/node_modules/pouchdb-utils/lib/index.js:172:32
at TaskQueue.execute (/home/diana/projects/sandbox/node_modules/pouchdb-core/lib/index.js:1209:9)
at TaskQueue.ready (/home/diana/projects/sandbox/node_modules/pouchdb-core/lib/index.js:1222:10)
at /home/diana/projects/sandbox/node_modules/pouchdb-core/lib/index.js:1386:22
at /home/diana/projects/sandbox/node_modules/pouchdb-adapter-leveldb-core/lib/index.js:277:15
Node.js v18.18.2
Reproduce
const PouchDb = require('pouchdb-core');
PouchDb.plugin(require('pouchdb-adapter-memory')); // adapter is irrelevant
const db = PouchDb('database');
db.post();
Info
Environment: Node 18
Platform: NodeJS
Adapter: memory/http
The text was updated successfully, but these errors were encountered:
Issue
Calling
db.post
with invalid arguments will throw an ambiguous error:Reproduce
Info
The text was updated successfully, but these errors were encountered: