Socket
Socket
Sign inDemoInstall

@hubspot/cms-cli

Package Overview
Dependencies
Maintainers
10
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hubspot/cms-cli - npm Package Compare versions

Comparing version 0.0.21-beta.1 to 0.0.22-beta.0

.DS_Store

2

bin/hscms-fetch.js

@@ -57,3 +57,3 @@ #!/usr/bin/env node

} else {
dest = path.resolve(dest);
dest = path.resolve(getCwd(), dest);
}

@@ -60,0 +60,0 @@

@@ -26,2 +26,3 @@ #!/usr/bin/env node

.command('fetch <src> [dest]', 'fetch a file or folder')
.command('server [src]', 'run the local server', { noHelp: true })
.command('sync <src> <dest>', 'upload a directory of assets', {

@@ -28,0 +29,0 @@ noHelp: true,

@@ -69,2 +69,3 @@ const Logger = require('@hubspot/cms-lib/logger');

const getMode = (options = {}) => {
// 1. --mode
const { mode } = options;

@@ -74,7 +75,13 @@ if (mode && typeof mode === 'string') {

}
// 2. config[portal].defaultMode
const portalId = getPortalId(options);
if (!portalId) {
return DEFAULT_MODE;
if (portalId) {
const portalConfig = getPortalConfig(portalId);
if (portalConfig && portalConfig.defaultMode) {
return portalConfig.defaultMode;
}
}
const config = getPortalConfig(portalId);
// 3. config.defaultMode
// 4. DEFAULT_MODE
const config = getConfig();
return (config && config.defaultMode) || DEFAULT_MODE;

@@ -81,0 +88,0 @@ };

@@ -39,2 +39,3 @@ const { trackUsage } = require('@hubspot/cms-lib/api/fileMapper');

os: getPlatform(),
nodeVersion: process.version,
version,

@@ -66,2 +67,3 @@ command,

os: getPlatform(),
nodeVersion: process.version,
version,

@@ -68,0 +70,0 @@ command,

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

@@ -8,5 +8,6 @@ "license": "Apache-2.0",

"@hubspot/api-auth-lib": "^0.0.18",
"@hubspot/cms-lib": "^0.0.21-beta.1",
"@hubspot/cms-lib": "^0.0.22-beta.0",
"commander": "^2.16.0",
"inquirer": "^6.3.1",
"shelljs": "0.8.3",
"update-notifier": "3.0.1"

@@ -23,3 +24,3 @@ },

},
"gitHead": "d1be995482c0d9334d494718df89d36cd5bd986f"
"gitHead": "8c4960b91d6badcafc71af98c18a2597ec4bf67a"
}

Sorry, the diff of this file is not supported yet

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