@hubspot/cms-lib
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -13,3 +13,3 @@ const fs = require('fs-extra'); | ||
formData: { | ||
file: fs.createReadStream(path.resolve(process.cwd(), src)), | ||
file: fs.createReadStream(path.resolve(process.env.INIT_CWD, src)), | ||
}, | ||
@@ -16,0 +16,0 @@ }); |
@@ -23,2 +23,7 @@ const yaml = require('js-yaml'); | ||
config = yaml.safeLoad(fs.readFileSync(configPath)); | ||
if (!config) { | ||
config = { | ||
portals: [], | ||
}; | ||
} | ||
}; | ||
@@ -76,2 +81,3 @@ | ||
env: environment.toUpperCase(), | ||
portalId, | ||
authType, | ||
@@ -85,3 +91,7 @@ auth, | ||
} else { | ||
config.portals.push(nextPortalConfig); | ||
if (config.portals) { | ||
config.portals.push(nextPortalConfig); | ||
} else { | ||
config.portals = [nextPortalConfig]; | ||
} | ||
} | ||
@@ -88,0 +98,0 @@ writeConfig(); |
{ | ||
"name": "@hubspot/cms-lib", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Library for working with the HubSpot CMS", | ||
@@ -23,3 +23,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "33053f6dfc16ad40508544697b2f45f0a6b39a9f" | ||
"gitHead": "6efa49006ea4ac81e854cfc02de2577d653ac1e8" | ||
} |
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
26414
714
6