@fonoster/certs
Advanced tools
Comparing version 0.2.14 to 0.2.15
@@ -13,6 +13,6 @@ "use strict"; | ||
const btoa_1 = __importDefault(require("btoa")); | ||
const BASE_DIR = path_1.join(os_1.homedir(), ".fonoster"); | ||
const PATH_TO_SALT = path_1.join(BASE_DIR, "private_key"); | ||
const BASE_DIR = (0, path_1.join)((0, os_1.homedir)(), ".fonoster"); | ||
const PATH_TO_SALT = (0, path_1.join)(BASE_DIR, "private_key"); | ||
exports.PATH_TO_SALT = PATH_TO_SALT; | ||
const PATH_TO_CONFIG = path_1.join(BASE_DIR, "config"); | ||
const PATH_TO_CONFIG = (0, path_1.join)(BASE_DIR, "config"); | ||
exports.PATH_TO_CONFIG = PATH_TO_CONFIG; | ||
@@ -23,3 +23,3 @@ const ACCESS_KEY_ID = process.env.ACCESS_KEY_ID || "fonoster"; | ||
exports.AUTH_ISS = AUTH_ISS; | ||
const getContent = (workdir, file) => btoa_1.default(fs_1.default.readFileSync(`${workdir}/${file}`).toString("utf-8")); | ||
const getContent = (workdir, file) => (0, btoa_1.default)(fs_1.default.readFileSync(`${workdir}/${file}`).toString("utf-8")); | ||
if (!fs_1.default.existsSync(BASE_DIR)) | ||
@@ -55,3 +55,3 @@ fs_1.default.mkdirSync(BASE_DIR); | ||
try { | ||
const pathToConfig = path_1.join(workdir, "config"); | ||
const pathToConfig = (0, path_1.join)(workdir, "config"); | ||
const config = JSON.parse(fs_1.default.readFileSync(pathToConfig).toString("utf-8")); | ||
@@ -70,3 +70,3 @@ config.caCertificate = getContent(workdir, "ca.crt"); | ||
try { | ||
const pathToConfig = path_1.join(workdir, "config"); | ||
const pathToConfig = (0, path_1.join)(workdir, "config"); | ||
const config = JSON.parse(fs_1.default.readFileSync(pathToConfig).toString("utf-8")); | ||
@@ -73,0 +73,0 @@ config.caCertificate = getContent(workdir, "ca.crt"); |
@@ -7,2 +7,2 @@ "use strict"; | ||
const certs_1 = __importDefault(require("./certs")); | ||
certs_1.default(); | ||
(0, certs_1.default)(); |
{ | ||
"name": "@fonoster/certs", | ||
"version": "0.2.14", | ||
"version": "0.2.15", | ||
"description": "Handles Fonoster certificates", | ||
@@ -37,3 +37,3 @@ "author": "Pedro Sanders <psanders@fonoster.com>", | ||
}, | ||
"gitHead": "30d1237f01874ceb5a8c5249c8361c379be3938a" | ||
"gitHead": "1fdc2fff4d0c6900b1bff6a60f766492e988de41" | ||
} |
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
6526