couchdb-web-node-plugin 1.0.794 → 1.0.796

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.794",
3
+ "version": "1.0.796",
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",
@@ -72,13 +72,13 @@
72
72
  "@stylistic/eslint-plugin": "^5.6.1",
73
73
  "@types/ejs": "^3.1.5",
74
74
  "@types/express": "^5.0.6",
75
- "@types/node": "^25.0.0",
75
+ "@types/node": "^25.0.3",
76
76
  "@types/pouchdb-node": "^6.1.7",
77
- "@typescript-eslint/eslint-plugin": "^8.49.0",
78
- "@typescript-eslint/parser": "^8.49.0",
77
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
78
+ "@typescript-eslint/parser": "^8.50.0",
79
79
  "clientnode": "^3.0.1338",
80
80
  "documentation-website": "^1.0.397",
81
- "eslint": "^9.39.1",
81
+ "eslint": "^9.39.2",
82
82
  "eslint-config-google": "^0.14.0",
83
83
  "eslint-plugin-jsdoc": "^61.5.0",
84
84
  "express": "^5.2.1",
@@ -88,7 +88,7 @@
88
88
  "mkdirp": "^3.0.1",
89
89
  "node-fetch": "^3.3.2",
90
90
  "rimraf": "^6.1.2",
91
- "typescript-eslint": "^8.49.0",
91
+ "typescript-eslint": "^8.50.0",
92
92
  "web-node": "^1.0.566",
93
93
  "weboptimizer": "^2.0.1635"
94
94
  },
package/type.d.ts CHANGED
@@ -407,6 +407,7 @@ export interface RuntimeErrorData<S = Mapping<unknown>> extends EvaluationErrorD
407
407
  export interface BasicScope<Type extends object, AttachmentType extends Attachment, AdditionalSpecifications extends object, AdditionalPropertiesType> {
408
408
  attachmentWithPrefixExists: (namePrefix: string) => boolean;
409
409
  checkDocument: (newDocument: PartialFullDocument<Type, AdditionalPropertiesType>, oldDocument: PartialFullDocument<Type, AdditionalPropertiesType> | null, parentNames: Array<string>) => CheckedDocumentResult<Type, AdditionalPropertiesType>;
410
+ deepCopy: <T>(data: T) => T;
410
411
  getDateTime: (value: number | string) => Date;
411
412
  getEffectiveValue: (name: string, newDocument: PartialFullDocument<Type, AdditionalPropertiesType>, oldDocument: (null | PartialFullDocument<Type, AdditionalPropertiesType>)) => unknown;
412
413
  getFileNameByPrefix: (prefix?: string, attachments?: Mapping<AttachmentType>) => null | string;
@@ -425,6 +426,7 @@ export interface BasicScope<Type extends object, AttachmentType extends Attachme
425
426
  nowUTCTimestamp: number;
426
427
  securitySettings: Partial<SecuritySettings>;
427
428
  userContext: Partial<UserContext>;
429
+ originalNewDocument?: PartialFullDocument<Type, AdditionalPropertiesType>;
428
430
  }
429
431
  export interface CommonScope<ObjectType extends object, Type, AttachmentType extends Attachment, AdditionalSpecifications extends object, AdditionalPropertiesType> {
430
432
  checkPropertyContent: (newValue: Type, name: string, propertySpecification: PropertySpecification<Type, AdditionalSpecifications>, oldValue: Type) => CheckedPropertyResult<Type>;