wrangler 0.0.0-e6e1daba → 0.0.0-e72a5794

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.
Files changed (299) hide show
  1. package/README.md +10 -12
  2. package/bin/wrangler.js +10 -76
  3. package/package.json +19 -18
  4. package/templates/__tests__/tsconfig.json +1 -1
  5. package/templates/checked-fetch.js +10 -3
  6. package/templates/facade.d.ts +4 -1
  7. package/templates/gitignore +1 -0
  8. package/templates/middleware/common.ts +9 -4
  9. package/templates/middleware/loader-modules.ts +64 -11
  10. package/templates/middleware/loader-sw.ts +2 -7
  11. package/templates/middleware/middleware-d1-beta.d.ts +3 -0
  12. package/templates/{d1-beta-facade.js → middleware/middleware-d1-beta.ts} +87 -84
  13. package/templates/middleware/middleware-miniflare3-json-error.ts +17 -5
  14. package/templates/middleware/middleware-multiworker-dev.d.ts +4 -0
  15. package/templates/middleware/middleware-multiworker-dev.ts +59 -0
  16. package/templates/middleware/middleware-serve-static-assets.d.ts +6 -0
  17. package/templates/middleware/middleware-serve-static-assets.ts +56 -0
  18. package/templates/new-worker-scheduled.ts +1 -1
  19. package/templates/new-worker.ts +1 -1
  20. package/templates/pages-dev-util.ts +4 -1
  21. package/templates/pages-shim.ts +0 -3
  22. package/templates/pages-template-plugin.ts +12 -2
  23. package/templates/pages-template-worker.ts +11 -2
  24. package/templates/tsconfig.init.json +1 -2
  25. package/templates/tsconfig.json +1 -1
  26. package/wrangler-dist/cli.d.ts +192 -87
  27. package/wrangler-dist/cli.js +76158 -78596
  28. package/import_meta_url.js +0 -3
  29. package/miniflare-config-stubs/.env.empty +0 -0
  30. package/miniflare-config-stubs/package.empty.json +0 -1
  31. package/miniflare-config-stubs/wrangler.empty.toml +0 -0
  32. package/miniflare-dist/index.mjs +0 -6368
  33. package/src/__tests__/access.test.ts +0 -25
  34. package/src/__tests__/api-dev.test.ts +0 -238
  35. package/src/__tests__/api-devregistry.test.js +0 -64
  36. package/src/__tests__/api.test.ts +0 -80
  37. package/src/__tests__/config-cache-without-cache-dir.test.ts +0 -38
  38. package/src/__tests__/config-cache.test.ts +0 -42
  39. package/src/__tests__/configuration.test.ts +0 -4233
  40. package/src/__tests__/d1/d1.test.ts +0 -82
  41. package/src/__tests__/d1/execute.test.ts +0 -64
  42. package/src/__tests__/d1/migrate.test.ts +0 -155
  43. package/src/__tests__/d1/splitter.test.ts +0 -255
  44. package/src/__tests__/delete.test.ts +0 -266
  45. package/src/__tests__/deployments.test.ts +0 -129
  46. package/src/__tests__/dev.test.tsx +0 -1587
  47. package/src/__tests__/generate.test.ts +0 -238
  48. package/src/__tests__/get-host-from-url.test.ts +0 -16
  49. package/src/__tests__/guess-worker-format.test.ts +0 -120
  50. package/src/__tests__/helpers/clipboardy-mock.js +0 -4
  51. package/src/__tests__/helpers/cmd-shim.d.ts +0 -11
  52. package/src/__tests__/helpers/end-event-loop.ts +0 -6
  53. package/src/__tests__/helpers/mock-account-id.ts +0 -48
  54. package/src/__tests__/helpers/mock-auth-domain.ts +0 -20
  55. package/src/__tests__/helpers/mock-bin.ts +0 -36
  56. package/src/__tests__/helpers/mock-console.ts +0 -106
  57. package/src/__tests__/helpers/mock-dialogs.ts +0 -139
  58. package/src/__tests__/helpers/mock-get-pages-upload-token.ts +0 -25
  59. package/src/__tests__/helpers/mock-get-zone-from-host.ts +0 -11
  60. package/src/__tests__/helpers/mock-http-server.ts +0 -46
  61. package/src/__tests__/helpers/mock-istty.ts +0 -74
  62. package/src/__tests__/helpers/mock-known-routes.ts +0 -12
  63. package/src/__tests__/helpers/mock-kv.ts +0 -46
  64. package/src/__tests__/helpers/mock-oauth-flow.ts +0 -263
  65. package/src/__tests__/helpers/mock-process.ts +0 -34
  66. package/src/__tests__/helpers/mock-set-timeout.ts +0 -16
  67. package/src/__tests__/helpers/mock-stdin.ts +0 -108
  68. package/src/__tests__/helpers/mock-web-socket.ts +0 -29
  69. package/src/__tests__/helpers/msw/blob-worker.cjs +0 -19
  70. package/src/__tests__/helpers/msw/handlers/access.ts +0 -13
  71. package/src/__tests__/helpers/msw/handlers/deployments.ts +0 -93
  72. package/src/__tests__/helpers/msw/handlers/namespaces.ts +0 -81
  73. package/src/__tests__/helpers/msw/handlers/oauth.ts +0 -31
  74. package/src/__tests__/helpers/msw/handlers/r2.ts +0 -60
  75. package/src/__tests__/helpers/msw/handlers/script.ts +0 -56
  76. package/src/__tests__/helpers/msw/handlers/user.ts +0 -52
  77. package/src/__tests__/helpers/msw/handlers/zones.ts +0 -20
  78. package/src/__tests__/helpers/msw/index.ts +0 -50
  79. package/src/__tests__/helpers/msw/read-file-sync.js +0 -61
  80. package/src/__tests__/helpers/run-in-tmp.ts +0 -38
  81. package/src/__tests__/helpers/run-wrangler.ts +0 -16
  82. package/src/__tests__/helpers/string-dynamic-values-matcher.ts +0 -28
  83. package/src/__tests__/helpers/worker-scripts/child-wrangler.toml +0 -1
  84. package/src/__tests__/helpers/worker-scripts/hello-world-worker.js +0 -5
  85. package/src/__tests__/helpers/worker-scripts/hello-world-wrangler.toml +0 -1
  86. package/src/__tests__/helpers/worker-scripts/parent-worker.js +0 -8
  87. package/src/__tests__/helpers/worker-scripts/parent-wrangler.toml +0 -5
  88. package/src/__tests__/helpers/write-worker-source.ts +0 -31
  89. package/src/__tests__/helpers/write-wrangler-toml.ts +0 -17
  90. package/src/__tests__/https-options.test.ts +0 -163
  91. package/src/__tests__/index.test.ts +0 -274
  92. package/src/__tests__/init.test.ts +0 -3164
  93. package/src/__tests__/jest.setup.ts +0 -175
  94. package/src/__tests__/kv.test.ts +0 -1799
  95. package/src/__tests__/logger.test.ts +0 -141
  96. package/src/__tests__/logout.test.ts +0 -47
  97. package/src/__tests__/metrics.test.ts +0 -493
  98. package/src/__tests__/middleware.scheduled.test.ts +0 -145
  99. package/src/__tests__/middleware.test.ts +0 -815
  100. package/src/__tests__/mtls-certificates.test.ts +0 -585
  101. package/src/__tests__/package-manager.test.ts +0 -353
  102. package/src/__tests__/pages/deployment-list.test.ts +0 -78
  103. package/src/__tests__/pages/functions-build.test.ts +0 -402
  104. package/src/__tests__/pages/pages.test.ts +0 -81
  105. package/src/__tests__/pages/project-create.test.ts +0 -63
  106. package/src/__tests__/pages/project-list.test.ts +0 -108
  107. package/src/__tests__/pages/project-upload.test.ts +0 -481
  108. package/src/__tests__/pages/publish.test.ts +0 -2745
  109. package/src/__tests__/pages-deployment-tail.test.ts +0 -955
  110. package/src/__tests__/parse.test.ts +0 -436
  111. package/src/__tests__/paths.test.ts +0 -39
  112. package/src/__tests__/publish.test.ts +0 -8167
  113. package/src/__tests__/pubsub.test.ts +0 -493
  114. package/src/__tests__/queues.test.ts +0 -529
  115. package/src/__tests__/r2.test.ts +0 -374
  116. package/src/__tests__/route.test.ts +0 -45
  117. package/src/__tests__/secret.test.ts +0 -693
  118. package/src/__tests__/tail.test.ts +0 -958
  119. package/src/__tests__/test-old-node-version.js +0 -31
  120. package/src/__tests__/tsconfig-sanity.ts +0 -12
  121. package/src/__tests__/tsconfig.json +0 -8
  122. package/src/__tests__/tsconfig.tsbuildinfo +0 -1
  123. package/src/__tests__/type-generation.test.ts +0 -233
  124. package/src/__tests__/user.test.ts +0 -118
  125. package/src/__tests__/utils-collectKeyValues.test.ts +0 -47
  126. package/src/__tests__/validate-dev-props.test.ts +0 -56
  127. package/src/__tests__/version.test.ts +0 -35
  128. package/src/__tests__/whoami.test.tsx +0 -172
  129. package/src/__tests__/worker-namespace.test.ts +0 -339
  130. package/src/abort.d.ts +0 -3
  131. package/src/api/dev.ts +0 -328
  132. package/src/api/index.ts +0 -11
  133. package/src/api/mtls-certificate.ts +0 -148
  134. package/src/api/pages/create-worker-bundle-contents.ts +0 -75
  135. package/src/api/pages/index.ts +0 -5
  136. package/src/api/pages/publish.tsx +0 -368
  137. package/src/bundle-reporter.ts +0 -68
  138. package/src/bundle.ts +0 -877
  139. package/src/cfetch/index.ts +0 -158
  140. package/src/cfetch/internal.ts +0 -258
  141. package/src/cli.ts +0 -28
  142. package/src/config/README.md +0 -107
  143. package/src/config/config.ts +0 -282
  144. package/src/config/diagnostics.ts +0 -80
  145. package/src/config/environment.ts +0 -586
  146. package/src/config/index.ts +0 -375
  147. package/src/config/validation-helpers.ts +0 -597
  148. package/src/config/validation.ts +0 -2198
  149. package/src/config-cache.ts +0 -85
  150. package/src/create-worker-preview.ts +0 -293
  151. package/src/create-worker-upload-form.ts +0 -334
  152. package/src/d1/backups.tsx +0 -215
  153. package/src/d1/constants.ts +0 -2
  154. package/src/d1/create.tsx +0 -64
  155. package/src/d1/delete.ts +0 -53
  156. package/src/d1/execute.tsx +0 -354
  157. package/src/d1/formatTimeAgo.ts +0 -14
  158. package/src/d1/index.ts +0 -100
  159. package/src/d1/list.tsx +0 -60
  160. package/src/d1/migrations/apply.tsx +0 -206
  161. package/src/d1/migrations/create.tsx +0 -76
  162. package/src/d1/migrations/helpers.ts +0 -172
  163. package/src/d1/migrations/index.ts +0 -3
  164. package/src/d1/migrations/list.tsx +0 -92
  165. package/src/d1/migrations/options.ts +0 -23
  166. package/src/d1/options.ts +0 -22
  167. package/src/d1/splitter.ts +0 -161
  168. package/src/d1/types.ts +0 -25
  169. package/src/d1/utils.ts +0 -49
  170. package/src/delete.ts +0 -100
  171. package/src/deployments.ts +0 -116
  172. package/src/deprecated/index.ts +0 -144
  173. package/src/dev/dev-vars.ts +0 -39
  174. package/src/dev/dev.tsx +0 -600
  175. package/src/dev/get-local-persistence-path.ts +0 -31
  176. package/src/dev/local.tsx +0 -922
  177. package/src/dev/remote.tsx +0 -632
  178. package/src/dev/start-server.ts +0 -538
  179. package/src/dev/use-esbuild.ts +0 -205
  180. package/src/dev/validate-dev-props.ts +0 -31
  181. package/src/dev-registry.ts +0 -201
  182. package/src/dev.tsx +0 -914
  183. package/src/dialogs.ts +0 -136
  184. package/src/dispatch-namespace.ts +0 -211
  185. package/src/docs/index.ts +0 -97
  186. package/src/durable.ts +0 -102
  187. package/src/entry.ts +0 -327
  188. package/src/environment-variables/factory.ts +0 -88
  189. package/src/environment-variables/misc-variables.ts +0 -30
  190. package/src/errors.ts +0 -11
  191. package/src/generate/index.ts +0 -298
  192. package/src/git-client.ts +0 -135
  193. package/src/global-wrangler-config-path.ts +0 -26
  194. package/src/https-options.ts +0 -127
  195. package/src/index.ts +0 -705
  196. package/src/init.ts +0 -1022
  197. package/src/inspect.ts +0 -782
  198. package/src/intl-polyfill.d.ts +0 -139
  199. package/src/is-ci.ts +0 -14
  200. package/src/is-interactive.ts +0 -16
  201. package/src/jest.d.ts +0 -4
  202. package/src/kv/helpers.ts +0 -430
  203. package/src/kv/index.ts +0 -594
  204. package/src/logger.ts +0 -104
  205. package/src/metrics/index.ts +0 -5
  206. package/src/metrics/metrics-config.ts +0 -239
  207. package/src/metrics/metrics-dispatcher.ts +0 -96
  208. package/src/metrics/metrics-usage-headers.ts +0 -24
  209. package/src/metrics/send-event.ts +0 -98
  210. package/src/miniflare-cli/README.md +0 -30
  211. package/src/miniflare-cli/assets.ts +0 -251
  212. package/src/miniflare-cli/index.ts +0 -210
  213. package/src/miniflare-cli/request-context.ts +0 -40
  214. package/src/miniflare-cli/tsconfig.json +0 -9
  215. package/src/miniflare-cli/tsconfig.tsbuildinfo +0 -1
  216. package/src/miniflare-cli/types.ts +0 -11
  217. package/src/module-collection.ts +0 -267
  218. package/src/mtls-certificate/cli.ts +0 -155
  219. package/src/open-in-browser.ts +0 -17
  220. package/src/package-manager.ts +0 -219
  221. package/src/pages/build.ts +0 -232
  222. package/src/pages/buildFunctions.ts +0 -130
  223. package/src/pages/constants.ts +0 -18
  224. package/src/pages/deployment-tails.ts +0 -281
  225. package/src/pages/deployments.tsx +0 -86
  226. package/src/pages/dev.ts +0 -716
  227. package/src/pages/errors.ts +0 -66
  228. package/src/pages/functions/buildPlugin.ts +0 -90
  229. package/src/pages/functions/buildWorker.ts +0 -288
  230. package/src/pages/functions/filepath-routing.test.ts +0 -234
  231. package/src/pages/functions/filepath-routing.ts +0 -189
  232. package/src/pages/functions/identifiers.ts +0 -78
  233. package/src/pages/functions/routes-consolidation.test.ts +0 -250
  234. package/src/pages/functions/routes-consolidation.ts +0 -73
  235. package/src/pages/functions/routes-transformation.test.ts +0 -282
  236. package/src/pages/functions/routes-transformation.ts +0 -115
  237. package/src/pages/functions/routes-validation.test.ts +0 -403
  238. package/src/pages/functions/routes-validation.ts +0 -202
  239. package/src/pages/functions/routes.ts +0 -151
  240. package/src/pages/functions/tsconfig.json +0 -8
  241. package/src/pages/functions/tsconfig.tsbuildinfo +0 -1
  242. package/src/pages/functions.ts +0 -86
  243. package/src/pages/hash.ts +0 -13
  244. package/src/pages/index.ts +0 -102
  245. package/src/pages/projects.tsx +0 -162
  246. package/src/pages/prompt-select-project.tsx +0 -31
  247. package/src/pages/publish.tsx +0 -276
  248. package/src/pages/types.ts +0 -46
  249. package/src/pages/upload.tsx +0 -449
  250. package/src/pages/utils.ts +0 -23
  251. package/src/parse.ts +0 -308
  252. package/src/paths.ts +0 -71
  253. package/src/proxy.ts +0 -694
  254. package/src/publish/index.ts +0 -274
  255. package/src/publish/publish.ts +0 -1065
  256. package/src/pubsub/index.ts +0 -286
  257. package/src/pubsub/pubsub-commands.ts +0 -623
  258. package/src/queues/cli/commands/consumer/add.ts +0 -65
  259. package/src/queues/cli/commands/consumer/index.ts +0 -19
  260. package/src/queues/cli/commands/consumer/remove.ts +0 -31
  261. package/src/queues/cli/commands/create.ts +0 -25
  262. package/src/queues/cli/commands/delete.ts +0 -26
  263. package/src/queues/cli/commands/index.ts +0 -35
  264. package/src/queues/cli/commands/list.ts +0 -25
  265. package/src/queues/client.ts +0 -135
  266. package/src/queues/utils.ts +0 -18
  267. package/src/r2/constants.ts +0 -4
  268. package/src/r2/helpers.ts +0 -132
  269. package/src/r2/index.ts +0 -289
  270. package/src/routes.ts +0 -140
  271. package/src/secret/index.ts +0 -375
  272. package/src/selfsigned.d.ts +0 -29
  273. package/src/sites.ts +0 -372
  274. package/src/tail/createTail.ts +0 -406
  275. package/src/tail/filters.ts +0 -277
  276. package/src/tail/index.ts +0 -211
  277. package/src/tail/printing.ts +0 -122
  278. package/src/tsconfig-sanity.ts +0 -16
  279. package/src/type-generation.ts +0 -181
  280. package/src/update-check.ts +0 -19
  281. package/src/user/access.ts +0 -68
  282. package/src/user/auth-variables.ts +0 -113
  283. package/src/user/choose-account.tsx +0 -39
  284. package/src/user/generate-auth-url.ts +0 -33
  285. package/src/user/generate-random-state.ts +0 -16
  286. package/src/user/index.ts +0 -2
  287. package/src/user/user.ts +0 -1233
  288. package/src/utils/collectKeyValues.ts +0 -14
  289. package/src/whoami.ts +0 -135
  290. package/src/worker.ts +0 -257
  291. package/src/yargs-types.ts +0 -37
  292. package/src/zones.ts +0 -191
  293. package/templates/__tests__/tsconfig.tsbuildinfo +0 -1
  294. package/templates/first-party-worker-module-facade.ts +0 -19
  295. package/templates/format-dev-errors.ts +0 -34
  296. package/templates/serve-static-assets.ts +0 -66
  297. package/templates/service-bindings-module-facade.js +0 -55
  298. package/templates/service-bindings-sw-facade.js +0 -42
  299. package/templates/tsconfig.tsbuildinfo +0 -1
