wrangler
Advanced tools
Comparing version 0.0.0-494d32c to 0.0.0-4b22f63
@@ -1,2 +0,36 @@ | ||
#!/usr/bin/env node --no-warnings | ||
require("../dist/index_node.js"); | ||
#!/usr/bin/env node | ||
const { spawn } = require("child_process"); | ||
const { join } = require("path"); | ||
const semiver = require("semiver"); | ||
const MIN_NODE_VERSION = "16.7.0"; | ||
async function main() { | ||
if (semiver(process.versions.node, MIN_NODE_VERSION) < 0) { | ||
// Note Volta and nvm are also recommended in the official docs: | ||
// https://developers.cloudflare.com/workers/get-started/guide#2-install-the-workers-cli | ||
console.error( | ||
`Wrangler requires at least Node.js v${MIN_NODE_VERSION}. You are using v${process.versions.node}. | ||
You should use the latest Node.js version if possible, as Cloudflare Workers use a very up-to-date version of V8. | ||
Consider using a Node.js version manager such as https://volta.sh/ or https://github.com/nvm-sh/nvm.` | ||
); | ||
process.exitCode = 1; | ||
return; | ||
} | ||
spawn( | ||
process.execPath, | ||
[ | ||
"--no-warnings", | ||
"--experimental-vm-modules", | ||
...process.execArgv, | ||
join(__dirname, "../wrangler-dist/cli.js"), | ||
...process.argv.slice(2), | ||
], | ||
{ stdio: "inherit" } | ||
).on("exit", (code) => | ||
process.exit(code === undefined || code === null ? 0 : code) | ||
); | ||
} | ||
void main(); |
{ | ||
"name": "wrangler", | ||
"version": "0.0.0-494d32c", | ||
"version": "0.0.0-4b22f63", | ||
"author": "wrangler@cloudflare.com", | ||
"description": "Command-line interface for all things Cloudflare Workers", | ||
"bin": "./bin/wrangler.js", | ||
"bin": { | ||
"wrangler": "./bin/wrangler.js", | ||
"wrangler2": "./bin/wrangler.js" | ||
}, | ||
"license": "MIT OR Apache-2.0", | ||
@@ -36,5 +39,7 @@ "bugs": { | ||
"dependencies": { | ||
"esbuild": "^0.12.19", | ||
"miniflare": "^1.3.3", | ||
"yargs": "^17.1.1" | ||
"@cloudflare/pages-functions-compiler": "0.3.4", | ||
"esbuild": "0.13.12", | ||
"miniflare": "2.0.0-rc.2", | ||
"semiver": "^1.1.0", | ||
"serve": "^13.0.2" | ||
}, | ||
@@ -47,36 +52,66 @@ "optionalDependencies": { | ||
"@types/cloudflare": "^2.7.6", | ||
"@types/react": "^17.0.19", | ||
"@types/express": "^4.17.13", | ||
"@types/react": "^17.0.34", | ||
"@types/signal-exit": "^3.0.1", | ||
"@types/ws": "^7.4.7", | ||
"@types/yargs": "^17.0.2", | ||
"clipboardy": "^2.3.0", | ||
"cloudflare": "^2.9.1", | ||
"find-up": "^6.0.0", | ||
"formdata-node": "^3.6.3", | ||
"@types/ws": "^8.2.0", | ||
"@types/yargs": "^17.0.5", | ||
"clipboardy": "^3.0.0", | ||
"command-exists": "^1.2.9", | ||
"execa": "^5.1.1", | ||
"express": "^4.17.1", | ||
"finalhandler": "^1.1.2", | ||
"find-up": "^6.2.0", | ||
"formdata-node": "^4.3.1", | ||
"http-proxy": "^1.18.1", | ||
"http-proxy-middleware": "^2.0.1", | ||
"ink": "^3.2.0", | ||
"ink-select-input": "^4.2.0", | ||
"ink-table": "^3.0.0", | ||
"node-fetch": "github:tekwiz/node-fetch#fix/redirect-with-empty-chunked-transfer-encoding", | ||
"open": "^8.2.1", | ||
"ink-text-input": "^4.0.1", | ||
"node-fetch": "^3.1.0", | ||
"open": "^8.4.0", | ||
"path-to-regexp": "^6.2.0", | ||
"react": "^17.0.2", | ||
"serve-static": "^1.14.1", | ||
"signal-exit": "^3.0.5", | ||
"tmp-promise": "^3.0.2", | ||
"ws": "^8.2.0" | ||
"tmp-promise": "^3.0.3", | ||
"ws": "^8.2.3", | ||
"yargs": "^17.2.1" | ||
}, | ||
"files": [ | ||
"src", | ||
"bin", | ||
"miniflare-config-stubs", | ||
"dist", | ||
"facade.js", | ||
"vendor" | ||
"wrangler-dist", | ||
"static-asset-facade.js", | ||
"vendor", | ||
"import_meta_url.js" | ||
], | ||
"scripts": { | ||
"clean": "rm -rf dist", | ||
"clean": "rm -rf wrangler-dist", | ||
"bundle": "node -r esbuild-register scripts/bundle.ts", | ||
"build": "npm run clean && npm run bundle", | ||
"start": "npm run bundle && ./bin/wrangler.js" | ||
"start": "npm run bundle && NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js", | ||
"test": "CF_API_TOKEN=some-api-token CF_ACCOUNT_ID=some-account-id jest --silent=false --verbose=true" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=16.7.0" | ||
}, | ||
"jest": { | ||
"testRegex": ".*.(test|spec)\\.[jt]sx?$", | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!node-fetch|fetch-blob|find-up|locate-path|p-locate|p-limit|yocto-queue|path-exists|data-uri-to-buffer|formdata-polyfill)" | ||
], | ||
"moduleNameMapper": { | ||
"clipboardy": "<rootDir>/src/__tests__/clipboardy-mock.js" | ||
}, | ||
"transform": { | ||
"^.+\\.c?(t|j)sx?$": [ | ||
"esbuild-jest", | ||
{ | ||
"sourcemap": true | ||
} | ||
] | ||
} | ||
} | ||
} |
@@ -40,3 +40,3 @@ { | ||
"dependencies": { | ||
"mime": "^2.5.2" | ||
"wrangler-mime": "^2.5.2" | ||
}, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12648295
63
8521
6
29
2
2
+ Addedsemiver@^1.1.0
+ Addedserve@^13.0.2
+ Added@cloudflare/pages-functions-compiler@0.3.4(transitive)
+ Added@miniflare/cache@2.0.0-rc.2(transitive)
+ Added@miniflare/cli-parser@2.0.0-rc.2(transitive)
+ Added@miniflare/core@2.0.0-rc.2(transitive)
+ Added@miniflare/durable-objects@2.0.0-rc.2(transitive)
+ Added@miniflare/html-rewriter@2.0.0-rc.2(transitive)
+ Added@miniflare/http-server@2.0.0-rc.2(transitive)
+ Added@miniflare/kv@2.0.0-rc.2(transitive)
+ Added@miniflare/runner-vm@2.0.0-rc.2(transitive)
+ Added@miniflare/scheduler@2.0.0-rc.2(transitive)
+ Added@miniflare/shared@2.0.0-rc.2(transitive)
+ Added@miniflare/sites@2.0.0-rc.2(transitive)
+ Added@miniflare/storage-file@2.0.0-rc.2(transitive)
+ Added@miniflare/storage-memory@2.0.0-rc.2(transitive)
+ Added@miniflare/watcher@2.0.0-rc.2(transitive)
+ Added@miniflare/web-sockets@2.0.0-rc.2(transitive)
+ Added@zeit/schemas@2.6.0(transitive)
+ Addedaccepts@1.3.8(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-walk@8.3.4(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedansi-align@3.0.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedarch@2.2.0(transitive)
+ Addedarg@2.0.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedboxen@5.1.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbytes@3.0.0(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedchalk@2.4.1(transitive)
+ Addedcli-boxes@2.2.1(transitive)
+ Addedclipboardy@2.3.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcommander@8.3.0(transitive)
+ Addedcompressible@2.0.18(transitive)
+ Addedcompression@1.7.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcontent-disposition@0.5.2(transitive)
+ Addedcron-schedule@3.0.6(transitive)
+ Addedcross-spawn@6.0.6(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddotenv@10.0.0(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedesbuild@0.13.12(transitive)
+ Addedesbuild-android-arm64@0.13.12(transitive)
+ Addedesbuild-darwin-64@0.13.12(transitive)
+ Addedesbuild-darwin-arm64@0.13.12(transitive)
+ Addedesbuild-freebsd-64@0.13.12(transitive)
+ Addedesbuild-freebsd-arm64@0.13.12(transitive)
+ Addedesbuild-linux-32@0.13.12(transitive)
+ Addedesbuild-linux-64@0.13.12(transitive)
+ Addedesbuild-linux-arm@0.13.12(transitive)
+ Addedesbuild-linux-arm64@0.13.12(transitive)
+ Addedesbuild-linux-mips64le@0.13.12(transitive)
+ Addedesbuild-linux-ppc64le@0.13.12(transitive)
+ Addedesbuild-netbsd-64@0.13.12(transitive)
+ Addedesbuild-openbsd-64@0.13.12(transitive)
+ Addedesbuild-sunos-64@0.13.12(transitive)
+ Addedesbuild-windows-32@0.13.12(transitive)
+ Addedesbuild-windows-64@0.13.12(transitive)
+ Addedesbuild-windows-arm64@0.13.12(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedexeca@1.0.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfast-url-parser@1.1.3(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-docker@2.2.1(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedis-wsl@2.2.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedmime-db@1.33.01.52.01.53.0(transitive)
+ Addedmime-types@2.1.182.1.35(transitive)
+ Addedminiflare@2.0.0-rc.2(transitive)
+ Addedminimatch@3.0.4(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedms@2.0.0(transitive)
+ Addednegotiator@0.6.3(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addedon-headers@1.0.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedpath-is-inside@1.0.2(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpath-to-regexp@2.2.16.3.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedrange-parser@1.2.0(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedregistry-auth-token@3.3.2(transitive)
+ Addedregistry-url@3.1.0(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedserve@13.0.4(transitive)
+ Addedserve-handler@6.1.3(transitive)
+ Addedset-cookie-parser@2.7.1(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedundici@4.16.0(transitive)
+ Addedupdate-check@1.5.2(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedvary@1.1.2(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwidest-line@3.1.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedws@8.18.0(transitive)
- Removedyargs@^17.1.1
- Removed@cloudflare/workers-types@2.2.2(transitive)
- Removed@mrbbot/node-fetch@4.6.0(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@peculiar/asn1-schema@2.3.13(transitive)
- Removed@peculiar/json-schema@1.1.12(transitive)
- Removed@peculiar/webcrypto@1.5.0(transitive)
- Removed@types/node@16.18.122(transitive)
- Removed@wessberg/stringutil@1.0.19(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedasn1js@3.0.5(transitive)
- Removedbase64-arraybuffer-es6@0.7.0(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbraces@3.0.3(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedcjstoesm@1.1.5(transitive)
- Removedcliui@7.0.48.0.1(transitive)
- Removedcluster-key-slot@1.1.2(transitive)
- Removedcommander@9.5.0(transitive)
- Removedcompatfactory@0.0.13(transitive)
- Removedcrosspath@1.0.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddenque@1.5.1(transitive)
- Removeddotenv@8.6.0(transitive)
- Removedenv-paths@2.2.1(transitive)
- Removedesbuild@0.12.29(transitive)
- Removedescalade@3.2.0(transitive)
- Removedevent-target-shim@6.0.2(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedformdata-node@2.5.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhelpertypes@0.0.18(transitive)
- Removedioredis@4.28.5(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-core-module@2.16.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.defaults@4.2.0(transitive)
- Removedlodash.flatten@4.4.0(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmime-db@1.46.0(transitive)
- Removedmime-types@2.1.29(transitive)
- Removedminiflare@1.4.1(transitive)
- Removedms@2.1.3(transitive)
- Removednode-cron@2.0.3(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedopencollective-postinstall@2.0.3(transitive)
- Removedp-map@2.1.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpvtsutils@1.3.6(transitive)
- Removedpvutils@1.1.3(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedredis-commands@1.7.0(transitive)
- Removedredis-errors@1.2.0(transitive)
- Removedredis-parser@3.0.0(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedreserved-words@0.1.2(transitive)
- Removedresolve@1.22.9(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedsanitize-filename@1.6.3(transitive)
- Removedstandard-as-callback@2.1.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtr46@2.1.0(transitive)
- Removedtruncate-utf8-bytes@1.0.2(transitive)
- Removedtslib@2.8.1(transitive)
- Removedtypescript@4.9.5(transitive)
- Removedtypeson@6.1.0(transitive)
- Removedtypeson-registry@1.0.0-alpha.39(transitive)
- Removedtz-offset@0.0.1(transitive)
- Removedutf8-byte-length@1.0.5(transitive)
- Removedweb-streams-polyfill@3.3.3(transitive)
- Removedwebcrypto-core@1.8.1(transitive)
- Removedwebidl-conversions@6.1.0(transitive)
- Removedwhatwg-url@8.7.0(transitive)
- Removedws@7.5.10(transitive)
- Removedy18n@5.0.8(transitive)
- Removedyargs@16.2.017.7.2(transitive)
- Removedyargs-parser@20.2.921.1.1(transitive)
Updatedesbuild@0.13.12
Updatedminiflare@2.0.0-rc.2