cloudflared
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43151
945
7