Socket
Socket
Sign inDemoInstall

cloudflared

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflared - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

14

lib/constants.js

@@ -25,8 +25,14 @@ "use strict";

CLOUDFLARED_VERSION: () => CLOUDFLARED_VERSION,
DEFAULT_CLOUDFLARED_BIN: () => DEFAULT_CLOUDFLARED_BIN,
RELEASE_BASE: () => RELEASE_BASE,
bin: () => bin
bin: () => bin,
use: () => use
});
module.exports = __toCommonJS(constants_exports);
var import_node_path = __toESM(require("node:path"));
const bin = import_node_path.default.join(__dirname, "..", "bin", process.platform === "win32" ? "cloudflared.exe" : "cloudflared");
const DEFAULT_CLOUDFLARED_BIN = import_node_path.default.join(__dirname, "..", "bin", process.platform === "win32" ? "cloudflared.exe" : "cloudflared");
let bin = process.env.CLOUDFLARED_BIN || DEFAULT_CLOUDFLARED_BIN;
function use(executable) {
bin = executable;
}
const CLOUDFLARED_VERSION = process.env.CLOUDFLARED_VERSION || "latest";

@@ -37,4 +43,6 @@ const RELEASE_BASE = "https://github.com/cloudflare/cloudflared/releases/";

CLOUDFLARED_VERSION,
DEFAULT_CLOUDFLARED_BIN,
RELEASE_BASE,
bin
bin,
use
});

@@ -5,4 +5,6 @@ import { ChildProcess } from 'node:child_process';

* The path to the cloudflared binary.
* If the `CLOUDFLARED_BIN` environment variable is set, it will be used; otherwise, {@link DEFAULT_CLOUDFLARED_BIN} will be used.
* Can be overridden with {@link use}.
*/
declare const bin: string;
declare let bin: string;

@@ -9,0 +11,0 @@ /**

{
"name": "cloudflared",
"version": "0.5.0",
"version": "0.5.1",
"description": "Cloudflared in Node. Which allows you to easily create HTTPS tunnels using Cloudflare's cloudflared. It provides a typed API for creating tunnels and managing the cloudflared binary installation.",

@@ -37,3 +37,3 @@ "main": "./lib/lib.js",

"vitest": "^0.34.4",
"cloudflared": "0.5.0"
"cloudflared": "0.5.1"
},

@@ -40,0 +40,0 @@ "homepage": "https://github.com/JacobLinCool/node-cloudflared#readme",

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