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

@fonoster/certs

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fonoster/certs - npm Package Compare versions

Comparing version 0.2.14 to 0.2.15

12

dist/certs.js

@@ -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"
}
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