Socket
Socket
Sign inDemoInstall

@hubspot/cms-cli

Package Overview
Dependencies
364
Maintainers
12
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3-beta.1 to 1.1.3

45

commands/secrets.js

@@ -7,4 +7,7 @@ const {

const { logger } = require('@hubspot/cms-lib/logger');
const { logErrorInstance } = require('@hubspot/cms-lib/errorHandlers');
const {
logApiErrorInstance,
ApiErrorContext,
} = require('@hubspot/cms-lib/errorHandlers');
const {
addSecret,

@@ -28,4 +31,2 @@ deleteSecret,

const COMMAND_NAME = 'secrets';
function configureSecretsCommand(program) {

@@ -66,7 +67,10 @@ program

} catch (e) {
logErrorInstance(e, {
command: `${COMMAND_NAME} add`,
portalId,
secretName,
});
logger.error(`The secret "${secretName}" was not added`);
logApiErrorInstance(
e,
new ApiErrorContext({
request: 'add secret',
portalId,
})
);
}

@@ -102,7 +106,10 @@ });

} catch (e) {
logErrorInstance(e, {
command: `${COMMAND_NAME} delete`,
portalId,
secretName,
});
logger.error(`The secret "${secretName}" was not deleted`);
logApiErrorInstance(
e,
new ApiErrorContext({
request: `delete a secret`,
portalId,
})
);
}

@@ -138,6 +145,10 @@ });

} catch (e) {
logErrorInstance(e, {
command: `${COMMAND_NAME} list`,
portalId,
});
logger.error('The secrets could not be listed');
logApiErrorInstance(
e,
new ApiErrorContext({
request: 'get secrets',
portalId,
})
);
}

@@ -144,0 +155,0 @@ });

{
"name": "@hubspot/cms-cli",
"version": "1.1.3-beta.1",
"version": "1.1.3",
"description": "CLI for interacting with the HubSpot CMS",

@@ -30,3 +30,3 @@ "license": "Apache-2.0",

},
"gitHead": "c9ec7fc816464ec3420221fcbff83d84fdd69375"
"gitHead": "835e375ebe039e01049eb38cd91e22a7dcbb0125"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc