wrangler
Advanced tools
Comparing version 0.0.0-92b71e6 to 0.0.0-94edfc6
@@ -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-92b71e6", | ||
"version": "0.0.0-94edfc6", | ||
"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,4 +39,6 @@ "bugs": { | ||
"dependencies": { | ||
"esbuild": "^0.13.12", | ||
"miniflare": "2.0.0-rc.1" | ||
"@cloudflare/pages-functions-compiler": "0.3.8", | ||
"esbuild": "0.14.1", | ||
"miniflare": "2.0.0-rc.3", | ||
"semiver": "^1.1.0" | ||
}, | ||
@@ -46,9 +51,11 @@ "optionalDependencies": { | ||
"@types/cloudflare": "^2.7.6", | ||
"@types/react": "^17.0.34", | ||
"@types/express": "^4.17.13", | ||
"@types/react": "^17.0.37", | ||
"@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", | ||
"chokidar": "^3.5.2", | ||
"clipboardy": "^3.0.0", | ||
"command-exists": "^1.2.9", | ||
"execa": "^5.1.1", | ||
"execa": "^6.0.0", | ||
"finalhandler": "^1.1.2", | ||
@@ -59,15 +66,19 @@ "find-up": "^6.2.0", | ||
"ink": "^3.2.0", | ||
"ink-select-input": "^4.2.1", | ||
"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", | ||
"ink-text-input": "^4.0.2", | ||
"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", | ||
"signal-exit": "^3.0.6", | ||
"tmp-promise": "^3.0.3", | ||
"ws": "^8.2.3", | ||
"yargs": "^17.2.1" | ||
"undici": "^4.11.1", | ||
"ws": "^8.3.0", | ||
"yargs": "^17.3.0", | ||
"react-error-boundary": "^3.1.4" | ||
}, | ||
"files": [ | ||
"src", | ||
"bin", | ||
@@ -85,16 +96,21 @@ "miniflare-config-stubs", | ||
"start": "npm run bundle && NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js", | ||
"test": "npm run build && NODE_OPTIONS=--enable-source-maps jest --silent=false" | ||
"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": { | ||
"^.+\\.tsx?$": [ | ||
"^.+\\.c?(t|j)sx?$": [ | ||
"esbuild-jest", | ||
{ | ||
"sourcemap": true, | ||
"loaders": { | ||
".spec.ts": "tsx" | ||
} | ||
"sourcemap": true | ||
} | ||
@@ -101,0 +117,0 @@ ] |
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
12282739
64
9356
5
30
52
2
2
+ Addedsemiver@^1.1.0
+ Added@cloudflare/pages-functions-compiler@0.3.8(transitive)
+ Added@miniflare/cache@2.0.0-rc.3(transitive)
+ Added@miniflare/cli-parser@2.0.0-rc.3(transitive)
+ Added@miniflare/core@2.0.0-rc.3(transitive)
+ Added@miniflare/durable-objects@2.0.0-rc.3(transitive)
+ Added@miniflare/html-rewriter@2.0.0-rc.3(transitive)
+ Added@miniflare/http-server@2.0.0-rc.3(transitive)
+ Added@miniflare/kv@2.0.0-rc.3(transitive)
+ Added@miniflare/runner-vm@2.0.0-rc.3(transitive)
+ Added@miniflare/scheduler@2.0.0-rc.3(transitive)
+ Added@miniflare/shared@2.0.0-rc.3(transitive)
+ Added@miniflare/sites@2.0.0-rc.3(transitive)
+ Added@miniflare/storage-file@2.0.0-rc.3(transitive)
+ Added@miniflare/storage-memory@2.0.0-rc.3(transitive)
+ Added@miniflare/watcher@2.0.0-rc.3(transitive)
+ Added@miniflare/web-sockets@2.0.0-rc.3(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-walk@8.3.4(transitive)
+ Addedcommander@8.3.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)
+ Addedminiflare@2.0.0-rc.3(transitive)
+ Addedpath-to-regexp@6.3.0(transitive)
- Removed@miniflare/cache@2.0.0-rc.1(transitive)
- Removed@miniflare/cli-parser@2.0.0-rc.1(transitive)
- Removed@miniflare/core@2.0.0-rc.1(transitive)
- Removed@miniflare/durable-objects@2.0.0-rc.1(transitive)
- Removed@miniflare/html-rewriter@2.0.0-rc.1(transitive)
- Removed@miniflare/http-server@2.0.0-rc.1(transitive)
- Removed@miniflare/kv@2.0.0-rc.1(transitive)
- Removed@miniflare/runner-vm@2.0.0-rc.1(transitive)
- Removed@miniflare/scheduler@2.0.0-rc.1(transitive)
- Removed@miniflare/shared@2.0.0-rc.1(transitive)
- Removed@miniflare/sites@2.0.0-rc.1(transitive)
- Removed@miniflare/storage-file@2.0.0-rc.1(transitive)
- Removed@miniflare/storage-memory@2.0.0-rc.1(transitive)
- Removed@miniflare/watcher@2.0.0-rc.1(transitive)
- Removed@miniflare/web-sockets@2.0.0-rc.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)
- Removedminiflare@2.0.0-rc.1(transitive)
Updatedesbuild@0.14.1
Updatedminiflare@2.0.0-rc.3