wrangler 2.2.3 → 2.3.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/package.json +1 -1
- package/src/__tests__/deployments.test.ts +10 -10
- package/src/__tests__/helpers/msw/handlers/deployments.ts +1 -1
- package/src/__tests__/pages-deployment-tail.test.ts +820 -0
- package/src/__tests__/pages.test.ts +1 -0
- package/src/__tests__/publish.test.ts +4 -4
- package/src/__tests__/type-generation.test.ts +30 -22
- package/src/deployments.ts +7 -3
- package/src/index.tsx +3 -4
- package/src/metrics/send-event.ts +2 -0
- package/src/pages/build.tsx +1 -1
- package/src/pages/deployment-tails.tsx +284 -0
- package/src/pages/deployments.tsx +5 -27
- package/src/pages/dev.tsx +1 -1
- package/src/pages/functions.tsx +1 -1
- package/src/pages/index.tsx +8 -0
- package/src/pages/prompt-select-project.tsx +31 -0
- package/src/pages/publish.tsx +4 -19
- package/src/pages/types.ts +1 -9
- package/src/pages/upload.tsx +2 -1
- package/src/pages/utils.ts +11 -0
- package/src/publish/publish.ts +2 -2
- package/src/tail/createTail.ts +66 -2
- package/src/type-generation.ts +58 -44
- package/src/yargs-types.ts +4 -0
- package/wrangler-dist/cli.js +627 -356
package/package.json
CHANGED
|
@@ -57,15 +57,15 @@ describe("deployments", () => {
|
|
|
57
57
|
"🚧\`wrangler deployments\` is a beta command. Please report any issues to https://github.com/cloudflare/wrangler2/issues/new/choose
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
Deployment ID: Intrepid-Class
|
|
61
|
-
Created on: 2021-02-02T00:00:00.000000Z
|
|
62
|
-
Author: Kathryn-Janeway@federation.org
|
|
63
|
-
Source: Wrangler
|
|
64
|
-
|
|
65
60
|
Deployment ID: Galaxy-Class
|
|
66
61
|
Created on: 2021-01-01T00:00:00.000000Z
|
|
67
62
|
Author: Jean-Luc-Picard@federation.org
|
|
68
63
|
Source: Wrangler
|
|
64
|
+
|
|
65
|
+
Deployment ID: Intrepid-Class
|
|
66
|
+
Created on: 2021-02-02T00:00:00.000000Z
|
|
67
|
+
Author: Kathryn-Janeway@federation.org
|
|
68
|
+
Source: Wrangler
|
|
69
69
|
🟩 Active"
|
|
70
70
|
`);
|
|
71
71
|
});
|
|
@@ -76,15 +76,15 @@ describe("deployments", () => {
|
|
|
76
76
|
"🚧\`wrangler deployments\` is a beta command. Please report any issues to https://github.com/cloudflare/wrangler2/issues/new/choose
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
Deployment ID: Intrepid-Class
|
|
80
|
-
Created on: 2021-02-02T00:00:00.000000Z
|
|
81
|
-
Author: Kathryn-Janeway@federation.org
|
|
82
|
-
Source: Wrangler
|
|
83
|
-
|
|
84
79
|
Deployment ID: Galaxy-Class
|
|
85
80
|
Created on: 2021-01-01T00:00:00.000000Z
|
|
86
81
|
Author: Jean-Luc-Picard@federation.org
|
|
87
82
|
Source: Wrangler
|
|
83
|
+
|
|
84
|
+
Deployment ID: Intrepid-Class
|
|
85
|
+
Created on: 2021-02-02T00:00:00.000000Z
|
|
86
|
+
Author: Kathryn-Janeway@federation.org
|
|
87
|
+
Source: Wrangler
|
|
88
88
|
🟩 Active"
|
|
89
89
|
`);
|
|
90
90
|
});
|
|
@@ -4,7 +4,7 @@ import type { DeploymentListRes } from "../../../../deployments";
|
|
|
4
4
|
|
|
5
5
|
export const mswSuccessDeployments = [
|
|
6
6
|
rest.get(
|
|
7
|
-
"*/accounts/:accountId/workers/
|
|
7
|
+
"*/accounts/:accountId/workers/deployments/by-script/:scriptTag",
|
|
8
8
|
(_, response, context) =>
|
|
9
9
|
response.once(
|
|
10
10
|
context.status(200),
|