couchdb-web-node-plugin 2.0.835 → 2.0.837
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/helper.js +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/type.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchdb-web-node-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.837",
|
|
4
4
|
"description": "A couchdb server, model instance conflict handler, rest api, authentication, session management, schema validator and model relation guarantee for webNode.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
77
77
|
"@types/ejs": "^3.1.5",
|
|
78
78
|
"@types/express": "^5.0.6",
|
|
79
|
-
"@types/node": "^25.5.
|
|
79
|
+
"@types/node": "^25.5.2",
|
|
80
80
|
"@types/pouchdb-adapter-memory": "^6.1.6",
|
|
81
81
|
"@types/pouchdb-node": "^6.1.7",
|
|
82
82
|
"@types/webpack-env": "^1.18.8",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"@typescript-eslint/parser": "^8.58.0",
|
|
85
85
|
"clientnode": "^4.0.1370",
|
|
86
86
|
"documentation-website": "^1.0.401",
|
|
87
|
-
"eslint": "^10.
|
|
87
|
+
"eslint": "^10.2.0",
|
|
88
88
|
"eslint-config-google": "^0.14.0",
|
|
89
|
-
"eslint-plugin-jsdoc": "^62.
|
|
89
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
90
90
|
"express": "^5.2.1",
|
|
91
91
|
"express-pouchdb": "^4.2.0",
|
|
92
92
|
"jest": "^30.3.0",
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"minimum": 0,
|
|
415
415
|
"nullable": false,
|
|
416
416
|
"updateExpression": {
|
|
417
|
-
"__evaluate__": "`(
|
|
417
|
+
"__evaluate__": "`(['${self.couchdb.admin.name}', null].includes(userContext.name) || updateStrategy === 'migrate') && oldDocument && oldDocument[name] ? oldDocument[name] : nowUTCTimestamp`"
|
|
418
418
|
},
|
|
419
419
|
"preventVersionCreation": true,
|
|
420
420
|
"runUpdateHookAlways": true,
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
"lastUser": {
|
|
430
430
|
"nullable": false,
|
|
431
431
|
"updateExpression": {
|
|
432
|
-
"__evaluate__": "`(((
|
|
432
|
+
"__evaluate__": "`(((['${self.couchdb.admin.name}', null].includes(userContext.name) || updateStrategy === 'migrate') && oldDocument) ? oldDocument[name] : userContext.name) || 'unknown'`"
|
|
433
433
|
},
|
|
434
434
|
"preventVersionCreation": true,
|
|
435
435
|
"runUpdateHookAlways": true
|
package/type.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export interface DocumentUpdateStrategyMeta {
|
|
|
166
166
|
_updateStrategy?: UpdateStrategy;
|
|
167
167
|
}
|
|
168
168
|
export interface DocumentIgnoreIfNoOldDocumentMeta {
|
|
169
|
-
|
|
169
|
+
_ignoreIfNoOldDocument: boolean;
|
|
170
170
|
}
|
|
171
171
|
export interface DocumentTypeMeta {
|
|
172
172
|
'-type': string;
|