couchdb-web-node-plugin 1.0.799 → 1.0.800
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.d.ts +3 -7
- package/databaseHelper.js +1 -1
- package/helper.d.ts +49 -10
- package/helper.js +1 -1
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/loadExpress.d.ts +24 -0
- package/loadExpress.js +1 -0
- package/package.json +80 -49
- package/type.d.ts +20 -5
package/loadExpress.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
export declare const utilities: {
|
|
3
|
+
express: typeof express;
|
|
4
|
+
expressPouchDB: any;
|
|
5
|
+
bulkGet: any;
|
|
6
|
+
allDocs: any;
|
|
7
|
+
changes: any;
|
|
8
|
+
compact: any;
|
|
9
|
+
revsDiff: any;
|
|
10
|
+
security: any;
|
|
11
|
+
viewCleanup: any;
|
|
12
|
+
tempViews: any;
|
|
13
|
+
find: any;
|
|
14
|
+
views: any;
|
|
15
|
+
ddocInfo: any;
|
|
16
|
+
show: any;
|
|
17
|
+
list: any;
|
|
18
|
+
update: any;
|
|
19
|
+
attachments: any;
|
|
20
|
+
documents: any;
|
|
21
|
+
validation: any;
|
|
22
|
+
notFoundError: any;
|
|
23
|
+
};
|
|
24
|
+
export default utilities;
|
package/loadExpress.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={n:r=>{var s=r&&r.__esModule?()=>r.default:()=>r;return e.d(s,{a:s}),s},d:(r,s)=>{for(var o in s)e.o(s,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:s[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{default:()=>K,utilities:()=>J});const s=require("express");var o=e.n(s);const t=require("express-pouchdb");var u=e.n(t);const n=require("express-pouchdb/lib/routes/bulk-get");var i=e.n(n);const c=require("express-pouchdb/lib/routes/all-docs");var p=e.n(c);const a=require("express-pouchdb/lib/routes/changes");var d=e.n(a);const b=require("express-pouchdb/lib/routes/compact");var l=e.n(b);const v=require("express-pouchdb/lib/routes/revs-diff");var h=e.n(v);const x=require("express-pouchdb/lib/routes/security");var q=e.n(x);const f=require("express-pouchdb/lib/routes/view-cleanup");var m=e.n(f);const y=require("express-pouchdb/lib/routes/temp-views");var w=e.n(y);const g=require("express-pouchdb/lib/routes/find");var O=e.n(g);const P=require("express-pouchdb/lib/routes/views");var S=e.n(P);const j=require("express-pouchdb/lib/routes/ddoc-info");var _=e.n(j);const D=require("express-pouchdb/lib/routes/show");var M=e.n(D);const k=require("express-pouchdb/lib/routes/list");var T=e.n(k);const B=require("express-pouchdb/lib/routes/update");var C=e.n(B);const E=require("express-pouchdb/lib/routes/attachments");var F=e.n(E);const G=require("express-pouchdb/lib/routes/documents");var I=e.n(G);const V=require("express-pouchdb/lib/validation");var z=e.n(V);const A=require("express-pouchdb/lib/routes/404");var H=e.n(A),J={express:o(),expressPouchDB:u(),bulkGet:i(),allDocs:p(),changes:d(),compact:l(),revsDiff:h(),security:q(),viewCleanup:m(),tempViews:w(),find:O(),views:S(),ddocInfo:_(),show:M(),list:T(),update:C(),attachments:F(),documents:I(),validation:z(),notFoundError:H()};const K=J;module.exports=r})();
|
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.800",
|
|
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",
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
"helper.d.ts",
|
|
35
35
|
"index.d.ts",
|
|
36
36
|
"index.js",
|
|
37
|
+
"loadExpress.d.ts",
|
|
38
|
+
"loadExpress.js",
|
|
37
39
|
"helper.js",
|
|
38
40
|
"type.d.ts",
|
|
39
41
|
"type.js"
|
|
@@ -53,13 +55,14 @@
|
|
|
53
55
|
"report:coverage": "nyc report --reporter=text-lcov | coveralls",
|
|
54
56
|
"serve": "yarn build && yarn start",
|
|
55
57
|
"start": "web-node '{plugin: {hotReloading: true}}'",
|
|
56
|
-
"test": "weboptimizer test",
|
|
58
|
+
"test": "yarn build:databaseHelper && weboptimizer test",
|
|
57
59
|
"test:coverage": "weboptimizer test:coverage",
|
|
58
60
|
"test:coverage:report": "weboptimizer test:coverage:report",
|
|
59
61
|
"update:documentation": "documentation-website",
|
|
60
62
|
"watch": "weboptimizer build --watch"
|
|
61
63
|
},
|
|
62
64
|
"dependencies": {
|
|
65
|
+
"pouchdb-adapter-http": "^9.0.0",
|
|
63
66
|
"pouchdb-authentication": "^1.1.3",
|
|
64
67
|
"pouchdb-find": "^9.0.0",
|
|
65
68
|
"pouchdb-node": "^9.0.0",
|
|
@@ -69,28 +72,31 @@
|
|
|
69
72
|
"devDependencies": {
|
|
70
73
|
"@babel/eslint-parser": "^7.28.6",
|
|
71
74
|
"@babel/runtime": "^7.28.6",
|
|
72
|
-
"@
|
|
75
|
+
"@eslint/js": "^10.0.1",
|
|
76
|
+
"@stylistic/eslint-plugin": "^5.8.0",
|
|
73
77
|
"@types/ejs": "^3.1.5",
|
|
74
78
|
"@types/express": "^5.0.6",
|
|
75
|
-
"@types/node": "^25.2.
|
|
79
|
+
"@types/node": "^25.2.3",
|
|
80
|
+
"@types/pouchdb-adapter-memory": "^6.1.6",
|
|
76
81
|
"@types/pouchdb-node": "^6.1.7",
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
78
|
-
"@typescript-eslint/parser": "^8.
|
|
79
|
-
"clientnode": "^3.0.
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^8.55.0",
|
|
83
|
+
"@typescript-eslint/parser": "^8.55.0",
|
|
84
|
+
"clientnode": "^3.0.1346",
|
|
80
85
|
"documentation-website": "^1.0.398",
|
|
81
|
-
"eslint": "^
|
|
86
|
+
"eslint": "^10.0.0",
|
|
82
87
|
"eslint-config-google": "^0.14.0",
|
|
83
|
-
"eslint-plugin-jsdoc": "^62.5.
|
|
88
|
+
"eslint-plugin-jsdoc": "^62.5.4",
|
|
84
89
|
"express": "^5.2.1",
|
|
85
|
-
"express-pouchdb": "
|
|
90
|
+
"express-pouchdb": "patch:express-pouchdb@npm%3A4.2.0#~/.yarn/patches/express-pouchdb-npm-4.2.0-969036264e.patch",
|
|
86
91
|
"jest": "^30.2.0",
|
|
87
92
|
"jsdoc": "^4.0.5",
|
|
88
93
|
"mkdirp": "^3.0.1",
|
|
89
94
|
"node-fetch": "^3.3.2",
|
|
95
|
+
"pouchdb-adapter-memory": "^9.0.0",
|
|
90
96
|
"rimraf": "^6.1.2",
|
|
91
|
-
"typescript-eslint": "^8.
|
|
97
|
+
"typescript-eslint": "^8.55.0",
|
|
92
98
|
"web-node": "^1.0.569",
|
|
93
|
-
"weboptimizer": "^2.0.
|
|
99
|
+
"weboptimizer": "^2.0.1647"
|
|
94
100
|
},
|
|
95
101
|
"peerDependencies": {
|
|
96
102
|
"@babel/runtime": "*",
|
|
@@ -99,7 +105,6 @@
|
|
|
99
105
|
"express-pouchdb": "*",
|
|
100
106
|
"mkdirp": "*",
|
|
101
107
|
"node-fetch": "*",
|
|
102
|
-
"pouchdb-server": "*",
|
|
103
108
|
"request": "*",
|
|
104
109
|
"web-node": "*"
|
|
105
110
|
},
|
|
@@ -126,7 +131,8 @@
|
|
|
126
131
|
"colors": "1.4.0",
|
|
127
132
|
"globals@npm:^9.18.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
128
133
|
"globals@npm:^11.1.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
129
|
-
"globals@npm:^14.0.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch"
|
|
134
|
+
"globals@npm:^14.0.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
135
|
+
"pouchdb-system-db@npm:4.2.0": "patch:pouchdb-system-db@npm%3A4.2.0#~/.yarn/patches/pouchdb-system-db-npm-4.2.0-317901bdb4.patch"
|
|
130
136
|
},
|
|
131
137
|
"sideEffects": false,
|
|
132
138
|
"documentationWebsite": {
|
|
@@ -136,41 +142,48 @@
|
|
|
136
142
|
"webNode": {
|
|
137
143
|
"couchdb": {
|
|
138
144
|
"attachAutoRestarter": true,
|
|
139
|
-
"
|
|
140
|
-
"configuration": {
|
|
141
|
-
"couchdb/database_dir": {
|
|
142
|
-
"__evaluate__": "path.resolve(self.couchdb.path)"
|
|
143
|
-
},
|
|
144
|
-
"couchdb/max_attachment_chunk_size": "4294967296",
|
|
145
|
-
"couchdb/os_process_timeout": "25000",
|
|
146
|
-
"couchdb/view_index_dir": {
|
|
147
|
-
"__evaluate__": "path.resolve(self.couchdb.path)"
|
|
148
|
-
},
|
|
149
|
-
"couch_httpd_auth/timeout": {
|
|
150
|
-
"__evaluate__": "60 ** 2 * 24 * 14"
|
|
151
|
-
},
|
|
152
|
-
"chttpd/require_valid_user": true,
|
|
153
|
-
"httpd/allow_jsonp": false,
|
|
154
|
-
"httpd/bind_address": {
|
|
155
|
-
"__evaluate__": "self.couchdb.backend.configuration['httpd/host']"
|
|
156
|
-
},
|
|
157
|
-
"httpd/enable_cors": false,
|
|
158
|
-
"httpd/host": "0.0.0.0",
|
|
159
|
-
"httpd/port": 5984,
|
|
160
|
-
"log/file": "/dev/stdout",
|
|
161
|
-
"log/level": "warning"
|
|
162
|
-
},
|
|
163
|
-
"prefixes": [
|
|
164
|
-
"_node/_local/_config",
|
|
165
|
-
"_config"
|
|
166
|
-
]
|
|
167
|
-
},
|
|
145
|
+
"closeTimeoutInSeconds": 30,
|
|
168
146
|
"runner": {
|
|
169
147
|
"memoryInMegaByte": "default",
|
|
170
148
|
"nodePath": "/usr/bin/node",
|
|
149
|
+
"host": "0.0.0.0",
|
|
150
|
+
"port": 5984,
|
|
171
151
|
"variants": [
|
|
172
152
|
{
|
|
173
153
|
"adminUserConfigurationPath": "_node/couchdb@127.0.0.1/_config/admins",
|
|
154
|
+
"configuration": {
|
|
155
|
+
"values": {
|
|
156
|
+
"couchdb/database_dir": {
|
|
157
|
+
"__evaluate__": "path.resolve(self.couchdb.path)"
|
|
158
|
+
},
|
|
159
|
+
"couchdb/max_attachment_chunk_size": "4294967296",
|
|
160
|
+
"couchdb/os_process_timeout": "25000",
|
|
161
|
+
"couchdb/view_index_dir": {
|
|
162
|
+
"__evaluate__": "path.resolve(self.couchdb.path)"
|
|
163
|
+
},
|
|
164
|
+
"couch_httpd_auth/timeout": {
|
|
165
|
+
"__evaluate__": "60 ** 2 * 24 * 14"
|
|
166
|
+
},
|
|
167
|
+
"chttpd/require_valid_user": true,
|
|
168
|
+
"httpd/allow_jsonp": false,
|
|
169
|
+
"httpd/bind_address": {
|
|
170
|
+
"__evaluate__": "self.couchdb.runner.host"
|
|
171
|
+
},
|
|
172
|
+
"httpd/enable_cors": false,
|
|
173
|
+
"httpd/host": {
|
|
174
|
+
"__evaluate__": "self.couchdb.runner.host"
|
|
175
|
+
},
|
|
176
|
+
"httpd/port": {
|
|
177
|
+
"__evaluate__": "self.couchdb.runner.port"
|
|
178
|
+
},
|
|
179
|
+
"log/file": "/dev/stdout",
|
|
180
|
+
"log/level": "warning"
|
|
181
|
+
},
|
|
182
|
+
"prefixes": [
|
|
183
|
+
"_node/_local/_config",
|
|
184
|
+
"_config"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
174
187
|
"configurationFile": {
|
|
175
188
|
"content": {
|
|
176
189
|
"__evaluate__": "`[couchdb]\\ndatabase_dir = ${path.resolve(self.couchdb.path)}\\nview_index_dir = ${path.resolve(self.couchdb.path)}`"
|
|
@@ -189,6 +202,9 @@
|
|
|
189
202
|
},
|
|
190
203
|
{
|
|
191
204
|
"adminUserConfigurationPath": "_config/admins",
|
|
205
|
+
"configuration": {
|
|
206
|
+
"__evaluate__": "self.couchdb.runner.variants[0].configuration"
|
|
207
|
+
},
|
|
192
208
|
"arguments": [
|
|
193
209
|
"--config",
|
|
194
210
|
{
|
|
@@ -196,16 +212,16 @@
|
|
|
196
212
|
},
|
|
197
213
|
"--dir",
|
|
198
214
|
{
|
|
199
|
-
"__evaluate__": "self.couchdb.
|
|
215
|
+
"__evaluate__": "self.couchdb.runner.variants[0].configuration.values['couchdb/database_dir']"
|
|
200
216
|
},
|
|
201
217
|
"#: NOTE: This redundancy seems to be needed to forward ports in docker containers.",
|
|
202
218
|
"--host",
|
|
203
219
|
{
|
|
204
|
-
"__evaluate__": "self.couchdb.
|
|
220
|
+
"__evaluate__": "self.couchdb.runner.host"
|
|
205
221
|
},
|
|
206
222
|
"--port",
|
|
207
223
|
{
|
|
208
|
-
"__evaluate__": "`${self.couchdb.
|
|
224
|
+
"__evaluate__": "`${self.couchdb.runner.port}`"
|
|
209
225
|
}
|
|
210
226
|
],
|
|
211
227
|
"locations": [
|
|
@@ -216,6 +232,16 @@
|
|
|
216
232
|
},
|
|
217
233
|
{
|
|
218
234
|
"adminUserConfigurationPath": "_config/admins",
|
|
235
|
+
"configuration": {
|
|
236
|
+
"configPath": {
|
|
237
|
+
"__evaluate__": "path.resolve(self.couchdb.path, 'database.json')"
|
|
238
|
+
},
|
|
239
|
+
"logPath": "/dev/stdout",
|
|
240
|
+
"prefix": {
|
|
241
|
+
"__evaluate__": "path.resolve(self.couchdb.path) + '/'"
|
|
242
|
+
},
|
|
243
|
+
"skip_setup": true
|
|
244
|
+
},
|
|
219
245
|
"packages": [
|
|
220
246
|
"express",
|
|
221
247
|
"express-pouchdb"
|
|
@@ -247,6 +273,7 @@
|
|
|
247
273
|
"numberOfParallelChangesRunner": 1,
|
|
248
274
|
"connector": {
|
|
249
275
|
"fetch": {
|
|
276
|
+
"credentials": "include",
|
|
250
277
|
"timeout": {
|
|
251
278
|
"__evaluate__": "5 * 60 * 1000"
|
|
252
279
|
}
|
|
@@ -256,7 +283,8 @@
|
|
|
256
283
|
"retryIntervalInSeconds": 0.2,
|
|
257
284
|
"exponentialBackoff": true,
|
|
258
285
|
"maximumRetryIntervallInSeconds": 30
|
|
259
|
-
}
|
|
286
|
+
},
|
|
287
|
+
"skip_setup": true
|
|
260
288
|
},
|
|
261
289
|
"createGenericFlatIndex": true,
|
|
262
290
|
"databaseName": "main",
|
|
@@ -486,7 +514,7 @@
|
|
|
486
514
|
},
|
|
487
515
|
"skipLatestRevisionDetermining": true,
|
|
488
516
|
"url": {
|
|
489
|
-
"__evaluate__": "`http://{1}${self.couchdb.
|
|
517
|
+
"__evaluate__": "`http://{1}${self.couchdb.runner.host}:${self.couchdb.runner.port}`"
|
|
490
518
|
},
|
|
491
519
|
"admin": {
|
|
492
520
|
"name": "admin",
|
|
@@ -508,9 +536,12 @@
|
|
|
508
536
|
"external": "commonjs2",
|
|
509
537
|
"self": "commonjs2"
|
|
510
538
|
},
|
|
539
|
+
"generic": {
|
|
540
|
+
"testCommandLine": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --config node_modules/weboptimizer/jest.json --noStackTrace --runInBand --test-regex"
|
|
541
|
+
},
|
|
511
542
|
"injection": {
|
|
512
543
|
"entry": {
|
|
513
|
-
"__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? {testBundle: 'test'} : {helper: './helper', index: './index', type: './type'}"
|
|
544
|
+
"__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? {testBundle: 'test'} : {helper: './helper', index: './index', loadExpress: './loadExpress', type: './type'}"
|
|
514
545
|
}
|
|
515
546
|
},
|
|
516
547
|
"module": {
|
package/type.d.ts
CHANGED
|
@@ -7,23 +7,32 @@ export type Attachment = PouchDB.Core.Attachment & {
|
|
|
7
7
|
content_type?: PouchDB.Core.Attachment['content_type'];
|
|
8
8
|
contentType?: PouchDB.Core.Attachment['content_type'];
|
|
9
9
|
};
|
|
10
|
+
export type AttachmentData = PouchDB.Core.AttachmentData;
|
|
10
11
|
export type Attachments = Record<string, Attachment | null>;
|
|
11
12
|
export type FullAttachment = Omit<PouchDB.Core.FullAttachment, 'data'> & {
|
|
12
13
|
data?: null | PouchDB.Core.FullAttachment['data'];
|
|
13
14
|
};
|
|
14
15
|
export type StubAttachment = PouchDB.Core.StubAttachment;
|
|
16
|
+
export type Changes = PouchDB.Core.Changes<Mapping<unknown>>;
|
|
15
17
|
export type ChangesMeta = PouchDB.Core.ChangesMeta;
|
|
18
|
+
export type ChangesResponse = PouchDB.Core.ChangesResponse<Mapping<unknown>>;
|
|
16
19
|
export type ChangesResponseChange<Type extends object = Mapping<unknown>> = PouchDB.Core.ChangesResponseChange<Type>;
|
|
17
20
|
export type ChangesStream<Type extends object = Mapping<unknown>> = PouchDB.Core.Changes<Type>;
|
|
18
21
|
export type ChangesStreamOptions = PouchDB.Core.ChangesOptions;
|
|
19
22
|
export interface Connection<Type extends object = Mapping<unknown>> extends PouchDB.Database<Type> {
|
|
23
|
+
installSecurityMethods: () => void;
|
|
20
24
|
installValidationMethods: () => void;
|
|
25
|
+
installCouchDBWebNodePlugin: (description: string) => void;
|
|
21
26
|
bulkDocs<Model>(docs: Array<PutDocument<Type & Model>>, options?: PouchDB.Core.BulkDocsOptions | null): Promise<Array<PouchDB.Core.Response | PouchDB.Core.Error>>;
|
|
27
|
+
remove(id: string | (DocumentIDMeta & DocumentRevisionIDMeta), ...parameters: Array<unknown>): Promise<PouchDB.Core.Response>;
|
|
22
28
|
post<Model>(doc: PostDocument<Type & Model>, options?: PouchDB.Core.Options | null): Promise<PouchDB.Core.Response>;
|
|
23
29
|
put<Model>(doc: PutDocument<Type & Model>, options?: PouchDB.Core.PutOptions | null): Promise<PouchDB.Core.Response>;
|
|
30
|
+
putAttachment(id: string, attachmentName: string, attachment: AttachmentData, type: string): Promise<PouchDB.Core.Response>;
|
|
31
|
+
putAttachment(id: string, attachmentName: string, revision: string, attachment: AttachmentData, type: string): Promise<PouchDB.Core.Response>;
|
|
24
32
|
}
|
|
25
33
|
export type Connector = PouchDB.Static;
|
|
26
34
|
export type DatabaseConnectorConfiguration = PouchDB.Configuration.RemoteDatabaseConfiguration;
|
|
35
|
+
export type LocalDatabaseConfiguration = PouchDB.Configuration.LocalDatabaseConfiguration;
|
|
27
36
|
export type DatabaseError = PouchDB.Core.Error;
|
|
28
37
|
export type DatabaseFetch = PouchDB.Core.Options['fetch'];
|
|
29
38
|
export type DatabaseResponse = PouchDB.Core.Response;
|
|
@@ -54,6 +63,7 @@ export interface NormalizedAllowedRoles {
|
|
|
54
63
|
write: Array<string>;
|
|
55
64
|
}
|
|
56
65
|
export interface NormalizedAllowedModelRoles extends NormalizedAllowedRoles {
|
|
66
|
+
attachments?: Mapping<NormalizedAllowedRoles>;
|
|
57
67
|
properties: Mapping<NormalizedAllowedRoles>;
|
|
58
68
|
}
|
|
59
69
|
export type AllowedModelRolesMapping = Mapping<NormalizedAllowedModelRoles>;
|
|
@@ -231,12 +241,17 @@ export interface Runner {
|
|
|
231
241
|
names: Array<string> | string;
|
|
232
242
|
}
|
|
233
243
|
export interface BinaryRunner extends Runner {
|
|
244
|
+
configuration: {
|
|
245
|
+
values: PlainObject;
|
|
246
|
+
prefixes: Array<string>;
|
|
247
|
+
};
|
|
234
248
|
arguments?: Array<string> | null | string;
|
|
235
249
|
binaryFilePath?: null | string;
|
|
236
250
|
environment?: null | Mapping;
|
|
237
251
|
locations: Array<string> | string;
|
|
238
252
|
}
|
|
239
253
|
export interface InPlaceRunner extends Runner {
|
|
254
|
+
configuration: LocalDatabaseConfiguration;
|
|
240
255
|
packages: Array<string> | string;
|
|
241
256
|
}
|
|
242
257
|
export interface SecuritySettings {
|
|
@@ -248,7 +263,7 @@ export type AdvancedFetchOptions = RequestInit & {
|
|
|
248
263
|
timeout?: number;
|
|
249
264
|
};
|
|
250
265
|
export type ConnectorConfiguration = DatabaseConnectorConfiguration & {
|
|
251
|
-
fetch
|
|
266
|
+
fetch: AdvancedFetchOptions | null;
|
|
252
267
|
fetchInterceptor: {
|
|
253
268
|
numberOfRetries: number;
|
|
254
269
|
retryIntervalInSeconds: number;
|
|
@@ -258,13 +273,12 @@ export type ConnectorConfiguration = DatabaseConnectorConfiguration & {
|
|
|
258
273
|
};
|
|
259
274
|
export interface CoreConfiguration<Type extends object = Mapping<unknown>, AttachmentType extends Attachment = Attachment, AdditionalSpecifications extends object = object, AdditionalPropertiesType = unknown> {
|
|
260
275
|
attachAutoRestarter: boolean;
|
|
261
|
-
|
|
262
|
-
configuration: PlainObject;
|
|
263
|
-
prefixes: Array<string>;
|
|
264
|
-
};
|
|
276
|
+
closeTimeoutInSeconds: number;
|
|
265
277
|
runner: {
|
|
266
278
|
memoryInMegaByte: string;
|
|
267
279
|
nodePath: string;
|
|
280
|
+
host: string;
|
|
281
|
+
port: number;
|
|
268
282
|
variants: Array<BinaryRunner | InPlaceRunner>;
|
|
269
283
|
};
|
|
270
284
|
changesStream: ChangesStreamOptions;
|
|
@@ -320,6 +334,7 @@ export interface CouchDB<Type extends object = Mapping<unknown>> {
|
|
|
320
334
|
reinitializeMaterializedViews?: () => Promise<void>;
|
|
321
335
|
updateMaterializedViewsChangesStream?: ChangesStream;
|
|
322
336
|
lastUpdateMaterializedViewsChangesSequenceIdentifier?: number | string;
|
|
337
|
+
backendConnector: Connector;
|
|
323
338
|
connection: Connection<Type>;
|
|
324
339
|
connector: Connector;
|
|
325
340
|
server: {
|