custom-object-manager
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -24,7 +24,15 @@ #!/usr/bin/env node | ||
(0, dotenv_1.config)(); | ||
console.log(process.env); | ||
const hs = axios_1.default.create({ | ||
baseURL: "https://api.hubapi.com/", | ||
params: { | ||
hapikey: process.env.API_KEY, | ||
}, | ||
params: process.env.API_KEY | ||
? { | ||
hapikey: process.env.API_KEY, | ||
} | ||
: {}, | ||
headers: process.env.ACCESS_TOKEN | ||
? { | ||
Authorization: `Bearer ${process.env.ACCESS_TOKEN}`, | ||
} | ||
: {}, | ||
}); | ||
@@ -31,0 +39,0 @@ const readJSON = (filePath) => JSON.parse((0, fs_1.readFileSync)(filePath, "utf8")); |
{ | ||
"name": "custom-object-manager", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Custom Object Manager CLI", | ||
@@ -5,0 +5,0 @@ "bin": "./lib/cli.js", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
9005
196
7