@stacksjs/actions 0.70.23 → 0.70.26
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 +3 -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-zzerxbrm.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/ProviderError.js
|
|
2
|
-
class ProviderError extends Error {
|
|
3
|
-
constructor(message, options = true) {
|
|
4
|
-
let logger;
|
|
5
|
-
let tryNextLink = true;
|
|
6
|
-
if (typeof options === "boolean") {
|
|
7
|
-
logger = undefined;
|
|
8
|
-
tryNextLink = options;
|
|
9
|
-
} else if (options != null && typeof options === "object") {
|
|
10
|
-
logger = options.logger;
|
|
11
|
-
tryNextLink = options.tryNextLink ?? true;
|
|
12
|
-
}
|
|
13
|
-
super(message);
|
|
14
|
-
this.name = "ProviderError";
|
|
15
|
-
this.tryNextLink = tryNextLink;
|
|
16
|
-
Object.setPrototypeOf(this, ProviderError.prototype);
|
|
17
|
-
logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
|
|
18
|
-
}
|
|
19
|
-
static from(error, options = true) {
|
|
20
|
-
return Object.assign(new this(error.message, options), error);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js
|
|
25
|
-
class CredentialsProviderError extends ProviderError {
|
|
26
|
-
constructor(message, options = true) {
|
|
27
|
-
super(message, options);
|
|
28
|
-
this.name = "CredentialsProviderError";
|
|
29
|
-
Object.setPrototypeOf(this, CredentialsProviderError.prototype);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/TokenProviderError.js
|
|
33
|
-
class TokenProviderError extends ProviderError {
|
|
34
|
-
constructor(message, options = true) {
|
|
35
|
-
super(message, options);
|
|
36
|
-
this.name = "TokenProviderError";
|
|
37
|
-
Object.setPrototypeOf(this, TokenProviderError.prototype);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/chain.js
|
|
41
|
-
var chain = (...providers) => async () => {
|
|
42
|
-
if (providers.length === 0) {
|
|
43
|
-
throw new ProviderError("No providers in chain");
|
|
44
|
-
}
|
|
45
|
-
let lastProviderError;
|
|
46
|
-
for (const provider of providers) {
|
|
47
|
-
try {
|
|
48
|
-
const credentials = await provider();
|
|
49
|
-
return credentials;
|
|
50
|
-
} catch (err) {
|
|
51
|
-
lastProviderError = err;
|
|
52
|
-
if (err?.tryNextLink) {
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
throw err;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
throw lastProviderError;
|
|
59
|
-
};
|
|
60
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/fromStatic.js
|
|
61
|
-
var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
|
|
62
|
-
// ../../../../node_modules/@smithy/property-provider/dist-es/memoize.js
|
|
63
|
-
var memoize = (provider, isExpired, requiresRefresh) => {
|
|
64
|
-
let resolved;
|
|
65
|
-
let pending;
|
|
66
|
-
let hasResult;
|
|
67
|
-
let isConstant = false;
|
|
68
|
-
const coalesceProvider = async () => {
|
|
69
|
-
if (!pending) {
|
|
70
|
-
pending = provider();
|
|
71
|
-
}
|
|
72
|
-
try {
|
|
73
|
-
resolved = await pending;
|
|
74
|
-
hasResult = true;
|
|
75
|
-
isConstant = false;
|
|
76
|
-
} finally {
|
|
77
|
-
pending = undefined;
|
|
78
|
-
}
|
|
79
|
-
return resolved;
|
|
80
|
-
};
|
|
81
|
-
if (isExpired === undefined) {
|
|
82
|
-
return async (options) => {
|
|
83
|
-
if (!hasResult || options?.forceRefresh) {
|
|
84
|
-
resolved = await coalesceProvider();
|
|
85
|
-
}
|
|
86
|
-
return resolved;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
return async (options) => {
|
|
90
|
-
if (!hasResult || options?.forceRefresh) {
|
|
91
|
-
resolved = await coalesceProvider();
|
|
92
|
-
}
|
|
93
|
-
if (isConstant) {
|
|
94
|
-
return resolved;
|
|
95
|
-
}
|
|
96
|
-
if (requiresRefresh && !requiresRefresh(resolved)) {
|
|
97
|
-
isConstant = true;
|
|
98
|
-
return resolved;
|
|
99
|
-
}
|
|
100
|
-
if (isExpired(resolved)) {
|
|
101
|
-
await coalesceProvider();
|
|
102
|
-
return resolved;
|
|
103
|
-
}
|
|
104
|
-
return resolved;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
export { ProviderError, CredentialsProviderError, TokenProviderError, chain, fromStatic, memoize };
|
package/dist/clean.js
DELETED
package/dist/commit.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-9v6qtbez.js";
|
|
3
|
-
|
|
4
|
-
// src/commit.ts
|
|
5
|
-
import { NpmScript } from "@stacksjs/enums";
|
|
6
|
-
import { log } from "@stacksjs/logging";
|
|
7
|
-
import { projectPath } from "@stacksjs/path";
|
|
8
|
-
import { runNpmScript } from "@stacksjs/utils";
|
|
9
|
-
async function invoke(options) {
|
|
10
|
-
log.info("Committing...");
|
|
11
|
-
await runNpmScript(NpmScript.Commit, { cwd: projectPath(), ...options });
|
|
12
|
-
log.success("Committed");
|
|
13
|
-
}
|
|
14
|
-
async function commit(options) {
|
|
15
|
-
return await invoke(options);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
invoke,
|
|
19
|
-
commit
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { commit };
|
package/dist/component-meta.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ComponentMeta } from 'vue-component-meta';
|
|
2
|
-
|
|
3
|
-
export declare function generateComponentMeta(): void;
|
|
4
|
-
export declare interface ComponentApiProps {
|
|
5
|
-
name: ComponentMeta['props'][number]['name']
|
|
6
|
-
description: ComponentMeta['props'][number]['description']
|
|
7
|
-
|
|
8
|
-
type: ComponentMeta['props'][number]['type']
|
|
9
|
-
default: ComponentMeta['props'][number]['default']
|
|
10
|
-
}
|
|
11
|
-
export declare interface ComponentApi {
|
|
12
|
-
props: ComponentApiProps[]
|
|
13
|
-
events: ComponentMeta['events']
|
|
14
|
-
slots: ComponentMeta['slots']
|
|
15
|
-
}
|
package/dist/components.d.ts
DELETED
package/dist/copy-types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const destinations: Array<Array<unknown | unknown> | Array<unknown | unknown> | Array<((...args: any[]) => unknown) | ((...args: any[]) => unknown)>>;
|
package/dist/copy-types.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
|
|
4
|
-
// src/copy-types.ts
|
|
5
|
-
import { frameworkPath } from "@stacksjs/path";
|
|
6
|
-
import { copyFolder } from "@stacksjs/storage";
|
|
7
|
-
var destinations = [
|
|
8
|
-
[frameworkPath("dist/types/components"), frameworkPath("defaults/components/vue/dist/types")],
|
|
9
|
-
[frameworkPath("dist/types/components"), frameworkPath("defaults/components/web/dist/types")],
|
|
10
|
-
[frameworkPath("dist/types/functions"), frameworkPath("defaults/functions/dist/types")]
|
|
11
|
-
];
|
|
12
|
-
destinations.forEach(([src, dest]) => {
|
|
13
|
-
copyFolder(src, dest);
|
|
14
|
-
});
|
package/dist/core.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const dirs: unknown;
|
package/dist/database/seed.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
seed
|
|
4
|
-
} from "../chunk-hvfeg6n6.js";
|
|
5
|
-
import"../chunk-mdj7x1vs.js";
|
|
6
|
-
import"../chunk-p0c688mg.js";
|
|
7
|
-
import"../chunk-qkm8e752.js";
|
|
8
|
-
import"../chunk-a13x0e43.js";
|
|
9
|
-
import"../chunk-mdqphqep.js";
|
|
10
|
-
import"../chunk-qhh0v93n.js";
|
|
11
|
-
import"../chunk-ccnf3w1b.js";
|
|
12
|
-
import"../chunk-7s5qcjkt.js";
|
|
13
|
-
import"../chunk-bf8bq8pc.js";
|
|
14
|
-
import"../chunk-b5g5w1hh.js";
|
|
15
|
-
import"../chunk-zzerxbrm.js";
|
|
16
|
-
import"../chunk-veja9rez.js";
|
|
17
|
-
import"../chunk-a7k3cdby.js";
|
|
18
|
-
import"../chunk-frw3va9v.js";
|
|
19
|
-
import"../chunk-saqpg5nd.js";
|
|
20
|
-
import"../chunk-2dvnt46s.js";
|
|
21
|
-
import"../chunk-w6fdq4hk.js";
|
|
22
|
-
import"../chunk-wkwtsvym.js";
|
|
23
|
-
import"../chunk-9v6qtbez.js";
|
|
24
|
-
|
|
25
|
-
// src/database/seed.ts
|
|
26
|
-
import process from "node:process";
|
|
27
|
-
import { log } from "@stacksjs/cli";
|
|
28
|
-
log.info("Seeding database...");
|
|
29
|
-
await seed();
|
|
30
|
-
process.exit(0);
|
package/dist/database.d.ts
DELETED
package/dist/deploy/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../chunk-wkwtsvym.js";
|
|
3
|
-
import"../chunk-9v6qtbez.js";
|
|
4
|
-
|
|
5
|
-
// src/deploy/index.ts
|
|
6
|
-
import process from "node:process";
|
|
7
|
-
import { log, runCommand } from "@stacksjs/cli";
|
|
8
|
-
import { config } from "@stacksjs/config";
|
|
9
|
-
import { path as p } from "@stacksjs/path";
|
|
10
|
-
import { storage } from "@stacksjs/storage";
|
|
11
|
-
log.info("Building the framework...");
|
|
12
|
-
await runCommand("bun run build", {
|
|
13
|
-
cwd: p.frameworkPath()
|
|
14
|
-
});
|
|
15
|
-
log.success("Framework built");
|
|
16
|
-
if (storage.hasFiles(p.projectPath("docs"))) {
|
|
17
|
-
log.info("Building the documentation...");
|
|
18
|
-
await runCommand("bun run build", {
|
|
19
|
-
cwd: p.frameworkPath("docs")
|
|
20
|
-
});
|
|
21
|
-
log.success("Documentation built");
|
|
22
|
-
}
|
|
23
|
-
if (config.app.docMode !== true) {
|
|
24
|
-
log.info("Building the views...");
|
|
25
|
-
await runCommand("bun run build", {
|
|
26
|
-
cwd: p.frameworkPath("views/web")
|
|
27
|
-
});
|
|
28
|
-
log.success("Views built");
|
|
29
|
-
}
|
|
30
|
-
log.info("Building the server...");
|
|
31
|
-
await runCommand("bun build.ts", {
|
|
32
|
-
cwd: p.frameworkPath("server")
|
|
33
|
-
});
|
|
34
|
-
log.success("Server built");
|
|
35
|
-
await runCommand("bun zip.ts", {
|
|
36
|
-
cwd: p.corePath("cloud")
|
|
37
|
-
});
|
|
38
|
-
log.info("Deploying...");
|
|
39
|
-
var profile = process.env.AWS_PROFILE ?? "stacks";
|
|
40
|
-
var result = await runCommand(`bunx --bun cdk deploy --require-approval never --profile="${profile}"`, {
|
|
41
|
-
cwd: p.frameworkCloudPath()
|
|
42
|
-
});
|
|
43
|
-
if (result.isErr()) {
|
|
44
|
-
log.error(result.error);
|
|
45
|
-
process.exit(1 /* FatalError */);
|
|
46
|
-
}
|
|
47
|
-
var t = result.value;
|
|
48
|
-
await t.exited;
|
package/dist/dev/components.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// src/dev/components.ts
|
|
3
|
-
import { parseOptions, runCommand } from "@stacksjs/cli";
|
|
4
|
-
import { libsPath } from "@stacksjs/path";
|
|
5
|
-
var options = parseOptions();
|
|
6
|
-
if (options.verbose)
|
|
7
|
-
console.log("dev components options", options);
|
|
8
|
-
await runCommand(`bun run dev`, {
|
|
9
|
-
...options,
|
|
10
|
-
cwd: libsPath("components/vue")
|
|
11
|
-
});
|
package/dist/dev/docs.js
DELETED
package/dist/dev/index.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../chunk-ze46550n.js";
|
|
3
|
-
import {
|
|
4
|
-
runAction
|
|
5
|
-
} from "../helpers/utils.js";
|
|
6
|
-
import"../chunk-9v6qtbez.js";
|
|
7
|
-
|
|
8
|
-
// src/dev/index.ts
|
|
9
|
-
import { Action } from "@stacksjs/enums";
|
|
10
|
-
import { log } from "@stacksjs/logging";
|
|
11
|
-
async function runDevServer(options) {
|
|
12
|
-
log.info("Starting your Frontend Engine...");
|
|
13
|
-
await runAction(Action.Dev, options);
|
|
14
|
-
}
|
|
15
|
-
async function runFrontendDevServer(options) {
|
|
16
|
-
log.info("Starting your UI Engine...");
|
|
17
|
-
await runAction(Action.Dev, options);
|
|
18
|
-
}
|
|
19
|
-
async function runBackendDevServer(options) {
|
|
20
|
-
runApiDevServer(options);
|
|
21
|
-
}
|
|
22
|
-
async function runApiDevServer(options) {
|
|
23
|
-
log.info("Starting your API...");
|
|
24
|
-
await runAction(Action.DevApi, options);
|
|
25
|
-
}
|
|
26
|
-
async function runComponentsDevServer(options) {
|
|
27
|
-
log.info("Starting your Library Engine...");
|
|
28
|
-
await runAction(Action.DevComponents, options);
|
|
29
|
-
}
|
|
30
|
-
async function runDashboardDevServer(options) {
|
|
31
|
-
log.info("Starting your Dashboard...");
|
|
32
|
-
await runAction(Action.DevDashboard, options);
|
|
33
|
-
}
|
|
34
|
-
async function runSystemTrayDevServer(options) {
|
|
35
|
-
log.info("Starting your System Tray...");
|
|
36
|
-
await runAction(Action.DevSystemTray, options);
|
|
37
|
-
}
|
|
38
|
-
async function runDesktopDevServer(options) {
|
|
39
|
-
log.info("Starting your Desktop Engine...");
|
|
40
|
-
await runAction(Action.DevDesktop, options);
|
|
41
|
-
}
|
|
42
|
-
async function runDocsDevServer(options) {
|
|
43
|
-
log.info("Starting your Docs Engine...");
|
|
44
|
-
await runAction(Action.DevDocs, options);
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
runSystemTrayDevServer,
|
|
48
|
-
runFrontendDevServer,
|
|
49
|
-
runDocsDevServer,
|
|
50
|
-
runDevServer,
|
|
51
|
-
runDesktopDevServer,
|
|
52
|
-
runDashboardDevServer,
|
|
53
|
-
runComponentsDevServer,
|
|
54
|
-
runBackendDevServer,
|
|
55
|
-
runApiDevServer
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export { runDevServer, runFrontendDevServer, runBackendDevServer, runApiDevServer, runComponentsDevServer, runDashboardDevServer, runSystemTrayDevServer, runDesktopDevServer, runDocsDevServer };
|
package/dist/env-files.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare let type: string | undefined;
|
|
2
|
-
declare const env: unknown;
|
|
3
|
-
export declare const envKeys: Array<((...args: any[]) => unknown)>;
|
|
4
|
-
export declare type EnvKey = typeof envKeys[number]
|
|
5
|
-
`
|
|
6
|
-
|
|
7
|
-
await storage.writeFile(p.frameworkPath('env.ts'), env)
|
|
8
|
-
|
|
9
|
-
log.info(' - ./storage/framework/env.d.ts')
|
package/dist/examples.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-wkwtsvym.js";
|
|
3
|
-
import"./chunk-9v6qtbez.js";
|
|
4
|
-
|
|
5
|
-
// src/examples.ts
|
|
6
|
-
import process from "node:process";
|
|
7
|
-
import { NpmScript } from "@stacksjs/enums";
|
|
8
|
-
import { log } from "@stacksjs/logging";
|
|
9
|
-
import { hasComponents } from "@stacksjs/storage";
|
|
10
|
-
import { runNpmScript } from "@stacksjs/utils";
|
|
11
|
-
async function invoke(options) {
|
|
12
|
-
if (options.components || options.vue) {
|
|
13
|
-
await componentExample(options);
|
|
14
|
-
} else if (options.webComponents || options.elements) {
|
|
15
|
-
await webComponentExample(options);
|
|
16
|
-
} else {
|
|
17
|
-
log.error("An unsupported option was used. Please try again, check the documentation & report the issue, if needed.");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
async function examples(options) {
|
|
21
|
-
return await invoke(options);
|
|
22
|
-
}
|
|
23
|
-
async function componentExample(options) {
|
|
24
|
-
if (hasComponents()) {
|
|
25
|
-
await runNpmScript(NpmScript.ExampleVue, options);
|
|
26
|
-
log.success("Your component library was built successfully");
|
|
27
|
-
} else {
|
|
28
|
-
log.info("No components found.");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
async function webComponentExample(options) {
|
|
32
|
-
if (hasComponents()) {
|
|
33
|
-
log.info("Building your Web Component library...");
|
|
34
|
-
await runNpmScript(NpmScript.BuildWebComponents, options);
|
|
35
|
-
log.success("Your Web Component library was built successfully");
|
|
36
|
-
} else {
|
|
37
|
-
log.info("No components found.");
|
|
38
|
-
process.exit(1 /* FatalError */);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
webComponentExample,
|
|
43
|
-
invoke,
|
|
44
|
-
examples,
|
|
45
|
-
componentExample
|
|
46
|
-
};
|
package/dist/feature.d.ts
DELETED
package/dist/find-projects.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const options: unknown;
|
package/dist/fix.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const options: unknown;
|
package/dist/flush.d.ts
DELETED
package/dist/fresh.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const result: unknown;
|
package/dist/fresh.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-wkwtsvym.js";
|
|
3
|
-
import"./chunk-9v6qtbez.js";
|
|
4
|
-
|
|
5
|
-
// src/fresh.ts
|
|
6
|
-
import process from "node:process";
|
|
7
|
-
import { runCommand } from "@stacksjs/cli";
|
|
8
|
-
import { handleError } from "@stacksjs/error-handling";
|
|
9
|
-
import { log } from "@stacksjs/logging";
|
|
10
|
-
import { projectPath } from "@stacksjs/path";
|
|
11
|
-
import { cleanProject } from "@stacksjs/utils";
|
|
12
|
-
log.info("Cleaning project...");
|
|
13
|
-
await cleanProject();
|
|
14
|
-
log.info("Installing dependencies...");
|
|
15
|
-
var result = await runCommand("bun install", {
|
|
16
|
-
cwd: projectPath()
|
|
17
|
-
});
|
|
18
|
-
if (result.isErr()) {
|
|
19
|
-
handleError(result.error);
|
|
20
|
-
process.exit(1 /* FatalError */);
|
|
21
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
import {
|
|
4
|
-
generateComponentMeta
|
|
5
|
-
} from "../helpers/component-meta.js";
|
|
6
|
-
import"../chunk-w6fdq4hk.js";
|
|
7
|
-
import"../chunk-9v6qtbez.js";
|
|
8
|
-
|
|
9
|
-
// src/generate/component-meta.ts
|
|
10
|
-
import { log } from "@stacksjs/logging";
|
|
11
|
-
import { hasComponents } from "@stacksjs/storage";
|
|
12
|
-
log.info("Generating component meta...");
|
|
13
|
-
if (hasComponents())
|
|
14
|
-
generateComponentMeta();
|
|
15
|
-
else
|
|
16
|
-
log.info("No components found. Skipping component meta generation.");
|
|
17
|
-
log.success("Generated component meta.");
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
import {
|
|
4
|
-
generateVsCodeCustomData,
|
|
5
|
-
generateWebTypes
|
|
6
|
-
} from "../helpers/vscode-custom-data.js";
|
|
7
|
-
import"../chunk-494jp8d5.js";
|
|
8
|
-
import"../chunk-9v6qtbez.js";
|
|
9
|
-
|
|
10
|
-
// src/generate/ide-helpers.ts
|
|
11
|
-
import { log } from "@stacksjs/logging";
|
|
12
|
-
import { hasComponents } from "@stacksjs/storage";
|
|
13
|
-
if (hasComponents()) {
|
|
14
|
-
await generateWebTypes();
|
|
15
|
-
await generateVsCodeCustomData();
|
|
16
|
-
} else {
|
|
17
|
-
log.info("No components found. Skipping IDE helper generation.");
|
|
18
|
-
}
|