couchdb-web-node-plugin 1.0.730 → 1.0.731

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.731",
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",
package/type.d.ts CHANGED
@@ -362,7 +362,10 @@ 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
+ getEffectiveValue: (newDocument: PartialFullDocument<Type, AdditionalPropertiesType>, oldDocument: (null | PartialFullDocument<Type, AdditionalPropertiesType>), name: string) => unknown;
365
366
  getFileNameByPrefix: (prefix?: string, attachments?: Mapping<AttachmentType>) => null | string;
367
+ isDefinedPropertyValue: (document: PartialFullDocument<Type, AdditionalPropertiesType>, name: string) => boolean;
368
+ require: null | typeof require;
366
369
  serialize: (value: unknown) => string;
367
370
  id: string;
368
371
  revision: string;
@@ -387,8 +390,6 @@ export interface CommonScope<ObjectType extends object, Type, AttachmentType ext
387
390
  oldDocument: null | PartialFullDocument<ObjectType, AdditionalPropertiesType>;
388
391
  parentNames: Array<string>;
389
392
  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
393
  }
393
394
  export interface PropertyScope<ObjectType extends object, Type, PropertyType, AttachmentType extends Attachment, AdditionalSpecifications extends object, AdditionalPropertiesType> extends CommonScope<ObjectType, PropertyType, AttachmentType, AdditionalSpecifications, AdditionalPropertiesType> {
394
395
  name: string;