couchdb-web-node-plugin 2.0.839 → 2.0.840
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.cjs +5055 -0
- package/databaseHelper.d.ts +7 -3
- package/databaseHelper.js +5097 -3
- package/helper.d.ts +3 -2
- package/helper.js +232 -1
- package/index.d.ts +3 -3
- package/index.js +894 -1
- package/loadExpress.js +78 -1
- package/package.json +57 -52
- package/readme.md +2 -2
- package/type.d.ts +5 -6
- package/type.js +85 -1
package/loadExpress.js
CHANGED
|
@@ -1 +1,78 @@
|
|
|
1
|
-
(
|
|
1
|
+
if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='undefined'||globalThis===null)?{}:globalThis;import { default as __WEBPACK_EXTERNAL_MODULE_express_default__ } from "express";
|
|
2
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_dfc8e14f_default__ } from "express-pouchdb";
|
|
3
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_bulk_get_a4269780_default__ } from "express-pouchdb/lib/routes/bulk-get";
|
|
4
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_all_docs_e3cb3bb1_default__ } from "express-pouchdb/lib/routes/all-docs";
|
|
5
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_changes_df225ed3_default__ } from "express-pouchdb/lib/routes/changes";
|
|
6
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_compact_a3771dd9_default__ } from "express-pouchdb/lib/routes/compact";
|
|
7
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_revs_diff_b774aeae_default__ } from "express-pouchdb/lib/routes/revs-diff";
|
|
8
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_security_b726286a_default__ } from "express-pouchdb/lib/routes/security";
|
|
9
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_view_cleanup_b8915911_default__ } from "express-pouchdb/lib/routes/view-cleanup";
|
|
10
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_temp_views_03c1da38_default__ } from "express-pouchdb/lib/routes/temp-views";
|
|
11
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_find_61f2e3f9_default__ } from "express-pouchdb/lib/routes/find";
|
|
12
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_views_8c31e0dd_default__ } from "express-pouchdb/lib/routes/views";
|
|
13
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_ddoc_info_ceed5ff8_default__ } from "express-pouchdb/lib/routes/ddoc-info";
|
|
14
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_show_b277d79d_default__ } from "express-pouchdb/lib/routes/show";
|
|
15
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_list_3dc6c2d2_default__ } from "express-pouchdb/lib/routes/list";
|
|
16
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_update_8a8be436_default__ } from "express-pouchdb/lib/routes/update";
|
|
17
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_attachments_91a14c38_default__ } from "express-pouchdb/lib/routes/attachments";
|
|
18
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_documents_5811bbfb_default__ } from "express-pouchdb/lib/routes/documents";
|
|
19
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_validation_4c1e3c2f_default__ } from "express-pouchdb/lib/validation";
|
|
20
|
+
import { default as __WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_404_d64b5010_default__ } from "express-pouchdb/lib/routes/404";
|
|
21
|
+
|
|
22
|
+
;// external "express"
|
|
23
|
+
|
|
24
|
+
;// external "express-pouchdb"
|
|
25
|
+
|
|
26
|
+
;// external "express-pouchdb/lib/routes/bulk-get"
|
|
27
|
+
|
|
28
|
+
;// external "express-pouchdb/lib/routes/all-docs"
|
|
29
|
+
|
|
30
|
+
;// external "express-pouchdb/lib/routes/changes"
|
|
31
|
+
|
|
32
|
+
;// external "express-pouchdb/lib/routes/compact"
|
|
33
|
+
|
|
34
|
+
;// external "express-pouchdb/lib/routes/revs-diff"
|
|
35
|
+
|
|
36
|
+
;// external "express-pouchdb/lib/routes/security"
|
|
37
|
+
|
|
38
|
+
;// external "express-pouchdb/lib/routes/view-cleanup"
|
|
39
|
+
|
|
40
|
+
;// external "express-pouchdb/lib/routes/temp-views"
|
|
41
|
+
|
|
42
|
+
;// external "express-pouchdb/lib/routes/find"
|
|
43
|
+
|
|
44
|
+
;// external "express-pouchdb/lib/routes/views"
|
|
45
|
+
|
|
46
|
+
;// external "express-pouchdb/lib/routes/ddoc-info"
|
|
47
|
+
|
|
48
|
+
;// external "express-pouchdb/lib/routes/show"
|
|
49
|
+
|
|
50
|
+
;// external "express-pouchdb/lib/routes/list"
|
|
51
|
+
|
|
52
|
+
;// external "express-pouchdb/lib/routes/update"
|
|
53
|
+
|
|
54
|
+
;// external "express-pouchdb/lib/routes/attachments"
|
|
55
|
+
|
|
56
|
+
;// external "express-pouchdb/lib/routes/documents"
|
|
57
|
+
|
|
58
|
+
;// external "express-pouchdb/lib/validation"
|
|
59
|
+
|
|
60
|
+
;// external "express-pouchdb/lib/routes/404"
|
|
61
|
+
|
|
62
|
+
;// ./loadExpress.ts
|
|
63
|
+
// -*- coding: utf-8 -*-
|
|
64
|
+
/** @module loadExpress *//* !
|
|
65
|
+
region header
|
|
66
|
+
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
67
|
+
|
|
68
|
+
License
|
|
69
|
+
-------
|
|
70
|
+
|
|
71
|
+
This library written by Torben Sickert stands under a creative commons
|
|
72
|
+
naming 3.0 unported license.
|
|
73
|
+
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
74
|
+
endregion
|
|
75
|
+
*/// region imports
|
|
76
|
+
// endregion
|
|
77
|
+
var utilities={express:__WEBPACK_EXTERNAL_MODULE_express_default__,expressPouchDB:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_dfc8e14f_default__,bulkGet:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_bulk_get_a4269780_default__,allDocs:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_all_docs_e3cb3bb1_default__,changes:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_changes_df225ed3_default__,compact:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_compact_a3771dd9_default__,revsDiff:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_revs_diff_b774aeae_default__,security:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_security_b726286a_default__,viewCleanup:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_view_cleanup_b8915911_default__,tempViews:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_temp_views_03c1da38_default__,find:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_find_61f2e3f9_default__,views:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_views_8c31e0dd_default__,ddocInfo:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_ddoc_info_ceed5ff8_default__,show:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_show_b277d79d_default__,list:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_list_3dc6c2d2_default__,update:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_update_8a8be436_default__,attachments:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_attachments_91a14c38_default__,documents:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_documents_5811bbfb_default__,validation:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_validation_4c1e3c2f_default__,notFoundError:__WEBPACK_EXTERNAL_MODULE_express_pouchdb_lib_routes_404_d64b5010_default__};/* harmony default export */ const loadExpress = (utilities);
|
|
78
|
+
export { loadExpress as default, utilities };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchdb-web-node-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.840",
|
|
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",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"databaseHelper.d.ts",
|
|
33
|
+
"databaseHelper.cjs",
|
|
33
34
|
"databaseHelper.js",
|
|
34
35
|
"helper.d.ts",
|
|
35
36
|
"index.d.ts",
|
|
@@ -45,8 +46,10 @@
|
|
|
45
46
|
"url": "https://github.com/thaibault/couchdb-web-node-plugin.git"
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
|
-
"build": "
|
|
49
|
-
"build:
|
|
49
|
+
"build": "yarn build:types && yarn build:database-helper && yarn build:plain",
|
|
50
|
+
"build:database-helper": "weboptimizer build '{__reference__: \"target:databaseHelper\"}'",
|
|
51
|
+
"build:plain": "weboptimizer build",
|
|
52
|
+
"build:types": "weboptimizer build:types",
|
|
50
53
|
"check:types": "weboptimizer check:types",
|
|
51
54
|
"clear": "weboptimizer clear && rimraf log.txt",
|
|
52
55
|
"document": "weboptimizer document",
|
|
@@ -55,7 +58,7 @@
|
|
|
55
58
|
"report:coverage": "nyc report --reporter=text-lcov | coveralls",
|
|
56
59
|
"serve": "yarn build && yarn start",
|
|
57
60
|
"start": "web-node '{plugin: {hotReloading: true}}'",
|
|
58
|
-
"test": "yarn build:
|
|
61
|
+
"test": "yarn build:database-helper && weboptimizer test",
|
|
59
62
|
"test:coverage": "weboptimizer test:coverage",
|
|
60
63
|
"test:coverage:report": "weboptimizer test:coverage:report",
|
|
61
64
|
"update:documentation": "web-documentation",
|
|
@@ -70,37 +73,35 @@
|
|
|
70
73
|
"rxjs": "^7.8.2"
|
|
71
74
|
},
|
|
72
75
|
"devDependencies": {
|
|
73
|
-
"@babel/eslint-parser": "^
|
|
74
|
-
"@babel/runtime": "^7.29.2",
|
|
76
|
+
"@babel/eslint-parser": "^8.0.1",
|
|
75
77
|
"@eslint/js": "^10.0.1",
|
|
76
78
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
77
79
|
"@types/ejs": "^3.1.5",
|
|
78
80
|
"@types/express": "^5.0.6",
|
|
79
|
-
"@types/node": "^
|
|
81
|
+
"@types/node": "^26.1.2",
|
|
80
82
|
"@types/pouchdb-adapter-memory": "^6.1.6",
|
|
81
83
|
"@types/pouchdb-node": "^6.1.7",
|
|
82
84
|
"@types/webpack-env": "^1.18.8",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
84
|
-
"@typescript-eslint/parser": "^8.
|
|
85
|
-
"clientnode": "^4.0.
|
|
86
|
-
"eslint": "^10.
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "^8.66.0",
|
|
86
|
+
"@typescript-eslint/parser": "^8.66.0",
|
|
87
|
+
"clientnode": "^4.0.1483",
|
|
88
|
+
"eslint": "^10.8.0",
|
|
87
89
|
"eslint-config-google": "^0.14.0",
|
|
88
|
-
"eslint-plugin-jsdoc": "^
|
|
90
|
+
"eslint-plugin-jsdoc": "^63.3.3",
|
|
89
91
|
"express": "^5.2.1",
|
|
90
92
|
"express-pouchdb": "^4.2.0",
|
|
91
|
-
"jest": "^30.
|
|
93
|
+
"jest": "^30.4.2",
|
|
92
94
|
"jsdoc": "^4.0.5",
|
|
93
95
|
"mkdirp": "^3.0.1",
|
|
94
96
|
"node-fetch": "^3.3.2",
|
|
95
97
|
"pouchdb-adapter-memory": "^9.0.0",
|
|
96
98
|
"rimraf": "^6.1.3",
|
|
97
|
-
"typescript-eslint": "^8.
|
|
98
|
-
"web-documentation": "^1.0.
|
|
99
|
-
"web-node": "^1.0.
|
|
100
|
-
"weboptimizer": "^
|
|
99
|
+
"typescript-eslint": "^8.66.0",
|
|
100
|
+
"web-documentation": "^1.0.45",
|
|
101
|
+
"web-node": "^1.0.585",
|
|
102
|
+
"weboptimizer": "^4.0.50"
|
|
101
103
|
},
|
|
102
104
|
"peerDependencies": {
|
|
103
|
-
"@babel/runtime": "*",
|
|
104
105
|
"clientnode": "*",
|
|
105
106
|
"express": "*",
|
|
106
107
|
"express-pouchdb": "*",
|
|
@@ -110,9 +111,6 @@
|
|
|
110
111
|
"web-node": "*"
|
|
111
112
|
},
|
|
112
113
|
"peerDependenciesMeta": {
|
|
113
|
-
"@babel/runtime": {
|
|
114
|
-
"optional": true
|
|
115
|
-
},
|
|
116
114
|
"express": {
|
|
117
115
|
"optional": true
|
|
118
116
|
},
|
|
@@ -128,6 +126,7 @@
|
|
|
128
126
|
"npm": ">=11",
|
|
129
127
|
"yarn": ">=4"
|
|
130
128
|
},
|
|
129
|
+
"type": "module",
|
|
131
130
|
"resolutions": {
|
|
132
131
|
"colors": "1.4.0",
|
|
133
132
|
"globals@npm:^9.18.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
|
|
@@ -136,14 +135,13 @@
|
|
|
136
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"
|
|
137
136
|
},
|
|
138
137
|
"sideEffects": false,
|
|
139
|
-
"
|
|
140
|
-
"name": "couchdb-web-node-plugin",
|
|
138
|
+
"webDocumentation": {
|
|
141
139
|
"trackingCode": "UA-40192634-21"
|
|
142
140
|
},
|
|
143
141
|
"webNode": {
|
|
144
142
|
"couchdb": {
|
|
145
143
|
"attachAutoRestarter": true,
|
|
146
|
-
"closeTimeoutInSeconds":
|
|
144
|
+
"closeTimeoutInSeconds": 120,
|
|
147
145
|
"runner": {
|
|
148
146
|
"memoryInMegaByte": "default",
|
|
149
147
|
"nodePath": "/usr/bin/node",
|
|
@@ -544,23 +542,12 @@
|
|
|
544
542
|
}
|
|
545
543
|
},
|
|
546
544
|
"webOptimizer": {
|
|
547
|
-
"assetPattern": {
|
|
548
|
-
"javaScript": {
|
|
549
|
-
"excludeFilePathRegularExpression": {
|
|
550
|
-
"__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? '^$' : '.+'"
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
},
|
|
554
|
-
"exportFormat": {
|
|
555
|
-
"external": "commonjs2",
|
|
556
|
-
"self": "commonjs2"
|
|
557
|
-
},
|
|
558
545
|
"generic": {
|
|
559
546
|
"testCommandLine": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --config node_modules/weboptimizer/jest.json --noStackTrace --runInBand --test-regex"
|
|
560
547
|
},
|
|
561
548
|
"injection": {
|
|
562
549
|
"entry": {
|
|
563
|
-
"__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? {testBundle: 'test'} : {helper: './helper', index: './index', loadExpress: './loadExpress', type: './type'}"
|
|
550
|
+
"__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? {testBundle: 'test'} : {databaseHelper: './databaseHelper', helper: './helper', index: './index', loadExpress: './loadExpress', type: './type'}"
|
|
564
551
|
}
|
|
565
552
|
},
|
|
566
553
|
"module": {
|
|
@@ -569,15 +556,18 @@
|
|
|
569
556
|
"node-fetch$": "pouchdb-node/node_modules/node-fetch/lib/index.js"
|
|
570
557
|
},
|
|
571
558
|
"optimizer": {
|
|
572
|
-
"
|
|
573
|
-
"
|
|
574
|
-
"
|
|
559
|
+
"terser": {
|
|
560
|
+
"terserOptions": {
|
|
561
|
+
"compress": {
|
|
575
562
|
"#": "To provide a logging output we need to exclude this feature.",
|
|
576
|
-
"
|
|
563
|
+
"drop_console": {
|
|
564
|
+
"__evaluate__": "false"
|
|
565
|
+
},
|
|
566
|
+
"drop_debugger": {
|
|
567
|
+
"__evaluate__": "false"
|
|
568
|
+
}
|
|
577
569
|
}
|
|
578
|
-
}
|
|
579
|
-
"#": "Avoids \"Couldn't find intersection\" build error.",
|
|
580
|
-
"module": false
|
|
570
|
+
}
|
|
581
571
|
}
|
|
582
572
|
},
|
|
583
573
|
"skipParseRegularExpressions": {
|
|
@@ -589,6 +579,27 @@
|
|
|
589
579
|
"payload": "node"
|
|
590
580
|
},
|
|
591
581
|
"target:databaseHelper": {
|
|
582
|
+
"buildContext": {
|
|
583
|
+
"types": {
|
|
584
|
+
"default": {
|
|
585
|
+
"outputExtension": "cjs"
|
|
586
|
+
},
|
|
587
|
+
"javaScript": {
|
|
588
|
+
"extension": "cjs"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"exportFormat": {
|
|
593
|
+
"external": "commonjs2",
|
|
594
|
+
"self": "commonjs2"
|
|
595
|
+
},
|
|
596
|
+
"files": {
|
|
597
|
+
"compose": {
|
|
598
|
+
"javaScript": {
|
|
599
|
+
"__evaluate__": "`${path.resolve(self.path.target.asset.javaScript, '[name]')}.cjs?${self.hashAlgorithm}=[chunkhash]`"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
},
|
|
592
603
|
"injection": {
|
|
593
604
|
"entry": {
|
|
594
605
|
"__evaluate__": "{databaseHelper: './databaseHelper'}"
|
|
@@ -599,15 +610,9 @@
|
|
|
599
610
|
"normal": true
|
|
600
611
|
}
|
|
601
612
|
},
|
|
602
|
-
"
|
|
603
|
-
"
|
|
604
|
-
"
|
|
605
|
-
"options": {
|
|
606
|
-
"plugins": {
|
|
607
|
-
"__remove__": "@babel/plugin-transform-runtime"
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
613
|
+
"webpack": {
|
|
614
|
+
"experiments": {
|
|
615
|
+
"outputModule": false
|
|
611
616
|
}
|
|
612
617
|
}
|
|
613
618
|
},
|
package/readme.md
CHANGED
|
@@ -6,7 +6,7 @@ Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
|
6
6
|
License
|
|
7
7
|
-------
|
|
8
8
|
|
|
9
|
-
This library written by Torben Sickert
|
|
9
|
+
This library written by Torben Sickert stands under a creative commons naming
|
|
10
10
|
3.0 unported license. See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
11
11
|
endregion -->
|
|
12
12
|
|
|
@@ -26,7 +26,7 @@ Project status
|
|
|
26
26
|
[](https://coveralls.io/github/thaibault/couchdb-web-node-plugin)
|
|
27
27
|
|
|
28
28
|
[](https://github.com/thaibault/couchdb-web-node-plugin/actions/workflows/deploy-web-documentation.yaml)
|
|
29
|
-
[](https://torben.website/couchdb-web-node-plugin)
|
|
30
30
|
|
|
31
31
|
Use case
|
|
32
32
|
--------
|
package/type.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChildProcess } from 'child_process';
|
|
2
|
-
import { AnyFunction, Mapping, PlainObject, Primitive, ProcessCloseReason, UTILITY_SCOPE } from 'clientnode';
|
|
3
|
-
import { Express } from 'express-serve-static-core';
|
|
4
|
-
import { IncomingMessage as IncomingHTTPMessage, Server as HTTPServer, ServerResponse as HTTP1ServerResponse } from 'http';
|
|
5
|
-
import { Configuration as BaseConfiguration, PluginHandler as BasePluginHandler, ServicePromises as BaseServicePromises, Services as BaseServices, ServicePromisesState as BaseServicePromisesState, ServicesState as BaseServicesState } from 'web-node/type';
|
|
1
|
+
import type { ChildProcess } from 'child_process';
|
|
2
|
+
import type { AnyFunction, Mapping, PlainObject, Primitive, ProcessCloseReason, UTILITY_SCOPE } from 'clientnode';
|
|
3
|
+
import type { Express } from 'express-serve-static-core';
|
|
4
|
+
import type { IncomingMessage as IncomingHTTPMessage, Server as HTTPServer, ServerResponse as HTTP1ServerResponse } from 'http';
|
|
5
|
+
import type { Configuration as BaseConfiguration, PluginHandler as BasePluginHandler, ServicePromises as BaseServicePromises, Services as BaseServices, ServicePromisesState as BaseServicePromisesState, ServicesState as BaseServicesState } from 'web-node/type';
|
|
6
6
|
export type Attachment = PouchDB.Core.Attachment & {
|
|
7
7
|
content_type?: PouchDB.Core.Attachment['content_type'];
|
|
8
8
|
contentType?: PouchDB.Core.Attachment['content_type'];
|
|
@@ -458,7 +458,6 @@ export interface BasicScope<Type extends object, AttachmentType extends Attachme
|
|
|
458
458
|
getEffectiveValue: (name: string, newDocument: PartialFullDocument<Type, AdditionalPropertiesType>, oldDocument: (null | PartialFullDocument<Type, AdditionalPropertiesType>)) => unknown;
|
|
459
459
|
getFileNameByPrefix: (prefix?: string, attachments?: Mapping<AttachmentType>) => null | string;
|
|
460
460
|
isDefinedPropertyValue: (name: keyof object, document: PartialFullDocument<Type, AdditionalPropertiesType>) => boolean;
|
|
461
|
-
require: null | typeof require;
|
|
462
461
|
serialize: (value: unknown) => string;
|
|
463
462
|
id: string;
|
|
464
463
|
revision: string;
|
package/type.js
CHANGED
|
@@ -1 +1,85 @@
|
|
|
1
|
-
(
|
|
1
|
+
if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='undefined'||globalThis===null)?{}:globalThis;/******/ // The require scope
|
|
2
|
+
/******/ const __webpack_require__ = {};
|
|
3
|
+
/******/
|
|
4
|
+
/************************************************************************/
|
|
5
|
+
/******/ /* webpack/runtime/define property getters */
|
|
6
|
+
/******/ (() => {
|
|
7
|
+
/******/ // define getter/value functions for harmony exports
|
|
8
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
9
|
+
/******/ if(Array.isArray(definition)) {
|
|
10
|
+
/******/ var i = 0;
|
|
11
|
+
/******/ while(i < definition.length) {
|
|
12
|
+
/******/ var key = definition[i++];
|
|
13
|
+
/******/ var binding = definition[i++];
|
|
14
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
15
|
+
/******/ if(binding === 0) {
|
|
16
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
17
|
+
/******/ } else {
|
|
18
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
19
|
+
/******/ }
|
|
20
|
+
/******/ } else if(binding === 0) { i++; }
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ } else {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/ };
|
|
30
|
+
/******/ })();
|
|
31
|
+
/******/
|
|
32
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
33
|
+
/******/ (() => {
|
|
34
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
35
|
+
/******/ })();
|
|
36
|
+
/******/
|
|
37
|
+
/************************************************************************/
|
|
38
|
+
let __webpack_exports__ = {};
|
|
39
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40
|
+
/* harmony export */ J: () => (/* binding */ PrimitiveTypes)
|
|
41
|
+
/* harmony export */ });
|
|
42
|
+
// -*- coding: utf-8 -*-
|
|
43
|
+
/** @module type *//* !
|
|
44
|
+
region header
|
|
45
|
+
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
46
|
+
|
|
47
|
+
License
|
|
48
|
+
-------
|
|
49
|
+
|
|
50
|
+
This library written by Torben Sickert stands under a creative commons
|
|
51
|
+
naming 3.0 unported license.
|
|
52
|
+
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
53
|
+
endregion
|
|
54
|
+
*/// region imports
|
|
55
|
+
// endregion
|
|
56
|
+
// region exports
|
|
57
|
+
/// region database implementation
|
|
58
|
+
/// endregion
|
|
59
|
+
/// region model
|
|
60
|
+
// Represents a properties read and write roles.
|
|
61
|
+
/*
|
|
62
|
+
Recursive mapping from model and properties to their allowed read and write
|
|
63
|
+
roles.
|
|
64
|
+
*//*
|
|
65
|
+
Maps an artifact (usually type or property) to corresponding operations
|
|
66
|
+
mapped to their allowed roles.
|
|
67
|
+
*/var PrimitiveTypes=["boolean","DateTime","integer","number","string"];// | 'any' | PrimitiveType
|
|
68
|
+
/// endregion
|
|
69
|
+
/// region web-node api
|
|
70
|
+
//// region configuration
|
|
71
|
+
//// endregion
|
|
72
|
+
/// endregion
|
|
73
|
+
/// region evaluation
|
|
74
|
+
//// region scopes
|
|
75
|
+
//// endregion
|
|
76
|
+
/// endregion
|
|
77
|
+
/// region checker results
|
|
78
|
+
/// endregion
|
|
79
|
+
/// region pre-defined models
|
|
80
|
+
/*
|
|
81
|
+
Start and end time can be represented as number (of seconds) or an iso
|
|
82
|
+
based datetime string.
|
|
83
|
+
*//// endregion
|
|
84
|
+
// endregion
|
|
85
|
+
export { PrimitiveTypes };
|