wrangler 2.9.0 → 2.9.1
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/miniflare-dist/index.mjs +1 -14
- package/package.json +2 -2
- package/src/__tests__/d1/d1.test.ts +1 -4
- package/src/__tests__/d1/migrate.test.ts +93 -0
- package/src/__tests__/generate.test.ts +1 -1
- package/src/__tests__/helpers/end-event-loop.ts +6 -0
- package/src/__tests__/helpers/mock-get-pages-upload-token.ts +25 -0
- package/src/__tests__/helpers/mock-set-timeout.ts +16 -0
- package/src/__tests__/index.test.ts +1 -4
- package/src/__tests__/init.test.ts +1 -1
- package/src/__tests__/pages/deployment-list.test.ts +78 -0
- package/src/__tests__/pages/pages.test.ts +81 -0
- package/src/__tests__/pages/project-create.test.ts +63 -0
- package/src/__tests__/pages/project-list.test.ts +108 -0
- package/src/__tests__/pages/project-upload.test.ts +481 -0
- package/src/__tests__/pages/publish.test.ts +2221 -0
- package/src/__tests__/tsconfig.tsbuildinfo +1 -1
- package/src/__tests__/worker-namespace.test.ts +1 -1
- package/src/d1/execute.tsx +1 -1
- package/src/d1/migrations/apply.tsx +7 -5
- package/src/d1/migrations/create.tsx +3 -1
- package/src/d1/migrations/list.tsx +13 -5
- package/src/miniflare-cli/tsconfig.tsbuildinfo +1 -1
- package/src/pages/functions/tsconfig.tsbuildinfo +1 -1
- package/templates/tsconfig.init.json +1 -1
- package/templates/tsconfig.tsbuildinfo +1 -1
- package/wrangler-dist/cli.js +227 -587
- package/src/__tests__/pages.test.ts +0 -2905
package/wrangler-dist/cli.js
CHANGED
|
@@ -109140,7 +109140,7 @@ async function generateHandler({
|
|
|
109140
109140
|
return new HTMLRewriter().on("body", {
|
|
109141
109141
|
element(e2) {
|
|
109142
109142
|
e2.append(
|
|
109143
|
-
`<!-- Cloudflare Pages Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "${metadata.analytics?.token}"}'
|
|
109143
|
+
`<!-- Cloudflare Pages Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "${metadata.analytics?.token}"}'></script><!-- Cloudflare Pages Analytics -->`,
|
|
109144
109144
|
{ html: true }
|
|
109145
109145
|
);
|
|
109146
109146
|
}
|
|
@@ -121722,7 +121722,7 @@ var import_websocket_server = __toESM(require_websocket_server2(), 1);
|
|
|
121722
121722
|
var wrapper_default = import_websocket.default;
|
|
121723
121723
|
|
|
121724
121724
|
// package.json
|
|
121725
|
-
var version = "2.9.
|
|
121725
|
+
var version = "2.9.1";
|
|
121726
121726
|
var package_default = {
|
|
121727
121727
|
name: "wrangler",
|
|
121728
121728
|
version,
|
|
@@ -121830,7 +121830,7 @@ var package_default = {
|
|
|
121830
121830
|
"@miniflare/durable-objects": "2.11.0",
|
|
121831
121831
|
"blake3-wasm": "^2.1.5",
|
|
121832
121832
|
chokidar: "^3.5.3",
|
|
121833
|
-
esbuild: "0.
|
|
121833
|
+
esbuild: "0.16.3",
|
|
121834
121834
|
miniflare: "2.11.0",
|
|
121835
121835
|
nanoid: "^3.3.3",
|
|
121836
121836
|
"path-to-regexp": "^6.2.0",
|
|
@@ -127960,14 +127960,17 @@ function Remote(props) {
|
|
|
127960
127960
|
}
|
|
127961
127961
|
);
|
|
127962
127962
|
});
|
|
127963
|
-
return accountId === void 0 && accountChoices !== void 0 ? /* @__PURE__ */ import_react4.default.createElement(
|
|
127964
|
-
|
|
127965
|
-
|
|
127966
|
-
|
|
127967
|
-
|
|
127968
|
-
|
|
127969
|
-
|
|
127970
|
-
|
|
127963
|
+
return accountId === void 0 && accountChoices !== void 0 ? /* @__PURE__ */ import_react4.default.createElement(
|
|
127964
|
+
ChooseAccount,
|
|
127965
|
+
{
|
|
127966
|
+
accounts: accountChoices,
|
|
127967
|
+
onSelect: (selectedAccount) => {
|
|
127968
|
+
saveAccountToCache(selectedAccount);
|
|
127969
|
+
setAccountId(selectedAccount.id);
|
|
127970
|
+
},
|
|
127971
|
+
onError: (err) => errorHandler(err)
|
|
127972
|
+
}
|
|
127973
|
+
) : null;
|
|
127971
127974
|
}
|
|
127972
127975
|
function useWorker(props) {
|
|
127973
127976
|
const [session, setSession] = (0, import_react4.useState)();
|
|
@@ -128287,19 +128290,20 @@ function getWorkerAccountAndContext(props) {
|
|
|
128287
128290
|
return { workerAccount, workerContext };
|
|
128288
128291
|
}
|
|
128289
128292
|
function ChooseAccount(props) {
|
|
128290
|
-
return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(import_ink.Text, {
|
|
128291
|
-
|
|
128292
|
-
|
|
128293
|
-
|
|
128294
|
-
|
|
128295
|
-
|
|
128296
|
-
|
|
128297
|
-
|
|
128298
|
-
|
|
128299
|
-
|
|
128300
|
-
|
|
128293
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(import_ink.Text, { bold: true }, "Select an account from below:"), /* @__PURE__ */ import_react4.default.createElement(
|
|
128294
|
+
import_ink_select_input.default,
|
|
128295
|
+
{
|
|
128296
|
+
items: props.accounts.map((item) => ({
|
|
128297
|
+
key: item.id,
|
|
128298
|
+
label: item.name,
|
|
128299
|
+
value: item
|
|
128300
|
+
})),
|
|
128301
|
+
onSelect: (item) => {
|
|
128302
|
+
logger.log(`Using account: "${item.value.name} - ${item.value.id}"`);
|
|
128303
|
+
props.onSelect({ id: item.value.id, name: item.value.name });
|
|
128304
|
+
}
|
|
128301
128305
|
}
|
|
128302
|
-
|
|
128306
|
+
));
|
|
128303
128307
|
}
|
|
128304
128308
|
|
|
128305
128309
|
// src/dev/use-esbuild.ts
|
|
@@ -128533,12 +128537,7 @@ function useDevRegistry(name, services, durableObjects, mode) {
|
|
|
128533
128537
|
function DevImplementation(props) {
|
|
128534
128538
|
validateDevProps(props);
|
|
128535
128539
|
const { isRawModeSupported } = (0, import_ink3.useStdin)();
|
|
128536
|
-
return props.showInteractiveDevSession ?? isRawModeSupported ? /* @__PURE__ */ import_react6.default.createElement(InteractiveDevSession, {
|
|
128537
|
-
...props
|
|
128538
|
-
}) : /* @__PURE__ */ import_react6.default.createElement(DevSession, {
|
|
128539
|
-
...props,
|
|
128540
|
-
local: props.initialMode === "local"
|
|
128541
|
-
});
|
|
128540
|
+
return props.showInteractiveDevSession ?? isRawModeSupported ? /* @__PURE__ */ import_react6.default.createElement(InteractiveDevSession, { ...props }) : /* @__PURE__ */ import_react6.default.createElement(DevSession, { ...props, local: props.initialMode === "local" });
|
|
128542
128541
|
}
|
|
128543
128542
|
var ip;
|
|
128544
128543
|
var port;
|
|
@@ -128565,25 +128564,7 @@ function InteractiveDevSession(props) {
|
|
|
128565
128564
|
}
|
|
128566
128565
|
}
|
|
128567
128566
|
};
|
|
128568
|
-
return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(DevSession, {
|
|
128569
|
-
...props,
|
|
128570
|
-
local: toggles.local,
|
|
128571
|
-
onReady
|
|
128572
|
-
}), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Box, {
|
|
128573
|
-
borderStyle: "round",
|
|
128574
|
-
paddingLeft: 1,
|
|
128575
|
-
paddingRight: 1
|
|
128576
|
-
}, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, {
|
|
128577
|
-
bold: true
|
|
128578
|
-
}, "[b]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " open a browser, "), props.inspect ? /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, {
|
|
128579
|
-
bold: true
|
|
128580
|
-
}, "[d]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " open Devtools, ")) : null, !props.forceLocal ? /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, {
|
|
128581
|
-
bold: true
|
|
128582
|
-
}, "[l]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " ", toggles.local ? "turn off" : "turn on", " local mode, ")) : null, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, {
|
|
128583
|
-
bold: true
|
|
128584
|
-
}, "[c]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " clear console, "), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, {
|
|
128585
|
-
bold: true
|
|
128586
|
-
}, "[x]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " to exit")));
|
|
128567
|
+
return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(DevSession, { ...props, local: toggles.local, onReady }), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Box, { borderStyle: "round", paddingLeft: 1, paddingRight: 1 }, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, { bold: true }, "[b]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " open a browser, "), props.inspect ? /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, { bold: true }, "[d]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " open Devtools, ")) : null, !props.forceLocal ? /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, { bold: true }, "[l]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " ", toggles.local ? "turn off" : "turn on", " local mode, ")) : null, /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, { bold: true }, "[c]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " clear console, "), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, { bold: true }, "[x]"), /* @__PURE__ */ import_react6.default.createElement(import_ink3.Text, null, " to exit")));
|
|
128587
128568
|
}
|
|
128588
128569
|
function DevSession(props) {
|
|
128589
128570
|
useCustomBuild(props.entry, props.build);
|
|
@@ -128660,58 +128641,64 @@ function DevSession(props) {
|
|
|
128660
128641
|
props.onReady(finalIp, finalPort);
|
|
128661
128642
|
}
|
|
128662
128643
|
};
|
|
128663
|
-
return props.local ? /* @__PURE__ */ import_react6.default.createElement(
|
|
128664
|
-
|
|
128665
|
-
|
|
128666
|
-
|
|
128667
|
-
|
|
128668
|
-
|
|
128669
|
-
|
|
128670
|
-
|
|
128671
|
-
|
|
128672
|
-
|
|
128673
|
-
|
|
128674
|
-
|
|
128675
|
-
|
|
128676
|
-
|
|
128677
|
-
|
|
128678
|
-
|
|
128679
|
-
|
|
128680
|
-
|
|
128681
|
-
|
|
128682
|
-
|
|
128683
|
-
|
|
128684
|
-
|
|
128685
|
-
|
|
128686
|
-
|
|
128687
|
-
|
|
128688
|
-
|
|
128689
|
-
|
|
128690
|
-
|
|
128691
|
-
|
|
128692
|
-
|
|
128693
|
-
|
|
128694
|
-
|
|
128695
|
-
|
|
128696
|
-
|
|
128697
|
-
|
|
128698
|
-
|
|
128699
|
-
|
|
128700
|
-
|
|
128701
|
-
|
|
128702
|
-
|
|
128703
|
-
|
|
128704
|
-
|
|
128705
|
-
|
|
128706
|
-
|
|
128707
|
-
|
|
128708
|
-
|
|
128709
|
-
|
|
128710
|
-
|
|
128711
|
-
|
|
128712
|
-
|
|
128713
|
-
|
|
128714
|
-
|
|
128644
|
+
return props.local ? /* @__PURE__ */ import_react6.default.createElement(
|
|
128645
|
+
Local,
|
|
128646
|
+
{
|
|
128647
|
+
name: props.name,
|
|
128648
|
+
bundle,
|
|
128649
|
+
format: props.entry.format,
|
|
128650
|
+
compatibilityDate: props.compatibilityDate,
|
|
128651
|
+
compatibilityFlags: props.compatibilityFlags,
|
|
128652
|
+
usageModel: props.usageModel,
|
|
128653
|
+
bindings: props.bindings,
|
|
128654
|
+
workerDefinitions,
|
|
128655
|
+
assetPaths: props.assetPaths,
|
|
128656
|
+
initialPort: props.initialPort,
|
|
128657
|
+
initialIp: props.initialIp,
|
|
128658
|
+
rules: props.rules,
|
|
128659
|
+
inspectorPort: props.inspectorPort,
|
|
128660
|
+
localPersistencePath: props.localPersistencePath,
|
|
128661
|
+
liveReload: props.liveReload,
|
|
128662
|
+
crons: props.crons,
|
|
128663
|
+
queueConsumers: props.queueConsumers,
|
|
128664
|
+
localProtocol: props.localProtocol,
|
|
128665
|
+
localUpstream: props.localUpstream,
|
|
128666
|
+
logPrefix: props.logPrefix,
|
|
128667
|
+
inspect: props.inspect,
|
|
128668
|
+
onReady: announceAndOnReady,
|
|
128669
|
+
enablePagesAssetsServiceBinding: props.enablePagesAssetsServiceBinding,
|
|
128670
|
+
experimentalLocal: props.experimentalLocal,
|
|
128671
|
+
accountId: props.accountId,
|
|
128672
|
+
experimentalLocalRemoteKv: props.experimentalLocalRemoteKv
|
|
128673
|
+
}
|
|
128674
|
+
) : /* @__PURE__ */ import_react6.default.createElement(
|
|
128675
|
+
Remote,
|
|
128676
|
+
{
|
|
128677
|
+
name: props.name,
|
|
128678
|
+
bundle,
|
|
128679
|
+
format: props.entry.format,
|
|
128680
|
+
accountId: props.accountId,
|
|
128681
|
+
bindings: props.bindings,
|
|
128682
|
+
assetPaths: props.assetPaths,
|
|
128683
|
+
isWorkersSite: props.isWorkersSite,
|
|
128684
|
+
port: props.initialPort,
|
|
128685
|
+
ip: props.initialIp,
|
|
128686
|
+
localProtocol: props.localProtocol,
|
|
128687
|
+
inspectorPort: props.inspectorPort,
|
|
128688
|
+
inspect: props.inspect,
|
|
128689
|
+
compatibilityDate: props.compatibilityDate,
|
|
128690
|
+
compatibilityFlags: props.compatibilityFlags,
|
|
128691
|
+
usageModel: props.usageModel,
|
|
128692
|
+
env: props.env,
|
|
128693
|
+
legacyEnv: props.legacyEnv,
|
|
128694
|
+
zone: props.zone,
|
|
128695
|
+
host: props.host,
|
|
128696
|
+
routes: props.routes,
|
|
128697
|
+
onReady: announceAndOnReady,
|
|
128698
|
+
sourceMapPath: bundle?.sourceMapPath,
|
|
128699
|
+
sendMetrics: props.sendMetrics
|
|
128700
|
+
}
|
|
128701
|
+
);
|
|
128715
128702
|
}
|
|
128716
128703
|
function useTmpDir() {
|
|
128717
128704
|
const [directory, setDirectory] = (0, import_react6.useState)();
|
|
@@ -135331,9 +135318,7 @@ async function Handler({
|
|
|
135331
135318
|
logger.log(JSON.stringify(dbs, null, 2));
|
|
135332
135319
|
} else {
|
|
135333
135320
|
logger.log(d1BetaWarning);
|
|
135334
|
-
(0, import_ink4.render)(/* @__PURE__ */ import_react7.default.createElement(import_ink_table.default, {
|
|
135335
|
-
data: dbs
|
|
135336
|
-
}));
|
|
135321
|
+
(0, import_ink4.render)(/* @__PURE__ */ import_react7.default.createElement(import_ink_table.default, { data: dbs }));
|
|
135337
135322
|
}
|
|
135338
135323
|
}
|
|
135339
135324
|
var listDatabases = async (accountId) => {
|
|
@@ -135418,10 +135403,13 @@ var ListHandler = withConfig(
|
|
|
135418
135403
|
);
|
|
135419
135404
|
const backups = await listBackups(accountId, db.uuid);
|
|
135420
135405
|
(0, import_ink5.render)(
|
|
135421
|
-
/* @__PURE__ */ import_react8.default.createElement(
|
|
135422
|
-
|
|
135423
|
-
|
|
135424
|
-
|
|
135406
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
|
135407
|
+
import_ink_table2.default,
|
|
135408
|
+
{
|
|
135409
|
+
data: backups,
|
|
135410
|
+
columns: ["created_at", "id", "num_tables", "size"]
|
|
135411
|
+
}
|
|
135412
|
+
)
|
|
135425
135413
|
);
|
|
135426
135414
|
}
|
|
135427
135415
|
);
|
|
@@ -135460,10 +135448,13 @@ var CreateHandler = withConfig(
|
|
|
135460
135448
|
);
|
|
135461
135449
|
const backup = await createBackup(accountId, db.uuid);
|
|
135462
135450
|
(0, import_ink5.render)(
|
|
135463
|
-
/* @__PURE__ */ import_react8.default.createElement(
|
|
135464
|
-
|
|
135465
|
-
|
|
135466
|
-
|
|
135451
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
|
135452
|
+
import_ink_table2.default,
|
|
135453
|
+
{
|
|
135454
|
+
data: [backup],
|
|
135455
|
+
columns: ["created_at", "id", "num_tables", "size", "state"]
|
|
135456
|
+
}
|
|
135457
|
+
)
|
|
135467
135458
|
);
|
|
135468
135459
|
}
|
|
135469
135460
|
);
|
|
@@ -135584,9 +135575,7 @@ async function Handler2({
|
|
|
135584
135575
|
throw e2;
|
|
135585
135576
|
}
|
|
135586
135577
|
(0, import_ink6.render)(
|
|
135587
|
-
/* @__PURE__ */ import_react9.default.createElement(import_ink6.Box, {
|
|
135588
|
-
flexDirection: "column"
|
|
135589
|
-
}, /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "\u2705 Successfully created DB '", db.name, "'!"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "\xA0"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "Add the following to your wrangler.toml to connect to it from a Worker:"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "\xA0"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "[[ d1_databases ]]"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, 'binding = "DB" # i.e. available in your Worker on env.DB'), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, 'database_name = "', db.name, '"'), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, 'database_id = "', db.uuid, '"'))
|
|
135578
|
+
/* @__PURE__ */ import_react9.default.createElement(import_ink6.Box, { flexDirection: "column" }, /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "\u2705 Successfully created DB '", db.name, "'!"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "\xA0"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "Add the following to your wrangler.toml to connect to it from a Worker:"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "\xA0"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, "[[ d1_databases ]]"), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, 'binding = "DB" # i.e. available in your Worker on env.DB'), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, 'database_name = "', db.name, '"'), /* @__PURE__ */ import_react9.default.createElement(import_ink6.Text, null, 'database_id = "', db.uuid, '"'))
|
|
135590
135579
|
);
|
|
135591
135580
|
}
|
|
135592
135581
|
|
|
@@ -135752,7 +135741,7 @@ function Options4(yargs) {
|
|
|
135752
135741
|
describe: "Execute commands/files against a local DB for use with wrangler dev",
|
|
135753
135742
|
type: "boolean"
|
|
135754
135743
|
}).option("file", {
|
|
135755
|
-
describe: "A .sql file to
|
|
135744
|
+
describe: "A .sql file to ingest",
|
|
135756
135745
|
type: "string"
|
|
135757
135746
|
}).option("command", {
|
|
135758
135747
|
describe: "A single SQL statement to execute",
|
|
@@ -135818,18 +135807,12 @@ var Handler4 = async (args) => {
|
|
|
135818
135807
|
return;
|
|
135819
135808
|
if (isInteractive2 && !json) {
|
|
135820
135809
|
(0, import_ink7.render)(
|
|
135821
|
-
/* @__PURE__ */ import_react10.default.createElement(import_ink7.Static, {
|
|
135822
|
-
items: response
|
|
135823
|
-
}, (result) => {
|
|
135810
|
+
/* @__PURE__ */ import_react10.default.createElement(import_ink7.Static, { items: response }, (result) => {
|
|
135824
135811
|
if (!Array.isArray(result)) {
|
|
135825
135812
|
const { results, query } = result;
|
|
135826
135813
|
if (Array.isArray(results) && results.length > 0) {
|
|
135827
135814
|
const shortQuery = shorten(query, 48);
|
|
135828
|
-
return /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, shortQuery ? /* @__PURE__ */ import_react10.default.createElement(import_ink7.Text, {
|
|
135829
|
-
dimColor: true
|
|
135830
|
-
}, shortQuery) : null, /* @__PURE__ */ import_react10.default.createElement(import_ink_table3.default, {
|
|
135831
|
-
data: results
|
|
135832
|
-
}));
|
|
135815
|
+
return /* @__PURE__ */ import_react10.default.createElement(import_react10.default.Fragment, null, shortQuery ? /* @__PURE__ */ import_react10.default.createElement(import_ink7.Text, { dimColor: true }, shortQuery) : null, /* @__PURE__ */ import_react10.default.createElement(import_ink_table3.default, { data: results }));
|
|
135833
135816
|
}
|
|
135834
135817
|
}
|
|
135835
135818
|
})
|
|
@@ -136066,7 +136049,7 @@ function ApplyOptions(yargs) {
|
|
|
136066
136049
|
var ApplyHandler = withConfig(
|
|
136067
136050
|
async ({ config, database, local, persistTo }) => {
|
|
136068
136051
|
logger.log(d1BetaWarning);
|
|
136069
|
-
const databaseInfo =
|
|
136052
|
+
const databaseInfo = getDatabaseInfoFromConfig(config, database);
|
|
136070
136053
|
if (!databaseInfo && !local) {
|
|
136071
136054
|
throw new Error(
|
|
136072
136055
|
`Can't find a DB with name/binding '${database}' in local config. Check info in wrangler.toml...`
|
|
@@ -136080,16 +136063,16 @@ var ApplyHandler = withConfig(
|
|
|
136080
136063
|
databaseInfo?.migrationsFolderPath ?? DEFAULT_MIGRATION_PATH,
|
|
136081
136064
|
false
|
|
136082
136065
|
);
|
|
136083
|
-
const
|
|
136066
|
+
const migrationsTableName = databaseInfo?.migrationsTableName ?? DEFAULT_MIGRATION_TABLE;
|
|
136084
136067
|
await initMigrationsTable(
|
|
136085
|
-
|
|
136068
|
+
migrationsTableName,
|
|
136086
136069
|
local,
|
|
136087
136070
|
config,
|
|
136088
136071
|
database,
|
|
136089
136072
|
persistTo
|
|
136090
136073
|
);
|
|
136091
136074
|
const unappliedMigrations = (await getUnappliedMigrations(
|
|
136092
|
-
|
|
136075
|
+
migrationsTableName,
|
|
136093
136076
|
migrationsPath,
|
|
136094
136077
|
local,
|
|
136095
136078
|
config,
|
|
@@ -136116,12 +136099,7 @@ var ApplyHandler = withConfig(
|
|
|
136116
136099
|
return;
|
|
136117
136100
|
}
|
|
136118
136101
|
(0, import_ink8.render)(
|
|
136119
|
-
/* @__PURE__ */ import_react11.default.createElement(import_ink8.Box, {
|
|
136120
|
-
flexDirection: "column"
|
|
136121
|
-
}, /* @__PURE__ */ import_react11.default.createElement(import_ink8.Text, null, "Migrations to be applied:"), /* @__PURE__ */ import_react11.default.createElement(import_ink_table4.default, {
|
|
136122
|
-
data: unappliedMigrations,
|
|
136123
|
-
columns: ["Name"]
|
|
136124
|
-
}))
|
|
136102
|
+
/* @__PURE__ */ import_react11.default.createElement(import_ink8.Box, { flexDirection: "column" }, /* @__PURE__ */ import_react11.default.createElement(import_ink8.Text, null, "Migrations to be applied:"), /* @__PURE__ */ import_react11.default.createElement(import_ink_table4.default, { data: unappliedMigrations, columns: ["Name"] }))
|
|
136125
136103
|
);
|
|
136126
136104
|
const ok = await confirm(
|
|
136127
136105
|
`About to apply ${unappliedMigrations.length} migration(s)
|
|
@@ -136144,7 +136122,7 @@ Your database may not be available to serve requests during the migration, conti
|
|
|
136144
136122
|
"utf8"
|
|
136145
136123
|
);
|
|
136146
136124
|
query += `
|
|
136147
|
-
INSERT INTO ${
|
|
136125
|
+
INSERT INTO ${migrationsTableName} (name)
|
|
136148
136126
|
values ('${migration.Name}');
|
|
136149
136127
|
`;
|
|
136150
136128
|
let success = true;
|
|
@@ -136184,18 +136162,20 @@ Your database may not be available to serve requests during the migration, conti
|
|
|
136184
136162
|
}
|
|
136185
136163
|
migration.Status = success ? "\u2705" : "\u274C";
|
|
136186
136164
|
(0, import_ink8.render)(
|
|
136187
|
-
/* @__PURE__ */ import_react11.default.createElement(import_ink8.Box, {
|
|
136188
|
-
|
|
136189
|
-
|
|
136190
|
-
|
|
136191
|
-
|
|
136192
|
-
|
|
136193
|
-
|
|
136194
|
-
|
|
136195
|
-
|
|
136196
|
-
|
|
136197
|
-
|
|
136198
|
-
|
|
136165
|
+
/* @__PURE__ */ import_react11.default.createElement(import_ink8.Box, { flexDirection: "column" }, /* @__PURE__ */ import_react11.default.createElement(
|
|
136166
|
+
import_ink_table4.default,
|
|
136167
|
+
{
|
|
136168
|
+
data: unappliedMigrations,
|
|
136169
|
+
columns: ["Name", "Status"]
|
|
136170
|
+
}
|
|
136171
|
+
), errorNotes.length > 0 && /* @__PURE__ */ import_react11.default.createElement(import_ink8.Box, { flexDirection: "column" }, /* @__PURE__ */ import_react11.default.createElement(import_ink8.Text, null, "\xA0"), /* @__PURE__ */ import_react11.default.createElement(import_ink8.Text, null, "\u274C Migration ", migration.Name, " failed with following Errors"), /* @__PURE__ */ import_react11.default.createElement(
|
|
136172
|
+
import_ink_table4.default,
|
|
136173
|
+
{
|
|
136174
|
+
data: errorNotes.map((err) => {
|
|
136175
|
+
return { Error: err };
|
|
136176
|
+
})
|
|
136177
|
+
}
|
|
136178
|
+
)))
|
|
136199
136179
|
);
|
|
136200
136180
|
if (errorNotes.length > 0)
|
|
136201
136181
|
return;
|
|
@@ -136220,7 +136200,7 @@ var CreateHandler2 = withConfig(
|
|
|
136220
136200
|
async ({ config, database, message }) => {
|
|
136221
136201
|
await requireAuth({});
|
|
136222
136202
|
logger.log(d1BetaWarning);
|
|
136223
|
-
const databaseInfo =
|
|
136203
|
+
const databaseInfo = getDatabaseInfoFromConfig(config, database);
|
|
136224
136204
|
if (!databaseInfo) {
|
|
136225
136205
|
throw new Error(
|
|
136226
136206
|
`Can't find a DB with name/binding '${database}' in local config. Check info in wrangler.toml...`
|
|
@@ -136243,9 +136223,7 @@ var CreateHandler2 = withConfig(
|
|
|
136243
136223
|
`
|
|
136244
136224
|
);
|
|
136245
136225
|
(0, import_ink9.render)(
|
|
136246
|
-
/* @__PURE__ */ import_react12.default.createElement(import_ink9.Box, {
|
|
136247
|
-
flexDirection: "column"
|
|
136248
|
-
}, /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, "\u2705 Successfully created Migration '", newMigrationName, "'!"), /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, "\xA0"), /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, "The migration is available for editing here"), /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, migrationsPath, "/", newMigrationName))
|
|
136226
|
+
/* @__PURE__ */ import_react12.default.createElement(import_ink9.Box, { flexDirection: "column" }, /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, "\u2705 Successfully created Migration '", newMigrationName, "'!"), /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, "\xA0"), /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, "The migration is available for editing here"), /* @__PURE__ */ import_react12.default.createElement(import_ink9.Text, null, migrationsPath, "/", newMigrationName))
|
|
136249
136227
|
);
|
|
136250
136228
|
}
|
|
136251
136229
|
);
|
|
@@ -136267,10 +136245,12 @@ function ListOptions2(yargs) {
|
|
|
136267
136245
|
}
|
|
136268
136246
|
var ListHandler2 = withConfig(
|
|
136269
136247
|
async ({ config, database, local, persistTo }) => {
|
|
136270
|
-
|
|
136248
|
+
if (!local) {
|
|
136249
|
+
await requireAuth({});
|
|
136250
|
+
}
|
|
136271
136251
|
logger.log(d1BetaWarning);
|
|
136272
|
-
const databaseInfo =
|
|
136273
|
-
if (!databaseInfo) {
|
|
136252
|
+
const databaseInfo = getDatabaseInfoFromConfig(config, database);
|
|
136253
|
+
if (!databaseInfo && !local) {
|
|
136274
136254
|
throw new Error(
|
|
136275
136255
|
`Can't find a DB with name/binding '${database}' in local config. Check info in wrangler.toml...`
|
|
136276
136256
|
);
|
|
@@ -136278,12 +136258,12 @@ var ListHandler2 = withConfig(
|
|
|
136278
136258
|
if (!config.configPath) {
|
|
136279
136259
|
return;
|
|
136280
136260
|
}
|
|
136281
|
-
const { migrationsTableName, migrationsFolderPath } = databaseInfo;
|
|
136282
136261
|
const migrationsPath = await getMigrationsPath(
|
|
136283
136262
|
import_path8.default.dirname(config.configPath),
|
|
136284
|
-
migrationsFolderPath,
|
|
136263
|
+
databaseInfo?.migrationsFolderPath ?? DEFAULT_MIGRATION_PATH,
|
|
136285
136264
|
false
|
|
136286
136265
|
);
|
|
136266
|
+
const migrationsTableName = databaseInfo?.migrationsTableName ?? DEFAULT_MIGRATION_TABLE;
|
|
136287
136267
|
await initMigrationsTable(
|
|
136288
136268
|
migrationsTableName,
|
|
136289
136269
|
local,
|
|
@@ -136308,12 +136288,7 @@ var ListHandler2 = withConfig(
|
|
|
136308
136288
|
return;
|
|
136309
136289
|
}
|
|
136310
136290
|
(0, import_ink10.render)(
|
|
136311
|
-
/* @__PURE__ */ import_react13.default.createElement(import_ink10.Box, {
|
|
136312
|
-
flexDirection: "column"
|
|
136313
|
-
}, /* @__PURE__ */ import_react13.default.createElement(import_ink10.Text, null, "Migrations to be applied:"), /* @__PURE__ */ import_react13.default.createElement(import_ink_table5.default, {
|
|
136314
|
-
data: unappliedMigrations,
|
|
136315
|
-
columns: ["Name"]
|
|
136316
|
-
}))
|
|
136291
|
+
/* @__PURE__ */ import_react13.default.createElement(import_ink10.Box, { flexDirection: "column" }, /* @__PURE__ */ import_react13.default.createElement(import_ink10.Text, null, "Migrations to be applied:"), /* @__PURE__ */ import_react13.default.createElement(import_ink_table5.default, { data: unappliedMigrations, columns: ["Name"] }))
|
|
136317
136292
|
);
|
|
136318
136293
|
}
|
|
136319
136294
|
);
|
|
@@ -139937,9 +139912,7 @@ async function ListHandler3() {
|
|
|
139937
139912
|
saveToConfigCache(PAGES_CONFIG_CACHE_FILENAME, {
|
|
139938
139913
|
account_id: accountId
|
|
139939
139914
|
});
|
|
139940
|
-
const { unmount } = (0, import_ink11.render)(/* @__PURE__ */ import_react14.default.createElement(import_ink_table6.default, {
|
|
139941
|
-
data
|
|
139942
|
-
}), {
|
|
139915
|
+
const { unmount } = (0, import_ink11.render)(/* @__PURE__ */ import_react14.default.createElement(import_ink_table6.default, { data }), {
|
|
139943
139916
|
patchConsole: false
|
|
139944
139917
|
});
|
|
139945
139918
|
unmount();
|
|
@@ -140045,17 +140018,20 @@ async function promptSelectProject({
|
|
|
140045
140018
|
const projects = await listProjects({ accountId });
|
|
140046
140019
|
return new Promise((resolve16) => {
|
|
140047
140020
|
const { unmount } = (0, import_ink12.render)(
|
|
140048
|
-
/* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement(import_ink12.Text, null, "Select a project:"), /* @__PURE__ */ import_react15.default.createElement(
|
|
140049
|
-
|
|
140050
|
-
|
|
140051
|
-
|
|
140052
|
-
|
|
140053
|
-
|
|
140054
|
-
|
|
140055
|
-
|
|
140056
|
-
|
|
140021
|
+
/* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, /* @__PURE__ */ import_react15.default.createElement(import_ink12.Text, null, "Select a project:"), /* @__PURE__ */ import_react15.default.createElement(
|
|
140022
|
+
import_ink_select_input2.default,
|
|
140023
|
+
{
|
|
140024
|
+
items: projects.map((project) => ({
|
|
140025
|
+
key: project.name,
|
|
140026
|
+
label: project.name,
|
|
140027
|
+
value: project
|
|
140028
|
+
})),
|
|
140029
|
+
onSelect: async (selected) => {
|
|
140030
|
+
resolve16(selected.value.name);
|
|
140031
|
+
unmount();
|
|
140032
|
+
}
|
|
140057
140033
|
}
|
|
140058
|
-
|
|
140034
|
+
))
|
|
140059
140035
|
);
|
|
140060
140036
|
});
|
|
140061
140037
|
}
|
|
@@ -140307,9 +140283,7 @@ async function ListHandler4({ projectName }) {
|
|
|
140307
140283
|
saveToConfigCache(PAGES_CONFIG_CACHE_FILENAME, {
|
|
140308
140284
|
account_id: accountId
|
|
140309
140285
|
});
|
|
140310
|
-
const { unmount } = (0, import_ink13.render)(/* @__PURE__ */ import_react16.default.createElement(import_ink_table7.default, {
|
|
140311
|
-
data
|
|
140312
|
-
}), {
|
|
140286
|
+
const { unmount } = (0, import_ink13.render)(/* @__PURE__ */ import_react16.default.createElement(import_ink_table7.default, { data }), {
|
|
140313
140287
|
patchConsole: false
|
|
140314
140288
|
});
|
|
140315
140289
|
unmount();
|
|
@@ -141560,10 +141534,7 @@ ${name} is ${prettyBytes(filestat.size)} in size`,
|
|
|
141560
141534
|
}
|
|
141561
141535
|
let counter = fileMap.size - sortedFiles.length;
|
|
141562
141536
|
const { rerender, unmount } = (0, import_ink14.render)(
|
|
141563
|
-
/* @__PURE__ */ import_react17.default.createElement(Progress, {
|
|
141564
|
-
done: counter,
|
|
141565
|
-
total: fileMap.size
|
|
141566
|
-
})
|
|
141537
|
+
/* @__PURE__ */ import_react17.default.createElement(Progress, { done: counter, total: fileMap.size })
|
|
141567
141538
|
);
|
|
141568
141539
|
const queue = new PQueue({ concurrency: BULK_UPLOAD_CONCURRENCY });
|
|
141569
141540
|
for (const bucket of buckets) {
|
|
@@ -141612,10 +141583,7 @@ ${name} is ${prettyBytes(filestat.size)} in size`,
|
|
|
141612
141583
|
() => doUpload().then(
|
|
141613
141584
|
() => {
|
|
141614
141585
|
counter += bucket.files.length;
|
|
141615
|
-
rerender(/* @__PURE__ */ import_react17.default.createElement(Progress, {
|
|
141616
|
-
done: counter,
|
|
141617
|
-
total: fileMap.size
|
|
141618
|
-
}));
|
|
141586
|
+
rerender(/* @__PURE__ */ import_react17.default.createElement(Progress, { done: counter, total: fileMap.size }));
|
|
141619
141587
|
},
|
|
141620
141588
|
(error) => {
|
|
141621
141589
|
return Promise.reject(
|
|
@@ -141699,9 +141667,7 @@ function formatTime2(duration) {
|
|
|
141699
141667
|
return `(${(duration / 1e3).toFixed(2)} sec)`;
|
|
141700
141668
|
}
|
|
141701
141669
|
function Progress({ done, total }) {
|
|
141702
|
-
return /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement(import_ink14.Text, null, isInteractive() ? /* @__PURE__ */ import_react17.default.createElement(import_ink_spinner.default, {
|
|
141703
|
-
type: "earth"
|
|
141704
|
-
}) : null, ` Uploading... (${done}/${total})
|
|
141670
|
+
return /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement(import_ink14.Text, null, isInteractive() ? /* @__PURE__ */ import_react17.default.createElement(import_ink_spinner.default, { type: "earth" }) : null, ` Uploading... (${done}/${total})
|
|
141705
141671
|
`));
|
|
141706
141672
|
}
|
|
141707
141673
|
|
|
@@ -141973,24 +141939,27 @@ var Handler9 = async ({
|
|
|
141973
141939
|
if (projects.length > 0) {
|
|
141974
141940
|
existingOrNew = await new Promise((resolve16) => {
|
|
141975
141941
|
const { unmount } = (0, import_ink15.render)(
|
|
141976
|
-
/* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement(import_ink15.Text, null, "No project selected. Would you like to create one or use an existing project?"), /* @__PURE__ */ import_react18.default.createElement(
|
|
141977
|
-
|
|
141978
|
-
|
|
141979
|
-
|
|
141980
|
-
|
|
141981
|
-
|
|
141982
|
-
|
|
141983
|
-
|
|
141984
|
-
|
|
141985
|
-
|
|
141986
|
-
|
|
141942
|
+
/* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement(import_ink15.Text, null, "No project selected. Would you like to create one or use an existing project?"), /* @__PURE__ */ import_react18.default.createElement(
|
|
141943
|
+
import_ink_select_input3.default,
|
|
141944
|
+
{
|
|
141945
|
+
items: [
|
|
141946
|
+
{
|
|
141947
|
+
key: "new",
|
|
141948
|
+
label: "Create a new project",
|
|
141949
|
+
value: "new"
|
|
141950
|
+
},
|
|
141951
|
+
{
|
|
141952
|
+
key: "existing",
|
|
141953
|
+
label: "Use an existing project",
|
|
141954
|
+
value: "existing"
|
|
141955
|
+
}
|
|
141956
|
+
],
|
|
141957
|
+
onSelect: async (selected) => {
|
|
141958
|
+
resolve16(selected.value);
|
|
141959
|
+
unmount();
|
|
141987
141960
|
}
|
|
141988
|
-
],
|
|
141989
|
-
onSelect: async (selected) => {
|
|
141990
|
-
resolve16(selected.value);
|
|
141991
|
-
unmount();
|
|
141992
141961
|
}
|
|
141993
|
-
|
|
141962
|
+
))
|
|
141994
141963
|
);
|
|
141995
141964
|
});
|
|
141996
141965
|
}
|
|
@@ -144823,57 +144792,60 @@ Switch out --local for ${import_chalk10.default.bold(
|
|
|
144823
144792
|
args,
|
|
144824
144793
|
configParam
|
|
144825
144794
|
);
|
|
144826
|
-
return /* @__PURE__ */ import_react19.default.createElement(
|
|
144827
|
-
|
|
144828
|
-
|
|
144829
|
-
|
|
144830
|
-
|
|
144831
|
-
|
|
144832
|
-
|
|
144833
|
-
|
|
144834
|
-
|
|
144835
|
-
|
|
144836
|
-
|
|
144837
|
-
|
|
144838
|
-
|
|
144839
|
-
|
|
144840
|
-
|
|
144841
|
-
|
|
144842
|
-
|
|
144843
|
-
|
|
144844
|
-
|
|
144845
|
-
|
|
144846
|
-
|
|
144847
|
-
|
|
144848
|
-
|
|
144849
|
-
|
|
144850
|
-
|
|
144851
|
-
|
|
144852
|
-
|
|
144853
|
-
|
|
144854
|
-
|
|
144855
|
-
|
|
144856
|
-
|
|
144857
|
-
configParam,
|
|
144858
|
-
|
|
144859
|
-
|
|
144860
|
-
|
|
144861
|
-
|
|
144862
|
-
|
|
144863
|
-
|
|
144864
|
-
|
|
144865
|
-
|
|
144866
|
-
|
|
144867
|
-
|
|
144868
|
-
|
|
144869
|
-
|
|
144870
|
-
|
|
144871
|
-
|
|
144872
|
-
|
|
144873
|
-
|
|
144874
|
-
|
|
144875
|
-
|
|
144876
|
-
|
|
144795
|
+
return /* @__PURE__ */ import_react19.default.createElement(
|
|
144796
|
+
dev_default,
|
|
144797
|
+
{
|
|
144798
|
+
name: getScriptName({ name: args.name, env: args.env }, configParam),
|
|
144799
|
+
noBundle: !(args.bundle ?? !configParam.no_bundle),
|
|
144800
|
+
entry,
|
|
144801
|
+
env: args.env,
|
|
144802
|
+
zone: zoneId,
|
|
144803
|
+
host,
|
|
144804
|
+
routes,
|
|
144805
|
+
rules: getRules(configParam),
|
|
144806
|
+
legacyEnv: isLegacyEnv(configParam),
|
|
144807
|
+
minify: args.minify ?? configParam.minify,
|
|
144808
|
+
nodeCompat,
|
|
144809
|
+
build: configParam.build || {},
|
|
144810
|
+
define: { ...configParam.define, ...cliDefines },
|
|
144811
|
+
initialMode: args.local || args.experimentalLocal ? "local" : "remote",
|
|
144812
|
+
jsxFactory: args.jsxFactory || configParam.jsx_factory,
|
|
144813
|
+
jsxFragment: args.jsxFragment || configParam.jsx_fragment,
|
|
144814
|
+
tsconfig: args.tsconfig ?? configParam.tsconfig,
|
|
144815
|
+
upstreamProtocol,
|
|
144816
|
+
localProtocol: args.localProtocol || configParam.dev.local_protocol,
|
|
144817
|
+
localUpstream: args.localUpstream ?? host,
|
|
144818
|
+
localPersistencePath,
|
|
144819
|
+
liveReload: args.liveReload || false,
|
|
144820
|
+
accountId: configParam.account_id || getAccountFromCache()?.id,
|
|
144821
|
+
assetPaths,
|
|
144822
|
+
assetsConfig: configParam.assets,
|
|
144823
|
+
initialPort: args.port ?? configParam.dev.port ?? await getLocalPort(),
|
|
144824
|
+
initialIp: args.ip || configParam.dev.ip,
|
|
144825
|
+
inspectorPort: args.inspectorPort ?? configParam.dev.inspector_port ?? await getInspectorPort(),
|
|
144826
|
+
isWorkersSite: Boolean(args.site || configParam.site),
|
|
144827
|
+
compatibilityDate: getDevCompatibilityDate(
|
|
144828
|
+
configParam,
|
|
144829
|
+
args.compatibilityDate
|
|
144830
|
+
),
|
|
144831
|
+
compatibilityFlags: args.compatibilityFlags || configParam.compatibility_flags,
|
|
144832
|
+
usageModel: configParam.usage_model,
|
|
144833
|
+
bindings,
|
|
144834
|
+
crons: configParam.triggers.crons,
|
|
144835
|
+
queueConsumers: configParam.queues.consumers,
|
|
144836
|
+
logPrefix: args.logPrefix,
|
|
144837
|
+
onReady: args.onReady,
|
|
144838
|
+
inspect: args.inspect ?? true,
|
|
144839
|
+
showInteractiveDevSession: args.showInteractiveDevSession,
|
|
144840
|
+
forceLocal: args.forceLocal,
|
|
144841
|
+
enablePagesAssetsServiceBinding: args.enablePagesAssetsServiceBinding,
|
|
144842
|
+
firstPartyWorker: configParam.first_party_worker,
|
|
144843
|
+
sendMetrics: configParam.send_metrics,
|
|
144844
|
+
testScheduled: args.testScheduled,
|
|
144845
|
+
experimentalLocal: args.experimentalLocal,
|
|
144846
|
+
experimentalLocalRemoteKv: args.experimentalLocalRemoteKv
|
|
144847
|
+
}
|
|
144848
|
+
);
|
|
144877
144849
|
}
|
|
144878
144850
|
const devReactElement = (0, import_ink16.render)(await getDevReactElement(config));
|
|
144879
144851
|
let apiStopped = false;
|
|
@@ -145446,335 +145418,3 @@ if (typeof jest === "undefined" && require.main === module) {
|
|
|
145446
145418
|
unstable_dev,
|
|
145447
145419
|
unstable_pages
|
|
145448
145420
|
});
|
|
145449
|
-
/*
|
|
145450
|
-
object-assign
|
|
145451
|
-
(c) Sindre Sorhus
|
|
145452
|
-
@license MIT
|
|
145453
|
-
*/
|
|
145454
|
-
/*!
|
|
145455
|
-
* @description Recursive object extending
|
|
145456
|
-
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
145457
|
-
* @license MIT
|
|
145458
|
-
*
|
|
145459
|
-
* The MIT License (MIT)
|
|
145460
|
-
*
|
|
145461
|
-
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
|
145462
|
-
*
|
|
145463
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
145464
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
145465
|
-
* the Software without restriction, including without limitation the rights to
|
|
145466
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
145467
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
145468
|
-
* subject to the following conditions:
|
|
145469
|
-
*
|
|
145470
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
145471
|
-
* copies or substantial portions of the Software.
|
|
145472
|
-
*
|
|
145473
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
145474
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
145475
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
145476
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
145477
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
145478
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
145479
|
-
*/
|
|
145480
|
-
/*!
|
|
145481
|
-
* Tmp
|
|
145482
|
-
*
|
|
145483
|
-
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
145484
|
-
*
|
|
145485
|
-
* MIT Licensed
|
|
145486
|
-
*/
|
|
145487
|
-
/*!
|
|
145488
|
-
* accepts
|
|
145489
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145490
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145491
|
-
* MIT Licensed
|
|
145492
|
-
*/
|
|
145493
|
-
/*!
|
|
145494
|
-
* body-parser
|
|
145495
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145496
|
-
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
145497
|
-
* MIT Licensed
|
|
145498
|
-
*/
|
|
145499
|
-
/*!
|
|
145500
|
-
* body-parser
|
|
145501
|
-
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
145502
|
-
* MIT Licensed
|
|
145503
|
-
*/
|
|
145504
|
-
/*!
|
|
145505
|
-
* bytes
|
|
145506
|
-
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
145507
|
-
* Copyright(c) 2015 Jed Watson
|
|
145508
|
-
* MIT Licensed
|
|
145509
|
-
*/
|
|
145510
|
-
/*!
|
|
145511
|
-
* content-disposition
|
|
145512
|
-
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
145513
|
-
* MIT Licensed
|
|
145514
|
-
*/
|
|
145515
|
-
/*!
|
|
145516
|
-
* content-type
|
|
145517
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145518
|
-
* MIT Licensed
|
|
145519
|
-
*/
|
|
145520
|
-
/*!
|
|
145521
|
-
* cookie
|
|
145522
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
145523
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145524
|
-
* MIT Licensed
|
|
145525
|
-
*/
|
|
145526
|
-
/*!
|
|
145527
|
-
* depd
|
|
145528
|
-
* Copyright(c) 2014-2018 Douglas Christopher Wilson
|
|
145529
|
-
* MIT Licensed
|
|
145530
|
-
*/
|
|
145531
|
-
/*!
|
|
145532
|
-
* destroy
|
|
145533
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145534
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
145535
|
-
* MIT Licensed
|
|
145536
|
-
*/
|
|
145537
|
-
/*!
|
|
145538
|
-
* ee-first
|
|
145539
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145540
|
-
* MIT Licensed
|
|
145541
|
-
*/
|
|
145542
|
-
/*!
|
|
145543
|
-
* encodeurl
|
|
145544
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
145545
|
-
* MIT Licensed
|
|
145546
|
-
*/
|
|
145547
|
-
/*!
|
|
145548
|
-
* escape-html
|
|
145549
|
-
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
145550
|
-
* Copyright(c) 2015 Andreas Lubbe
|
|
145551
|
-
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
145552
|
-
* MIT Licensed
|
|
145553
|
-
*/
|
|
145554
|
-
/*!
|
|
145555
|
-
* etag
|
|
145556
|
-
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
145557
|
-
* MIT Licensed
|
|
145558
|
-
*/
|
|
145559
|
-
/*!
|
|
145560
|
-
* express
|
|
145561
|
-
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
145562
|
-
* Copyright(c) 2013 Roman Shtylman
|
|
145563
|
-
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
145564
|
-
* MIT Licensed
|
|
145565
|
-
*/
|
|
145566
|
-
/*!
|
|
145567
|
-
* express
|
|
145568
|
-
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
145569
|
-
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
145570
|
-
* MIT Licensed
|
|
145571
|
-
*/
|
|
145572
|
-
/*!
|
|
145573
|
-
* finalhandler
|
|
145574
|
-
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
145575
|
-
* MIT Licensed
|
|
145576
|
-
*/
|
|
145577
|
-
/*!
|
|
145578
|
-
* forwarded
|
|
145579
|
-
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
145580
|
-
* MIT Licensed
|
|
145581
|
-
*/
|
|
145582
|
-
/*!
|
|
145583
|
-
* fresh
|
|
145584
|
-
* Copyright(c) 2012 TJ Holowaychuk
|
|
145585
|
-
* Copyright(c) 2016-2017 Douglas Christopher Wilson
|
|
145586
|
-
* MIT Licensed
|
|
145587
|
-
*/
|
|
145588
|
-
/*!
|
|
145589
|
-
* http-errors
|
|
145590
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145591
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
145592
|
-
* MIT Licensed
|
|
145593
|
-
*/
|
|
145594
|
-
/*!
|
|
145595
|
-
* media-typer
|
|
145596
|
-
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
145597
|
-
* MIT Licensed
|
|
145598
|
-
*/
|
|
145599
|
-
/*!
|
|
145600
|
-
* merge-descriptors
|
|
145601
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145602
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145603
|
-
* MIT Licensed
|
|
145604
|
-
*/
|
|
145605
|
-
/*!
|
|
145606
|
-
* methods
|
|
145607
|
-
* Copyright(c) 2013-2014 TJ Holowaychuk
|
|
145608
|
-
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
145609
|
-
* MIT Licensed
|
|
145610
|
-
*/
|
|
145611
|
-
/*!
|
|
145612
|
-
* mime-db
|
|
145613
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145614
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
145615
|
-
* MIT Licensed
|
|
145616
|
-
*/
|
|
145617
|
-
/*!
|
|
145618
|
-
* mime-types
|
|
145619
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145620
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145621
|
-
* MIT Licensed
|
|
145622
|
-
*/
|
|
145623
|
-
/*!
|
|
145624
|
-
* negotiator
|
|
145625
|
-
* Copyright(c) 2012 Federico Romero
|
|
145626
|
-
* Copyright(c) 2012-2014 Isaac Z. Schlueter
|
|
145627
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145628
|
-
* MIT Licensed
|
|
145629
|
-
*/
|
|
145630
|
-
/*!
|
|
145631
|
-
* on-finished
|
|
145632
|
-
* Copyright(c) 2013 Jonathan Ong
|
|
145633
|
-
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
145634
|
-
* MIT Licensed
|
|
145635
|
-
*/
|
|
145636
|
-
/*!
|
|
145637
|
-
* parseurl
|
|
145638
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145639
|
-
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
145640
|
-
* MIT Licensed
|
|
145641
|
-
*/
|
|
145642
|
-
/*!
|
|
145643
|
-
* proxy-addr
|
|
145644
|
-
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
145645
|
-
* MIT Licensed
|
|
145646
|
-
*/
|
|
145647
|
-
/*!
|
|
145648
|
-
* range-parser
|
|
145649
|
-
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
145650
|
-
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
145651
|
-
* MIT Licensed
|
|
145652
|
-
*/
|
|
145653
|
-
/*!
|
|
145654
|
-
* raw-body
|
|
145655
|
-
* Copyright(c) 2013-2014 Jonathan Ong
|
|
145656
|
-
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
145657
|
-
* MIT Licensed
|
|
145658
|
-
*/
|
|
145659
|
-
/*!
|
|
145660
|
-
* send
|
|
145661
|
-
* Copyright(c) 2012 TJ Holowaychuk
|
|
145662
|
-
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
145663
|
-
* MIT Licensed
|
|
145664
|
-
*/
|
|
145665
|
-
/*!
|
|
145666
|
-
* serve-static
|
|
145667
|
-
* Copyright(c) 2010 Sencha Inc.
|
|
145668
|
-
* Copyright(c) 2011 TJ Holowaychuk
|
|
145669
|
-
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
145670
|
-
* MIT Licensed
|
|
145671
|
-
*/
|
|
145672
|
-
/*!
|
|
145673
|
-
* statuses
|
|
145674
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145675
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
145676
|
-
* MIT Licensed
|
|
145677
|
-
*/
|
|
145678
|
-
/*!
|
|
145679
|
-
* toidentifier
|
|
145680
|
-
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
145681
|
-
* MIT Licensed
|
|
145682
|
-
*/
|
|
145683
|
-
/*!
|
|
145684
|
-
* type-is
|
|
145685
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
145686
|
-
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
145687
|
-
* MIT Licensed
|
|
145688
|
-
*/
|
|
145689
|
-
/*!
|
|
145690
|
-
* unpipe
|
|
145691
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
145692
|
-
* MIT Licensed
|
|
145693
|
-
*/
|
|
145694
|
-
/*!
|
|
145695
|
-
* vary
|
|
145696
|
-
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
145697
|
-
* MIT Licensed
|
|
145698
|
-
*/
|
|
145699
|
-
/*! arch. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
145700
|
-
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
145701
|
-
/*! promise-polyfill 2.0.1 */
|
|
145702
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
145703
|
-
/**
|
|
145704
|
-
* @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
|
|
145705
|
-
* CJS and ESM environments.
|
|
145706
|
-
*
|
|
145707
|
-
* @license
|
|
145708
|
-
* Copyright (c) 2016, Contributors
|
|
145709
|
-
* SPDX-License-Identifier: ISC
|
|
145710
|
-
*/
|
|
145711
|
-
/**
|
|
145712
|
-
* @license
|
|
145713
|
-
* Copyright (c) 2016, Contributors
|
|
145714
|
-
* SPDX-License-Identifier: ISC
|
|
145715
|
-
*/
|
|
145716
|
-
/**
|
|
145717
|
-
* @license
|
|
145718
|
-
* Lodash <https://lodash.com/>
|
|
145719
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
145720
|
-
* Released under MIT license <https://lodash.com/license>
|
|
145721
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
145722
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
145723
|
-
*/
|
|
145724
|
-
/**
|
|
145725
|
-
* @license Copyright 2022 Stackblitz, Inc. All Rights Reserved.
|
|
145726
|
-
* Portions of this software are patent pending in USA and EU jurisdictions.
|
|
145727
|
-
* More info available at https://stackblitz.com/terms-of-service.
|
|
145728
|
-
*/
|
|
145729
|
-
/**
|
|
145730
|
-
* @license React
|
|
145731
|
-
* react-debug-tools.production.min.js
|
|
145732
|
-
*
|
|
145733
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145734
|
-
*
|
|
145735
|
-
* This source code is licensed under the MIT license found in the
|
|
145736
|
-
* LICENSE file in the root directory of this source tree.
|
|
145737
|
-
*/
|
|
145738
|
-
/**
|
|
145739
|
-
* @license React
|
|
145740
|
-
* react-is.production.min.js
|
|
145741
|
-
*
|
|
145742
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145743
|
-
*
|
|
145744
|
-
* This source code is licensed under the MIT license found in the
|
|
145745
|
-
* LICENSE file in the root directory of this source tree.
|
|
145746
|
-
*/
|
|
145747
|
-
/**
|
|
145748
|
-
* @license React
|
|
145749
|
-
* react.production.min.js
|
|
145750
|
-
*
|
|
145751
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145752
|
-
*
|
|
145753
|
-
* This source code is licensed under the MIT license found in the
|
|
145754
|
-
* LICENSE file in the root directory of this source tree.
|
|
145755
|
-
*/
|
|
145756
|
-
/** @license React v0.20.2
|
|
145757
|
-
* scheduler.production.min.js
|
|
145758
|
-
*
|
|
145759
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145760
|
-
*
|
|
145761
|
-
* This source code is licensed under the MIT license found in the
|
|
145762
|
-
* LICENSE file in the root directory of this source tree.
|
|
145763
|
-
*/
|
|
145764
|
-
/** @license React v0.26.2
|
|
145765
|
-
* react-reconciler.production.min.js
|
|
145766
|
-
*
|
|
145767
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145768
|
-
*
|
|
145769
|
-
* This source code is licensed under the MIT license found in the
|
|
145770
|
-
* LICENSE file in the root directory of this source tree.
|
|
145771
|
-
*/
|
|
145772
|
-
/** @license React v17.0.2
|
|
145773
|
-
* react.production.min.js
|
|
145774
|
-
*
|
|
145775
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145776
|
-
*
|
|
145777
|
-
* This source code is licensed under the MIT license found in the
|
|
145778
|
-
* LICENSE file in the root directory of this source tree.
|
|
145779
|
-
*/
|
|
145780
|
-
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|