couchdb-web-node-plugin 1.0.811 → 1.0.813
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/databaseHelper.js +1 -1
- package/helper.js +1 -1
- package/index.js +1 -1
- package/package.json +13 -9
- package/type.d.ts +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchdb-web-node-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.813",
|
|
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",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@types/pouchdb-node": "^6.1.7",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
83
83
|
"@typescript-eslint/parser": "^8.56.1",
|
|
84
|
-
"clientnode": "^3.0.
|
|
84
|
+
"clientnode": "^3.0.1348",
|
|
85
85
|
"documentation-website": "^1.0.398",
|
|
86
86
|
"eslint": "^10.0.2",
|
|
87
87
|
"eslint-config-google": "^0.14.0",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"pouchdb-adapter-memory": "^9.0.0",
|
|
96
96
|
"rimraf": "^6.1.3",
|
|
97
97
|
"typescript-eslint": "^8.56.1",
|
|
98
|
-
"web-node": "^1.0.
|
|
99
|
-
"weboptimizer": "^2.0.
|
|
98
|
+
"web-node": "^1.0.571",
|
|
99
|
+
"weboptimizer": "^2.0.1649"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"@babel/runtime": "*",
|
|
@@ -391,10 +391,14 @@
|
|
|
391
391
|
},
|
|
392
392
|
"_timeTrackable": {
|
|
393
393
|
"creationDateTime": {
|
|
394
|
+
"default": {
|
|
395
|
+
"#": "NOTE: A default value next to create expression makes sense when migrating to time trackable entities. This way the creation date time will be set for existing documents as well.",
|
|
396
|
+
"__evaluate__": "nowUTCTimestamp"
|
|
397
|
+
},
|
|
394
398
|
"minimum": 1,
|
|
395
399
|
"mutable": false,
|
|
396
400
|
"nullable": false,
|
|
397
|
-
"
|
|
401
|
+
"createExpression": "nowUTCTimestamp",
|
|
398
402
|
"preventVersionCreation": true,
|
|
399
403
|
"type": "DateTime"
|
|
400
404
|
},
|
|
@@ -402,7 +406,7 @@
|
|
|
402
406
|
"type": "DateTime",
|
|
403
407
|
"minimum": 0,
|
|
404
408
|
"nullable": false,
|
|
405
|
-
"
|
|
409
|
+
"updateExpression": {
|
|
406
410
|
"__evaluate__": "`userContext.name === '${self.couchdb.admin.name}' && oldDocument ? oldDocument[name] : nowUTCTimestamp`"
|
|
407
411
|
},
|
|
408
412
|
"preventVersionCreation": true,
|
|
@@ -417,7 +421,7 @@
|
|
|
417
421
|
"_userTrackable": {
|
|
418
422
|
"lastUser": {
|
|
419
423
|
"nullable": false,
|
|
420
|
-
"
|
|
424
|
+
"updateExpression": {
|
|
421
425
|
"__evaluate__": "`userContext.name === '${self.couchdb.admin.name}' && oldDocument ? oldDocument[name] : (userContext.name || 'unknown')`"
|
|
422
426
|
},
|
|
423
427
|
"preventVersionCreation": true,
|
|
@@ -470,8 +474,8 @@
|
|
|
470
474
|
"updateStrategy": "_updateStrategy",
|
|
471
475
|
"type": "-type",
|
|
472
476
|
"update": {
|
|
473
|
-
"execution": "
|
|
474
|
-
"expression": "
|
|
477
|
+
"execution": "_updateExecution",
|
|
478
|
+
"expression": "_updateExpression"
|
|
475
479
|
}
|
|
476
480
|
},
|
|
477
481
|
"typePattern": {
|
package/type.d.ts
CHANGED
|
@@ -93,10 +93,10 @@ export interface BasePropertySpecification<Type, AdditionalSpecifications extend
|
|
|
93
93
|
conflictingConstraintExpression?: Constraint;
|
|
94
94
|
constraintExecution?: Constraint;
|
|
95
95
|
constraintExpression?: Constraint;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
createExecution?: string;
|
|
97
|
+
createExpression?: string;
|
|
98
|
+
updateExecution?: string;
|
|
99
|
+
updateExpression?: string;
|
|
100
100
|
runUpdateHookAlways?: boolean;
|
|
101
101
|
pattern?: Pattern;
|
|
102
102
|
invertedPattern?: Pattern;
|
|
@@ -147,8 +147,8 @@ export interface BaseModel<AttachmentType extends Attachment = Attachment, Addit
|
|
|
147
147
|
_minimumAggregatedSize?: number;
|
|
148
148
|
_oldType?: Array<string> | string;
|
|
149
149
|
_type?: Array<string> | string;
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
_updateExecution?: string;
|
|
151
|
+
_updateExpression?: string;
|
|
152
152
|
_id: PropertySpecification<string, AdditionalSpecifications>;
|
|
153
153
|
_rev: PropertySpecification<string, AdditionalSpecifications>;
|
|
154
154
|
_updateStrategy?: UpdateStrategy;
|
|
@@ -198,8 +198,8 @@ export interface SpecialPropertyNames {
|
|
|
198
198
|
minimumAggregatedSize: '_minimumAggregatedSize';
|
|
199
199
|
oldType: '_oldType';
|
|
200
200
|
update: {
|
|
201
|
-
execution: '
|
|
202
|
-
expression: '
|
|
201
|
+
execution: '_updateExecution';
|
|
202
|
+
expression: '_updateExpression';
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
export interface PropertyNameConfiguration {
|