@stacksjs/actions 0.70.23 → 0.70.25
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/chunk-2gh7kgpc.js +3 -0
- package/dist/chunk-2kaj93p5.js +3 -0
- package/dist/chunk-2qchdrf9.js +3 -0
- package/dist/chunk-3086k7zk.js +184 -0
- package/dist/chunk-3beht8ja.js +130 -0
- package/dist/chunk-60qjz7zb.js +3 -0
- package/dist/chunk-67y94dzt.js +658 -0
- package/dist/chunk-6x1m5rkr.js +17 -0
- package/dist/chunk-7bpdkc40.js +714 -0
- package/dist/chunk-96b7fcmd.js +3 -0
- package/dist/chunk-aw6d8zr3.js +7 -0
- package/dist/chunk-c8qt2xst.js +3 -0
- package/dist/chunk-d4srk6ma.js +3 -0
- package/dist/chunk-e9tcbk71.js +1 -0
- package/dist/chunk-gt77jmb5.js +46 -0
- package/dist/chunk-h93n2j40.js +95 -0
- package/dist/chunk-jd1yzkq5.js +3 -0
- package/dist/chunk-kzhgexj4.js +3 -0
- package/dist/chunk-n1y0gpv6.js +3 -0
- package/dist/chunk-n2fd1d0m.js +3 -0
- package/dist/chunk-n2x7v39b.js +5 -0
- package/dist/chunk-rdajkt2s.js +88 -0
- package/dist/chunk-s735m9mg.js +1 -0
- package/dist/chunk-schcaf73.js +3 -0
- package/dist/chunk-tc935b45.js +93 -0
- package/dist/chunk-v0wnrnaa.js +7 -0
- package/dist/chunk-w418anbq.js +5 -0
- package/dist/chunk-wnrgcx3d.js +114 -0
- package/dist/chunk-wv5yb5wb.js +101 -0
- package/dist/chunk-x471rxrn.js +7 -0
- package/dist/chunk-xg9xscqz.js +1 -0
- package/dist/src/action.d.ts +60 -0
- package/dist/src/action.js +2 -0
- package/dist/src/actions.d.ts +2 -0
- package/dist/src/actions.js +2 -0
- package/dist/src/add.d.ts +6 -0
- package/dist/src/add.js +2 -0
- package/dist/src/ai/request-model-access.d.ts +1 -0
- package/dist/src/ai/request-model-access.js +2 -0
- package/dist/src/auth/client.d.ts +1 -0
- package/dist/src/auth/client.js +3 -0
- package/dist/src/auth/prune.d.ts +1 -0
- package/dist/src/auth/prune.js +2 -0
- package/dist/src/auth/setup.d.ts +1 -0
- package/dist/src/auth/setup.js +148 -0
- package/dist/src/auth/token.d.ts +1 -0
- package/dist/src/auth/token.js +2 -0
- package/dist/src/build/cli.d.ts +1 -0
- package/dist/src/build/cli.js +2 -0
- package/dist/src/build/component-libs.d.ts +1 -0
- package/dist/src/build/component-libs.js +2 -0
- package/dist/src/build/core.d.ts +1 -0
- package/dist/src/build/core.js +2 -0
- package/dist/src/build/desktop.d.ts +1 -0
- package/dist/src/build/desktop.js +2 -0
- package/dist/src/build/docs.d.ts +1 -0
- package/dist/src/build/docs.js +2 -0
- package/dist/src/build/server.d.ts +1 -0
- package/dist/src/build/server.js +2 -0
- package/dist/src/build/stacks.d.ts +1 -0
- package/dist/src/build/stacks.js +2 -0
- package/dist/src/build/views.d.ts +1 -0
- package/dist/src/build/views.js +2 -0
- package/dist/{build.d.ts → src/build.d.ts} +1 -2
- package/dist/src/build.js +2 -0
- package/dist/src/bump.d.ts +1 -0
- package/dist/src/bump.js +2 -0
- package/dist/src/cdn/invalidate-cache.d.ts +1 -0
- package/dist/src/cdn/invalidate-cache.js +1 -0
- package/dist/src/changelog.d.ts +1 -0
- package/dist/src/changelog.js +2 -0
- package/dist/src/check/ports.d.ts +1 -0
- package/dist/src/check/ports.js +2 -0
- package/dist/src/clean.d.ts +1 -0
- package/dist/src/clean.js +2 -0
- package/dist/{commit.d.ts → src/commit.d.ts} +1 -2
- package/dist/src/commit.js +2 -0
- package/dist/src/copy-types.d.ts +1 -0
- package/dist/src/copy-types.js +3 -0
- package/dist/src/database/seed.d.ts +1 -0
- package/dist/src/database/seed.js +2 -0
- package/dist/src/deploy/create-receipt-rule.d.ts +1 -0
- package/dist/src/deploy/create-receipt-rule.js +2 -0
- package/dist/src/deploy/index.d.ts +1 -0
- package/dist/src/deploy/index.js +307 -0
- package/dist/src/dev/api.d.ts +1 -0
- package/dist/src/dev/api.js +6 -0
- package/dist/src/dev/components.d.ts +1 -0
- package/dist/src/dev/components.js +2 -0
- package/dist/src/dev/dashboard-globals.d.ts +4 -0
- package/dist/src/dev/dashboard-globals.js +3 -0
- package/dist/src/dev/dashboard-utils.d.ts +126 -0
- package/dist/src/dev/dashboard-utils.js +2 -0
- package/dist/src/dev/dashboard.d.ts +12 -0
- package/dist/src/dev/dashboard.js +8 -0
- package/dist/src/dev/desktop.d.ts +1 -0
- package/dist/src/dev/desktop.js +2 -0
- package/dist/src/dev/docs.d.ts +1 -0
- package/dist/src/dev/docs.js +2 -0
- package/dist/src/dev/index.d.ts +10 -0
- package/dist/src/dev/index.js +2 -0
- package/dist/src/dev/system-tray.d.ts +1 -0
- package/dist/src/dev/system-tray.js +2 -0
- package/dist/src/dev/views.d.ts +1 -0
- package/dist/src/dev/views.js +2 -0
- package/dist/src/discover-packages.d.ts +18 -0
- package/dist/src/discover-packages.js +2 -0
- package/dist/src/domains/add.d.ts +1 -0
- package/dist/src/domains/add.js +2 -0
- package/dist/src/domains/purchase.d.ts +1 -0
- package/dist/src/domains/purchase.js +2 -0
- package/dist/src/domains/remove.d.ts +1 -0
- package/dist/src/domains/remove.js +2 -0
- package/dist/{examples.d.ts → src/examples.d.ts} +1 -2
- package/dist/src/examples.js +2 -0
- package/dist/src/find-projects.d.ts +1 -0
- package/dist/src/find-projects.js +2 -0
- package/dist/src/fresh.d.ts +1 -0
- package/dist/src/fresh.js +2 -0
- package/dist/src/generate/action-types.d.ts +1 -0
- package/dist/src/generate/action-types.js +8 -0
- package/dist/src/generate/component-meta.d.ts +1 -0
- package/dist/src/generate/component-meta.js +3 -0
- package/dist/src/generate/custom-cli-file.d.ts +1 -0
- package/dist/src/generate/custom-cli-file.js +4 -0
- package/dist/src/generate/env-files.d.ts +1 -0
- package/dist/src/generate/env-files.js +26 -0
- package/dist/src/generate/ide-helpers.d.ts +1 -0
- package/dist/src/generate/ide-helpers.js +3 -0
- package/dist/src/generate/index.d.ts +36 -0
- package/dist/src/generate/index.js +2 -0
- package/dist/src/generate/lib-entries.d.ts +1 -0
- package/dist/src/generate/lib-entries.js +3 -0
- package/dist/src/generate/pantry-file.d.ts +1 -0
- package/dist/src/generate/pantry-file.js +2 -0
- package/dist/src/generate/symlink-core.d.ts +1 -0
- package/dist/src/generate/symlink-core.js +2 -0
- package/dist/src/generate/types.d.ts +1 -0
- package/dist/src/generate/types.js +2 -0
- package/dist/src/generate/vscode-custom-data.d.ts +1 -0
- package/dist/src/generate/vscode-custom-data.js +3 -0
- package/dist/src/generate/web-types.d.ts +1 -0
- package/dist/src/generate/web-types.js +1 -0
- package/dist/src/helpers/component-meta.d.ts +26 -0
- package/dist/src/helpers/component-meta.js +2 -0
- package/dist/src/helpers/index.d.ts +4 -0
- package/dist/src/helpers/index.js +2 -0
- package/dist/{lib-entries.d.ts → src/helpers/lib-entries.d.ts} +9 -5
- package/dist/src/helpers/lib-entries.js +2 -0
- package/dist/src/helpers/package-json.d.ts +2 -0
- package/dist/src/helpers/package-json.js +43 -0
- package/dist/src/helpers/utils.d.ts +23 -0
- package/dist/src/helpers/utils.js +2 -0
- package/dist/{vscode-custom-data.d.ts → src/helpers/vscode-custom-data.d.ts} +1 -1
- package/dist/src/helpers/vscode-custom-data.js +2 -0
- package/dist/src/index.d.ts +42 -0
- package/dist/src/index.js +2 -0
- package/dist/src/key-generate.d.ts +1 -0
- package/dist/src/key-generate.js +2 -0
- package/dist/src/lint/fix.d.ts +1 -0
- package/dist/src/lint/fix.js +4 -0
- package/dist/src/lint/index.d.ts +1 -0
- package/dist/src/lint/index.js +2 -0
- package/dist/src/make-command.d.ts +10 -0
- package/dist/src/make-command.js +2 -0
- package/dist/src/make-job.d.ts +5 -0
- package/dist/src/make-job.js +2 -0
- package/dist/src/make-policy.d.ts +10 -0
- package/dist/src/make-policy.js +2 -0
- package/dist/src/make-resource.d.ts +10 -0
- package/dist/src/make-resource.js +2 -0
- package/dist/{make.d.ts → src/make.d.ts} +11 -9
- package/dist/src/make.js +2 -0
- package/dist/src/migrate/database.d.ts +1 -0
- package/dist/src/migrate/database.js +2 -0
- package/dist/src/migrate/fresh.d.ts +1 -0
- package/dist/src/migrate/fresh.js +2 -0
- package/dist/src/orm/base.d.ts +1 -0
- package/dist/src/orm/base.js +2 -0
- package/dist/src/orm/test.d.ts +1 -0
- package/dist/src/orm/test.js +1 -0
- package/dist/src/prepublish.d.ts +1 -0
- package/dist/src/prepublish.js +2 -0
- package/dist/src/queue/clear.d.ts +1 -0
- package/dist/src/queue/clear.js +2 -0
- package/dist/src/queue/failed.d.ts +1 -0
- package/dist/src/queue/failed.js +5 -0
- package/dist/src/queue/flush.d.ts +1 -0
- package/dist/src/queue/flush.js +3 -0
- package/dist/src/queue/inspect.d.ts +1 -0
- package/dist/src/queue/inspect.js +8 -0
- package/dist/src/queue/monitor.d.ts +1 -0
- package/dist/src/queue/monitor.js +7 -0
- package/dist/src/queue/retry.d.ts +1 -0
- package/dist/src/queue/retry.js +2 -0
- package/dist/src/queue/schedule-list.d.ts +1 -0
- package/dist/src/queue/schedule-list.js +5 -0
- package/dist/src/queue/schedule.d.ts +1 -0
- package/dist/src/queue/schedule.js +2 -0
- package/dist/src/queue/status.d.ts +1 -0
- package/dist/src/queue/status.js +5 -0
- package/dist/src/queue/table.d.ts +1 -0
- package/dist/src/queue/table.js +2 -0
- package/dist/src/queue/work.d.ts +1 -0
- package/dist/src/queue/work.js +2 -0
- package/dist/src/release.d.ts +1 -0
- package/dist/src/release.js +3 -0
- package/dist/src/route/list.d.ts +1 -0
- package/dist/src/route/list.js +3 -0
- package/dist/src/run-action.d.ts +2 -0
- package/dist/src/run-action.js +2 -0
- package/dist/src/saas/setup.d.ts +1 -0
- package/dist/src/saas/setup.js +2 -0
- package/dist/src/scaffold-crud.d.ts +25 -0
- package/dist/src/scaffold-crud.js +2 -0
- package/dist/src/schedule/run.d.ts +1 -0
- package/dist/src/schedule/run.js +2 -0
- package/dist/src/search/flush.d.ts +1 -0
- package/dist/src/search/flush.js +2 -0
- package/dist/src/search/import.d.ts +1 -0
- package/dist/src/search/import.js +2 -0
- package/dist/src/search/settings-list.d.ts +1 -0
- package/dist/src/search/settings-list.js +2 -0
- package/dist/src/search/settings.d.ts +1 -0
- package/dist/src/search/settings.js +2 -0
- package/dist/src/serve/api.d.ts +1 -0
- package/dist/src/serve/api.js +2 -0
- package/dist/src/setup/index.d.ts +1 -0
- package/dist/src/setup/index.js +2 -0
- package/dist/src/setup/ssl.d.ts +38 -0
- package/dist/src/setup/ssl.js +2 -0
- package/dist/src/stacks.d.ts +4 -0
- package/dist/src/stacks.js +2 -0
- package/dist/src/templates.d.ts +8 -0
- package/dist/src/templates.js +2 -0
- package/dist/src/test/feature.d.ts +1 -0
- package/dist/src/test/feature.js +2 -0
- package/dist/src/test/index.d.ts +1 -0
- package/dist/src/test/index.js +2 -0
- package/dist/src/test/ui.d.ts +1 -0
- package/dist/src/test/ui.js +2 -0
- package/dist/src/test/unit.d.ts +1 -0
- package/dist/src/test/unit.js +2 -0
- package/dist/src/typecheck.d.ts +1 -0
- package/dist/src/typecheck.js +2 -0
- package/dist/{types.d.ts → src/types.d.ts} +1 -2
- package/dist/src/types.js +2 -0
- package/dist/src/upgrade/binary.d.ts +1 -0
- package/dist/src/upgrade/binary.js +2 -0
- package/dist/src/upgrade/bun.d.ts +1 -0
- package/dist/src/upgrade/bun.js +1 -0
- package/dist/src/upgrade/dependencies.d.ts +1 -0
- package/dist/src/upgrade/dependencies.js +2 -0
- package/dist/src/upgrade/framework-utils.d.ts +102 -0
- package/dist/src/upgrade/framework-utils.js +2 -0
- package/dist/src/upgrade/framework.d.ts +1 -0
- package/dist/src/upgrade/framework.js +7 -0
- package/dist/src/upgrade/index.d.ts +1 -0
- package/dist/src/upgrade/index.js +2 -0
- package/dist/src/upgrade/shell.d.ts +1 -0
- package/dist/src/upgrade/shell.js +5 -0
- package/dist/src/upgrade.d.ts +7 -0
- package/dist/src/upgrade.js +2 -0
- package/package.json +39 -23
- package/dist/action-types.d.ts +0 -9
- package/dist/action.d.ts +0 -64
- package/dist/actions.d.ts +0 -2
- package/dist/add.d.ts +0 -5
- package/dist/add.js +0 -33
- package/dist/api.d.ts +0 -1
- package/dist/binary.d.ts +0 -2
- package/dist/build/component-libs.js +0 -9
- package/dist/build/core.js +0 -23
- package/dist/build/stacks.js +0 -8
- package/dist/build.js +0 -108
- package/dist/bump.d.ts +0 -2
- package/dist/bump.js +0 -17
- package/dist/changelog.d.ts +0 -2
- package/dist/changelog.js +0 -17
- package/dist/chunk-2dvnt46s.js +0 -7657
- package/dist/chunk-494jp8d5.js +0 -54
- package/dist/chunk-4axj3j8y.js +0 -34
- package/dist/chunk-56ar3gp7.js +0 -3823
- package/dist/chunk-76zhb40c.js +0 -92
- package/dist/chunk-7s5qcjkt.js +0 -105
- package/dist/chunk-9v6qtbez.js +0 -45
- package/dist/chunk-a13x0e43.js +0 -1180
- package/dist/chunk-a7k3cdby.js +0 -2266
- package/dist/chunk-b5g5w1hh.js +0 -1482
- package/dist/chunk-bf8bq8pc.js +0 -205
- package/dist/chunk-ccnf3w1b.js +0 -2228
- package/dist/chunk-dvkgakrr.js +0 -1283
- package/dist/chunk-frw3va9v.js +0 -69
- package/dist/chunk-hvfeg6n6.js +0 -179248
- package/dist/chunk-mdj7x1vs.js +0 -790
- package/dist/chunk-mdqphqep.js +0 -438
- package/dist/chunk-mmskr8ar.js +0 -212
- package/dist/chunk-nrr524a7.js +0 -658
- package/dist/chunk-p0c688mg.js +0 -729
- package/dist/chunk-pacq2bz6.js +0 -902
- package/dist/chunk-psa9yf21.js +0 -72
- package/dist/chunk-q81mf99q.js +0 -169
- package/dist/chunk-q9dmga3k.js +0 -11
- package/dist/chunk-qhh0v93n.js +0 -73
- package/dist/chunk-qkm8e752.js +0 -51
- package/dist/chunk-saqpg5nd.js +0 -118
- package/dist/chunk-t5em30ak.js +0 -379
- package/dist/chunk-veja9rez.js +0 -5764
- package/dist/chunk-w4bfpxhm.js +0 -311
- package/dist/chunk-w6fdq4hk.js +0 -14425
- package/dist/chunk-wkwtsvym.js +0 -477
- package/dist/chunk-xgsmf4cy.js +0 -410
- package/dist/chunk-ykb33tkv.js +0 -177
- package/dist/chunk-ze46550n.js +0 -0
- package/dist/chunk-zzerxbrm.js +0 -107
- package/dist/clean.js +0 -6
- package/dist/commit.js +0 -22
- package/dist/component-meta.d.ts +0 -15
- package/dist/components.d.ts +0 -3
- package/dist/copy-types.d.ts +0 -1
- package/dist/copy-types.js +0 -14
- package/dist/core.d.ts +0 -1
- package/dist/create-receipt-rule.d.ts +0 -4
- package/dist/database/seed.js +0 -30
- package/dist/database.d.ts +0 -2
- package/dist/deploy/index.js +0 -48
- package/dist/dev/components.js +0 -11
- package/dist/dev/docs.js +0 -7
- package/dist/dev/index.js +0 -58
- package/dist/env-files.d.ts +0 -9
- package/dist/examples.js +0 -46
- package/dist/feature.d.ts +0 -2
- package/dist/find-projects.d.ts +0 -1
- package/dist/fix.d.ts +0 -1
- package/dist/flush.d.ts +0 -2
- package/dist/fresh.d.ts +0 -1
- package/dist/fresh.js +0 -21
- package/dist/generate/component-meta.js +0 -17
- package/dist/generate/ide-helpers.js +0 -18
- package/dist/generate/index.js +0 -216
- package/dist/generate/lib-entries.js +0 -30
- package/dist/generate/vscode-custom-data.js +0 -17
- package/dist/helpers/component-meta.js +0 -204227
- package/dist/helpers/lib-entries.js +0 -122
- package/dist/helpers/package-json.js +0 -96
- package/dist/helpers/utils.js +0 -76
- package/dist/helpers/vscode-custom-data.js +0 -43
- package/dist/import.d.ts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -172
- package/dist/key-generate.js +0 -15
- package/dist/lint/fix.js +0 -18
- package/dist/lint/index.js +0 -5
- package/dist/list.d.ts +0 -1
- package/dist/make.js +0 -349
- package/dist/package-json.d.ts +0 -92
- package/dist/pkgx-file.d.ts +0 -8
- package/dist/ports.d.ts +0 -2
- package/dist/prepublish.d.ts +0 -1
- package/dist/prepublish.js +0 -17
- package/dist/purchase.d.ts +0 -6
- package/dist/release.js +0 -49
- package/dist/remove.d.ts +0 -6
- package/dist/request-model-access.d.ts +0 -1
- package/dist/run.d.ts +0 -1
- package/dist/settings-list.d.ts +0 -2
- package/dist/settings.d.ts +0 -1
- package/dist/setup.d.ts +0 -1
- package/dist/shell.d.ts +0 -2
- package/dist/table.d.ts +0 -1
- package/dist/test/feature.js +0 -14
- package/dist/test/index.js +0 -14
- package/dist/test/ui.js +0 -6
- package/dist/test/unit.js +0 -14
- package/dist/typecheck.js +0 -6
- package/dist/types.js +0 -23
- package/dist/unit.d.ts +0 -2
- package/dist/upgrade/dependencies.js +0 -8
- package/dist/upgrade/index.js +0 -22
- package/dist/upgrade.d.ts +0 -5
- package/dist/upgrade.js +0 -50
- package/dist/utils.d.ts +0 -75
- package/dist/work.d.ts +0 -3
- /package/dist/{upgrade/framework.js → chunk-cdk2r2jd.js} +0 -0
package/dist/chunk-mdqphqep.js
DELETED
|
@@ -1,438 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
C,
|
|
3
|
-
N
|
|
4
|
-
} from "./chunk-qhh0v93n.js";
|
|
5
|
-
|
|
6
|
-
// ../../../../node_modules/confbox/dist/shared/confbox.DuS6lJnA.mjs
|
|
7
|
-
function $(n, l = false) {
|
|
8
|
-
const g = n.length;
|
|
9
|
-
let e = 0, u = "", p = 0, k = 16, A = 0, o = 0, O = 0, B = 0, b = 0;
|
|
10
|
-
function I(i, T) {
|
|
11
|
-
let s = 0, c = 0;
|
|
12
|
-
for (;s < i; ) {
|
|
13
|
-
let t = n.charCodeAt(e);
|
|
14
|
-
if (t >= 48 && t <= 57)
|
|
15
|
-
c = c * 16 + t - 48;
|
|
16
|
-
else if (t >= 65 && t <= 70)
|
|
17
|
-
c = c * 16 + t - 65 + 10;
|
|
18
|
-
else if (t >= 97 && t <= 102)
|
|
19
|
-
c = c * 16 + t - 97 + 10;
|
|
20
|
-
else
|
|
21
|
-
break;
|
|
22
|
-
e++, s++;
|
|
23
|
-
}
|
|
24
|
-
return s < i && (c = -1), c;
|
|
25
|
-
}
|
|
26
|
-
function V(i) {
|
|
27
|
-
e = i, u = "", p = 0, k = 16, b = 0;
|
|
28
|
-
}
|
|
29
|
-
function F() {
|
|
30
|
-
let i = e;
|
|
31
|
-
if (n.charCodeAt(e) === 48)
|
|
32
|
-
e++;
|
|
33
|
-
else
|
|
34
|
-
for (e++;e < n.length && L(n.charCodeAt(e)); )
|
|
35
|
-
e++;
|
|
36
|
-
if (e < n.length && n.charCodeAt(e) === 46)
|
|
37
|
-
if (e++, e < n.length && L(n.charCodeAt(e)))
|
|
38
|
-
for (e++;e < n.length && L(n.charCodeAt(e)); )
|
|
39
|
-
e++;
|
|
40
|
-
else
|
|
41
|
-
return b = 3, n.substring(i, e);
|
|
42
|
-
let T = e;
|
|
43
|
-
if (e < n.length && (n.charCodeAt(e) === 69 || n.charCodeAt(e) === 101))
|
|
44
|
-
if (e++, (e < n.length && n.charCodeAt(e) === 43 || n.charCodeAt(e) === 45) && e++, e < n.length && L(n.charCodeAt(e))) {
|
|
45
|
-
for (e++;e < n.length && L(n.charCodeAt(e)); )
|
|
46
|
-
e++;
|
|
47
|
-
T = e;
|
|
48
|
-
} else
|
|
49
|
-
b = 3;
|
|
50
|
-
return n.substring(i, T);
|
|
51
|
-
}
|
|
52
|
-
function a() {
|
|
53
|
-
let i = "", T = e;
|
|
54
|
-
for (;; ) {
|
|
55
|
-
if (e >= g) {
|
|
56
|
-
i += n.substring(T, e), b = 2;
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
const s = n.charCodeAt(e);
|
|
60
|
-
if (s === 34) {
|
|
61
|
-
i += n.substring(T, e), e++;
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
if (s === 92) {
|
|
65
|
-
if (i += n.substring(T, e), e++, e >= g) {
|
|
66
|
-
b = 2;
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
switch (n.charCodeAt(e++)) {
|
|
70
|
-
case 34:
|
|
71
|
-
i += '"';
|
|
72
|
-
break;
|
|
73
|
-
case 92:
|
|
74
|
-
i += "\\";
|
|
75
|
-
break;
|
|
76
|
-
case 47:
|
|
77
|
-
i += "/";
|
|
78
|
-
break;
|
|
79
|
-
case 98:
|
|
80
|
-
i += "\b";
|
|
81
|
-
break;
|
|
82
|
-
case 102:
|
|
83
|
-
i += "\f";
|
|
84
|
-
break;
|
|
85
|
-
case 110:
|
|
86
|
-
i += `
|
|
87
|
-
`;
|
|
88
|
-
break;
|
|
89
|
-
case 114:
|
|
90
|
-
i += "\r";
|
|
91
|
-
break;
|
|
92
|
-
case 116:
|
|
93
|
-
i += "\t";
|
|
94
|
-
break;
|
|
95
|
-
case 117:
|
|
96
|
-
const t = I(4);
|
|
97
|
-
t >= 0 ? i += String.fromCharCode(t) : b = 4;
|
|
98
|
-
break;
|
|
99
|
-
default:
|
|
100
|
-
b = 5;
|
|
101
|
-
}
|
|
102
|
-
T = e;
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
if (s >= 0 && s <= 31)
|
|
106
|
-
if (r(s)) {
|
|
107
|
-
i += n.substring(T, e), b = 2;
|
|
108
|
-
break;
|
|
109
|
-
} else
|
|
110
|
-
b = 6;
|
|
111
|
-
e++;
|
|
112
|
-
}
|
|
113
|
-
return i;
|
|
114
|
-
}
|
|
115
|
-
function w() {
|
|
116
|
-
if (u = "", b = 0, p = e, o = A, B = O, e >= g)
|
|
117
|
-
return p = g, k = 17;
|
|
118
|
-
let i = n.charCodeAt(e);
|
|
119
|
-
if (J(i)) {
|
|
120
|
-
do
|
|
121
|
-
e++, u += String.fromCharCode(i), i = n.charCodeAt(e);
|
|
122
|
-
while (J(i));
|
|
123
|
-
return k = 15;
|
|
124
|
-
}
|
|
125
|
-
if (r(i))
|
|
126
|
-
return e++, u += String.fromCharCode(i), i === 13 && n.charCodeAt(e) === 10 && (e++, u += `
|
|
127
|
-
`), A++, O = e, k = 14;
|
|
128
|
-
switch (i) {
|
|
129
|
-
case 123:
|
|
130
|
-
return e++, k = 1;
|
|
131
|
-
case 125:
|
|
132
|
-
return e++, k = 2;
|
|
133
|
-
case 91:
|
|
134
|
-
return e++, k = 3;
|
|
135
|
-
case 93:
|
|
136
|
-
return e++, k = 4;
|
|
137
|
-
case 58:
|
|
138
|
-
return e++, k = 6;
|
|
139
|
-
case 44:
|
|
140
|
-
return e++, k = 5;
|
|
141
|
-
case 34:
|
|
142
|
-
return e++, u = a(), k = 10;
|
|
143
|
-
case 47:
|
|
144
|
-
const T = e - 1;
|
|
145
|
-
if (n.charCodeAt(e + 1) === 47) {
|
|
146
|
-
for (e += 2;e < g && !r(n.charCodeAt(e)); )
|
|
147
|
-
e++;
|
|
148
|
-
return u = n.substring(T, e), k = 12;
|
|
149
|
-
}
|
|
150
|
-
if (n.charCodeAt(e + 1) === 42) {
|
|
151
|
-
e += 2;
|
|
152
|
-
const s = g - 1;
|
|
153
|
-
let c = false;
|
|
154
|
-
for (;e < s; ) {
|
|
155
|
-
const t = n.charCodeAt(e);
|
|
156
|
-
if (t === 42 && n.charCodeAt(e + 1) === 47) {
|
|
157
|
-
e += 2, c = true;
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
e++, r(t) && (t === 13 && n.charCodeAt(e) === 10 && e++, A++, O = e);
|
|
161
|
-
}
|
|
162
|
-
return c || (e++, b = 1), u = n.substring(T, e), k = 13;
|
|
163
|
-
}
|
|
164
|
-
return u += String.fromCharCode(i), e++, k = 16;
|
|
165
|
-
case 45:
|
|
166
|
-
if (u += String.fromCharCode(i), e++, e === g || !L(n.charCodeAt(e)))
|
|
167
|
-
return k = 16;
|
|
168
|
-
case 48:
|
|
169
|
-
case 49:
|
|
170
|
-
case 50:
|
|
171
|
-
case 51:
|
|
172
|
-
case 52:
|
|
173
|
-
case 53:
|
|
174
|
-
case 54:
|
|
175
|
-
case 55:
|
|
176
|
-
case 56:
|
|
177
|
-
case 57:
|
|
178
|
-
return u += F(), k = 11;
|
|
179
|
-
default:
|
|
180
|
-
for (;e < g && v(i); )
|
|
181
|
-
e++, i = n.charCodeAt(e);
|
|
182
|
-
if (p !== e) {
|
|
183
|
-
switch (u = n.substring(p, e), u) {
|
|
184
|
-
case "true":
|
|
185
|
-
return k = 8;
|
|
186
|
-
case "false":
|
|
187
|
-
return k = 9;
|
|
188
|
-
case "null":
|
|
189
|
-
return k = 7;
|
|
190
|
-
}
|
|
191
|
-
return k = 16;
|
|
192
|
-
}
|
|
193
|
-
return u += String.fromCharCode(i), e++, k = 16;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
function v(i) {
|
|
197
|
-
if (J(i) || r(i))
|
|
198
|
-
return false;
|
|
199
|
-
switch (i) {
|
|
200
|
-
case 125:
|
|
201
|
-
case 93:
|
|
202
|
-
case 123:
|
|
203
|
-
case 91:
|
|
204
|
-
case 34:
|
|
205
|
-
case 58:
|
|
206
|
-
case 44:
|
|
207
|
-
case 47:
|
|
208
|
-
return false;
|
|
209
|
-
}
|
|
210
|
-
return true;
|
|
211
|
-
}
|
|
212
|
-
function j() {
|
|
213
|
-
let i;
|
|
214
|
-
do
|
|
215
|
-
i = w();
|
|
216
|
-
while (i >= 12 && i <= 15);
|
|
217
|
-
return i;
|
|
218
|
-
}
|
|
219
|
-
return { setPosition: V, getPosition: () => e, scan: l ? j : w, getToken: () => k, getTokenValue: () => u, getTokenOffset: () => p, getTokenLength: () => e - p, getTokenStartLine: () => o, getTokenStartCharacter: () => p - B, getTokenError: () => b };
|
|
220
|
-
}
|
|
221
|
-
function J(n) {
|
|
222
|
-
return n === 32 || n === 9;
|
|
223
|
-
}
|
|
224
|
-
function r(n) {
|
|
225
|
-
return n === 10 || n === 13;
|
|
226
|
-
}
|
|
227
|
-
function L(n) {
|
|
228
|
-
return n >= 48 && n <= 57;
|
|
229
|
-
}
|
|
230
|
-
var Q;
|
|
231
|
-
(function(n) {
|
|
232
|
-
n[n.lineFeed = 10] = "lineFeed", n[n.carriageReturn = 13] = "carriageReturn", n[n.space = 32] = "space", n[n._0 = 48] = "_0", n[n._1 = 49] = "_1", n[n._2 = 50] = "_2", n[n._3 = 51] = "_3", n[n._4 = 52] = "_4", n[n._5 = 53] = "_5", n[n._6 = 54] = "_6", n[n._7 = 55] = "_7", n[n._8 = 56] = "_8", n[n._9 = 57] = "_9", n[n.a = 97] = "a", n[n.b = 98] = "b", n[n.c = 99] = "c", n[n.d = 100] = "d", n[n.e = 101] = "e", n[n.f = 102] = "f", n[n.g = 103] = "g", n[n.h = 104] = "h", n[n.i = 105] = "i", n[n.j = 106] = "j", n[n.k = 107] = "k", n[n.l = 108] = "l", n[n.m = 109] = "m", n[n.n = 110] = "n", n[n.o = 111] = "o", n[n.p = 112] = "p", n[n.q = 113] = "q", n[n.r = 114] = "r", n[n.s = 115] = "s", n[n.t = 116] = "t", n[n.u = 117] = "u", n[n.v = 118] = "v", n[n.w = 119] = "w", n[n.x = 120] = "x", n[n.y = 121] = "y", n[n.z = 122] = "z", n[n.A = 65] = "A", n[n.B = 66] = "B", n[n.C = 67] = "C", n[n.D = 68] = "D", n[n.E = 69] = "E", n[n.F = 70] = "F", n[n.G = 71] = "G", n[n.H = 72] = "H", n[n.I = 73] = "I", n[n.J = 74] = "J", n[n.K = 75] = "K", n[n.L = 76] = "L", n[n.M = 77] = "M", n[n.N = 78] = "N", n[n.O = 79] = "O", n[n.P = 80] = "P", n[n.Q = 81] = "Q", n[n.R = 82] = "R", n[n.S = 83] = "S", n[n.T = 84] = "T", n[n.U = 85] = "U", n[n.V = 86] = "V", n[n.W = 87] = "W", n[n.X = 88] = "X", n[n.Y = 89] = "Y", n[n.Z = 90] = "Z", n[n.asterisk = 42] = "asterisk", n[n.backslash = 92] = "backslash", n[n.closeBrace = 125] = "closeBrace", n[n.closeBracket = 93] = "closeBracket", n[n.colon = 58] = "colon", n[n.comma = 44] = "comma", n[n.dot = 46] = "dot", n[n.doubleQuote = 34] = "doubleQuote", n[n.minus = 45] = "minus", n[n.openBrace = 123] = "openBrace", n[n.openBracket = 91] = "openBracket", n[n.plus = 43] = "plus", n[n.slash = 47] = "slash", n[n.formFeed = 12] = "formFeed", n[n.tab = 9] = "tab";
|
|
233
|
-
})(Q || (Q = {})), new Array(20).fill(0).map((n, l) => " ".repeat(l));
|
|
234
|
-
var N2 = 200;
|
|
235
|
-
new Array(N2).fill(0).map((n, l) => `
|
|
236
|
-
` + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => `\r
|
|
237
|
-
` + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => `
|
|
238
|
-
` + "\t".repeat(l)), new Array(N2).fill(0).map((n, l) => "\r" + "\t".repeat(l)), new Array(N2).fill(0).map((n, l) => `\r
|
|
239
|
-
` + "\t".repeat(l));
|
|
240
|
-
var U;
|
|
241
|
-
(function(n) {
|
|
242
|
-
n.DEFAULT = { allowTrailingComma: false };
|
|
243
|
-
})(U || (U = {}));
|
|
244
|
-
function S(n, l = [], g = U.DEFAULT) {
|
|
245
|
-
let e = null, u = [];
|
|
246
|
-
const p = [];
|
|
247
|
-
function k(o) {
|
|
248
|
-
Array.isArray(u) ? u.push(o) : e !== null && (u[e] = o);
|
|
249
|
-
}
|
|
250
|
-
return P(n, { onObjectBegin: () => {
|
|
251
|
-
const o = {};
|
|
252
|
-
k(o), p.push(u), u = o, e = null;
|
|
253
|
-
}, onObjectProperty: (o) => {
|
|
254
|
-
e = o;
|
|
255
|
-
}, onObjectEnd: () => {
|
|
256
|
-
u = p.pop();
|
|
257
|
-
}, onArrayBegin: () => {
|
|
258
|
-
const o = [];
|
|
259
|
-
k(o), p.push(u), u = o, e = null;
|
|
260
|
-
}, onArrayEnd: () => {
|
|
261
|
-
u = p.pop();
|
|
262
|
-
}, onLiteralValue: k, onError: (o, O, B) => {
|
|
263
|
-
l.push({ error: o, offset: O, length: B });
|
|
264
|
-
} }, g), u[0];
|
|
265
|
-
}
|
|
266
|
-
function P(n, l, g = U.DEFAULT) {
|
|
267
|
-
const e = $(n, false), u = [];
|
|
268
|
-
let p = 0;
|
|
269
|
-
function k(f) {
|
|
270
|
-
return f ? () => p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => true;
|
|
271
|
-
}
|
|
272
|
-
function A(f) {
|
|
273
|
-
return f ? (m) => p === 0 && f(m, e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => true;
|
|
274
|
-
}
|
|
275
|
-
function o(f) {
|
|
276
|
-
return f ? (m) => p === 0 && f(m, e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter(), () => u.slice()) : () => true;
|
|
277
|
-
}
|
|
278
|
-
function O(f) {
|
|
279
|
-
return f ? () => {
|
|
280
|
-
p > 0 ? p++ : f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter(), () => u.slice()) === false && (p = 1);
|
|
281
|
-
} : () => true;
|
|
282
|
-
}
|
|
283
|
-
function B(f) {
|
|
284
|
-
return f ? () => {
|
|
285
|
-
p > 0 && p--, p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter());
|
|
286
|
-
} : () => true;
|
|
287
|
-
}
|
|
288
|
-
const b = O(l.onObjectBegin), I = o(l.onObjectProperty), V = B(l.onObjectEnd), F = O(l.onArrayBegin), a = B(l.onArrayEnd), w = o(l.onLiteralValue), v = A(l.onSeparator), j = k(l.onComment), i = A(l.onError), T = g && g.disallowComments, s = g && g.allowTrailingComma;
|
|
289
|
-
function c() {
|
|
290
|
-
for (;; ) {
|
|
291
|
-
const f = e.scan();
|
|
292
|
-
switch (e.getTokenError()) {
|
|
293
|
-
case 4:
|
|
294
|
-
t(14);
|
|
295
|
-
break;
|
|
296
|
-
case 5:
|
|
297
|
-
t(15);
|
|
298
|
-
break;
|
|
299
|
-
case 3:
|
|
300
|
-
t(13);
|
|
301
|
-
break;
|
|
302
|
-
case 1:
|
|
303
|
-
T || t(11);
|
|
304
|
-
break;
|
|
305
|
-
case 2:
|
|
306
|
-
t(12);
|
|
307
|
-
break;
|
|
308
|
-
case 6:
|
|
309
|
-
t(16);
|
|
310
|
-
break;
|
|
311
|
-
}
|
|
312
|
-
switch (f) {
|
|
313
|
-
case 12:
|
|
314
|
-
case 13:
|
|
315
|
-
T ? t(10) : j();
|
|
316
|
-
break;
|
|
317
|
-
case 16:
|
|
318
|
-
t(1);
|
|
319
|
-
break;
|
|
320
|
-
case 15:
|
|
321
|
-
case 14:
|
|
322
|
-
break;
|
|
323
|
-
default:
|
|
324
|
-
return f;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
function t(f, m = [], y = []) {
|
|
329
|
-
if (i(f), m.length + y.length > 0) {
|
|
330
|
-
let _ = e.getToken();
|
|
331
|
-
for (;_ !== 17; ) {
|
|
332
|
-
if (m.indexOf(_) !== -1) {
|
|
333
|
-
c();
|
|
334
|
-
break;
|
|
335
|
-
} else if (y.indexOf(_) !== -1)
|
|
336
|
-
break;
|
|
337
|
-
_ = c();
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
function D(f) {
|
|
342
|
-
const m = e.getTokenValue();
|
|
343
|
-
return f ? w(m) : (I(m), u.push(m)), c(), true;
|
|
344
|
-
}
|
|
345
|
-
function G() {
|
|
346
|
-
switch (e.getToken()) {
|
|
347
|
-
case 11:
|
|
348
|
-
const f = e.getTokenValue();
|
|
349
|
-
let m = Number(f);
|
|
350
|
-
isNaN(m) && (t(2), m = 0), w(m);
|
|
351
|
-
break;
|
|
352
|
-
case 7:
|
|
353
|
-
w(null);
|
|
354
|
-
break;
|
|
355
|
-
case 8:
|
|
356
|
-
w(true);
|
|
357
|
-
break;
|
|
358
|
-
case 9:
|
|
359
|
-
w(false);
|
|
360
|
-
break;
|
|
361
|
-
default:
|
|
362
|
-
return false;
|
|
363
|
-
}
|
|
364
|
-
return c(), true;
|
|
365
|
-
}
|
|
366
|
-
function M() {
|
|
367
|
-
return e.getToken() !== 10 ? (t(3, [], [2, 5]), false) : (D(false), e.getToken() === 6 ? (v(":"), c(), E() || t(4, [], [2, 5])) : t(5, [], [2, 5]), u.pop(), true);
|
|
368
|
-
}
|
|
369
|
-
function X() {
|
|
370
|
-
b(), c();
|
|
371
|
-
let f = false;
|
|
372
|
-
for (;e.getToken() !== 2 && e.getToken() !== 17; ) {
|
|
373
|
-
if (e.getToken() === 5) {
|
|
374
|
-
if (f || t(4, [], []), v(","), c(), e.getToken() === 2 && s)
|
|
375
|
-
break;
|
|
376
|
-
} else
|
|
377
|
-
f && t(6, [], []);
|
|
378
|
-
M() || t(4, [], [2, 5]), f = true;
|
|
379
|
-
}
|
|
380
|
-
return V(), e.getToken() !== 2 ? t(7, [2], []) : c(), true;
|
|
381
|
-
}
|
|
382
|
-
function Y() {
|
|
383
|
-
F(), c();
|
|
384
|
-
let f = true, m = false;
|
|
385
|
-
for (;e.getToken() !== 4 && e.getToken() !== 17; ) {
|
|
386
|
-
if (e.getToken() === 5) {
|
|
387
|
-
if (m || t(4, [], []), v(","), c(), e.getToken() === 4 && s)
|
|
388
|
-
break;
|
|
389
|
-
} else
|
|
390
|
-
m && t(6, [], []);
|
|
391
|
-
f ? (u.push(0), f = false) : u[u.length - 1]++, E() || t(4, [], [4, 5]), m = true;
|
|
392
|
-
}
|
|
393
|
-
return a(), f || u.pop(), e.getToken() !== 4 ? t(8, [4], []) : c(), true;
|
|
394
|
-
}
|
|
395
|
-
function E() {
|
|
396
|
-
switch (e.getToken()) {
|
|
397
|
-
case 3:
|
|
398
|
-
return Y();
|
|
399
|
-
case 1:
|
|
400
|
-
return X();
|
|
401
|
-
case 10:
|
|
402
|
-
return D(true);
|
|
403
|
-
default:
|
|
404
|
-
return G();
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
return c(), e.getToken() === 17 ? g.allowEmptyContent ? true : (t(4, [], []), false) : E() ? (e.getToken() !== 17 && t(9, [], []), true) : (t(4, [], []), false);
|
|
408
|
-
}
|
|
409
|
-
var W;
|
|
410
|
-
(function(n) {
|
|
411
|
-
n[n.None = 0] = "None", n[n.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 4] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 6] = "InvalidCharacter";
|
|
412
|
-
})(W || (W = {}));
|
|
413
|
-
var H;
|
|
414
|
-
(function(n) {
|
|
415
|
-
n[n.OpenBraceToken = 1] = "OpenBraceToken", n[n.CloseBraceToken = 2] = "CloseBraceToken", n[n.OpenBracketToken = 3] = "OpenBracketToken", n[n.CloseBracketToken = 4] = "CloseBracketToken", n[n.CommaToken = 5] = "CommaToken", n[n.ColonToken = 6] = "ColonToken", n[n.NullKeyword = 7] = "NullKeyword", n[n.TrueKeyword = 8] = "TrueKeyword", n[n.FalseKeyword = 9] = "FalseKeyword", n[n.StringLiteral = 10] = "StringLiteral", n[n.NumericLiteral = 11] = "NumericLiteral", n[n.LineCommentTrivia = 12] = "LineCommentTrivia", n[n.BlockCommentTrivia = 13] = "BlockCommentTrivia", n[n.LineBreakTrivia = 14] = "LineBreakTrivia", n[n.Trivia = 15] = "Trivia", n[n.Unknown = 16] = "Unknown", n[n.EOF = 17] = "EOF";
|
|
416
|
-
})(H || (H = {}));
|
|
417
|
-
var K = S;
|
|
418
|
-
var q;
|
|
419
|
-
(function(n) {
|
|
420
|
-
n[n.InvalidSymbol = 1] = "InvalidSymbol", n[n.InvalidNumberFormat = 2] = "InvalidNumberFormat", n[n.PropertyNameExpected = 3] = "PropertyNameExpected", n[n.ValueExpected = 4] = "ValueExpected", n[n.ColonExpected = 5] = "ColonExpected", n[n.CommaExpected = 6] = "CommaExpected", n[n.CloseBraceExpected = 7] = "CloseBraceExpected", n[n.CloseBracketExpected = 8] = "CloseBracketExpected", n[n.EndOfFileExpected = 9] = "EndOfFileExpected", n[n.InvalidCommentToken = 10] = "InvalidCommentToken", n[n.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 14] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 16] = "InvalidCharacter";
|
|
421
|
-
})(q || (q = {}));
|
|
422
|
-
function x(n, l) {
|
|
423
|
-
const g = JSON.parse(n, l?.reviver);
|
|
424
|
-
return N(n, g, l), g;
|
|
425
|
-
}
|
|
426
|
-
function z(n, l) {
|
|
427
|
-
const g = C(n, l), e = JSON.stringify(n, l?.replacer, g.indent);
|
|
428
|
-
return g.whitespace.start + e + g.whitespace.end;
|
|
429
|
-
}
|
|
430
|
-
function h(n, l) {
|
|
431
|
-
const g = K(n, l?.errors, l);
|
|
432
|
-
return N(n, g, l), g;
|
|
433
|
-
}
|
|
434
|
-
function d(n, l) {
|
|
435
|
-
return z(n, l);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
export { x, h, d };
|
package/dist/chunk-mmskr8ar.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getProfileName,
|
|
4
|
-
parseKnownFiles
|
|
5
|
-
} from "./chunk-bf8bq8pc.js";
|
|
6
|
-
import {
|
|
7
|
-
CredentialsProviderError,
|
|
8
|
-
chain
|
|
9
|
-
} from "./chunk-zzerxbrm.js";
|
|
10
|
-
import {
|
|
11
|
-
require_client
|
|
12
|
-
} from "./chunk-frw3va9v.js";
|
|
13
|
-
import"./chunk-saqpg5nd.js";
|
|
14
|
-
import {
|
|
15
|
-
__require,
|
|
16
|
-
__toESM
|
|
17
|
-
} from "./chunk-9v6qtbez.js";
|
|
18
|
-
|
|
19
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
20
|
-
var import_client2 = __toESM(require_client(), 1);
|
|
21
|
-
|
|
22
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
23
|
-
var import_client = __toESM(require_client(), 1);
|
|
24
|
-
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
25
|
-
const sourceProvidersMap = {
|
|
26
|
-
EcsContainer: async (options) => {
|
|
27
|
-
const { fromHttp } = await import("./chunk-q81mf99q.js");
|
|
28
|
-
const { fromContainerMetadata } = await import("./chunk-t5em30ak.js");
|
|
29
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
30
|
-
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
31
|
-
},
|
|
32
|
-
Ec2InstanceMetadata: async (options) => {
|
|
33
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
34
|
-
const { fromInstanceMetadata } = await import("./chunk-t5em30ak.js");
|
|
35
|
-
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
36
|
-
},
|
|
37
|
-
Environment: async (options) => {
|
|
38
|
-
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
39
|
-
const { fromEnv } = await import("./chunk-qkm8e752.js");
|
|
40
|
-
return async () => fromEnv(options)().then(setNamedProvider);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
if (credentialSource in sourceProvidersMap) {
|
|
44
|
-
return sourceProvidersMap[credentialSource];
|
|
45
|
-
} else {
|
|
46
|
-
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var setNamedProvider = (creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
50
|
-
|
|
51
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
52
|
-
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
53
|
-
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
54
|
-
};
|
|
55
|
-
var isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
56
|
-
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
57
|
-
if (withSourceProfile) {
|
|
58
|
-
logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
|
|
59
|
-
}
|
|
60
|
-
return withSourceProfile;
|
|
61
|
-
};
|
|
62
|
-
var isCredentialSourceProfile = (arg, { profile, logger }) => {
|
|
63
|
-
const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
|
|
64
|
-
if (withProviderProfile) {
|
|
65
|
-
logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
|
|
66
|
-
}
|
|
67
|
-
return withProviderProfile;
|
|
68
|
-
};
|
|
69
|
-
var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
70
|
-
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
|
71
|
-
const profileData = profiles[profileName];
|
|
72
|
-
const { source_profile, region } = profileData;
|
|
73
|
-
if (!options.roleAssumer) {
|
|
74
|
-
const { getDefaultRoleAssumer } = await import("./chunk-dvkgakrr.js");
|
|
75
|
-
options.roleAssumer = getDefaultRoleAssumer({
|
|
76
|
-
...options.clientConfig,
|
|
77
|
-
credentialProviderLogger: options.logger,
|
|
78
|
-
parentClientConfig: {
|
|
79
|
-
...options?.parentClientConfig,
|
|
80
|
-
region: region ?? options?.parentClientConfig?.region
|
|
81
|
-
}
|
|
82
|
-
}, options.clientPlugins);
|
|
83
|
-
}
|
|
84
|
-
if (source_profile && source_profile in visitedProfiles) {
|
|
85
|
-
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
86
|
-
}
|
|
87
|
-
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
88
|
-
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
|
89
|
-
...visitedProfiles,
|
|
90
|
-
[source_profile]: true
|
|
91
|
-
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
92
|
-
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
|
93
|
-
return sourceCredsProvider.then((creds) => import_client2.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
94
|
-
} else {
|
|
95
|
-
const params = {
|
|
96
|
-
RoleArn: profileData.role_arn,
|
|
97
|
-
RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
|
|
98
|
-
ExternalId: profileData.external_id,
|
|
99
|
-
DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
|
|
100
|
-
};
|
|
101
|
-
const { mfa_serial } = profileData;
|
|
102
|
-
if (mfa_serial) {
|
|
103
|
-
if (!options.mfaCodeProvider) {
|
|
104
|
-
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
105
|
-
}
|
|
106
|
-
params.SerialNumber = mfa_serial;
|
|
107
|
-
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
108
|
-
}
|
|
109
|
-
const sourceCreds = await sourceCredsProvider;
|
|
110
|
-
return options.roleAssumer(sourceCreds, params).then((creds) => import_client2.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
var isCredentialSourceWithoutRoleArn = (section) => {
|
|
114
|
-
return !section.role_arn && !!section.credential_source;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
118
|
-
var import_client3 = __toESM(require_client(), 1);
|
|
119
|
-
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
120
|
-
var resolveProcessCredentials = async (options, profile) => import("./chunk-76zhb40c.js").then(({ fromProcess }) => fromProcess({
|
|
121
|
-
...options,
|
|
122
|
-
profile
|
|
123
|
-
})().then((creds) => import_client3.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
124
|
-
|
|
125
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
126
|
-
var import_client4 = __toESM(require_client(), 1);
|
|
127
|
-
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
128
|
-
const { fromSSO } = await import("./chunk-w4bfpxhm.js");
|
|
129
|
-
return fromSSO({
|
|
130
|
-
profile,
|
|
131
|
-
logger: options.logger,
|
|
132
|
-
parentClientConfig: options.parentClientConfig,
|
|
133
|
-
clientConfig: options.clientConfig
|
|
134
|
-
})().then((creds) => {
|
|
135
|
-
if (profileData.sso_session) {
|
|
136
|
-
return import_client4.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
|
137
|
-
} else {
|
|
138
|
-
return import_client4.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
143
|
-
|
|
144
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
145
|
-
var import_client5 = __toESM(require_client(), 1);
|
|
146
|
-
var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
|
|
147
|
-
var resolveStaticCredentials = async (profile, options) => {
|
|
148
|
-
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
149
|
-
const credentials = {
|
|
150
|
-
accessKeyId: profile.aws_access_key_id,
|
|
151
|
-
secretAccessKey: profile.aws_secret_access_key,
|
|
152
|
-
sessionToken: profile.aws_session_token,
|
|
153
|
-
...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
|
|
154
|
-
...profile.aws_account_id && { accountId: profile.aws_account_id }
|
|
155
|
-
};
|
|
156
|
-
return import_client5.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
160
|
-
var import_client6 = __toESM(require_client(), 1);
|
|
161
|
-
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
162
|
-
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-psa9yf21.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
163
|
-
webIdentityTokenFile: profile.web_identity_token_file,
|
|
164
|
-
roleArn: profile.role_arn,
|
|
165
|
-
roleSessionName: profile.role_session_name,
|
|
166
|
-
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
167
|
-
logger: options.logger,
|
|
168
|
-
parentClientConfig: options.parentClientConfig
|
|
169
|
-
})().then((creds) => import_client6.setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
|
|
170
|
-
|
|
171
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
172
|
-
var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
173
|
-
const data = profiles[profileName];
|
|
174
|
-
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
175
|
-
return resolveStaticCredentials(data, options);
|
|
176
|
-
}
|
|
177
|
-
if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
|
|
178
|
-
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
|
179
|
-
}
|
|
180
|
-
if (isStaticCredsProfile(data)) {
|
|
181
|
-
return resolveStaticCredentials(data, options);
|
|
182
|
-
}
|
|
183
|
-
if (isWebIdentityProfile(data)) {
|
|
184
|
-
return resolveWebIdentityCredentials(data, options);
|
|
185
|
-
}
|
|
186
|
-
if (isProcessProfile(data)) {
|
|
187
|
-
return resolveProcessCredentials(options, profileName);
|
|
188
|
-
}
|
|
189
|
-
if (isSsoProfile(data)) {
|
|
190
|
-
return await resolveSsoCredentials(profileName, data, options);
|
|
191
|
-
}
|
|
192
|
-
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
196
|
-
var fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
197
|
-
const init = {
|
|
198
|
-
..._init,
|
|
199
|
-
parentClientConfig: {
|
|
200
|
-
...callerClientConfig,
|
|
201
|
-
..._init.parentClientConfig
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
205
|
-
const profiles = await parseKnownFiles(init);
|
|
206
|
-
return resolveProfileData(getProfileName({
|
|
207
|
-
profile: _init.profile ?? callerClientConfig?.profile
|
|
208
|
-
}), profiles, init);
|
|
209
|
-
};
|
|
210
|
-
export {
|
|
211
|
-
fromIni
|
|
212
|
-
};
|