adminforth 1.1.75 → 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/dist/modules/utils.js +1 -1
- package/dist/plugins/S3UploadPlugin/package.json +1 -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/spa/spa/.eslintrc.cjs +14 -0
- package/dist/spa/spa/.vscode/extensions.json +6 -0
- package/dist/spa/spa/README.md +39 -0
- package/dist/spa/spa/env.d.ts +1 -0
- package/dist/spa/spa/index.html +23 -0
- package/dist/spa/spa/package-lock.json +4470 -0
- package/dist/spa/spa/package.json +48 -0
- package/dist/spa/spa/postcss.config.js +6 -0
- package/dist/spa/spa/public/assets/favicon.png +0 -0
- package/dist/spa/spa/src/App.vue +316 -0
- package/dist/spa/spa/src/assets/base.css +0 -0
- package/dist/spa/spa/src/assets/logo.svg +19 -0
- package/dist/spa/spa/src/components/AcceptModal.vue +45 -0
- package/dist/spa/spa/src/components/Breadcrumbs.vue +40 -0
- package/dist/spa/spa/src/components/BreadcrumbsWithButtons.vue +26 -0
- package/dist/spa/spa/src/components/CustomDatePicker.vue +174 -0
- package/dist/spa/spa/src/components/CustomDateRangePicker.vue +218 -0
- package/dist/spa/spa/src/components/CustomRangePicker.vue +148 -0
- package/dist/spa/spa/src/components/Dropdown.vue +168 -0
- package/dist/spa/spa/src/components/Filters.vue +211 -0
- package/dist/spa/spa/src/components/HelloWorld.vue +17 -0
- package/dist/spa/spa/src/components/MenuLink.vue +24 -0
- package/dist/spa/spa/src/components/ResourceForm.vue +265 -0
- package/dist/spa/spa/src/components/ResourceListTable.vue +404 -0
- package/dist/spa/spa/src/components/SingleSkeletLoader.vue +13 -0
- package/dist/spa/spa/src/components/SkeleteLoader.vue +23 -0
- package/dist/spa/spa/src/components/Toast.vue +66 -0
- package/dist/spa/spa/src/components/ValueRenderer.vue +59 -0
- package/dist/spa/spa/src/components/icons/IconCalendar.vue +5 -0
- package/dist/spa/spa/src/components/icons/IconCommunity.vue +7 -0
- package/dist/spa/spa/src/components/icons/IconDocumentation.vue +7 -0
- package/dist/spa/spa/src/components/icons/IconEcosystem.vue +7 -0
- package/dist/spa/spa/src/components/icons/IconSupport.vue +7 -0
- package/dist/spa/spa/src/components/icons/IconTime.vue +5 -0
- package/dist/spa/spa/src/components/icons/IconTooling.vue +19 -0
- package/dist/spa/spa/src/composables/useFrontendApi.ts +26 -0
- package/dist/spa/spa/src/composables/useStores.ts +126 -0
- package/dist/spa/spa/src/index.scss +26 -0
- package/dist/spa/spa/src/main.ts +18 -0
- package/dist/spa/spa/src/router/index.ts +63 -0
- package/dist/spa/spa/src/spa_types/core.ts +51 -0
- package/dist/spa/spa/src/stores/core.ts +144 -0
- package/dist/spa/spa/src/stores/filters.ts +22 -0
- package/dist/spa/spa/src/stores/modal.ts +48 -0
- package/dist/spa/spa/src/stores/toast.ts +15 -0
- package/dist/spa/spa/src/stores/user.ts +54 -0
- package/dist/spa/spa/src/utils.ts +101 -0
- package/dist/spa/spa/src/views/CreateView.vue +155 -0
- package/dist/spa/spa/src/views/EditView.vue +157 -0
- package/dist/spa/spa/src/views/ListView.vue +266 -0
- package/dist/spa/spa/src/views/LoginView.vue +139 -0
- package/dist/spa/spa/src/views/ResourceParent.vue +17 -0
- package/dist/spa/spa/src/views/ShowView.vue +180 -0
- package/dist/spa/spa/tailwind.config.js +17 -0
- package/dist/spa/spa/tsconfig.app.json +14 -0
- package/dist/spa/spa/tsconfig.json +11 -0
- package/dist/spa/spa/tsconfig.node.json +19 -0
- package/dist/spa/spa/vite.config.ts +49 -0
- package/modules/utils.ts +1 -1
- package/package.json +1 -2
- package/plugins/S3UploadPlugin/package.json +1 -0
- package/plugins/S3UploadPlugin/types.ts +1 -1
- 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
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2011, Chris Umbel
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
|
12
|
+
all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
THE SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
'use strict';
|
|
23
|
+
|
|
24
|
+
var charTable = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
25
|
+
var byteTable = [
|
|
26
|
+
0xff, 0xff, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
|
|
27
|
+
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
28
|
+
0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
|
|
29
|
+
0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e,
|
|
30
|
+
0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16,
|
|
31
|
+
0x17, 0x18, 0x19, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
32
|
+
0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
|
|
33
|
+
0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e,
|
|
34
|
+
0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16,
|
|
35
|
+
0x17, 0x18, 0x19, 0xff, 0xff, 0xff, 0xff, 0xff
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
function quintetCount(buff) {
|
|
39
|
+
var quintets = Math.floor(buff.length / 5);
|
|
40
|
+
return buff.length % 5 === 0 ? quintets: quintets + 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.encode = function(plain) {
|
|
44
|
+
if(!Buffer.isBuffer(plain)){
|
|
45
|
+
plain = new Buffer(plain);
|
|
46
|
+
}
|
|
47
|
+
var i = 0;
|
|
48
|
+
var j = 0;
|
|
49
|
+
var shiftIndex = 0;
|
|
50
|
+
var digit = 0;
|
|
51
|
+
var encoded = new Buffer(quintetCount(plain) * 8);
|
|
52
|
+
|
|
53
|
+
/* byte by byte isn't as pretty as quintet by quintet but tests a bit
|
|
54
|
+
faster. will have to revisit. */
|
|
55
|
+
while(i < plain.length) {
|
|
56
|
+
var current = plain[i];
|
|
57
|
+
|
|
58
|
+
if(shiftIndex > 3) {
|
|
59
|
+
digit = current & (0xff >> shiftIndex);
|
|
60
|
+
shiftIndex = (shiftIndex + 5) % 8;
|
|
61
|
+
digit = (digit << shiftIndex) | ((i + 1 < plain.length) ?
|
|
62
|
+
plain[i + 1] : 0) >> (8 - shiftIndex);
|
|
63
|
+
i++;
|
|
64
|
+
} else {
|
|
65
|
+
digit = (current >> (8 - (shiftIndex + 5))) & 0x1f;
|
|
66
|
+
shiftIndex = (shiftIndex + 5) % 8;
|
|
67
|
+
if(shiftIndex === 0) i++;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
encoded[j] = charTable.charCodeAt(digit);
|
|
71
|
+
j++;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
for(i = j; i < encoded.length; i++) {
|
|
75
|
+
encoded[i] = 0x3d; //'='.charCodeAt(0)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return encoded;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.decode = function(encoded) {
|
|
82
|
+
var shiftIndex = 0;
|
|
83
|
+
var plainDigit = 0;
|
|
84
|
+
var plainChar;
|
|
85
|
+
var plainPos = 0;
|
|
86
|
+
if(!Buffer.isBuffer(encoded)){
|
|
87
|
+
encoded = new Buffer(encoded);
|
|
88
|
+
}
|
|
89
|
+
var decoded = new Buffer(Math.ceil(encoded.length * 5 / 8));
|
|
90
|
+
|
|
91
|
+
/* byte by byte isn't as pretty as octet by octet but tests a bit
|
|
92
|
+
faster. will have to revisit. */
|
|
93
|
+
for(var i = 0; i < encoded.length; i++) {
|
|
94
|
+
if(encoded[i] === 0x3d){ //'='
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var encodedByte = encoded[i] - 0x30;
|
|
99
|
+
|
|
100
|
+
if(encodedByte < byteTable.length) {
|
|
101
|
+
plainDigit = byteTable[encodedByte];
|
|
102
|
+
|
|
103
|
+
if(shiftIndex <= 3) {
|
|
104
|
+
shiftIndex = (shiftIndex + 5) % 8;
|
|
105
|
+
|
|
106
|
+
if(shiftIndex === 0) {
|
|
107
|
+
plainChar |= plainDigit;
|
|
108
|
+
decoded[plainPos] = plainChar;
|
|
109
|
+
plainPos++;
|
|
110
|
+
plainChar = 0;
|
|
111
|
+
} else {
|
|
112
|
+
plainChar |= 0xff & (plainDigit << (8 - shiftIndex));
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
shiftIndex = (shiftIndex + 5) % 8;
|
|
116
|
+
plainChar |= 0xff & (plainDigit >>> shiftIndex);
|
|
117
|
+
decoded[plainPos] = plainChar;
|
|
118
|
+
plainPos++;
|
|
119
|
+
|
|
120
|
+
plainChar = 0xff & (plainDigit << (8 - shiftIndex));
|
|
121
|
+
}
|
|
122
|
+
} else {
|
|
123
|
+
throw new Error('Invalid input - it is not base32 encoded string');
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return decoded.slice(0, plainPos);
|
|
128
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "thirty-two",
|
|
3
|
+
"description": "Implementation RFC 3548 Base32 encoding/decoding for node.",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=0.2.6"
|
|
7
|
+
},
|
|
8
|
+
"author": "Chris Umbel <chris@chrisumbel.com>",
|
|
9
|
+
"keywords": ["base32", "encoding"],
|
|
10
|
+
"main": "./lib/thirty-two/index.js",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git://github.com/chrisumbel/thirty-two.git"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2011, Chris Umbel
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
|
12
|
+
all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
THE SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
if(!expect){
|
|
23
|
+
function expect(a){
|
|
24
|
+
return {
|
|
25
|
+
toBe: function(b){
|
|
26
|
+
require('assert').strictEqual(a, b);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
var base32 = require('../lib/thirty-two/');
|
|
32
|
+
|
|
33
|
+
describe('thirty-two', function() {
|
|
34
|
+
it('should encode', function() {
|
|
35
|
+
expect(base32.encode('a').toString()).toBe('ME======');
|
|
36
|
+
expect(base32.encode('be').toString()).toBe('MJSQ====');
|
|
37
|
+
expect(base32.encode('bee').toString()).toBe('MJSWK===');
|
|
38
|
+
expect(base32.encode('beer').toString()).toBe('MJSWK4Q=');
|
|
39
|
+
expect(base32.encode('beers').toString()).toBe('MJSWK4TT');
|
|
40
|
+
expect(base32.encode('beers 1').toString()).toBe('MJSWK4TTEAYQ====');
|
|
41
|
+
expect(base32.encode('shockingly dismissed').toString()).toBe('ONUG6Y3LNFXGO3DZEBSGS43NNFZXGZLE');
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
it('should decode', function() {
|
|
46
|
+
expect(base32.decode('ME======').toString()).toBe('a');
|
|
47
|
+
expect(base32.decode('MJSQ====').toString()).toBe('be');
|
|
48
|
+
expect(base32.decode('ONXW4===').toString()).toBe('son');
|
|
49
|
+
expect(base32.decode('MJSWK===').toString()).toBe('bee');
|
|
50
|
+
expect(base32.decode('MJSWK4Q=').toString()).toBe('beer');
|
|
51
|
+
expect(base32.decode('MJSWK4TT').toString()).toBe('beers');
|
|
52
|
+
expect(base32.decode('mjswK4TT').toString()).toBe('beers');
|
|
53
|
+
expect(base32.decode('MJSWK4TTN5XA====').toString()).toBe('beerson');
|
|
54
|
+
expect(base32.decode('MJSWK4TTEAYQ====').toString()).toBe('beers 1');
|
|
55
|
+
expect(base32.decode('ONUG6Y3LNFXGO3DZEBSGS43NNFZXGZLE').toString()).toBe('shockingly dismissed');
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('should be binary safe', function() {
|
|
59
|
+
expect(base32.decode(base32.encode(new Buffer([0x00, 0xff, 0x88]))).toString('hex')).toBe('00ff88');
|
|
60
|
+
expect(base32.encode(new Buffer("f61e1f998d69151de8334dbe753ab17ae831c13849a6aecd95d0a4e5dc25", 'hex')).toString()).toBe('6YPB7GMNNEKR32BTJW7HKOVRPLUDDQJYJGTK5TMV2CSOLXBF');
|
|
61
|
+
expect(base32.decode('6YPB7GMNNEKR32BTJW7HKOVRPLUDDQJYJGTK5TMV2CSOLXBF').toString('hex')).toBe('f61e1f998d69151de8334dbe753ab17ae831c13849a6aecd95d0a4e5dc25');
|
|
62
|
+
});
|
|
63
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted.
|
|
5
|
+
|
|
6
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
8
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
10
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
11
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
12
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# tslib
|
|
2
|
+
|
|
3
|
+
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
|
|
4
|
+
|
|
5
|
+
This library is primarily used by the `--importHelpers` flag in TypeScript.
|
|
6
|
+
When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
var __assign = (this && this.__assign) || Object.assign || function(t) {
|
|
10
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11
|
+
s = arguments[i];
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
exports.x = {};
|
|
18
|
+
exports.y = __assign({}, exports.x);
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
will instead be emitted as something like the following:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
var tslib_1 = require("tslib");
|
|
26
|
+
exports.x = {};
|
|
27
|
+
exports.y = tslib_1.__assign({}, exports.x);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.
|
|
31
|
+
For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.
|
|
32
|
+
|
|
33
|
+
# Installing
|
|
34
|
+
|
|
35
|
+
For the latest stable version, run:
|
|
36
|
+
|
|
37
|
+
## npm
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
# TypeScript 3.9.2 or later
|
|
41
|
+
npm install tslib
|
|
42
|
+
|
|
43
|
+
# TypeScript 3.8.4 or earlier
|
|
44
|
+
npm install tslib@^1
|
|
45
|
+
|
|
46
|
+
# TypeScript 2.3.2 or earlier
|
|
47
|
+
npm install tslib@1.6.1
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## yarn
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
# TypeScript 3.9.2 or later
|
|
54
|
+
yarn add tslib
|
|
55
|
+
|
|
56
|
+
# TypeScript 3.8.4 or earlier
|
|
57
|
+
yarn add tslib@^1
|
|
58
|
+
|
|
59
|
+
# TypeScript 2.3.2 or earlier
|
|
60
|
+
yarn add tslib@1.6.1
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## bower
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
# TypeScript 3.9.2 or later
|
|
67
|
+
bower install tslib
|
|
68
|
+
|
|
69
|
+
# TypeScript 3.8.4 or earlier
|
|
70
|
+
bower install tslib@^1
|
|
71
|
+
|
|
72
|
+
# TypeScript 2.3.2 or earlier
|
|
73
|
+
bower install tslib@1.6.1
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## JSPM
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
# TypeScript 3.9.2 or later
|
|
80
|
+
jspm install tslib
|
|
81
|
+
|
|
82
|
+
# TypeScript 3.8.4 or earlier
|
|
83
|
+
jspm install tslib@^1
|
|
84
|
+
|
|
85
|
+
# TypeScript 2.3.2 or earlier
|
|
86
|
+
jspm install tslib@1.6.1
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
# Usage
|
|
90
|
+
|
|
91
|
+
Set the `importHelpers` compiler option on the command line:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
tsc --importHelpers file.ts
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
or in your tsconfig.json:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"compilerOptions": {
|
|
102
|
+
"importHelpers": true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
#### For bower and JSPM users
|
|
108
|
+
|
|
109
|
+
You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"compilerOptions": {
|
|
114
|
+
"module": "amd",
|
|
115
|
+
"importHelpers": true,
|
|
116
|
+
"baseUrl": "./",
|
|
117
|
+
"paths": {
|
|
118
|
+
"tslib" : ["bower_components/tslib/tslib.d.ts"]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
For JSPM users:
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"compilerOptions": {
|
|
129
|
+
"module": "system",
|
|
130
|
+
"importHelpers": true,
|
|
131
|
+
"baseUrl": "./",
|
|
132
|
+
"paths": {
|
|
133
|
+
"tslib" : ["jspm_packages/npm/tslib@2.x.y/tslib.d.ts"]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Deployment
|
|
140
|
+
|
|
141
|
+
- Choose your new version number
|
|
142
|
+
- Set it in `package.json` and `bower.json`
|
|
143
|
+
- Create a tag: `git tag [version]`
|
|
144
|
+
- Push the tag: `git push --tags`
|
|
145
|
+
- Create a [release in GitHub](https://github.com/microsoft/tslib/releases)
|
|
146
|
+
- Run the [publish to npm](https://github.com/microsoft/tslib/actions?query=workflow%3A%22Publish+to+NPM%22) workflow
|
|
147
|
+
|
|
148
|
+
Done.
|
|
149
|
+
|
|
150
|
+
# Contribute
|
|
151
|
+
|
|
152
|
+
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
|
|
153
|
+
|
|
154
|
+
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
|
|
155
|
+
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
|
|
156
|
+
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
|
|
157
|
+
* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
|
|
158
|
+
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
|
|
159
|
+
|
|
160
|
+
# Documentation
|
|
161
|
+
|
|
162
|
+
* [Quick tutorial](http://www.typescriptlang.org/Tutorial)
|
|
163
|
+
* [Programming handbook](http://www.typescriptlang.org/Handbook)
|
|
164
|
+
* [Homepage](http://www.typescriptlang.org/)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->
|
|
2
|
+
|
|
3
|
+
## Security
|
|
4
|
+
|
|
5
|
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
|
6
|
+
|
|
7
|
+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
|
|
8
|
+
|
|
9
|
+
## Reporting Security Issues
|
|
10
|
+
|
|
11
|
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
|
12
|
+
|
|
13
|
+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
|
|
14
|
+
|
|
15
|
+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
|
|
16
|
+
|
|
17
|
+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
|
|
18
|
+
|
|
19
|
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
|
20
|
+
|
|
21
|
+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
|
22
|
+
* Full paths of source file(s) related to the manifestation of the issue
|
|
23
|
+
* The location of the affected source code (tag/branch/commit or direct URL)
|
|
24
|
+
* Any special configuration required to reproduce the issue
|
|
25
|
+
* Step-by-step instructions to reproduce the issue
|
|
26
|
+
* Proof-of-concept or exploit code (if possible)
|
|
27
|
+
* Impact of the issue, including how an attacker might exploit the issue
|
|
28
|
+
|
|
29
|
+
This information will help us triage your report more quickly.
|
|
30
|
+
|
|
31
|
+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
|
|
32
|
+
|
|
33
|
+
## Preferred Languages
|
|
34
|
+
|
|
35
|
+
We prefer all communications to be in English.
|
|
36
|
+
|
|
37
|
+
## Policy
|
|
38
|
+
|
|
39
|
+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
|
|
40
|
+
|
|
41
|
+
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Note: named reexports are used instead of `export *` because
|
|
2
|
+
// TypeScript itself doesn't resolve the `export *` when checking
|
|
3
|
+
// if a particular helper exists.
|
|
4
|
+
export {
|
|
5
|
+
__extends,
|
|
6
|
+
__assign,
|
|
7
|
+
__rest,
|
|
8
|
+
__decorate,
|
|
9
|
+
__param,
|
|
10
|
+
__esDecorate,
|
|
11
|
+
__runInitializers,
|
|
12
|
+
__propKey,
|
|
13
|
+
__setFunctionName,
|
|
14
|
+
__metadata,
|
|
15
|
+
__awaiter,
|
|
16
|
+
__generator,
|
|
17
|
+
__exportStar,
|
|
18
|
+
__values,
|
|
19
|
+
__read,
|
|
20
|
+
__spread,
|
|
21
|
+
__spreadArrays,
|
|
22
|
+
__spreadArray,
|
|
23
|
+
__await,
|
|
24
|
+
__asyncGenerator,
|
|
25
|
+
__asyncDelegator,
|
|
26
|
+
__asyncValues,
|
|
27
|
+
__makeTemplateObject,
|
|
28
|
+
__importStar,
|
|
29
|
+
__importDefault,
|
|
30
|
+
__classPrivateFieldGet,
|
|
31
|
+
__classPrivateFieldSet,
|
|
32
|
+
__classPrivateFieldIn,
|
|
33
|
+
__createBinding,
|
|
34
|
+
__addDisposableResource,
|
|
35
|
+
__disposeResources,
|
|
36
|
+
} from '../tslib.js';
|
|
37
|
+
export * as default from '../tslib.js';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import tslib from '../tslib.js';
|
|
2
|
+
const {
|
|
3
|
+
__extends,
|
|
4
|
+
__assign,
|
|
5
|
+
__rest,
|
|
6
|
+
__decorate,
|
|
7
|
+
__param,
|
|
8
|
+
__esDecorate,
|
|
9
|
+
__runInitializers,
|
|
10
|
+
__propKey,
|
|
11
|
+
__setFunctionName,
|
|
12
|
+
__metadata,
|
|
13
|
+
__awaiter,
|
|
14
|
+
__generator,
|
|
15
|
+
__exportStar,
|
|
16
|
+
__createBinding,
|
|
17
|
+
__values,
|
|
18
|
+
__read,
|
|
19
|
+
__spread,
|
|
20
|
+
__spreadArrays,
|
|
21
|
+
__spreadArray,
|
|
22
|
+
__await,
|
|
23
|
+
__asyncGenerator,
|
|
24
|
+
__asyncDelegator,
|
|
25
|
+
__asyncValues,
|
|
26
|
+
__makeTemplateObject,
|
|
27
|
+
__importStar,
|
|
28
|
+
__importDefault,
|
|
29
|
+
__classPrivateFieldGet,
|
|
30
|
+
__classPrivateFieldSet,
|
|
31
|
+
__classPrivateFieldIn,
|
|
32
|
+
__addDisposableResource,
|
|
33
|
+
__disposeResources,
|
|
34
|
+
} = tslib;
|
|
35
|
+
export {
|
|
36
|
+
__extends,
|
|
37
|
+
__assign,
|
|
38
|
+
__rest,
|
|
39
|
+
__decorate,
|
|
40
|
+
__param,
|
|
41
|
+
__esDecorate,
|
|
42
|
+
__runInitializers,
|
|
43
|
+
__propKey,
|
|
44
|
+
__setFunctionName,
|
|
45
|
+
__metadata,
|
|
46
|
+
__awaiter,
|
|
47
|
+
__generator,
|
|
48
|
+
__exportStar,
|
|
49
|
+
__createBinding,
|
|
50
|
+
__values,
|
|
51
|
+
__read,
|
|
52
|
+
__spread,
|
|
53
|
+
__spreadArrays,
|
|
54
|
+
__spreadArray,
|
|
55
|
+
__await,
|
|
56
|
+
__asyncGenerator,
|
|
57
|
+
__asyncDelegator,
|
|
58
|
+
__asyncValues,
|
|
59
|
+
__makeTemplateObject,
|
|
60
|
+
__importStar,
|
|
61
|
+
__importDefault,
|
|
62
|
+
__classPrivateFieldGet,
|
|
63
|
+
__classPrivateFieldSet,
|
|
64
|
+
__classPrivateFieldIn,
|
|
65
|
+
__addDisposableResource,
|
|
66
|
+
__disposeResources,
|
|
67
|
+
};
|
|
68
|
+
export default tslib;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tslib",
|
|
3
|
+
"author": "Microsoft Corp.",
|
|
4
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
+
"version": "2.6.3",
|
|
6
|
+
"license": "0BSD",
|
|
7
|
+
"description": "Runtime library for TypeScript helper functions",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript",
|
|
14
|
+
"tslib",
|
|
15
|
+
"runtime"
|
|
16
|
+
],
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/Microsoft/TypeScript/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/Microsoft/tslib.git"
|
|
23
|
+
},
|
|
24
|
+
"main": "tslib.js",
|
|
25
|
+
"module": "tslib.es6.js",
|
|
26
|
+
"jsnext:main": "tslib.es6.js",
|
|
27
|
+
"typings": "tslib.d.ts",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"module": {
|
|
32
|
+
"types": "./modules/index.d.ts",
|
|
33
|
+
"default": "./tslib.es6.mjs"
|
|
34
|
+
},
|
|
35
|
+
"import": {
|
|
36
|
+
"node": "./modules/index.js",
|
|
37
|
+
"default": {
|
|
38
|
+
"types": "./modules/index.d.ts",
|
|
39
|
+
"default": "./tslib.es6.mjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"default": "./tslib.js"
|
|
43
|
+
},
|
|
44
|
+
"./*": "./*",
|
|
45
|
+
"./": "./"
|
|
46
|
+
}
|
|
47
|
+
}
|