wrangler
Advanced tools
Comparing version 0.0.0-adfd7b6 to 0.0.0-aff4276
@@ -1,2 +0,34 @@ | ||
#!/usr/bin/env node --no-warnings | ||
require("../wrangler-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 ${MIN_NODE_VERSION}. | ||
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/index_node.js"), | ||
...process.argv.slice(2), | ||
], | ||
{ stdio: "inherit" } | ||
).on("exit", (code) => process.exit(code ?? 0)); | ||
} | ||
void main(); |
{ | ||
"name": "wrangler", | ||
"version": "0.0.0-adfd7b6", | ||
"version": "0.0.0-aff4276", | ||
"author": "wrangler@cloudflare.com", | ||
@@ -37,4 +37,4 @@ "description": "Command-line interface for all things Cloudflare Workers", | ||
"esbuild": "^0.13.12", | ||
"miniflare": "^1.4.1", | ||
"yargs": "^17.2.1" | ||
"miniflare": "2.0.0-rc.1", | ||
"semiver": "^1.1.0" | ||
}, | ||
@@ -45,4 +45,6 @@ "optionalDependencies": { | ||
"devDependencies": { | ||
"@cfpreview/plinko": "^0.3.0", | ||
"@iarna/toml": "^2.2.5", | ||
"@types/cloudflare": "^2.7.6", | ||
"@types/express": "^4.17.13", | ||
"@types/react": "^17.0.34", | ||
@@ -53,4 +55,5 @@ "@types/signal-exit": "^3.0.1", | ||
"clipboardy": "^3.0.0", | ||
"cloudflare": "^2.9.1", | ||
"command-exists": "^1.2.9", | ||
"execa": "^5.1.1", | ||
"express": "^4.17.1", | ||
"finalhandler": "^1.1.2", | ||
@@ -60,13 +63,16 @@ "find-up": "^6.2.0", | ||
"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", | ||
"ink-text-input": "^4.0.1", | ||
"ink-select-input": "^4.2.0", | ||
"node-fetch": "github:tekwiz/node-fetch#fix/redirect-with-empty-chunked-transfer-encoding", | ||
"open": "^8.4.0", | ||
"react": "^17.0.2", | ||
"serve": "^13.0.2", | ||
"serve-static": "^1.14.1", | ||
"signal-exit": "^3.0.5", | ||
"tmp-promise": "^3.0.3", | ||
"ws": "^8.2.3" | ||
"ws": "^8.2.3", | ||
"yargs": "^17.2.1" | ||
}, | ||
@@ -78,3 +84,4 @@ "files": [ | ||
"static-asset-facade.js", | ||
"vendor" | ||
"vendor", | ||
"import_meta_url.js" | ||
], | ||
@@ -85,7 +92,21 @@ "scripts": { | ||
"build": "npm run clean && npm run bundle", | ||
"start": "npm run bundle && NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js" | ||
"start": "npm run bundle && NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js", | ||
"test": "npm run build && NODE_OPTIONS=--enable-source-maps jest --silent=false" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.tsx?$": [ | ||
"esbuild-jest", | ||
{ | ||
"sourcemap": true, | ||
"loaders": { | ||
".spec.ts": "tsx" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
9408111
42
12693
30
+ Addedsemiver@^1.1.0
+ Added@miniflare/cache@2.0.0-rc.1(transitive)
+ Added@miniflare/cli-parser@2.0.0-rc.1(transitive)
+ Added@miniflare/core@2.0.0-rc.1(transitive)
+ Added@miniflare/durable-objects@2.0.0-rc.1(transitive)
+ Added@miniflare/html-rewriter@2.0.0-rc.1(transitive)
+ Added@miniflare/http-server@2.0.0-rc.1(transitive)
+ Added@miniflare/kv@2.0.0-rc.1(transitive)
+ Added@miniflare/runner-vm@2.0.0-rc.1(transitive)
+ Added@miniflare/scheduler@2.0.0-rc.1(transitive)
+ Added@miniflare/shared@2.0.0-rc.1(transitive)
+ Added@miniflare/sites@2.0.0-rc.1(transitive)
+ Added@miniflare/storage-file@2.0.0-rc.1(transitive)
+ Added@miniflare/storage-memory@2.0.0-rc.1(transitive)
+ Added@miniflare/watcher@2.0.0-rc.1(transitive)
+ Added@miniflare/web-sockets@2.0.0-rc.1(transitive)
+ Addedcron-schedule@3.0.6(transitive)
+ Addeddotenv@10.0.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedminiflare@2.0.0-rc.1(transitive)
+ Addedset-cookie-parser@2.7.1(transitive)
+ Addedundici@4.16.0(transitive)
+ Addedws@8.18.0(transitive)
- Removedyargs@^17.2.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.15(transitive)
- Removed@peculiar/json-schema@1.1.12(transitive)
- Removed@peculiar/webcrypto@1.5.0(transitive)
- Removed@types/node@16.18.125(transitive)
- Removed@wessberg/stringutil@1.0.19(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(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)
- Removedchalk@4.1.2(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)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(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)
- Removedemoji-regex@8.0.0(transitive)
- Removedenv-paths@2.2.1(transitive)
- Removedescalade@3.2.0(transitive)
- Removedevent-target-shim@6.0.2(transitive)
- Removedfast-glob@3.3.3(transitive)
- Removedfastq@1.19.0(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)
- Removedhas-flag@4.0.0(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.1(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(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)
- Removedpunycode@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.10(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)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedsupports-color@7.2.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)
- Removedwrap-ansi@7.0.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)
Updatedminiflare@2.0.0-rc.1