New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wrangler

Package Overview
Dependencies
Maintainers
4
Versions
4036
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wrangler - npm Package Compare versions

Comparing version 0.0.0-c893c91 to 0.0.0-cae7a7f

36

bin/wrangler.js

@@ -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();

16

package.json
{
"name": "wrangler",
"version": "0.0.0-c893c91",
"version": "0.0.0-cae7a7f",
"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",

@@ -55,2 +57,3 @@ "@types/signal-exit": "^3.0.1",

"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"
},

@@ -73,0 +79,0 @@ "files": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc