wrangler 0.0.0-bae5ba4 → 0.0.0-bc28bea
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/README.md +3 -1
- package/miniflare-dist/index.mjs +4828 -21
- package/package.json +7 -7
- package/pages/functions/buildPlugin.ts +38 -1
- package/pages/functions/buildWorker.ts +80 -4
- package/src/__tests__/configuration.test.ts +16 -16
- package/src/__tests__/dev.test.tsx +152 -21
- package/src/__tests__/helpers/mock-console.ts +2 -0
- package/src/__tests__/helpers/mock-dialogs.ts +26 -1
- package/src/__tests__/helpers/mock-istty.ts +7 -3
- package/src/__tests__/helpers/mock-oauth-flow.ts +26 -2
- package/src/__tests__/https-options.test.ts +3 -2
- package/src/__tests__/index.test.ts +12 -2
- package/src/__tests__/init.test.ts +716 -33
- package/src/__tests__/jest.setup.ts +0 -4
- package/src/__tests__/kv.test.ts +52 -16
- package/src/__tests__/pages.test.ts +2 -2
- package/src/__tests__/parse.test.ts +4 -0
- package/src/__tests__/publish.test.ts +299 -108
- package/src/__tests__/r2.test.ts +16 -4
- package/src/__tests__/secret.test.ts +33 -24
- package/src/__tests__/tail.test.ts +44 -14
- package/src/__tests__/user.test.ts +7 -2
- package/src/__tests__/whoami.test.tsx +11 -3
- package/src/cfetch/internal.ts +0 -2
- package/src/cli.ts +1 -9
- package/src/config/validation-helpers.ts +3 -1
- package/src/config/validation.ts +8 -6
- package/src/create-worker-preview.ts +8 -6
- package/src/dev/dev-vars.ts +36 -0
- package/src/dev/dev.tsx +0 -2
- package/src/index.tsx +254 -41
- package/src/logger.ts +14 -4
- package/src/pages.tsx +82 -71
- package/src/parse.ts +3 -1
- package/src/proxy.ts +4 -11
- package/src/tail/index.ts +1 -1
- package/src/tail/printing.ts +9 -5
- package/src/user.tsx +23 -5
- package/templates/gitignore +171 -0
- package/wrangler-dist/cli.js +16174 -49325
- package/miniflare-dist/index.mjs.map +0 -7
- package/src/__tests__/sentry.test.ts +0 -146
- package/src/reporting.ts +0 -147
- package/wrangler-dist/cli.js.map +0 -7
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
## ⛅️ wrangler
|
|
2
2
|
|
|
3
|
+
> This package is for wrangler v2.x, released first in May 2022. If you're looking for v1.x of the `@cloudflare/wrangler` package, visit https://www.npmjs.com/package/@cloudflare/wrangler / https://github.com/cloudflare/wrangler.
|
|
4
|
+
|
|
3
5
|
`wrangler` is a command line tool for building [Cloudflare Workers](https://workers.cloudflare.com/).
|
|
4
6
|
|
|
5
7
|
## Quick Start
|
|
@@ -22,7 +24,7 @@ npx wrangler init my-worker
|
|
|
22
24
|
# try it out
|
|
23
25
|
cd my-worker && npm run start
|
|
24
26
|
# and then publish it
|
|
25
|
-
|
|
27
|
+
npm run publish
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
## Installation:
|