@@ -1,14 +0,0 @@
1
- /**
2
- * a function that takes an array of strings in `key:value` format
3
- * (typically from yargs or config) and returns back
4
- * a neat object with the keys and values
5
- */
6
- export function collectKeyValues(array?: string[]) {
7
- return (
8
- array?.reduce<Record<string, string>>((recordsToCollect, v) => {
9
- const [key, ...value] = v.split(":");
10
- recordsToCollect[key] = value.join(":");
11
- return recordsToCollect;
12
- }, {}) || {}
13
- );
14
- }
package/src/whoami.ts DELETED
@@ -1,135 +0,0 @@
1
- import chalk from "chalk";
2
- import { fetchListResult, fetchResult } from "./cfetch";
3
- import { logger } from "./logger";
4
- import { getAPIToken, getAuthFromEnv, getScopes } from "./user";
5
-
6
- export async function whoami() {
7
- logger.log("Getting User settings...");
8
- const user = await getUserInfo();
9
- if (user === undefined) {
10
- return void logger.log(
11
- "You are not authenticated. Please run `wrangler login`."
12
- );
13
- }
14
-
15
- if (user.email !== undefined) {
16
- logger.log(
17
- `👋 You are logged in with an ${
18
- user.authType
19
- }, associated with the email ${chalk.blue(user.email)}!`
20
- );
21
- } else {
22
- logger.log(
23
- `👋 You are logged in with an ${user.authType}. Unable to retrieve email for this user. Are you missing the \`User->User Details->Read\` permission?`
24
- );
25
- }
26
- logger.table(
27
- user.accounts.map((account) => ({
28
- "Account Name": account.name,
29
- "Account ID": account.id,
30
- }))
31
- );
32
- const permissions =
33
- user.tokenPermissions?.map((scope) => scope.split(":")) ?? [];
34
-
35
- if (user.authType !== "OAuth Token") {
36
- return void logger.log(
37
- `🔓 To see token permissions visit https://dash.cloudflare.com/profile/api-tokens`
38
- );
39
- }
40
- logger.log(
41
- `🔓 Token Permissions: If scopes are missing, you may need to logout and re-login.`
42
- );
43
- logger.log(`Scope (Access)`);
44
- for (const [scope, access] of permissions) {
45
- logger.log(`- ${scope} ${access ? `(${access})` : ``}`);
46
- }
47
- }
48
-
49
- type AuthType = "Global API Key" | "API Token" | "OAuth Token";
50
- export interface UserInfo {
51
- apiToken: string;
52
- authType: AuthType;
53
- email: string | undefined;
54
- accounts: AccountInfo[];
55
- tokenPermissions: string[] | undefined;
56
- }
57
-
58
- export async function getUserInfo(): Promise<UserInfo | undefined> {
59
- const apiToken = getAPIToken();
60
- if (!apiToken) return;
61
-
62
- const tokenPermissions = await getTokenPermissions();
63
-
64
- const usingEnvAuth = !!getAuthFromEnv();
65
- const usingGlobalAuthKey = "authKey" in apiToken;
66
- return {
67
- apiToken: usingGlobalAuthKey ? apiToken.authKey : apiToken.apiToken,
68
- authType: usingGlobalAuthKey
69
- ? "Global API Key"
70
- : usingEnvAuth
71
- ? "API Token"
72
- : "OAuth Token",
73
- email: "authEmail" in apiToken ? apiToken.authEmail : await getEmail(),
74
- accounts: await getAccounts(),
75
- tokenPermissions,
76
- };
77
- }
78
-
79
- async function getEmail(): Promise<string | undefined> {
80
- try {
81
- const { email } = await fetchResult<{ email: string }>("/user");
82
- return email;
83
- } catch (e) {
84
- if ((e as { code?: number }).code === 9109) {
85
- return undefined;
86
- } else {
87
- throw e;
88
- }
89
- }
90
- }
91
-
92
- type AccountInfo = { name: string; id: string };
93
-
94
- async function getAccounts(): Promise<AccountInfo[]> {
95
- return await fetchListResult<AccountInfo>("/accounts");
96
- }
97
-
98
- async function getTokenPermissions(): Promise<string[] | undefined> {
99
- // Tokens can either be API tokens or Oauth tokens.
100
- // Here we only extract permissions from OAuth tokens.
101
-
102
- return getScopes() as string[];
103
-
104
- // In future we may be able to get the token permissions on an API token,
105
- // but currently we cannot as that permission is not able to be added to
106
- // an API token.
107
-
108
- // try {
109
- // // First we get the token identifier (only returned on API tokens)
110
- // const { id } = await fetchResult<{ id: string }>("/user/tokens/verify");
111
-
112
- // // Get the token permissions for the current token
113
- // const { policies } = await fetchResult<{
114
- // policies: { id: string; name: string }[];
115
- // }>(`/user/tokens/${id}`);
116
-
117
- // return policies.map((p) => p.name);
118
- // } catch (e) {
119
- // if ((e as { code?: number }).code === 1000) {
120
- // // Invalid token - Oauth token
121
-
122
- // // Get scopes
123
- // const scopes = getScopes() as string[];
124
- // // We may not get scopes back if they are not currently cached,
125
- // // however next time an access token is requested,
126
- // // the scopes will be added to the cache.
127
- // return scopes;
128
- // } else if ((e as { code?: number }).code === 9109) {
129
- // // Token cannot view its permissions
130
- // return undefined;
131
- // } else {
132
- // throw e;
133
- // }
134
- // }
135
- }
package/src/worker.ts DELETED
@@ -1,257 +0,0 @@
1
- import type { Environment } from "./config";
2
- import type { Route } from "./config/environment";
3
- import type { ApiCredentials } from "./user";
4
-
5
- /**
6
- * A Cloudflare account.
7
- */
8
-
9
- export interface CfAccount {
10
- /**
11
- * An API token.
12
- *
13
- * @link https://api.cloudflare.com/#user-api-tokens-properties
14
- */
15
- apiToken: ApiCredentials;
16
- /**
17
- * An account ID.
18
- */
19
- accountId: string;
20
- }
21
-
22
- /**
23
- * The type of Worker
24
- */
25
- export type CfScriptFormat = "modules" | "service-worker";
26
-
27
- /**
28
- * A module type.
29
- */
30
- export type CfModuleType =
31
- | "esm"
32
- | "commonjs"
33
- | "compiled-wasm"
34
- | "text"
35
- | "buffer";
36
-
37
- /**
38
- * An imported module.
39
- */
40
- export interface CfModule {
41
- /**
42
- * The module name.
43
- *
44
- * @example
45
- * './src/index.js'
46
- */
47
- name: string;
48
- /**
49
- * The module content, usually JavaScript or WASM code.
50
- *
51
- * @example
52
- * export default {
53
- * async fetch(request) {
54
- * return new Response('Ok')
55
- * }
56
- * }
57
- */
58
- content: string | Buffer;
59
- /**
60
- * The module type.
61
- *
62
- * If absent, will default to the main module's type.
63
- */
64
- type?: CfModuleType;
65
- }
66
-
67
- /**
68
- * A map of variable names to values.
69
- */
70
- export interface CfVars {
71
- [key: string]: unknown;
72
- }
73
-
74
- /**
75
- * A KV namespace.
76
- */
77
- export interface CfKvNamespace {
78
- binding: string;
79
- id: string;
80
- }
81
-
82
- /**
83
- * A binding to a wasm module (in service-worker format)
84
- */
85
-
86
- export interface CfWasmModuleBindings {
87
- [key: string]: string;
88
- }
89
-
90
- /**
91
- * A binding to a text blob (in service-worker format)
92
- */
93
-
94
- export interface CfTextBlobBindings {
95
- [key: string]: string;
96
- }
97
-
98
- /**
99
- * A binding to a data blob (in service-worker format)
100
- */
101
-
102
- export interface CfDataBlobBindings {
103
- [key: string]: string;
104
- }
105
-
106
- /**
107
- * A Durable Object.
108
- */
109
- export interface CfDurableObject {
110
- name: string;
111
- class_name: string;
112
- script_name?: string;
113
- environment?: string;
114
- }
115
-
116
- export interface CfQueue {
117
- binding: string;
118
- queue_name: string;
119
- }
120
-
121
- export interface CfR2Bucket {
122
- binding: string;
123
- bucket_name: string;
124
- }
125
-
126
- export const D1_BETA_PREFIX = `__D1_BETA__` as const;
127
- export type D1PrefixedBinding = `${typeof D1_BETA_PREFIX}${string}`;
128
-
129
- // TODO: figure out if this is duplicated in packages/wrangler/src/config/environment.ts
130
- export interface CfD1Database {
131
- // For now, all D1 bindings are alpha
132
- binding: D1PrefixedBinding;
133
- database_id: string;
134
- database_name?: string;
135
- preview_database_id?: string;
136
- database_internal_env?: string;
137
- migrations_table?: string;
138
- migrations_dir?: string;
139
- }
140
-
141
- interface CfService {
142
- binding: string;
143
- service: string;
144
- environment?: string;
145
- }
146
-
147
- interface CfAnalyticsEngineDataset {
148
- binding: string;
149
- dataset?: string;
150
- }
151
-
152
- interface CfDispatchNamespace {
153
- binding: string;
154
- namespace: string;
155
- }
156
-
157
- interface CfMTlsCertificate {
158
- binding: string;
159
- certificate_id: string;
160
- }
161
-
162
- interface CfLogfwdr {
163
- schema: string | undefined;
164
- bindings: CfLogfwdrBinding[];
165
- }
166
-
167
- interface CfLogfwdrBinding {
168
- name: string;
169
- destination: string;
170
- }
171
-
172
- interface CfUnsafeBinding {
173
- name: string;
174
- type: string;
175
- }
176
-
177
- export interface CfDurableObjectMigrations {
178
- old_tag?: string;
179
- new_tag: string;
180
- steps: {
181
- new_classes?: string[];
182
- renamed_classes?: {
183
- from: string;
184
- to: string;
185
- }[];
186
- deleted_classes?: string[];
187
- }[];
188
- }
189
-
190
- /**
191
- * Options for creating a `CfWorker`.
192
- */
193
- export interface CfWorkerInit {
194
- /**
195
- * The name of the worker.
196
- */
197
- name: string | undefined;
198
- /**
199
- * The entrypoint module.
200
- */
201
- main: CfModule;
202
- /**
203
- * The list of additional modules.
204
- */
205
- modules: CfModule[] | undefined;
206
- /**
207
- * All the bindings
208
- */
209
- bindings: {
210
- vars: CfVars | undefined;
211
- kv_namespaces: CfKvNamespace[] | undefined;
212
- wasm_modules: CfWasmModuleBindings | undefined;
213
- text_blobs: CfTextBlobBindings | undefined;
214
- data_blobs: CfDataBlobBindings | undefined;
215
- durable_objects: { bindings: CfDurableObject[] } | undefined;
216
- queues: CfQueue[] | undefined;
217
- r2_buckets: CfR2Bucket[] | undefined;
218
- d1_databases: CfD1Database[] | undefined;
219
- services: CfService[] | undefined;
220
- analytics_engine_datasets: CfAnalyticsEngineDataset[] | undefined;
221
- dispatch_namespaces: CfDispatchNamespace[] | undefined;
222
- mtls_certificates: CfMTlsCertificate[] | undefined;
223
- logfwdr: CfLogfwdr | undefined;
224
- unsafe: CfUnsafeBinding[] | undefined;
225
- };
226
- migrations: CfDurableObjectMigrations | undefined;
227
- compatibility_date: string | undefined;
228
- compatibility_flags: string[] | undefined;
229
- usage_model: "bundled" | "unbound" | undefined;
230
- keepVars: boolean | undefined;
231
- logpush: boolean | undefined;
232
- }
233
-
234
- export interface CfWorkerContext {
235
- env: string | undefined;
236
- legacyEnv: boolean | undefined;
237
- zone: string | undefined;
238
- host: string | undefined;
239
- routes: Route[] | undefined;
240
- sendMetrics: boolean | undefined;
241
- }
242
-
243
- // Prefix binding with identifier which will then get picked up by the D1 shim.
244
- // Once the D1 Api is out of beta, this function can be removed.
245
- export function identifyD1BindingsAsBeta(
246
- dbs: Environment["d1_databases"]
247
- ): CfD1Database[] | undefined {
248
- return dbs?.map((db) => ({
249
- ...db,
250
- binding: `${D1_BETA_PREFIX}${db.binding}`,
251
- }));
252
- }
253
-
254
- // Remove beta prefix
255
- export function removeD1BetaPrefix(binding: D1PrefixedBinding): string {
256
- return binding.slice(D1_BETA_PREFIX.length);
257
- }
@@ -1,37 +0,0 @@
1
- import type { OnlyCamelCase } from "./config/config";
2
- import type { ArgumentsCamelCase, Argv } from "yargs";
3
-
4
- /**
5
- * Yargs options included in every wrangler command.
6
- */
7
- export interface CommonYargsOptions {
8
- v: boolean | undefined;
9
- config: string | undefined;
10
- env: string | undefined;
11
- "experimental-json-config": boolean | undefined;
12
- }
13
-
14
- export type CommonYargsArgv = Argv<CommonYargsOptions>;
15
-
16
- export type YargvToInterface<T> = T extends Argv<infer P>
17
- ? ArgumentsCamelCase<P>
18
- : never;
19
-
20
- // See http://stackoverflow.com/questions/51465182/how-to-remove-index-signature-using-mapped-types
21
- type RemoveIndex<T> = {
22
- [K in keyof T as string extends K
23
- ? never
24
- : number extends K
25
- ? never
26
- : K]: T[K];
27
- };
28
-
29
- /**
30
- * Given some Yargs Options function factory, extract the interface
31
- * that corresponds to the yargs arguments, remove index types, and only allow camelCase
32
- */
33
- export type StrictYargsOptionsToInterface<
34
- T extends (yargs: CommonYargsArgv) => Argv
35
- > = T extends (yargs: CommonYargsArgv) => Argv<infer P>
36
- ? OnlyCamelCase<RemoveIndex<ArgumentsCamelCase<P>>>
37
- : never;
package/src/zones.ts DELETED
@@ -1,191 +0,0 @@
1
- import { fetchListResult } from "./cfetch";
2
- import type { Route } from "./config/environment";
3
-
4
- /**
5
- * An object holding information about a zone for publishing.
6
- */
7
- export interface Zone {
8
- id: string;
9
- host: string;
10
- }
11
-
12
- /**
13
- * Get the hostname on which to run a Worker.
14
- *
15
- * The most accurate place is usually
16
- * `route.pattern`, as that includes any subdomains. For example:
17
- * ```js
18
- * {
19
- * pattern: foo.example.com
20
- * zone_name: example.com
21
- * }
22
- * ```
23
- * However, in the case of patterns that _can't_ be parsed as a hostname
24
- * (primarily the pattern `*/ /*`), we fall back to the `zone_name`
25
- * (and in the absence of that throw an error).
26
- * @param route
27
- */
28
- export function getHostFromRoute(route: Route): string | undefined {
29
- if (typeof route === "string") {
30
- return getHostFromUrl(route);
31
- } else if (typeof route === "object") {
32
- try {
33
- return getHostFromUrl(route.pattern);
34
- } catch (e) {
35
- if (
36
- (e as { code: string }).code === "ERR_INVALID_URL" &&
37
- "zone_name" in route
38
- ) {
39
- return getHostFromUrl(route.zone_name);
40
- }
41
- throw e;
42
- }
43
- }
44
- }
45
-
46
- /**
47
- * Try to compute the a zone ID and host name for one or more routes.
48
- *
49
- * When we're given a route, we do 2 things:
50
- * - We try to extract a host from it
51
- * - We try to get a zone id from the host
52
- */
53
- export async function getZoneForRoute(route: Route): Promise<Zone | undefined> {
54
- const host = getHostFromRoute(route);
55
- const id =
56
- typeof route === "object" && "zone_id" in route
57
- ? route.zone_id
58
- : host
59
- ? await getZoneIdFromHost(host)
60
- : undefined;
61
- return id && host ? { id, host } : undefined;
62
- }
63
-
64
- /**
65
- * Given something that resembles a URL, try to extract a host from it.
66
- */
67
- export function getHostFromUrl(urlLike: string): string | undefined {
68
- // strip leading * / *.
69
- urlLike = urlLike.replace(/\*(\.)?/g, "");
70
-
71
- if (!(urlLike.startsWith("http://") || urlLike.startsWith("https://"))) {
72
- urlLike = "http://" + urlLike;
73
- }
74
- return new URL(urlLike).host;
75
- }
76
-
77
- /**
78
- * Given something that resembles a host, try to infer a zone id from it.
79
- *
80
- * It's hard to get a 'valid' domain from a string, so we don't even try to validate TLDs, etc.
81
- * For each domain-like part of the host (e.g. w.x.y.z) try to get a zone id for it by
82
- * lopping off subdomains until we get a hit from the API.
83
- */
84
- export async function getZoneIdFromHost(host: string): Promise<string> {
85
- const hostPieces = host.split(".");
86
-
87
- while (hostPieces.length > 1) {
88
- const zones = await fetchListResult<{ id: string }>(
89
- `/zones`,
90
- {},
91
- new URLSearchParams({ name: hostPieces.join(".") })
92
- );
93
- if (zones.length > 0) {
94
- return zones[0].id;
95
- }
96
- hostPieces.shift();
97
- }
98
-
99
- throw new Error(`Could not find zone for ${host}`);
100
- }
101
-
102
- /**
103
- * An object holding information about an assigned worker route, returned from the API
104
- */
105
- interface WorkerRoute {
106
- id: string;
107
- pattern: string;
108
- script: string;
109
- }
110
-
111
- /**
112
- * Given a zone within the user's account, return a list of all assigned worker routes
113
- */
114
- export async function getRoutesForZone(zone: string): Promise<WorkerRoute[]> {
115
- const routes = await fetchListResult<WorkerRoute>(
116
- `/zones/${zone}/workers/routes`
117
- );
118
- return routes;
119
- }
120
-
121
- /**
122
- * Given two strings, return the levenshtein distance between them as a simple text match heuristic
123
- */
124
- function distanceBetween(a: string, b: string, cache = new Map()): number {
125
- if (cache.has(`${a}|${b}`)) {
126
- return cache.get(`${a}|${b}`);
127
- }
128
- let result;
129
- if (b == "") {
130
- result = a.length;
131
- } else if (a == "") {
132
- result = b.length;
133
- } else if (a[0] === b[0]) {
134
- result = distanceBetween(a.slice(1), b.slice(1), cache);
135
- } else {
136
- result =
137
- 1 +
138
- Math.min(
139
- distanceBetween(a.slice(1), b, cache),
140
- distanceBetween(a, b.slice(1), cache),
141
- distanceBetween(a.slice(1), b.slice(1), cache)
142
- );
143
- }
144
- cache.set(`${a}|${b}`, result);
145
- return result;
146
- }
147
-
148
- /**
149
- * Given an invalid route, sort the valid routes by closeness to the invalid route (levenstein distance)
150
- */
151
- export function findClosestRoute(
152
- providedRoute: string,
153
- assignedRoutes: WorkerRoute[]
154
- ): WorkerRoute[] {
155
- return assignedRoutes.sort((a, b) => {
156
- const distanceA = distanceBetween(providedRoute, a.pattern);
157
- const distanceB = distanceBetween(providedRoute, b.pattern);
158
- return distanceA - distanceB;
159
- });
160
- }
161
-
162
- /**
163
- * Given a route (must be assigned and within the correct zone), return the name of the worker assigned to it
164
- */
165
- export async function getWorkerForZone(worker: string) {
166
- const zone = await getZoneForRoute(worker);
167
- if (!zone) {
168
- throw new Error(
169
- `The route '${worker}' is not part of one of your zones. Either add this zone from the Cloudflare dashboard, or try using a route within one of your existing zones.`
170
- );
171
- }
172
- const routes = await getRoutesForZone(zone.id);
173
-
174
- const scriptName = routes.find((route) => route.pattern === worker)?.script;
175
-
176
- if (!scriptName) {
177
- const closestRoute = findClosestRoute(worker, routes)?.[0];
178
-
179
- if (!closestRoute) {
180
- throw new Error(
181
- `The route '${worker}' has no workers assigned. You can assign a worker to it from wrangler.toml or the Cloudflare dashboard`
182
- );
183
- } else {
184
- throw new Error(
185
- `The route '${worker}' has no workers assigned. Did you mean to tail the route '${closestRoute.pattern}'?`
186
- );
187
- }
188
- }
189
-
190
- return scriptName;
191
- }
@@ -1 +0,0 @@
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","../pages-dev-util.ts","./pages-dev-util.test.ts","./tsconfig-sanity.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/@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},"0704bdc9e66ede7a2183c419efdbb5f22c195952231e6c0b9cba526df2e8e2a4","5e22f932d1687df8312894052ab0596c3206342cab47a30052908ff6bb37af34","8d4e3c29ce13a2cfc9d60930ae3d109d858f1db924d796c2a58c4f0b56a23c2b","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","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":[[100,109],[100],[100,111,113],[100,111],[100,108,112],[100,110],[57,100],[60,100],[61,66,100],[62,72,73,80,89,99,100],[62,63,72,80,100],[64,100],[65,66,73,81,100],[66,89,96,100],[67,69,72,80,100],[68,100],[69,70,100],[71,72,100],[72,100],[72,73,74,89,99,100],[72,73,74,89,100],[75,80,89,99,100],[72,73,75,76,80,89,96,99,100],[75,77,89,96,99,100],[57,58,59,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],[72,78,100],[79,99,100],[69,72,80,89,100],[81,100],[82,100],[60,83,100],[84,98,100,104],[85,100],[86,100],[72,87,100],[87,88,100,102],[72,89,90,91,100],[89,91,100],[89,90,100],[92,100],[93,100],[72,94,95,100],[94,95,100],[66,80,96,100],[97,100],[80,98,100],[61,75,86,99,100],[66,100],[89,100,101],[100,102],[100,103],[61,66,72,74,83,89,99,100,102,104],[89,100,105],[54,100]],"referencedMap":[[110,1],[109,2],[114,3],[108,2],[112,4],[113,5],[111,6],[57,7],[58,7],[60,8],[61,9],[62,10],[63,11],[64,12],[65,13],[66,14],[67,15],[68,16],[69,17],[70,17],[71,18],[72,19],[73,20],[74,21],[59,2],[106,2],[75,22],[76,23],[77,24],[107,25],[78,26],[79,27],[80,28],[81,29],[82,30],[83,31],[84,32],[85,33],[86,34],[87,35],[88,36],[89,37],[91,38],[90,39],[92,40],[93,41],[94,42],[95,43],[96,44],[97,45],[98,46],[99,47],[100,48],[101,49],[102,50],[103,51],[104,52],[105,53],[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],[55,54],[56,2],[54,2]],"exportedModulesMap":[[110,1],[109,2],[114,3],[108,2],[112,4],[113,5],[111,6],[57,7],[58,7],[60,8],[61,9],[62,10],[63,11],[64,12],[65,13],[66,14],[67,15],[68,16],[69,17],[70,17],[71,18],[72,19],[73,20],[74,21],[59,2],[106,2],[75,22],[76,23],[77,24],[107,25],[78,26],[79,27],[80,28],[81,29],[82,30],[83,31],[84,32],[85,33],[86,34],[87,35],[88,36],[89,37],[91,38],[90,39],[92,40],[93,41],[94,42],[95,43],[96,44],[97,45],[98,46],[99,47],[100,48],[101,49],[102,50],[103,51],[104,52],[105,53],[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],[55,54],[56,2],[54,2]],"semanticDiagnosticsPerFile":[110,109,114,108,112,113,111,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,59,106,75,76,77,107,78,79,80,81,82,83,84,85,86,87,88,89,91,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,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,55,56,54],"affectedFilesPendingEmit":[[110,1],[109,1],[114,1],[108,1],[112,1],[113,1],[111,1],[57,1],[58,1],[60,1],[61,1],[62,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],[59,1],[106,1],[75,1],[76,1],[77,1],[107,1],[78,1],[79,1],[80,1],[81,1],[82,1],[83,1],[84,1],[85,1],[86,1],[87,1],[88,1],[89,1],[91,1],[90,1],[92,1],[93,1],[94,1],[95,1],[96,1],[97,1],[98,1],[99,1],[100,1],[101,1],[102,1],[103,1],[104,1],[105,1],[2,1],[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],[9,1],[10,1],[55,1],[56,1],[54,1]]},"version":"4.8.4"}