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

wrangler

Package Overview
Dependencies
Maintainers
4
Versions
3905
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-92b71e6 to 0.0.0-94edfc6

README.md

38

bin/wrangler.js

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

58

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

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