Socket
Socket
Sign inDemoInstall

wrangler

Package Overview
Dependencies
Maintainers
4
Versions
3503
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-9ef9f17 to 0.0.0-a520e81

import_meta_url.js

38

bin/wrangler.js

@@ -1,2 +0,36 @@

#!/usr/bin/env node --no-warnings --experimental-vm-modules
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.exit(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 === undefined || code === null ? 0 : code)
);
}
void main();

33

package.json
{
"name": "wrangler",
"version": "0.0.0-9ef9f17",
"version": "0.0.0-a520e81",
"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"
},

@@ -52,3 +52,4 @@ "optionalDependencies": {

"clipboardy": "^3.0.0",
"cloudflare": "^2.9.1",
"command-exists": "^1.2.9",
"execa": "^5.1.1",
"finalhandler": "^1.1.2",

@@ -59,3 +60,5 @@ "find-up": "^6.2.0",

"ink": "^3.2.0",
"ink-select-input": "^4.2.0",
"ink-table": "^3.0.0",
"ink-text-input": "^4.0.1",
"node-fetch": "github:tekwiz/node-fetch#fix/redirect-with-empty-chunked-transfer-encoding",

@@ -67,3 +70,4 @@ "open": "^8.4.0",

"tmp-promise": "^3.0.3",
"ws": "^8.2.3"
"ws": "^8.2.3",
"yargs": "^17.2.1"
},

@@ -75,3 +79,4 @@ "files": [

"static-asset-facade.js",
"vendor"
"vendor",
"import_meta_url.js"
],

@@ -82,7 +87,21 @@ "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": "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