wrangler 2.6.2 → 2.7.0
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/bin/wrangler.js +9 -1
- package/miniflare-dist/index.mjs +1 -1
- package/package.json +12 -10
- package/src/__tests__/api-dev.test.ts +65 -36
- package/src/__tests__/api-devregistry.test.js +14 -6
- package/src/__tests__/configuration.test.ts +2 -31
- package/src/__tests__/{d1.test.ts → d1/d1.test.ts} +48 -5
- package/src/__tests__/d1/splitter.test.ts +255 -0
- package/src/__tests__/delete.test.ts +5 -2
- package/src/__tests__/deployments.test.ts +20 -6
- package/src/__tests__/dev.test.tsx +52 -19
- package/src/__tests__/generate.test.ts +7 -4
- package/src/__tests__/helpers/mock-auth-domain.ts +20 -0
- package/src/__tests__/helpers/mock-cfetch.ts +2 -57
- package/src/__tests__/helpers/mock-dialogs.ts +70 -86
- package/src/__tests__/helpers/mock-oauth-flow.ts +64 -49
- package/src/__tests__/helpers/mock-process.ts +8 -13
- package/src/__tests__/helpers/msw/blob-worker.cjs +19 -0
- package/src/__tests__/helpers/msw/read-file-sync.js +61 -0
- package/src/__tests__/index.test.ts +46 -44
- package/src/__tests__/init.test.ts +761 -537
- package/src/__tests__/jest.setup.ts +20 -24
- package/src/__tests__/kv.test.ts +286 -173
- package/src/__tests__/logout.test.ts +1 -1
- package/src/__tests__/metrics.test.ts +5 -7
- package/src/__tests__/middleware.scheduled.test.ts +40 -30
- package/src/__tests__/middleware.test.ts +144 -120
- package/src/__tests__/pages.test.ts +1617 -1161
- package/src/__tests__/publish.test.ts +174 -125
- package/src/__tests__/r2.test.ts +2 -2
- package/src/__tests__/secret.test.ts +183 -126
- package/src/__tests__/tail.test.ts +6 -0
- package/src/__tests__/tsconfig-sanity.ts +12 -0
- package/src/__tests__/tsconfig.json +8 -0
- package/src/__tests__/tsconfig.tsbuildinfo +1 -0
- package/src/__tests__/whoami.test.tsx +1 -96
- package/src/api/dev.ts +78 -41
- package/src/api/index.ts +1 -1
- package/src/{bundle-reporter.tsx → bundle-reporter.ts} +0 -0
- package/src/cfetch/index.ts +0 -2
- package/src/cfetch/internal.ts +6 -15
- package/src/cli.ts +2 -2
- package/src/config/validation.ts +1 -2
- package/src/create-worker-upload-form.ts +2 -2
- package/src/d1/{delete.tsx → delete.ts} +0 -0
- package/src/d1/execute.tsx +8 -37
- package/src/d1/migrations/apply.tsx +29 -19
- package/src/d1/migrations/{index.tsx → index.ts} +0 -0
- package/src/d1/splitter.ts +161 -0
- package/src/d1/{types.tsx → types.ts} +0 -0
- package/src/delete.ts +3 -8
- package/src/deployments.ts +6 -0
- package/src/deprecated/index.ts +2 -295
- package/src/dev/dev.tsx +2 -2
- package/src/dev/{get-local-persistence-path.tsx → get-local-persistence-path.ts} +0 -0
- package/src/dev/local.tsx +16 -4
- package/src/dev/remote.tsx +28 -1
- package/src/dev/start-server.ts +19 -11
- package/src/dev/use-esbuild.ts +1 -1
- package/src/{dev-registry.tsx → dev-registry.ts} +0 -0
- package/src/dev.tsx +21 -2
- package/src/dialogs.ts +136 -0
- package/src/dispatch-namespace.ts +1 -1
- package/src/docs/index.ts +3 -0
- package/src/environment-variables/factory.ts +88 -0
- package/src/environment-variables/misc-variables.ts +30 -0
- package/src/generate/index.ts +300 -0
- package/src/{index.tsx → index.ts} +10 -13
- package/src/init.ts +92 -52
- package/src/jest.d.ts +4 -0
- package/src/logger.ts +15 -3
- package/src/metrics/metrics-config.ts +1 -1
- package/src/miniflare-cli/assets.ts +4 -0
- package/src/miniflare-cli/index.ts +1 -5
- package/src/miniflare-cli/tsconfig.json +9 -0
- package/src/miniflare-cli/tsconfig.tsbuildinfo +1 -0
- package/src/miniflare-cli/types.ts +11 -0
- package/src/pages/{build.tsx → build.ts} +0 -0
- package/src/pages/{deployment-tails.tsx → deployment-tails.ts} +0 -0
- package/src/pages/{dev.tsx → dev.ts} +53 -55
- package/src/pages/functions/buildWorker.ts +1 -1
- package/src/pages/functions/tsconfig.json +8 -0
- package/src/pages/functions/tsconfig.tsbuildinfo +1 -0
- package/src/pages/{functions.tsx → functions.ts} +0 -0
- package/src/pages/{hash.tsx → hash.ts} +0 -0
- package/src/pages/{index.tsx → index.ts} +0 -0
- package/src/pages/projects.tsx +3 -5
- package/src/pages/publish.tsx +5 -4
- package/src/pages/upload.tsx +1 -1
- package/src/publish/publish.ts +9 -7
- package/src/pubsub/{pubsub-commands.tsx → pubsub-commands.ts} +1 -1
- package/src/secret/index.ts +1 -1
- package/src/{sites.tsx → sites.ts} +0 -0
- package/src/tail/index.ts +2 -3
- package/src/tsconfig-sanity.ts +16 -0
- package/src/user/access.ts +0 -1
- package/src/user/auth-variables.ts +113 -0
- package/src/user/choose-account.tsx +1 -31
- package/src/user/index.ts +0 -1
- package/src/user/{user.tsx → user.ts} +107 -73
- package/src/{whoami.tsx → whoami.ts} +37 -71
- package/templates/__tests__/tsconfig-sanity.ts +12 -0
- package/templates/__tests__/tsconfig.json +8 -0
- package/templates/__tests__/tsconfig.tsbuildinfo +1 -0
- package/templates/d1-beta-facade.js +36 -0
- package/templates/facade.d.ts +14 -0
- package/templates/first-party-worker-module-facade.ts +4 -3
- package/templates/format-dev-errors.ts +7 -6
- package/templates/init-tests/test-jest-new-worker.js +3 -5
- package/templates/init-tests/test-vitest-new-worker.js +3 -5
- package/templates/init-tests/test-vitest-new-worker.ts +25 -0
- package/templates/middleware/loader-modules.ts +0 -2
- package/templates/middleware/loader-sw.ts +6 -0
- package/templates/pages-dev-pipeline.ts +4 -1
- package/templates/pages-shim.ts +4 -1
- package/templates/pages-template-plugin.ts +12 -7
- package/templates/serve-static-assets.ts +16 -14
- package/templates/tsconfig-sanity.ts +11 -0
- package/templates/tsconfig.init.json +106 -0
- package/templates/tsconfig.json +5 -103
- package/templates/tsconfig.tsbuildinfo +1 -0
- package/wrangler-dist/cli.d.ts +58 -60
- package/wrangler-dist/cli.js +34440 -55514
- package/wrangler-dist/wasm-sync.wasm +0 -0
- package/src/__tests__/dialogs.test.tsx +0 -40
- package/src/dialogs.tsx +0 -168
- package/src/environment-variables.ts +0 -50
- package/src/user/env-vars.ts +0 -46
|
@@ -470,78 +470,76 @@ export const Handler = async ({
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
const { stop, waitUntilExit } = await unstable_dev(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
"Could not parse Durable Object binding:",
|
|
504
|
-
durableObject.toString()
|
|
505
|
-
);
|
|
506
|
-
return;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
return {
|
|
510
|
-
name: binding,
|
|
511
|
-
class_name: className,
|
|
512
|
-
script_name: scriptName,
|
|
513
|
-
};
|
|
514
|
-
})
|
|
515
|
-
.filter(Boolean) as AdditionalDevProps["durableObjects"],
|
|
516
|
-
r2: r2s.map((binding) => {
|
|
517
|
-
return { binding: binding.toString(), bucket_name: "" };
|
|
518
|
-
}),
|
|
473
|
+
const { stop, waitUntilExit } = await unstable_dev(entrypoint, {
|
|
474
|
+
ip,
|
|
475
|
+
port,
|
|
476
|
+
inspectorPort,
|
|
477
|
+
localProtocol,
|
|
478
|
+
compatibilityDate,
|
|
479
|
+
compatibilityFlags,
|
|
480
|
+
nodeCompat,
|
|
481
|
+
vars: Object.fromEntries(
|
|
482
|
+
bindings
|
|
483
|
+
.map((binding) => binding.toString().split("="))
|
|
484
|
+
.map(([key, ...values]) => [key, values.join("=")])
|
|
485
|
+
),
|
|
486
|
+
kv: kvs.map((binding) => ({
|
|
487
|
+
binding: binding.toString(),
|
|
488
|
+
id: "",
|
|
489
|
+
})),
|
|
490
|
+
durableObjects: durableObjects
|
|
491
|
+
.map((durableObject) => {
|
|
492
|
+
const { binding, className, scriptName } =
|
|
493
|
+
DURABLE_OBJECTS_BINDING_REGEXP.exec(durableObject.toString())
|
|
494
|
+
?.groups || {};
|
|
495
|
+
|
|
496
|
+
if (!binding || !className) {
|
|
497
|
+
logger.warn(
|
|
498
|
+
"Could not parse Durable Object binding:",
|
|
499
|
+
durableObject.toString()
|
|
500
|
+
);
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
519
503
|
|
|
504
|
+
return {
|
|
505
|
+
name: binding,
|
|
506
|
+
class_name: className,
|
|
507
|
+
script_name: scriptName,
|
|
508
|
+
};
|
|
509
|
+
})
|
|
510
|
+
.filter(Boolean) as AdditionalDevProps["durableObjects"],
|
|
511
|
+
r2: r2s.map((binding) => {
|
|
512
|
+
return { binding: binding.toString(), bucket_name: "" };
|
|
513
|
+
}),
|
|
514
|
+
persist,
|
|
515
|
+
persistTo,
|
|
516
|
+
inspect: undefined,
|
|
517
|
+
logPrefix: "pages",
|
|
518
|
+
logLevel: logLevel ?? "warn",
|
|
519
|
+
experimental: {
|
|
520
520
|
d1Databases: d1s.map((binding) => ({
|
|
521
521
|
binding: binding.toString(),
|
|
522
522
|
database_id: "", // Required for types, but unused by dev
|
|
523
523
|
database_name: `local-${binding}`,
|
|
524
524
|
})),
|
|
525
|
-
|
|
525
|
+
disableExperimentalWarning: true,
|
|
526
526
|
enablePagesAssetsServiceBinding: {
|
|
527
527
|
proxyPort,
|
|
528
528
|
directory,
|
|
529
529
|
},
|
|
530
|
+
experimentalLocal,
|
|
531
|
+
liveReload,
|
|
530
532
|
forceLocal: true,
|
|
531
|
-
persist,
|
|
532
|
-
persistTo,
|
|
533
533
|
showInteractiveDevSession: undefined,
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
logLevel: logLevel ?? "warn",
|
|
534
|
+
testMode: false,
|
|
535
|
+
watch: true,
|
|
537
536
|
},
|
|
538
|
-
|
|
539
|
-
);
|
|
537
|
+
});
|
|
540
538
|
await metrics.sendMetricsEvent("run pages dev");
|
|
541
539
|
|
|
542
540
|
CLEANUP_CALLBACKS.push(stop);
|
|
543
541
|
|
|
544
|
-
waitUntilExit().then(() => {
|
|
542
|
+
void waitUntilExit().then(() => {
|
|
545
543
|
CLEANUP();
|
|
546
544
|
process.exit(0);
|
|
547
545
|
});
|
|
@@ -141,7 +141,7 @@ export function buildWorker({
|
|
|
141
141
|
// TODO: Watch args.path for changes and re-copy when updated
|
|
142
142
|
contents: `export const onRequest = ({ request, env, functionPath }) => {
|
|
143
143
|
const url = new URL(request.url)
|
|
144
|
-
const relativePathname = \`/\${url.pathname.
|
|
144
|
+
const relativePathname = \`/\${url.pathname.replace(functionPath, "") || ""}\`.replace(/^\\/\\//, '/');
|
|
145
145
|
url.pathname = '/cdn-cgi/pages-plugins/${identifier}' + relativePathname
|
|
146
146
|
request = new Request(url.toString(), request)
|
|
147
147
|
return env.ASSETS.fetch(request)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/@iarna/toml/index.d.ts","../../../../../node_modules/@webcontainer/env/dist/environment.d.ts","../../../../../node_modules/@webcontainer/env/dist/url.d.ts","../../../../../node_modules/@webcontainer/env/dist/index.d.ts","../../../../../node_modules/buffer/index.d.ts","../../../node_modules/undici/types/readable.d.ts","../../../../../node_modules/@types/node/assert.d.ts","../../../../../node_modules/@types/node/assert/strict.d.ts","../../../../../node_modules/@types/node/globals.d.ts","../../../../../node_modules/@types/node/async_hooks.d.ts","../../../../../node_modules/@types/node/buffer.d.ts","../../../../../node_modules/@types/node/child_process.d.ts","../../../../../node_modules/@types/node/cluster.d.ts","../../../../../node_modules/@types/node/console.d.ts","../../../../../node_modules/@types/node/constants.d.ts","../../../../../node_modules/@types/node/crypto.d.ts","../../../../../node_modules/@types/node/dgram.d.ts","../../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../../node_modules/@types/node/dns.d.ts","../../../../../node_modules/@types/node/dns/promises.d.ts","../../../../../node_modules/@types/node/domain.d.ts","../../../../../node_modules/@types/node/events.d.ts","../../../../../node_modules/@types/node/fs.d.ts","../../../../../node_modules/@types/node/fs/promises.d.ts","../../../../../node_modules/@types/node/http.d.ts","../../../../../node_modules/@types/node/http2.d.ts","../../../../../node_modules/@types/node/https.d.ts","../../../../../node_modules/@types/node/inspector.d.ts","../../../../../node_modules/@types/node/module.d.ts","../../../../../node_modules/@types/node/net.d.ts","../../../../../node_modules/@types/node/os.d.ts","../../../../../node_modules/@types/node/path.d.ts","../../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../../node_modules/@types/node/process.d.ts","../../../../../node_modules/@types/node/punycode.d.ts","../../../../../node_modules/@types/node/querystring.d.ts","../../../../../node_modules/@types/node/readline.d.ts","../../../../../node_modules/@types/node/repl.d.ts","../../../../../node_modules/@types/node/stream.d.ts","../../../../../node_modules/@types/node/stream/promises.d.ts","../../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../../node_modules/@types/node/stream/web.d.ts","../../../../../node_modules/@types/node/string_decoder.d.ts","../../../../../node_modules/@types/node/timers.d.ts","../../../../../node_modules/@types/node/timers/promises.d.ts","../../../../../node_modules/@types/node/tls.d.ts","../../../../../node_modules/@types/node/trace_events.d.ts","../../../../../node_modules/@types/node/tty.d.ts","../../../../../node_modules/@types/node/url.d.ts","../../../../../node_modules/@types/node/util.d.ts","../../../../../node_modules/@types/node/v8.d.ts","../../../../../node_modules/@types/node/vm.d.ts","../../../../../node_modules/@types/node/wasi.d.ts","../../../../../node_modules/@types/node/worker_threads.d.ts","../../../../../node_modules/@types/node/zlib.d.ts","../../../../../node_modules/@types/node/globals.global.d.ts","../../../../../node_modules/@types/node/index.d.ts","../../../node_modules/undici/types/file.d.ts","../../../node_modules/undici/types/fetch.d.ts","../../../node_modules/undici/types/formdata.d.ts","../../../node_modules/undici/types/connector.d.ts","../../../node_modules/undici/types/client.d.ts","../../../node_modules/undici/types/errors.d.ts","../../../node_modules/undici/types/dispatcher.d.ts","../../../node_modules/undici/types/global-dispatcher.d.ts","../../../node_modules/undici/types/global-origin.d.ts","../../../node_modules/undici/types/pool-stats.d.ts","../../../node_modules/undici/types/pool.d.ts","../../../node_modules/undici/types/handlers.d.ts","../../../node_modules/undici/types/balanced-pool.d.ts","../../../node_modules/undici/types/agent.d.ts","../../../node_modules/undici/types/mock-interceptor.d.ts","../../../node_modules/undici/types/mock-agent.d.ts","../../../node_modules/undici/types/mock-client.d.ts","../../../node_modules/undici/types/mock-pool.d.ts","../../../node_modules/undici/types/mock-errors.d.ts","../../../node_modules/undici/types/proxy-agent.d.ts","../../../node_modules/undici/types/api.d.ts","../../../node_modules/undici/types/diagnostics-channel.d.ts","../../../node_modules/undici/types/interceptors.d.ts","../../../node_modules/undici/index.d.ts","../../../node_modules/locate-path/index.d.ts","../../../node_modules/find-up/index.d.ts","../../../../../node_modules/ci-info/index.d.ts","../../../../../node_modules/@types/is-ci/index.d.ts","../../is-ci.ts","../../is-interactive.ts","../../../../../node_modules/chalk/types/index.d.ts","../../../../../node_modules/cli-table3/index.d.ts","../../../../../node_modules/esbuild/lib/main.d.ts","../../environment-variables/factory.ts","../../logger.ts","../../config-cache.ts","../../../../../node_modules/@types/prompts/index.d.ts","../../dialogs.ts","../../../../../node_modules/xdg-app-paths/dist/types/mod.d.ts","../../global-wrangler-config-path.ts","../../../../../node_modules/open/index.d.ts","../../open-in-browser.ts","../../parse.ts","../../user/access.ts","../../environment-variables/misc-variables.ts","../../user/auth-variables.ts","../../../package.json","../../cfetch/internal.ts","../../cfetch/index.ts","../../user/choose-account.tsx","../../user/generate-auth-url.ts","../../user/generate-random-state.ts","../../user/user.ts","../../user/index.ts","../../__tests__/helpers/run-in-tmp.ts","../../paths.ts","./identifiers.ts","./routes.ts","./filepath-routing.ts","./filepath-routing.test.ts","../constants.ts","./routes-consolidation.ts","./routes-consolidation.test.ts","./routes-transformation.ts","./routes-transformation.test.ts","../../errors.ts","./routes-validation.ts","../errors.ts","./routes-validation.test.ts","../../intl-polyfill.d.ts","../../../../../node_modules/@types/jest/node_modules/chalk/index.d.ts","../../../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../../../node_modules/@jest/schemas/build/index.d.ts","../../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../../node_modules/@types/jest/node_modules/jest-matcher-utils/build/index.d.ts","../../../../../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"72c6cda658c066bfd9f51a34a077648f11a0d8867050733f2cef365729043bf0","363f9ef6f21d68fb8daa0ec3127ea3fb2567c5583999d4846bdbbdeb6f386eb7","b49e007575f7087f2d8718cceea62a309dad06552d539c65d0bbd418b33a33b6","7a317ff3b65c289d4344ea7b6e0a9793168703a79bf1ee889b3ce379b58a54a3","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","e7c20bf3e73ed0996fabeb09284e93181900b6fa18c35aa16643c5449dffb64a","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","196fee5541bfd59699dab615fee2ae7a6f5fe0a6337bcbbfd656ebf1ae329a63","160cc6e3d06938535bc887754afe5798c22d81ce83a9792ebfe2371a70f2ffc2","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"eecd493fc62c4dba3d988e2d7dff63299bf12ab49f5c9021dfef8dcc1ff2089e","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a7971f9fb2a32ec7788ec6cda9d7a33c02023dfe9a62db2030ad1359649d8050","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"daa2956e185fbca0591cb8cbe075c115301cbac7863092103f2aed6078dfb612","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","e3a01aa1ecb30fec4df9c2eb7b1f171734a8695881ec765d9570419d145beedd","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","816924ed387a5206dc920674f9cb50ed9ef196aa1c92ef145618d4bb22abdcff","f9f63c9415e4f32dbefd3966ae736f2be7a80269c433260e8935aec18882bbac","78c864d5bae9757396df937dfd1626d5d9a53da9d6af53b03e2769fea8aab1dd","af374d0ff9768de7abbc20dde30bb08af34dfca1beaa38867d44469128814025","731b1cf869c8d522aa62a3e2846daee0e0cdcdc277087f498d8cc5069972d03b","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","0ec3e3408326da3cfb8371edf27ba4b6beb44277a4e206ddb41ae32e91602b56","fecd3ded75d4ab2921b8f702e4b2317990cf203da118461e95349ac742b8579d","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","8cf23a0959cf72d938eb7c58d6ecc261491c1b4a5553f06dfb9fe6c21d4eaf63","0bf2d6bcd257ec8906339f4e07eede29ce9428b8f2aa56d5e764a88f70ec06be","10a38b861bbc21d9a4d195db18ef4dfa2135e2efeb5c2e3f70c7ad04dd460407","4115949ddc65bf2ccb507498a9c55486300284914dae5e2565f63e1967dfbeba","71afbc331804623823a208d7afaf53c39fefd4b249940a57470fb9722f3da954","957a167314e1b95b2ec1159dc5847d51e00946955ee051bd2b1a7ccf71ece9bf","67d510008ecf71f23942071e9e74cb9c308ab5cc6a55f4eea04532b92ef10453","76189e37253c79eb62a149ca2990927528885cd6f67723a51553b2783bc96835","ee36be1145b9ca7c3d97cc5eb4a31b1f521ee10f32accf1949ce0b51627d967c","a1f35b67778f29808580e3b667da49b1fba8b1426dd996276f81785c90382697","82cdcebf5c7df704cce2c3d1f905b5539b2f1ef3f701f8314e7a558dbc24fa38","5ecef38dd034e9f6aa61b76f4833c1d07cf3506ff4b212d98086de3885ba0aec","51cac533b4031fe5d4fecef5635afac9c0dca87c11f5b325e49e1600a9c51117","8b5baae22d64e1c47b88bdf16025396940393cfa830c66d9f330c1701e91ba91","913754f9281683f22d98d0ba7796896cee30c302baefa3dda69f61af8de244d8","a3e5b8b86e7bd38d9afdc294875c4445c535319e288d3a13c1e2e41f9af934f2","07a8b121d8256d717a496d25387a6f6a1218a49cd3d9dc7acc210382b1425a98","c824a031b54133fd5630aa0b295668d8b26df8ce0fcd1df639f2b3baf048a510","091f417275a51ab3c47b949723e9e8a193012157ecc64a96e2d7b1505e82f395","e6d2c107b358421399671d5afc04f9a0993833121c74bcbd3648ac3a65770936","00b0c44ae6980b240d20aaf79b4f03fa38ff78028fa71a987a0414fb6ba0717a","bf45a2498ec7911454362c65ef3c87b161d91490d2d96a554f3263886c0e3503","458f69ee6d4fe10fcb2e0c3c75bc6327796bd3e3cef05668456180404ed2e9c0","65a8bb855c73a06382ee35ef73c97eb825d5a7d8958eaddeeea4838f17c8078f","5f7614d60b32dc66e5d665eafd10d7619eedca3a20f0e876e9ec73141735e364","368597e75744b2e15fc12bd72ac54a4601f6d9021c6ad8b51d428be4e2d7278d","d46671fe4a68752899ca1ebd86d30a5ec8b8f7bf8c237c5e5d25f3642afa0626","ea8b0f6227604e008a0a77929b3adb5090c34aea3a0a5de5b353952a7301c4ba","ac0e45806dfb87684696b8a268697c8e789c50e29fd285fec047830e773f9832","045748197508c31fd7bf7027b2b4a42f4c5f4f84ec39ce1e1af55ca779313456","7a67980f360af3825c0c8b6b3e3f659982c0027f64b6381b5103274c1c43f901","1d6ad485ca9dc7c5d9e2b61f20e4bd3facbeb4ef56af8f68d71ba6e4a9b9f6eb","9eecb248ca8e33c2b5b5674237bc2b8607f5662bcc03a3e025a55fbfdf069cdc","513f467aabe4b358a7a1e8391b6853bae204ab1e0eeab09278a3681a0e817873","c7d82160d2e4febcf31479fccfd980194ff6f4a85f88d22a83a55e137a498746","37ae61154c01fbc96f3c88e19755b9cdbdd8895cfd4d5cdfafa4b09158a683f0","e4cd60d669bc6592b8bf26bfe3be5dd8a3c8038a2f86f74af9123033641c0a4c","8180a44d92e7f618789a4b26af4522321df8e8d4482445faf6d2cc6a85c95467","d1e35f1b3ee738c6cefabd665de7fcd72e3462b34c9f942fa685302d0be25922","f720a94058231196b81855293bbf4c6ee5226708e2c986d38f1fb9697f504f8a","77da65c6e2ade985b50321b7f0080c67ba3975a027373ff7bf30cd16deb0e0a3","b7d3249cbee977a046efe0f325dc7f553f767b4a26c2360635b81ce800e7e913","539ea2f344e4fce2e77580cd7a5d7f4339926f589321231bc279960e3400772c","b1b83b75b5072ee10c8cd8f374d0c589334761f1834a99a9617441aaedcf36c2","a4a4d800663fe45e65640e784a5973d7f56b544b7e2effbc478edc77610189f5","bb9bc38371e0c0d524420594c4128d4ec39c218f823c936e6b9892839b8ad126","1cf790bc4bef026b98cd90370d12d5d68cd845e7d055102a35ad2afa236c3d0c","e12caf7b64fa0c90bb21d5a29c17664c34a4b06cd432e4925bc4003b42e502d5","903456a035d80598a398c89af6fb6752c49703c4048af0c610fdebd2bcfd7b0c","cd95632585111aa5c5e76dc49b7781f8cdacc7660f8028c8482278c34c248fa0","ea97c663f8c9e5c5b33b008d036d901c342745cc9c0876e822d7f1ecbb87f8d0","64c55e5bbd1580a436bd34bee04f170ae2dca48cfc967fdf71aadf6171b27e64","da3ccf68e9f57491231c52b9127ec5d96c19fd4ee95a91fdb643bac31bc9a2f5","8526249c4486650b51b73ef9ae452fb6ef3254b2e73a1625c68889a9a3bfc070","44fef001b60bc425df2a36e532e867918012e5b50f5a6948c84974a25f93c99a","54eec6988ca92621b079695b65f128a22460400f7af04227a15f6db31b936618","66d1ad7b4b9beb88809845c71ec64b8044b41700a436ec5136fcc5e0dfacdb05",{"version":"d50d5f2cc94307f9b6681ea4c48bbc28101faaaa87edfc64aab5a0a66414b586","affectsGlobalScope":true},"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","d982cdd2610155b3cbcbfa62ccabcf2d2b739f821518ef113348d160ef0010d9","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2",{"version":"1de1ad6a1929317171d8cfcd55bb2732257680c1bf89bcd53e1d46a4d8dbda22","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"alwaysStrict":false,"esModuleInterop":true,"jsx":2,"module":1,"skipLibCheck":true,"strict":true,"target":99},"fileIdsList":[[103,182],[103],[103,137],[103,184,186],[103,184],[103,181,185],[103,183],[60,103],[63,103],[64,69,103],[65,75,76,83,92,102,103],[65,66,75,83,103],[67,103],[68,69,76,84,103],[69,92,99,103],[70,72,75,83,103],[71,103],[72,73,103],[74,75,103],[75,103],[75,76,77,92,102,103],[75,76,77,92,103],[78,83,92,102,103],[75,76,78,79,83,92,99,102,103],[78,80,92,99,102,103],[60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],[75,81,103],[82,102,103],[72,75,83,92,103],[84,103],[85,103],[63,86,103],[87,101,103,107],[88,103],[89,103],[75,90,103],[90,91,103,105],[75,92,93,94,103],[92,94,103],[92,93,103],[95,103],[96,103],[75,97,98,103],[97,98,103],[69,83,99,103],[100,103],[83,101,103],[64,78,89,102,103],[69,103],[92,103,104],[103,105],[103,106],[64,69,75,77,86,92,102,103,105,107],[92,103,108],[92,103,110],[55,56,103],[65,103],[92,103],[103,135],[103,111,112,113,114,115,116,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,133],[102,103,117,121],[92,102,103,117],[102,103,115,117,121],[99,102,103,114,117],[83,99,103],[83,102,103,114,117],[59,64,75,78,92,102,103,113,116],[78,103,115],[64,95,102,103,110,113,117],[64,103,110],[103,110,111,112],[103,117],[103,117,124,125],[103,115,117,125,126],[103,116],[78,103,112,117],[103,117,121,125,126],[103,121],[102,103,115,117,120],[99,103,117,124],[64,92,103],[76,84,85,103,164],[102,103,134,145,153,158],[60,102,103,134,145,153,155,157,164],[76,85,103,136,139,140,145],[103,139,140,141,145,147],[103,145],[103,144],[76,84,85,103,149],[103,138],[103,141,142,143,144],[103,145,151],[103,157],[103,171,177],[76,103,165,166,168,169],[77,85,103,143,166,168],[103,172],[103,171],[103,166,171,174],[85,103,166,168,171,172],[103,171,174,176,177,178],[103,171,174,176,178],[77,85,103,166,167],[54,76,85,103,143,145],[67,85,103],[65,103,134,145],[103,144,154,155],[103,156,159],[69,103,164],[103,160,163],[54,57,60,69,76,78,85,89,102,103,134,139,140,145,146,148,150,152,153,154,156,160,161,162]],"referencedMap":[[183,1],[182,2],[138,3],[187,4],[181,2],[185,5],[186,6],[184,7],[60,8],[61,8],[63,9],[64,10],[65,11],[66,12],[67,13],[68,14],[69,15],[70,16],[71,17],[72,18],[73,18],[74,19],[75,20],[76,21],[77,22],[62,2],[109,2],[78,23],[79,24],[80,25],[110,26],[81,27],[82,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[94,39],[93,40],[95,41],[96,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[147,55],[55,2],[57,56],[56,2],[58,2],[141,2],[137,2],[142,2],[143,2],[151,57],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[51,2],[52,2],[1,2],[10,2],[53,2],[149,2],[54,58],[136,59],[135,2],[134,60],[124,61],[131,62],[123,63],[115,64],[114,65],[132,66],[117,67],[116,68],[112,69],[111,70],[113,71],[118,72],[119,2],[122,72],[133,72],[126,73],[127,74],[129,75],[125,76],[128,77],[120,78],[121,79],[130,80],[59,81],[157,2],[165,82],[159,83],[158,84],[146,85],[148,86],[144,87],[155,88],[176,2],[150,89],[180,2],[139,90],[140,2],[145,91],[152,92],[171,93],[178,94],[170,95],[169,96],[167,2],[173,97],[172,98],[175,99],[174,100],[179,101],[177,102],[168,103],[153,104],[166,105],[154,106],[156,107],[160,108],[161,2],[162,109],[164,110],[163,111]],"exportedModulesMap":[[183,1],[182,2],[138,3],[187,4],[181,2],[185,5],[186,6],[184,7],[60,8],[61,8],[63,9],[64,10],[65,11],[66,12],[67,13],[68,14],[69,15],[70,16],[71,17],[72,18],[73,18],[74,19],[75,20],[76,21],[77,22],[62,2],[109,2],[78,23],[79,24],[80,25],[110,26],[81,27],[82,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,37],[92,38],[94,39],[93,40],[95,41],[96,42],[97,43],[98,44],[99,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[147,55],[55,2],[57,56],[56,2],[58,2],[141,2],[137,2],[142,2],[143,2],[151,57],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[36,2],[41,2],[42,2],[37,2],[38,2],[39,2],[40,2],[8,2],[46,2],[43,2],[44,2],[45,2],[47,2],[9,2],[48,2],[49,2],[50,2],[51,2],[52,2],[1,2],[10,2],[53,2],[149,2],[54,58],[136,59],[135,2],[134,60],[124,61],[131,62],[123,63],[115,64],[114,65],[132,66],[117,67],[116,68],[112,69],[111,70],[113,71],[118,72],[119,2],[122,72],[133,72],[126,73],[127,74],[129,75],[125,76],[128,77],[120,78],[121,79],[130,80],[59,81],[157,2],[165,82],[159,83],[158,84],[146,85],[148,86],[144,87],[155,88],[176,2],[150,89],[180,2],[139,90],[140,2],[145,91],[152,92],[171,93],[178,94],[170,95],[169,96],[167,2],[173,97],[172,98],[175,99],[174,100],[179,101],[177,102],[168,103],[153,104],[166,105],[154,106],[156,107],[160,108],[161,2],[162,109],[164,110],[163,111]],"semanticDiagnosticsPerFile":[183,182,138,187,181,185,186,184,60,61,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,62,109,78,79,80,110,81,82,83,84,85,86,87,88,89,90,91,92,94,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,147,55,57,56,58,141,137,142,143,151,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,52,1,10,53,149,54,136,135,134,124,131,123,115,114,132,117,116,112,111,113,118,119,122,133,126,127,129,125,128,120,121,130,59,157,165,159,158,146,148,144,155,176,150,180,139,140,145,152,171,178,170,169,167,173,172,175,174,179,177,168,153,166,154,156,160,161,162,164,163],"affectedFilesPendingEmit":[[183,1],[182,1],[138,1],[187,1],[181,1],[185,1],[186,1],[184,1],[60,1],[61,1],[63,1],[64,1],[65,1],[66,1],[67,1],[68,1],[69,1],[70,1],[71,1],[72,1],[73,1],[74,1],[75,1],[76,1],[77,1],[62,1],[109,1],[78,1],[79,1],[80,1],[110,1],[81,1],[82,1],[83,1],[84,1],[85,1],[86,1],[87,1],[88,1],[89,1],[90,1],[91,1],[92,1],[94,1],[93,1],[95,1],[96,1],[97,1],[98,1],[99,1],[100,1],[101,1],[102,1],[103,1],[104,1],[105,1],[106,1],[107,1],[108,1],[147,1],[55,1],[57,1],[56,1],[58,1],[141,1],[137,1],[142,1],[143,1],[151,1],[2,1],[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[10,1],[149,1],[54,1],[136,1],[135,1],[134,1],[124,1],[131,1],[123,1],[115,1],[114,1],[132,1],[117,1],[116,1],[112,1],[111,1],[113,1],[118,1],[119,1],[122,1],[133,1],[126,1],[127,1],[129,1],[125,1],[128,1],[120,1],[121,1],[130,1],[59,1],[157,1],[165,1],[159,1],[158,1],[146,1],[148,1],[144,1],[155,1],[176,1],[150,1],[180,1],[139,1],[140,1],[145,1],[152,1],[171,1],[178,1],[170,1],[169,1],[167,1],[173,1],[172,1],[175,1],[174,1],[179,1],[177,1],[168,1],[153,1],[166,1],[154,1],[156,1],[160,1],[161,1],[162,1],[164,1],[163,1]]},"version":"4.8.4"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/pages/projects.tsx
CHANGED
|
@@ -132,11 +132,9 @@ export async function CreateHandler({
|
|
|
132
132
|
} catch (err) {}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
productionBranch = await prompt(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
productionBranch ?? "production"
|
|
139
|
-
);
|
|
135
|
+
productionBranch = await prompt("Enter the production branch name:", {
|
|
136
|
+
defaultValue: productionBranch ?? "production",
|
|
137
|
+
});
|
|
140
138
|
}
|
|
141
139
|
|
|
142
140
|
if (!productionBranch) {
|
package/src/pages/publish.tsx
CHANGED
|
@@ -156,10 +156,11 @@ export const Handler = async ({
|
|
|
156
156
|
|
|
157
157
|
const productionBranch = await prompt(
|
|
158
158
|
"Enter the production branch name:",
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
{
|
|
160
|
+
defaultValue: isGitDir
|
|
161
|
+
? execSync(`git rev-parse --abbrev-ref HEAD`).toString().trim()
|
|
162
|
+
: "production",
|
|
163
|
+
}
|
|
163
164
|
);
|
|
164
165
|
|
|
165
166
|
if (!productionBranch) {
|
package/src/pages/upload.tsx
CHANGED
package/src/publish/publish.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { fetchListResult, fetchResult } from "../cfetch";
|
|
13
13
|
import { printBindings } from "../config";
|
|
14
14
|
import { createWorkerUploadForm } from "../create-worker-upload-form";
|
|
15
|
-
import { confirm
|
|
15
|
+
import { confirm } from "../dialogs";
|
|
16
16
|
import { getMigrationsToUpload } from "../durable";
|
|
17
17
|
import { logger } from "../logger";
|
|
18
18
|
import { getMetricsUsageHeaders } from "../metrics";
|
|
@@ -269,12 +269,14 @@ export default async function publish(props: Props): Promise<void> {
|
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
if (
|
|
273
|
-
(
|
|
274
|
-
|
|
275
|
-
)
|
|
276
|
-
|
|
277
|
-
|
|
272
|
+
if (default_environment.script.last_deployed_from === "dash") {
|
|
273
|
+
logger.warn(
|
|
274
|
+
`You are about to publish a Workers Service that was last published via the Cloudflare Dashboard.\nEdits that have been made via the dashboard will be overridden by your local code and config.`
|
|
275
|
+
);
|
|
276
|
+
if (!(await confirm("Would you like to continue?"))) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
278
280
|
} catch (e) {
|
|
279
281
|
// code: 10090, message: workers.api.error.service_not_found
|
|
280
282
|
// is thrown from the above fetchResult on the first publish of a Worker
|
|
@@ -49,7 +49,7 @@ export function pubSubCommands(
|
|
|
49
49
|
namespace.description = args.description;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
logger.log(`Creating Pub/
|
|
52
|
+
logger.log(`Creating Pub/Sub Namespace ${args.name}...`);
|
|
53
53
|
await pubsub.createPubSubNamespace(accountId, namespace);
|
|
54
54
|
logger.log(`Success! Created Pub/Sub Namespace ${args.name}`);
|
|
55
55
|
await metrics.sendMetricsEvent("create pubsub namespace", {
|
package/src/secret/index.ts
CHANGED
|
@@ -58,7 +58,7 @@ export const secret = (secretYargs: Argv<CommonYargsOptions>) => {
|
|
|
58
58
|
const isInteractive = process.stdin.isTTY;
|
|
59
59
|
const secretValue = trimTrailingWhitespace(
|
|
60
60
|
isInteractive
|
|
61
|
-
? await prompt("Enter a secret value:",
|
|
61
|
+
? await prompt("Enter a secret value:", { isSecret: true })
|
|
62
62
|
: await readFromStdin()
|
|
63
63
|
);
|
|
64
64
|
|
|
File without changes
|
package/src/tail/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import onExit from "signal-exit";
|
|
|
3
3
|
|
|
4
4
|
import { fetchResult, fetchScriptContent } from "../cfetch";
|
|
5
5
|
import { readConfig } from "../config";
|
|
6
|
-
import {
|
|
6
|
+
import { confirm } from "../dialogs";
|
|
7
7
|
import {
|
|
8
8
|
isLegacyEnv,
|
|
9
9
|
printWranglerBanner,
|
|
@@ -144,8 +144,7 @@ export async function tailHandler(args: TailArgs) {
|
|
|
144
144
|
`Beginning log collection requires restarting the Durable Objects associated with ${scriptName}. Any WebSocket connections or other non-persisted state will be lost as part of this restart.`
|
|
145
145
|
);
|
|
146
146
|
|
|
147
|
-
|
|
148
|
-
if (!shouldContinue) {
|
|
147
|
+
if (!(await confirm("Would you like to continue?"))) {
|
|
149
148
|
return;
|
|
150
149
|
}
|
|
151
150
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// `@types/node` should be included
|
|
2
|
+
Buffer.from("test");
|
|
3
|
+
|
|
4
|
+
// @ts-expect-error `@types/jest` should NOT be included
|
|
5
|
+
test("test");
|
|
6
|
+
|
|
7
|
+
// @ts-expect-error `@cloudflare/workers-types` should NOT be included
|
|
8
|
+
const _handler: ExportedHandler = {};
|
|
9
|
+
// @ts-expect-error `@cloudflare/workers-types` should NOT be included
|
|
10
|
+
new HTMLRewriter();
|
|
11
|
+
|
|
12
|
+
// @ts-expect-error `fetch` should NOT be included as our minimum supported
|
|
13
|
+
// Node version is 16.13.0 which does not include `fetch` on the global scope
|
|
14
|
+
void fetch("http://localhost/");
|
|
15
|
+
|
|
16
|
+
export {};
|
package/src/user/access.ts
CHANGED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { getEnvironmentVariableFactory } from "../environment-variables/factory";
|
|
2
|
+
import { getCloudflareApiEnvironmentFromEnv } from "../environment-variables/misc-variables";
|
|
3
|
+
import { getAccessToken } from "./access";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* `CLOUDFLARE_ACCOUNT_ID` overrides the account inferred from the current user.
|
|
7
|
+
*/
|
|
8
|
+
export const getCloudflareAccountIdFromEnv = getEnvironmentVariableFactory({
|
|
9
|
+
variableName: "CLOUDFLARE_ACCOUNT_ID",
|
|
10
|
+
deprecatedName: "CF_ACCOUNT_ID",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export const getCloudflareAPITokenFromEnv = getEnvironmentVariableFactory({
|
|
14
|
+
variableName: "CLOUDFLARE_API_TOKEN",
|
|
15
|
+
deprecatedName: "CF_API_TOKEN",
|
|
16
|
+
});
|
|
17
|
+
export const getCloudflareGlobalAuthKeyFromEnv = getEnvironmentVariableFactory({
|
|
18
|
+
variableName: "CLOUDFLARE_API_KEY",
|
|
19
|
+
deprecatedName: "CF_API_KEY",
|
|
20
|
+
});
|
|
21
|
+
export const getCloudflareGlobalAuthEmailFromEnv =
|
|
22
|
+
getEnvironmentVariableFactory({
|
|
23
|
+
variableName: "CLOUDFLARE_EMAIL",
|
|
24
|
+
deprecatedName: "CF_EMAIL",
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* `WRANGLER_CLIENT_ID` is a UUID that is used to identify Wrangler
|
|
29
|
+
* to the Cloudflare APIs.
|
|
30
|
+
*
|
|
31
|
+
* Normally you should not need to set this explicitly.
|
|
32
|
+
* If you want to switch to the staging environment set the
|
|
33
|
+
* `WRANGLER_USE_STAGING` environment variable instead.
|
|
34
|
+
*/
|
|
35
|
+
export const getClientIdFromEnv = getEnvironmentVariableFactory({
|
|
36
|
+
variableName: "WRANGLER_CLIENT_ID",
|
|
37
|
+
defaultValue: () =>
|
|
38
|
+
getCloudflareApiEnvironmentFromEnv() === "staging"
|
|
39
|
+
? "4b2ea6cc-9421-4761-874b-ce550e0e3def"
|
|
40
|
+
: "54d11594-84e4-41aa-b438-e81b8fa78ee7",
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* `WRANGLER_AUTH_DOMAIN` is the URL base domain that is used
|
|
45
|
+
* to access OAuth URLs for the Cloudflare APIs.
|
|
46
|
+
*
|
|
47
|
+
* Normally you should not need to set this explicitly.
|
|
48
|
+
* If you want to switch to the staging environment set the
|
|
49
|
+
* `WRANGLER_USE_STAGING` environment variable instead.
|
|
50
|
+
*/
|
|
51
|
+
export const getAuthDomainFromEnv = getEnvironmentVariableFactory({
|
|
52
|
+
variableName: "WRANGLER_AUTH_DOMAIN",
|
|
53
|
+
defaultValue: () =>
|
|
54
|
+
getCloudflareApiEnvironmentFromEnv() === "staging"
|
|
55
|
+
? "dash.staging.cloudflare.com"
|
|
56
|
+
: "dash.cloudflare.com",
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* `WRANGLER_AUTH_URL` is the path that is used to access OAuth
|
|
61
|
+
* for the Cloudflare APIs.
|
|
62
|
+
*
|
|
63
|
+
* Normally you should not need to set this explicitly.
|
|
64
|
+
* If you want to switch to the staging environment set the
|
|
65
|
+
* `WRANGLER_USE_STAGING` environment variable instead.
|
|
66
|
+
*/
|
|
67
|
+
export const getAuthUrlFromEnv = getEnvironmentVariableFactory({
|
|
68
|
+
variableName: "WRANGLER_AUTH_URL",
|
|
69
|
+
defaultValue: () => `https://${getAuthDomainFromEnv()}/oauth2/auth`,
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* `WRANGLER_TOKEN_URL` is the path that is used to exchange an OAuth
|
|
74
|
+
* token for an API token.
|
|
75
|
+
*
|
|
76
|
+
* Normally you should not need to set this explicitly.
|
|
77
|
+
* If you want to switch to the staging environment set the
|
|
78
|
+
* `WRANGLER_USE_STAGING` environment variable instead.
|
|
79
|
+
*/
|
|
80
|
+
export const getTokenUrlFromEnv = getEnvironmentVariableFactory({
|
|
81
|
+
variableName: "WRANGLER_TOKEN_URL",
|
|
82
|
+
defaultValue: () => `https://${getAuthDomainFromEnv()}/oauth2/token`,
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* `WRANGLER_REVOKE_URL` is the path that is used to exchange an OAuth
|
|
87
|
+
* refresh token for a new OAuth token.
|
|
88
|
+
*
|
|
89
|
+
* Normally you should not need to set this explicitly.
|
|
90
|
+
* If you want to switch to the staging environment set the
|
|
91
|
+
* `WRANGLER_USE_STAGING` environment variable instead.
|
|
92
|
+
*/
|
|
93
|
+
export const getRevokeUrlFromEnv = getEnvironmentVariableFactory({
|
|
94
|
+
variableName: "WRANGLER_REVOKE_URL",
|
|
95
|
+
defaultValue: () => `https://${getAuthDomainFromEnv()}/oauth2/revoke`,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Set the `WRANGLER_CF_AUTHORIZATION_TOKEN` to the CF_Authorization token found at https://dash.staging.cloudflare.com/bypass-limits
|
|
100
|
+
* if you want to access the staging environment, triggered by `WRANGLER_API_ENVIRONMENT=staging`.
|
|
101
|
+
*/
|
|
102
|
+
export const getCloudflareAccessToken = async () => {
|
|
103
|
+
const env = getEnvironmentVariableFactory({
|
|
104
|
+
variableName: "WRANGLER_CF_AUTHORIZATION_TOKEN",
|
|
105
|
+
})();
|
|
106
|
+
|
|
107
|
+
// If the environment variable is defined, go ahead and use it.
|
|
108
|
+
if (env !== undefined) {
|
|
109
|
+
return env;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return getAccessToken(getAuthDomainFromEnv());
|
|
113
|
+
};
|
|
@@ -1,41 +1,11 @@
|
|
|
1
|
-
import { Text } from "ink";
|
|
2
|
-
import SelectInput from "ink-select-input";
|
|
3
|
-
import React from "react";
|
|
4
1
|
import { fetchListResult } from "../cfetch";
|
|
5
|
-
import {
|
|
6
|
-
import { getCloudflareAccountIdFromEnv } from "./env-vars";
|
|
2
|
+
import { getCloudflareAccountIdFromEnv } from "./auth-variables";
|
|
7
3
|
|
|
8
4
|
export type ChooseAccountItem = {
|
|
9
5
|
id: string;
|
|
10
6
|
name: string;
|
|
11
7
|
};
|
|
12
8
|
|
|
13
|
-
/**
|
|
14
|
-
* A component that allows the user to select from a list of available accounts.
|
|
15
|
-
*/
|
|
16
|
-
export function ChooseAccount(props: {
|
|
17
|
-
accounts: ChooseAccountItem[];
|
|
18
|
-
onSelect: (account: { name: string; id: string }) => void;
|
|
19
|
-
onError: (error: Error) => void;
|
|
20
|
-
}) {
|
|
21
|
-
return (
|
|
22
|
-
<>
|
|
23
|
-
<Text bold>Select an account from below:</Text>
|
|
24
|
-
<SelectInput
|
|
25
|
-
items={props.accounts.map((item) => ({
|
|
26
|
-
key: item.id,
|
|
27
|
-
label: item.name,
|
|
28
|
-
value: item,
|
|
29
|
-
}))}
|
|
30
|
-
onSelect={(item) => {
|
|
31
|
-
logger.log(`Using account: "${item.value.name} - ${item.value.id}"`);
|
|
32
|
-
props.onSelect({ id: item.value.id, name: item.value.name });
|
|
33
|
-
}}
|
|
34
|
-
/>
|
|
35
|
-
</>
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
9
|
/**
|
|
40
10
|
* Infer a list of available accounts for the current user.
|
|
41
11
|
*/
|
package/src/user/index.ts
CHANGED