wrangler 0.0.0-ddde8d4 → 0.0.0-e043479
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/package.json +7 -5
- package/src/__tests__/configuration.test.ts +2186 -0
- package/src/__tests__/dev.test.tsx +218 -75
- package/src/__tests__/helpers/faye-websocket.d.ts +6 -0
- package/src/__tests__/helpers/mock-account-id.ts +18 -4
- package/src/__tests__/helpers/mock-console.ts +17 -9
- package/src/__tests__/helpers/mock-stdin.ts +103 -0
- package/src/__tests__/helpers/write-wrangler-toml.ts +2 -5
- package/src/__tests__/index.test.ts +125 -49
- package/src/__tests__/jest.setup.ts +16 -4
- package/src/__tests__/kv.test.ts +399 -132
- package/src/__tests__/parse.test.ts +322 -0
- package/src/__tests__/publish.test.ts +791 -382
- package/src/__tests__/r2.test.ts +16 -24
- package/src/__tests__/secret.test.ts +299 -84
- package/src/__tests__/tail.test.ts +309 -176
- package/src/api/form_data.ts +43 -7
- package/src/api/preview.ts +36 -17
- package/src/api/worker.ts +18 -6
- package/src/bundle.ts +21 -15
- package/src/cfetch/index.ts +7 -5
- package/src/cfetch/internal.ts +24 -7
- package/src/config/README.md +107 -0
- package/src/config/config.ts +270 -0
- package/src/config/diagnostics.ts +80 -0
- package/src/config/environment.ts +305 -0
- package/src/config/index.ts +52 -0
- package/src/config/validation-helpers.ts +370 -0
- package/src/config/validation.ts +1019 -0
- package/src/dev.tsx +123 -49
- package/src/entry.ts +57 -0
- package/src/guess-worker-format.ts +1 -1
- package/src/index.tsx +631 -869
- package/src/kv.tsx +101 -44
- package/src/module-collection.ts +133 -47
- package/src/package-manager.ts +21 -15
- package/src/parse.ts +183 -0
- package/src/proxy.ts +18 -10
- package/src/publish.ts +70 -65
- package/src/sites.tsx +5 -11
- package/src/tail/index.ts +17 -7
- package/src/user.tsx +19 -5
- package/templates/tsconfig.json +105 -0
- package/wrangler-dist/cli.js +6177 -2424
- package/wrangler-dist/cli.js.map +3 -3
- package/src/config.ts +0 -671
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-e043479",
|
|
4
4
|
"author": "wrangler@cloudflare.com",
|
|
5
5
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
6
6
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"cli"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"esbuild": "0.14.
|
|
39
|
+
"esbuild": "0.14.23",
|
|
40
40
|
"miniflare": "2.3.0",
|
|
41
41
|
"path-to-regexp": "^6.2.0",
|
|
42
42
|
"semiver": "^1.1.0",
|
|
@@ -46,13 +46,12 @@
|
|
|
46
46
|
"fsevents": "~2.3.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/types": "^7.16.0",
|
|
50
49
|
"@iarna/toml": "^2.2.5",
|
|
51
50
|
"@sentry/cli": "^1.71.0",
|
|
52
51
|
"@sentry/integrations": "^6.17.6",
|
|
53
52
|
"@sentry/node": "^6.17.6",
|
|
54
53
|
"@types/command-exists": "^1.2.0",
|
|
55
|
-
"@types/
|
|
54
|
+
"@types/glob-to-regexp": "0.4.1",
|
|
56
55
|
"@types/mime": "^2.0.3",
|
|
57
56
|
"@types/prompts": "^2.0.14",
|
|
58
57
|
"@types/react": "^17.0.37",
|
|
@@ -66,8 +65,11 @@
|
|
|
66
65
|
"command-exists": "^1.2.9",
|
|
67
66
|
"devtools-protocol": "^0.0.955664",
|
|
68
67
|
"execa": "^6.0.0",
|
|
68
|
+
"faye-websocket": "^0.11.4",
|
|
69
69
|
"finalhandler": "^1.1.2",
|
|
70
70
|
"find-up": "^6.2.0",
|
|
71
|
+
"get-port": "^6.1.2",
|
|
72
|
+
"glob-to-regexp": "0.4.1",
|
|
71
73
|
"ignore": "^5.2.0",
|
|
72
74
|
"ink": "^3.2.0",
|
|
73
75
|
"ink-select-input": "^4.2.1",
|
|
@@ -116,7 +118,7 @@
|
|
|
116
118
|
"testTimeout": 30000,
|
|
117
119
|
"testRegex": ".*.(test|spec)\\.[jt]sx?$",
|
|
118
120
|
"transformIgnorePatterns": [
|
|
119
|
-
"node_modules/(?!find-up|locate-path|p-locate|p-limit|yocto-queue|path-exists|execa|strip-final-newline|npm-run-path|path-key|onetime|mimic-fn|human-signals|is-stream)"
|
|
121
|
+
"node_modules/(?!find-up|locate-path|p-locate|p-limit|yocto-queue|path-exists|execa|strip-final-newline|npm-run-path|path-key|onetime|mimic-fn|human-signals|is-stream|get-port)"
|
|
120
122
|
],
|
|
121
123
|
"moduleNameMapper": {
|
|
122
124
|
"clipboardy": "<rootDir>/src/__tests__/helpers/clipboardy-mock.js"
|