couchdb-web-node-plugin 1.0.730 → 1.0.732

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.730",
3
+ "version": "1.0.732",
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,8 +72,8 @@
72
72
  "@types/ejs": "^3.1.5",
73
73
  "@types/node": "^22.13.14",
74
74
  "@types/pouchdb-node": "^6.1.7",
75
- "@typescript-eslint/eslint-plugin": "^8.28.0",
76
- "@typescript-eslint/parser": "^8.28.0",
75
+ "@typescript-eslint/eslint-plugin": "^8.29.0",
76
+ "@typescript-eslint/parser": "^8.29.0",
77
77
  "clientnode": "^3.0.1274",
78
78
  "documentation-website": "^1.0.345",
79
79
  "eslint": "^9.23.0",
@@ -83,7 +83,7 @@
83
83
  "jsdoc": "^4.0.4",
84
84
  "node-fetch": "^3.3.2",
85
85
  "rimraf": "^6.0.1",
86
- "typescript-eslint": "^8.28.0",
86
+ "typescript-eslint": "^8.29.0",
87
87
  "web-node": "^1.0.545",
88
88
  "weboptimizer": "^2.0.1575"
89
89
  },
package/type.d.ts CHANGED
@@ -362,7 +362,11 @@ export interface RuntimeErrorData<S = Mapping<unknown>> extends EvaluationErrorD
362
362
  export interface BasicScope<Type extends object, AttachmentType extends Attachment, AdditionalSpecifications extends object, AdditionalPropertiesType> {
363
363
  attachmentWithPrefixExists: (namePrefix: string) => boolean;
364
364
  checkDocument: (newDocument: PartialFullDocument<Type, AdditionalPropertiesType>, oldDocument: PartialFullDocument<Type, AdditionalPropertiesType> | null, parentNames: Array<string>) => CheckedDocumentResult<Type, AdditionalPropertiesType>;
365
+ getDateTime: (value: number | string) => Date;
366
+ getEffectiveValue: (newDocument: PartialFullDocument<Type, AdditionalPropertiesType>, oldDocument: (null | PartialFullDocument<Type, AdditionalPropertiesType>), name: string) => unknown;
365
367
  getFileNameByPrefix: (prefix?: string, attachments?: Mapping<AttachmentType>) => null | string;
368
+ isDefinedPropertyValue: (document: PartialFullDocument<Type, AdditionalPropertiesType>, name: string) => boolean;
369
+ require: null | typeof require;
366
370
  serialize: (value: unknown) => string;
367
371
  id: string;
368
372
  revision: string;
@@ -387,8 +391,6 @@ export interface CommonScope<ObjectType extends object, Type, AttachmentType ext
387
391
  oldDocument: null | PartialFullDocument<ObjectType, AdditionalPropertiesType>;
388
392
  parentNames: Array<string>;
389
393
  pathDescription: string;
390
- isDefinedPropertyValue: (document: PartialFullDocument<ObjectType, AdditionalPropertiesType>, name: string) => boolean;
391
- getEffectiveValue: (newDocument: PartialFullDocument<ObjectType, AdditionalPropertiesType>, oldDocument: (null | PartialFullDocument<ObjectType, AdditionalPropertiesType>), name: string) => unknown;
392
394
  }
393
395
  export interface PropertyScope<ObjectType extends object, Type, PropertyType, AttachmentType extends Attachment, AdditionalSpecifications extends object, AdditionalPropertiesType> extends CommonScope<ObjectType, PropertyType, AttachmentType, AdditionalSpecifications, AdditionalPropertiesType> {
394
396
  name: string;