hypertune
Advanced tools
Comparing version 1.7.18 to 1.7.19
# Changelog | ||
## 1.7.18 | ||
## 1.7.19 | ||
@@ -5,0 +5,0 @@ - Reduction improvements. |
@@ -5,6 +5,3 @@ "use strict"; | ||
function getToken() { | ||
if (typeof process === "undefined") { | ||
return null; | ||
} | ||
for (const [key, value] of Object.entries(process.env || {})) { | ||
for (const [key, value] of Object.entries(process.env)) { | ||
if (key.endsWith(shared_1.tokenEnvironmentVariableName) && value) { | ||
@@ -11,0 +8,0 @@ return value; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** Replaced by the value in package.json on build */ | ||
exports.default = "1.7.18"; | ||
exports.default = "1.7.19"; | ||
//# sourceMappingURL=sdkVersion.js.map |
{ | ||
"name": "hypertune", | ||
"version": "1.7.18", | ||
"version": "1.7.19", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
import { tokenEnvironmentVariableName } from "../shared"; | ||
export default function getToken(): string | null { | ||
if (typeof process === "undefined") { | ||
return null; | ||
} | ||
for (const [key, value] of Object.entries(process.env || {})) { | ||
for (const [key, value] of Object.entries(process.env)) { | ||
if (key.endsWith(tokenEnvironmentVariableName) && value) { | ||
@@ -9,0 +6,0 @@ return value; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
655412
12223