wrangler
Advanced tools
Comparing version 0.0.0-aa79074 to 0.0.0-ab311f8
@@ -1,2 +0,36 @@ | ||
#!/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 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-aa79074", | ||
"version": "0.0.0-ab311f8", | ||
"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,6 @@ "bugs": { | ||
"dependencies": { | ||
"esbuild": "^0.13.12", | ||
"miniflare": "^1.4.1", | ||
"yargs": "^17.2.1" | ||
"esbuild": "0.14.1", | ||
"miniflare": "2.0.0-rc.4", | ||
"path-to-regexp": "^6.2.0", | ||
"semiver": "^1.1.0" | ||
}, | ||
@@ -45,30 +49,46 @@ "optionalDependencies": { | ||
"devDependencies": { | ||
"@babel/types": "^7.16.0", | ||
"@iarna/toml": "^2.2.5", | ||
"@types/cloudflare": "^2.7.6", | ||
"@types/react": "^17.0.34", | ||
"@types/mime": "^2.0.3", | ||
"@types/estree": "^0.0.50", | ||
"@types/react": "^17.0.37", | ||
"@types/serve-static": "^1.13.10", | ||
"@types/signal-exit": "^3.0.1", | ||
"@types/ws": "^8.2.0", | ||
"@types/yargs": "^17.0.5", | ||
"@types/ws": "^8.2.1", | ||
"@types/yargs": "^17.0.7", | ||
"acorn": "^8.6.0", | ||
"acorn-walk": "^8.2.0", | ||
"chokidar": "^3.5.2", | ||
"clipboardy": "^3.0.0", | ||
"cloudflare": "^2.9.1", | ||
"command-exists": "^1.2.9", | ||
"execa": "^6.0.0", | ||
"faye-websocket": "^0.11.4", | ||
"finalhandler": "^1.1.2", | ||
"find-up": "^6.2.0", | ||
"formdata-node": "^4.3.1", | ||
"http-proxy": "^1.18.1", | ||
"ink": "^3.2.0", | ||
"ink-select-input": "^4.2.1", | ||
"ink-table": "^3.0.0", | ||
"node-fetch": "github:tekwiz/node-fetch#fix/redirect-with-empty-chunked-transfer-encoding", | ||
"ink-text-input": "^4.0.2", | ||
"mime": "^3.0.0", | ||
"node-fetch": "^3.1.0", | ||
"open": "^8.4.0", | ||
"react": "^17.0.2", | ||
"react-error-boundary": "^3.1.4", | ||
"serve-static": "^1.14.1", | ||
"signal-exit": "^3.0.5", | ||
"signal-exit": "^3.0.6", | ||
"tmp-promise": "^3.0.3", | ||
"ws": "^8.2.3" | ||
"undici": "^4.11.1", | ||
"ws": "^8.3.0", | ||
"yargs": "^17.3.0" | ||
}, | ||
"files": [ | ||
"src", | ||
"bin", | ||
"lib", | ||
"miniflare-config-stubs", | ||
"wrangler-dist", | ||
"facade.js", | ||
"vendor" | ||
"static-asset-facade.js", | ||
"vendor", | ||
"import_meta_url.js" | ||
], | ||
@@ -79,7 +99,29 @@ "scripts": { | ||
"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": { | ||
"restoreMocks": true, | ||
"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|execa|strip-final-newline|npm-run-path|path-key|onetime|mimic-fn|human-signals|is-stream)" | ||
], | ||
"moduleNameMapper": { | ||
"clipboardy": "<rootDir>/src/__tests__/clipboardy-mock.js" | ||
}, | ||
"transform": { | ||
"^.+\\.c?(t|j)sx?$": [ | ||
"esbuild-jest", | ||
{ | ||
"sourcemap": true | ||
} | ||
] | ||
}, | ||
"setupFilesAfterEnv": [ | ||
"<rootDir>/src/__tests__/jest.setup.ts" | ||
] | ||
} | ||
} |
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
13093962
72
5
34
10380
52
2
2
+ Addedpath-to-regexp@^6.2.0
+ Addedsemiver@^1.1.0
+ Added@miniflare/cache@2.0.0-rc.4(transitive)
+ Added@miniflare/cli-parser@2.0.0-rc.4(transitive)
+ Added@miniflare/core@2.0.0-rc.4(transitive)
+ Added@miniflare/durable-objects@2.0.0-rc.4(transitive)
+ Added@miniflare/html-rewriter@2.0.0-rc.4(transitive)
+ Added@miniflare/http-server@2.0.0-rc.4(transitive)
+ Added@miniflare/kv@2.0.0-rc.4(transitive)
+ Added@miniflare/runner-vm@2.0.0-rc.4(transitive)
+ Added@miniflare/scheduler@2.0.0-rc.4(transitive)
+ Added@miniflare/shared@2.0.0-rc.4(transitive)
+ Added@miniflare/sites@2.0.0-rc.4(transitive)
+ Added@miniflare/storage-file@2.0.0-rc.4(transitive)
+ Added@miniflare/storage-memory@2.0.0-rc.4(transitive)
+ Added@miniflare/watcher@2.0.0-rc.4(transitive)
+ Added@miniflare/web-sockets@2.0.0-rc.4(transitive)
+ Addedcron-schedule@3.0.6(transitive)
+ Addeddotenv@10.0.0(transitive)
+ Addedesbuild@0.14.1(transitive)
+ Addedesbuild-android-arm64@0.14.1(transitive)
+ Addedesbuild-darwin-64@0.14.1(transitive)
+ Addedesbuild-darwin-arm64@0.14.1(transitive)
+ Addedesbuild-freebsd-64@0.14.1(transitive)
+ Addedesbuild-freebsd-arm64@0.14.1(transitive)
+ Addedesbuild-linux-32@0.14.1(transitive)
+ Addedesbuild-linux-64@0.14.1(transitive)
+ Addedesbuild-linux-arm@0.14.1(transitive)
+ Addedesbuild-linux-arm64@0.14.1(transitive)
+ Addedesbuild-linux-mips64le@0.14.1(transitive)
+ Addedesbuild-linux-ppc64le@0.14.1(transitive)
+ Addedesbuild-netbsd-64@0.14.1(transitive)
+ Addedesbuild-openbsd-64@0.14.1(transitive)
+ Addedesbuild-sunos-64@0.14.1(transitive)
+ Addedesbuild-windows-32@0.14.1(transitive)
+ Addedesbuild-windows-64@0.14.1(transitive)
+ Addedesbuild-windows-arm64@0.14.1(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedminiflare@2.0.0-rc.4(transitive)
+ Addedpath-to-regexp@6.3.0(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)
- Removedesbuild@0.13.15(transitive)
- Removedesbuild-android-arm64@0.13.15(transitive)
- Removedesbuild-darwin-64@0.13.15(transitive)
- Removedesbuild-darwin-arm64@0.13.15(transitive)
- Removedesbuild-freebsd-64@0.13.15(transitive)
- Removedesbuild-freebsd-arm64@0.13.15(transitive)
- Removedesbuild-linux-32@0.13.15(transitive)
- Removedesbuild-linux-64@0.13.15(transitive)
- Removedesbuild-linux-arm@0.13.15(transitive)
- Removedesbuild-linux-arm64@0.13.15(transitive)
- Removedesbuild-linux-mips64le@0.13.15(transitive)
- Removedesbuild-linux-ppc64le@0.13.15(transitive)
- Removedesbuild-netbsd-64@0.13.15(transitive)
- Removedesbuild-openbsd-64@0.13.15(transitive)
- Removedesbuild-sunos-64@0.13.15(transitive)
- Removedesbuild-windows-32@0.13.15(transitive)
- Removedesbuild-windows-64@0.13.15(transitive)
- Removedesbuild-windows-arm64@0.13.15(transitive)
- Removedescalade@3.2.0(transitive)
- Removedevent-target-shim@6.0.2(transitive)
- Removedfast-glob@3.3.3(transitive)
- Removedfastq@1.18.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)
Updatedesbuild@0.14.1
Updatedminiflare@2.0.0-rc.4