Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wrangler

Package Overview
Dependencies
Maintainers
4
Versions
3868
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-494d32c to 0.0.0-4b22f63

import_meta_url.js

38

bin/wrangler.js

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

#!/usr/bin/env node --no-warnings
require("../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();

79

package.json
{
"name": "wrangler",
"version": "0.0.0-494d32c",
"version": "0.0.0-4b22f63",
"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,7 @@ "bugs": {

"dependencies": {
"esbuild": "^0.12.19",
"miniflare": "^1.3.3",
"yargs": "^17.1.1"
"@cloudflare/pages-functions-compiler": "0.3.4",
"esbuild": "0.13.12",
"miniflare": "2.0.0-rc.2",
"semiver": "^1.1.0",
"serve": "^13.0.2"
},

@@ -47,36 +52,66 @@ "optionalDependencies": {

"@types/cloudflare": "^2.7.6",
"@types/react": "^17.0.19",
"@types/express": "^4.17.13",
"@types/react": "^17.0.34",
"@types/signal-exit": "^3.0.1",
"@types/ws": "^7.4.7",
"@types/yargs": "^17.0.2",
"clipboardy": "^2.3.0",
"cloudflare": "^2.9.1",
"find-up": "^6.0.0",
"formdata-node": "^3.6.3",
"@types/ws": "^8.2.0",
"@types/yargs": "^17.0.5",
"clipboardy": "^3.0.0",
"command-exists": "^1.2.9",
"execa": "^5.1.1",
"express": "^4.17.1",
"finalhandler": "^1.1.2",
"find-up": "^6.2.0",
"formdata-node": "^4.3.1",
"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",
"node-fetch": "github:tekwiz/node-fetch#fix/redirect-with-empty-chunked-transfer-encoding",
"open": "^8.2.1",
"ink-text-input": "^4.0.1",
"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",
"tmp-promise": "^3.0.2",
"ws": "^8.2.0"
"tmp-promise": "^3.0.3",
"ws": "^8.2.3",
"yargs": "^17.2.1"
},
"files": [
"src",
"bin",
"miniflare-config-stubs",
"dist",
"facade.js",
"vendor"
"wrangler-dist",
"static-asset-facade.js",
"vendor",
"import_meta_url.js"
],
"scripts": {
"clean": "rm -rf dist",
"clean": "rm -rf wrangler-dist",
"bundle": "node -r esbuild-register scripts/bundle.ts",
"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": {
"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)"
],
"moduleNameMapper": {
"clipboardy": "<rootDir>/src/__tests__/clipboardy-mock.js"
},
"transform": {
"^.+\\.c?(t|j)sx?$": [
"esbuild-jest",
{
"sourcemap": true
}
]
}
}
}

@@ -40,3 +40,3 @@ {

"dependencies": {
"mime": "^2.5.2"
"wrangler-mime": "^2.5.2"
},

@@ -43,0 +43,0 @@ "devDependencies": {

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