hide-a-bed 5.0.3 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/impl/bulk.cjs +1 -1
- package/cjs/impl/query.cjs +1 -1
- package/impl/bulk.mjs +1 -1
- package/impl/query.mjs +1 -1
- package/package.json +2 -2
package/cjs/impl/bulk.cjs
CHANGED
|
@@ -237,7 +237,7 @@ const bulkSaveTransaction = import_bulk.BulkSaveTransaction.implement(async (con
|
|
|
237
237
|
});
|
|
238
238
|
newDocsToRollback.forEach((d) => {
|
|
239
239
|
if (!d.id || !d.rev) return;
|
|
240
|
-
const before =
|
|
240
|
+
const before = JSON.parse(JSON.stringify(providedDocsById[d.id]));
|
|
241
241
|
before._rev = d.rev;
|
|
242
242
|
before._deleted = true;
|
|
243
243
|
toRollback.push(before);
|
package/cjs/impl/query.cjs
CHANGED
|
@@ -54,7 +54,7 @@ const query = import_query.SimpleViewQuery.implement(async (config, view, option
|
|
|
54
54
|
};
|
|
55
55
|
if (typeof options.keys !== "undefined") {
|
|
56
56
|
const MAX_URL_LENGTH = 2e3;
|
|
57
|
-
const _options =
|
|
57
|
+
const _options = JSON.parse(JSON.stringify(options));
|
|
58
58
|
delete _options.keys;
|
|
59
59
|
qs = queryString(_options, ["key", "startkey", "endkey", "reduce", "group", "group_level", "stale", "limit"]);
|
|
60
60
|
const keysAsString = `keys=${JSON.stringify(options.keys)}`;
|
package/impl/bulk.mjs
CHANGED
|
@@ -251,7 +251,7 @@ export const bulkSaveTransaction = BulkSaveTransaction.implement(async (config,
|
|
|
251
251
|
})
|
|
252
252
|
newDocsToRollback.forEach(d => {
|
|
253
253
|
if (!d.id || !d.rev) return
|
|
254
|
-
const before =
|
|
254
|
+
const before = JSON.parse(JSON.stringify(providedDocsById[d.id]))
|
|
255
255
|
before._rev = d.rev
|
|
256
256
|
before._deleted = true
|
|
257
257
|
toRollback.push(before)
|
package/impl/query.mjs
CHANGED
|
@@ -38,7 +38,7 @@ export const query = SimpleViewQuery.implement(async (config, view, options = {}
|
|
|
38
38
|
// according to http://stackoverflow.com/a/417184/680742,
|
|
39
39
|
// the de facto URL length limit is 2000 characters
|
|
40
40
|
|
|
41
|
-
const _options =
|
|
41
|
+
const _options = JSON.parse(JSON.stringify(options))
|
|
42
42
|
delete _options.keys
|
|
43
43
|
qs = queryString(_options, ['key', 'startkey', 'endkey', 'reduce', 'group', 'group_level', 'stale', 'limit'])
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hide-a-bed",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "An abstraction over couchdb calls that includes easy mock/stubs with pouchdb",
|
|
5
5
|
"module": "index.mjs",
|
|
6
6
|
"main": "cjs/index.cjs",
|
|
@@ -57,4 +57,4 @@
|
|
|
57
57
|
"node": "20.17.0",
|
|
58
58
|
"npm": "10.8.2"
|
|
59
59
|
}
|
|
60
|
-
}
|
|
60
|
+
}
|