adminforth 1.1.74 → 1.1.76
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/auth.ts +14 -0
- package/dataConnectors/postgres.ts +1 -1
- package/dist/auth.js +7 -0
- package/dist/index.js +117 -65
- package/dist/modules/codeInjector.js +29 -15
- package/dist/modules/utils.js +1 -1
- package/dist/plugins/AuditLogPlugin/index.js +2 -17
- package/dist/plugins/S3UploadPlugin/custom/s3uploader.vue +120 -0
- package/dist/plugins/S3UploadPlugin/index.js +103 -0
- package/dist/plugins/S3UploadPlugin/package-lock.json +431 -0
- package/dist/plugins/S3UploadPlugin/package.json +16 -0
- package/dist/plugins/TwoFactorsAuthPlugin/custom/TwoFactorsConfirmation.vue +152 -0
- package/dist/plugins/TwoFactorsAuthPlugin/custom/TwoFactorsOtp.vue +0 -0
- package/dist/plugins/TwoFactorsAuthPlugin/custom/TwoFactorsSetup.vue +188 -0
- package/dist/plugins/TwoFactorsAuthPlugin/index.js +150 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +61 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +21 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +15 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +217 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +21 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +15 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +21 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +201 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +68 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +51 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +2 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +58 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +6 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +22 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +135 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +33 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +15 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +221 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +22 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +1 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +217 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +19 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +24 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +15 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +23 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +26 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +128 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +15 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +63 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +12 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +164 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +41 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +68 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +3 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +47 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +1 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +374 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +373 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +1 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +424 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +6 -0
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +55 -0
- package/dist/plugins/TwoFactorsAuthPlugin/package-lock.json +69 -0
- package/dist/plugins/TwoFactorsAuthPlugin/package.json +15 -0
- package/dist/plugins/TwoFactorsAuthPlugin/types.js +1 -0
- package/dist/spa/index.html +1 -1
- package/dist/spa/package-lock.json +111 -0
- package/dist/spa/package.json +1 -0
- package/dist/spa/spa/src/App.vue +154 -121
- package/dist/spa/spa/src/components/ResourceForm.vue +91 -91
- package/dist/spa/spa/src/router/index.ts +0 -1
- package/dist/spa/spa/src/utils.ts +1 -1
- package/dist/spa/spa/src/views/CreateView.vue +0 -1
- package/dist/spa/spa/src/views/LoginView.vue +4 -1
- package/dist/spa/src/App.vue +178 -133
- package/dist/spa/src/components/MenuLink.vue +3 -3
- package/dist/spa/src/components/ResourceForm.vue +96 -96
- package/dist/spa/src/components/ResourceListTable.vue +69 -84
- package/dist/spa/src/components/SkeleteLoader.vue +23 -0
- package/dist/spa/src/components/ValueRenderer.vue +2 -3
- package/dist/spa/src/composables/useStores.ts +24 -11
- package/dist/spa/src/main.ts +1 -1
- package/dist/spa/src/router/index.ts +0 -1
- package/dist/spa/src/utils.ts +1 -1
- package/dist/spa/src/views/CreateView.vue +1 -9
- package/dist/spa/src/views/EditView.vue +1 -9
- package/dist/spa/src/views/ListView.vue +12 -3
- package/dist/spa/src/views/LoginView.vue +6 -1
- package/dist/spa/src/views/ResourceParent.vue +1 -2
- package/dist/spa/src/views/ShowView.vue +6 -14
- package/dist/spa/tailwind.config.js +3 -1
- package/index.ts +94 -35
- package/modules/codeInjector.ts +38 -27
- package/modules/utils.ts +1 -1
- package/package.json +1 -1
- package/plugins/AuditLogPlugin/index.ts +4 -20
- package/plugins/S3UploadPlugin/custom/s3uploader.vue +120 -0
- package/plugins/S3UploadPlugin/index.ts +112 -0
- package/plugins/S3UploadPlugin/package-lock.json +431 -0
- package/plugins/S3UploadPlugin/package.json +16 -0
- package/plugins/S3UploadPlugin/types.ts +76 -0
- package/plugins/TwoFactorsAuthPlugin/custom/TwoFactorsConfirmation.vue +152 -0
- package/plugins/TwoFactorsAuthPlugin/custom/TwoFactorsOtp.vue +0 -0
- package/plugins/TwoFactorsAuthPlugin/custom/TwoFactorsSetup.vue +188 -0
- package/plugins/TwoFactorsAuthPlugin/index.ts +150 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +61 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +21 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +15 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert.d.ts +1040 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/buffer.d.ts +2363 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/child_process.d.ts +1544 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/cluster.d.ts +578 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/console.d.ts +452 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/constants.d.ts +19 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/crypto.d.ts +4523 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dgram.d.ts +596 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns/promises.d.ts +476 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns.d.ts +864 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dom-events.d.ts +124 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/domain.d.ts +170 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/events.d.ts +931 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs.d.ts +4317 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.d.ts +412 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.global.d.ts +1 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http.d.ts +1908 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http2.d.ts +2418 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/https.d.ts +550 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/index.d.ts +89 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/inspector.d.ts +2746 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/module.d.ts +315 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/net.d.ts +999 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/os.d.ts +495 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +217 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/path.d.ts +191 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/perf_hooks.d.ts +905 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/process.d.ts +1754 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/punycode.d.ts +117 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/querystring.d.ts +153 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline.d.ts +540 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/repl.d.ts +430 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/sea.d.ts +153 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/web.d.ts +367 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream.d.ts +1707 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/test.d.ts +1718 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers.d.ts +240 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tls.d.ts +1217 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/trace_events.d.ts +197 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tty.d.ts +208 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/url.d.ts +952 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/util.d.ts +2292 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/v8.d.ts +808 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/vm.d.ts +924 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/wasi.d.ts +181 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/worker_threads.d.ts +694 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/zlib.d.ts +530 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +21 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +15 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/index.d.ts +127 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +21 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +201 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +68 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.d.ts +11 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +51 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.d.ts +4 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +2 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +58 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +6 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +22 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +135 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +33 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +15 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +221 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +22 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +1 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +217 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +19 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +24 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +15 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +23 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +26 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +128 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +15 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +63 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +12 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +164 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +41 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.d.ts +37 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +68 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +3 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +47 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.d.ts +453 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +1 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +374 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +373 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +1 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +424 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +6 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/agent.d.ts +31 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/api.d.ts +43 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cache.d.ts +36 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/client.d.ts +97 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/connector.d.ts +34 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/content-type.d.ts +21 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cookies.d.ts +28 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/errors.d.ts +128 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/fetch.d.ts +209 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/file.d.ts +39 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/filereader.d.ts +54 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/formdata.d.ts +108 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-origin.d.ts +7 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/handlers.d.ts +9 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/header.d.ts +4 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/index.d.ts +63 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/interceptors.d.ts +5 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-client.d.ts +25 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +55 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/patch.d.ts +71 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool.d.ts +28 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/readable.d.ts +61 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/webidl.d.ts +220 -0
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/websocket.d.ts +131 -0
- package/plugins/TwoFactorsAuthPlugin/package-lock.json +69 -0
- package/plugins/TwoFactorsAuthPlugin/package.json +15 -0
- package/plugins/TwoFactorsAuthPlugin/types.ts +10 -0
- package/servers/express.ts +1 -0
- package/spa/src/App.vue +154 -121
- package/spa/src/components/ResourceForm.vue +91 -91
- package/spa/src/router/index.ts +0 -1
- package/spa/src/utils.ts +1 -1
- package/spa/src/views/CreateView.vue +0 -1
- package/spa/src/views/LoginView.vue +4 -1
- package/types/AdminForthConfig.ts +24 -3
- package/dist/plugins/AuditLog/index.js +0 -13
- /package/dist/plugins/{AuditLog → S3UploadPlugin}/types.js +0 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global global, define, Symbol, Reflect, Promise, SuppressedError */
|
|
16
|
+
var __extends;
|
|
17
|
+
var __assign;
|
|
18
|
+
var __rest;
|
|
19
|
+
var __decorate;
|
|
20
|
+
var __param;
|
|
21
|
+
var __esDecorate;
|
|
22
|
+
var __runInitializers;
|
|
23
|
+
var __propKey;
|
|
24
|
+
var __setFunctionName;
|
|
25
|
+
var __metadata;
|
|
26
|
+
var __awaiter;
|
|
27
|
+
var __generator;
|
|
28
|
+
var __exportStar;
|
|
29
|
+
var __values;
|
|
30
|
+
var __read;
|
|
31
|
+
var __spread;
|
|
32
|
+
var __spreadArrays;
|
|
33
|
+
var __spreadArray;
|
|
34
|
+
var __await;
|
|
35
|
+
var __asyncGenerator;
|
|
36
|
+
var __asyncDelegator;
|
|
37
|
+
var __asyncValues;
|
|
38
|
+
var __makeTemplateObject;
|
|
39
|
+
var __importStar;
|
|
40
|
+
var __importDefault;
|
|
41
|
+
var __classPrivateFieldGet;
|
|
42
|
+
var __classPrivateFieldSet;
|
|
43
|
+
var __classPrivateFieldIn;
|
|
44
|
+
var __createBinding;
|
|
45
|
+
var __addDisposableResource;
|
|
46
|
+
var __disposeResources;
|
|
47
|
+
(function (factory) {
|
|
48
|
+
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
49
|
+
if (typeof define === "function" && define.amd) {
|
|
50
|
+
define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
|
|
51
|
+
}
|
|
52
|
+
else if (typeof module === "object" && typeof module.exports === "object") {
|
|
53
|
+
factory(createExporter(root, createExporter(module.exports)));
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
factory(createExporter(root));
|
|
57
|
+
}
|
|
58
|
+
function createExporter(exports, previous) {
|
|
59
|
+
if (exports !== root) {
|
|
60
|
+
if (typeof Object.create === "function") {
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
exports.__esModule = true;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
(function (exporter) {
|
|
71
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
72
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
73
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
74
|
+
|
|
75
|
+
__extends = function (d, b) {
|
|
76
|
+
if (typeof b !== "function" && b !== null)
|
|
77
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
78
|
+
extendStatics(d, b);
|
|
79
|
+
function __() { this.constructor = d; }
|
|
80
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
__assign = Object.assign || function (t) {
|
|
84
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
85
|
+
s = arguments[i];
|
|
86
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
87
|
+
}
|
|
88
|
+
return t;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
__rest = function (s, e) {
|
|
92
|
+
var t = {};
|
|
93
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
94
|
+
t[p] = s[p];
|
|
95
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
96
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
97
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
98
|
+
t[p[i]] = s[p[i]];
|
|
99
|
+
}
|
|
100
|
+
return t;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
__decorate = function (decorators, target, key, desc) {
|
|
104
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
105
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
106
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
107
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
__param = function (paramIndex, decorator) {
|
|
111
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
__esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
115
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
116
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
117
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
118
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
119
|
+
var _, done = false;
|
|
120
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
121
|
+
var context = {};
|
|
122
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
123
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
124
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
125
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
126
|
+
if (kind === "accessor") {
|
|
127
|
+
if (result === void 0) continue;
|
|
128
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
129
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
130
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
131
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
132
|
+
}
|
|
133
|
+
else if (_ = accept(result)) {
|
|
134
|
+
if (kind === "field") initializers.unshift(_);
|
|
135
|
+
else descriptor[key] = _;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
139
|
+
done = true;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
__runInitializers = function (thisArg, initializers, value) {
|
|
143
|
+
var useValue = arguments.length > 2;
|
|
144
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
145
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
146
|
+
}
|
|
147
|
+
return useValue ? value : void 0;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
__propKey = function (x) {
|
|
151
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
__setFunctionName = function (f, name, prefix) {
|
|
155
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
156
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
__metadata = function (metadataKey, metadataValue) {
|
|
160
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
__awaiter = function (thisArg, _arguments, P, generator) {
|
|
164
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
165
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
166
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
167
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
168
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
169
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
__generator = function (thisArg, body) {
|
|
174
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
175
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
176
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
177
|
+
function step(op) {
|
|
178
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
179
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
180
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
181
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
182
|
+
switch (op[0]) {
|
|
183
|
+
case 0: case 1: t = op; break;
|
|
184
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
185
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
186
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
187
|
+
default:
|
|
188
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
189
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
190
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
191
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
192
|
+
if (t[2]) _.ops.pop();
|
|
193
|
+
_.trys.pop(); continue;
|
|
194
|
+
}
|
|
195
|
+
op = body.call(thisArg, _);
|
|
196
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
197
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
__exportStar = function(m, o) {
|
|
202
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
__createBinding = Object.create ? (function(o, m, k, k2) {
|
|
206
|
+
if (k2 === undefined) k2 = k;
|
|
207
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
208
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
209
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
210
|
+
}
|
|
211
|
+
Object.defineProperty(o, k2, desc);
|
|
212
|
+
}) : (function(o, m, k, k2) {
|
|
213
|
+
if (k2 === undefined) k2 = k;
|
|
214
|
+
o[k2] = m[k];
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
__values = function (o) {
|
|
218
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
219
|
+
if (m) return m.call(o);
|
|
220
|
+
if (o && typeof o.length === "number") return {
|
|
221
|
+
next: function () {
|
|
222
|
+
if (o && i >= o.length) o = void 0;
|
|
223
|
+
return { value: o && o[i++], done: !o };
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
__read = function (o, n) {
|
|
230
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
231
|
+
if (!m) return o;
|
|
232
|
+
var i = m.call(o), r, ar = [], e;
|
|
233
|
+
try {
|
|
234
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
235
|
+
}
|
|
236
|
+
catch (error) { e = { error: error }; }
|
|
237
|
+
finally {
|
|
238
|
+
try {
|
|
239
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
240
|
+
}
|
|
241
|
+
finally { if (e) throw e.error; }
|
|
242
|
+
}
|
|
243
|
+
return ar;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
/** @deprecated */
|
|
247
|
+
__spread = function () {
|
|
248
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
249
|
+
ar = ar.concat(__read(arguments[i]));
|
|
250
|
+
return ar;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/** @deprecated */
|
|
254
|
+
__spreadArrays = function () {
|
|
255
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
256
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
257
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
258
|
+
r[k] = a[j];
|
|
259
|
+
return r;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
__spreadArray = function (to, from, pack) {
|
|
263
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
264
|
+
if (ar || !(i in from)) {
|
|
265
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
266
|
+
ar[i] = from[i];
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
__await = function (v) {
|
|
273
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
__asyncGenerator = function (thisArg, _arguments, generator) {
|
|
277
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
278
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
279
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
280
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
281
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
282
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
283
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
284
|
+
function fulfill(value) { resume("next", value); }
|
|
285
|
+
function reject(value) { resume("throw", value); }
|
|
286
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
__asyncDelegator = function (o) {
|
|
290
|
+
var i, p;
|
|
291
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
292
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
__asyncValues = function (o) {
|
|
296
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
297
|
+
var m = o[Symbol.asyncIterator], i;
|
|
298
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
299
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
300
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
__makeTemplateObject = function (cooked, raw) {
|
|
304
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
305
|
+
return cooked;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
309
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
310
|
+
}) : function(o, v) {
|
|
311
|
+
o["default"] = v;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
__importStar = function (mod) {
|
|
315
|
+
if (mod && mod.__esModule) return mod;
|
|
316
|
+
var result = {};
|
|
317
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
318
|
+
__setModuleDefault(result, mod);
|
|
319
|
+
return result;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
__importDefault = function (mod) {
|
|
323
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
__classPrivateFieldGet = function (receiver, state, kind, f) {
|
|
327
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
328
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
329
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
__classPrivateFieldSet = function (receiver, state, value, kind, f) {
|
|
333
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
334
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
335
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
336
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
__classPrivateFieldIn = function (state, receiver) {
|
|
340
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
341
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
__addDisposableResource = function (env, value, async) {
|
|
345
|
+
if (value !== null && value !== void 0) {
|
|
346
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
347
|
+
var dispose, inner;
|
|
348
|
+
if (async) {
|
|
349
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
350
|
+
dispose = value[Symbol.asyncDispose];
|
|
351
|
+
}
|
|
352
|
+
if (dispose === void 0) {
|
|
353
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
354
|
+
dispose = value[Symbol.dispose];
|
|
355
|
+
if (async) inner = dispose;
|
|
356
|
+
}
|
|
357
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
358
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
359
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
360
|
+
}
|
|
361
|
+
else if (async) {
|
|
362
|
+
env.stack.push({ async: true });
|
|
363
|
+
}
|
|
364
|
+
return value;
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
368
|
+
var e = new Error(message);
|
|
369
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
__disposeResources = function (env) {
|
|
373
|
+
function fail(e) {
|
|
374
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
375
|
+
env.hasError = true;
|
|
376
|
+
}
|
|
377
|
+
function next() {
|
|
378
|
+
while (env.stack.length) {
|
|
379
|
+
var rec = env.stack.pop();
|
|
380
|
+
try {
|
|
381
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
382
|
+
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
383
|
+
}
|
|
384
|
+
catch (e) {
|
|
385
|
+
fail(e);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
if (env.hasError) throw env.error;
|
|
389
|
+
}
|
|
390
|
+
return next();
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
exporter("__extends", __extends);
|
|
394
|
+
exporter("__assign", __assign);
|
|
395
|
+
exporter("__rest", __rest);
|
|
396
|
+
exporter("__decorate", __decorate);
|
|
397
|
+
exporter("__param", __param);
|
|
398
|
+
exporter("__esDecorate", __esDecorate);
|
|
399
|
+
exporter("__runInitializers", __runInitializers);
|
|
400
|
+
exporter("__propKey", __propKey);
|
|
401
|
+
exporter("__setFunctionName", __setFunctionName);
|
|
402
|
+
exporter("__metadata", __metadata);
|
|
403
|
+
exporter("__awaiter", __awaiter);
|
|
404
|
+
exporter("__generator", __generator);
|
|
405
|
+
exporter("__exportStar", __exportStar);
|
|
406
|
+
exporter("__createBinding", __createBinding);
|
|
407
|
+
exporter("__values", __values);
|
|
408
|
+
exporter("__read", __read);
|
|
409
|
+
exporter("__spread", __spread);
|
|
410
|
+
exporter("__spreadArrays", __spreadArrays);
|
|
411
|
+
exporter("__spreadArray", __spreadArray);
|
|
412
|
+
exporter("__await", __await);
|
|
413
|
+
exporter("__asyncGenerator", __asyncGenerator);
|
|
414
|
+
exporter("__asyncDelegator", __asyncDelegator);
|
|
415
|
+
exporter("__asyncValues", __asyncValues);
|
|
416
|
+
exporter("__makeTemplateObject", __makeTemplateObject);
|
|
417
|
+
exporter("__importStar", __importStar);
|
|
418
|
+
exporter("__importDefault", __importDefault);
|
|
419
|
+
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
|
420
|
+
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
|
421
|
+
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
422
|
+
exporter("__addDisposableResource", __addDisposableResource);
|
|
423
|
+
exporter("__disposeResources", __disposeResources);
|
|
424
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# undici-types
|
|
2
|
+
|
|
3
|
+
This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version.
|
|
4
|
+
|
|
5
|
+
- [GitHub nodejs/undici](https://github.com/nodejs/undici)
|
|
6
|
+
- [Undici Documentation](https://undici.nodejs.org/#/)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "undici-types",
|
|
3
|
+
"version": "5.26.5",
|
|
4
|
+
"description": "A stand-alone types package for Undici",
|
|
5
|
+
"homepage": "https://undici.nodejs.org",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/nodejs/undici/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/nodejs/undici.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"types": "index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"*.d.ts"
|
|
17
|
+
],
|
|
18
|
+
"contributors": [
|
|
19
|
+
{
|
|
20
|
+
"name": "Daniele Belardi",
|
|
21
|
+
"url": "https://github.com/dnlup",
|
|
22
|
+
"author": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "Ethan Arrowood",
|
|
26
|
+
"url": "https://github.com/ethan-arrowood",
|
|
27
|
+
"author": true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "Matteo Collina",
|
|
31
|
+
"url": "https://github.com/mcollina",
|
|
32
|
+
"author": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Matthew Aitken",
|
|
36
|
+
"url": "https://github.com/KhafraDev",
|
|
37
|
+
"author": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "Robert Nagy",
|
|
41
|
+
"url": "https://github.com/ronag",
|
|
42
|
+
"author": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "Szymon Marczak",
|
|
46
|
+
"url": "https://github.com/szmarczak",
|
|
47
|
+
"author": true
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "Tomas Della Vedova",
|
|
51
|
+
"url": "https://github.com/delvedor",
|
|
52
|
+
"author": true
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "twofactorsauthplugin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "twofactorsauthplugin",
|
|
9
|
+
"version": "1.0.0",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"node-2fa": "^2.0.3"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"node_modules/@types/node": {
|
|
16
|
+
"version": "20.14.9",
|
|
17
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.9.tgz",
|
|
18
|
+
"integrity": "sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"undici-types": "~5.26.4"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"node_modules/@types/notp": {
|
|
24
|
+
"version": "2.0.5",
|
|
25
|
+
"resolved": "https://registry.npmjs.org/@types/notp/-/notp-2.0.5.tgz",
|
|
26
|
+
"integrity": "sha512-ZsZS0PYUa6ZE4K3yOGerBvaxCp4ePf6ZmkFbPeilcqz2Ui/lmXox7KlRt7XZkXzqUgXhFLkc09ixyVmFLCU3gQ==",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@types/node": "*"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"node_modules/node-2fa": {
|
|
32
|
+
"version": "2.0.3",
|
|
33
|
+
"resolved": "https://registry.npmjs.org/node-2fa/-/node-2fa-2.0.3.tgz",
|
|
34
|
+
"integrity": "sha512-PQldrOhjuoZyoydMvMSctllPN1ZPZ1/NwkEcgYwY9faVqE/OymxR+3awPpbWZxm6acLKqvmNqQmdqTsqYyflFw==",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@types/notp": "^2.0.0",
|
|
37
|
+
"notp": "^2.0.3",
|
|
38
|
+
"thirty-two": "1.0.2",
|
|
39
|
+
"tslib": "^2.1.0"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"node_modules/notp": {
|
|
43
|
+
"version": "2.0.3",
|
|
44
|
+
"resolved": "https://registry.npmjs.org/notp/-/notp-2.0.3.tgz",
|
|
45
|
+
"integrity": "sha512-oBig/2uqkjQ5AkBuw4QJYwkEWa/q+zHxI5/I5z6IeP2NT0alpJFsP/trrfCC+9xOAgQSZXssNi962kp5KBmypQ==",
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": "> v0.6.0"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"node_modules/thirty-two": {
|
|
51
|
+
"version": "1.0.2",
|
|
52
|
+
"resolved": "https://registry.npmjs.org/thirty-two/-/thirty-two-1.0.2.tgz",
|
|
53
|
+
"integrity": "sha512-OEI0IWCe+Dw46019YLl6V10Us5bi574EvlJEOcAkB29IzQ/mYD1A6RyNHLjZPiHCmuodxvgF6U+vZO1L15lxVA==",
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=0.2.6"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"node_modules/tslib": {
|
|
59
|
+
"version": "2.6.3",
|
|
60
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz",
|
|
61
|
+
"integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ=="
|
|
62
|
+
},
|
|
63
|
+
"node_modules/undici-types": {
|
|
64
|
+
"version": "5.26.5",
|
|
65
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
|
66
|
+
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "twofactorsauthplugin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"node-2fa": "^2.0.3"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/spa/index.html
CHANGED