couchdb-web-node-plugin 1.0.587 → 1.0.589

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.587",
3
+ "version": "1.0.589",
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
@@ -32,6 +32,8 @@ export type DocumentIDMeta = PouchDB.Core.IdMeta;
32
32
  export type DocumentRevisionIDMeta = PouchDB.Core.RevisionIdMeta;
33
33
  export type FindRequest<Type extends Mapping<unknown>> = PouchDB.Find.FindRequest<Type>;
34
34
  export type GetOptions = PouchDB.Core.GetOptions;
35
+ export type PutOptions = PouchDB.Core.Options;
36
+ export type PutDocument<Type extends Mapping<unknown>> = PouchDB.Core.PutDocument<Type>;
35
37
  export type Index = PouchDB.Find.Index;
36
38
  export type DatabasePlugin = AnyFunction;
37
39
  export type AllowedRoles = (Array<string> | string | {
@@ -214,7 +216,7 @@ export interface SecuritySettings {
214
216
  _validatedDocuments?: Set<string>;
215
217
  }
216
218
  export type AdvancedFetchOptions = RequestInit & {
217
- timeout: number;
219
+ timeout?: number;
218
220
  };
219
221
  export type ConnectorConfiguration = DatabaseConnectorConfiguration & {
220
222
  fetch?: AdvancedFetchOptions | null;