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-adfd7b6 to 0.0.0-aff4276

import_meta_url.js

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

37

package.json
{
"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

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