Socket
Socket
Sign inDemoInstall

@hubspot/cms-lib

Package Overview
Dependencies
Maintainers
13
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hubspot/cms-lib - npm Package Compare versions

Comparing version 2.1.1-beta.6 to 2.1.1-beta.7

14

api/fileMapper.js

@@ -208,2 +208,15 @@ const fs = require('fs-extra');

/**
* Get directory contents
*
* @async
* @param {string} path
* @returns {Promise}
*/
async function getDirectoryContentsByPath(portalId, path) {
return http.get(portalId, {
uri: `${FILE_MAPPER_API_PATH}/meta/${path}`,
});
}
module.exports = {

@@ -219,2 +232,3 @@ deleteFile,

createFileMapperNodeFromStreamResponse,
getDirectoryContentsByPath,
};

4

index.js

@@ -8,2 +8,3 @@ const { ALLOWED_EXTENSIONS, Mode, DEFAULT_MODE } = require('./lib/constants');

getPortalConfig,
findConfig,
loadConfig,

@@ -13,2 +14,3 @@ loadConfigFromEnvironment,

validateConfig,
isTrackingAllowed,
} = require('./lib/config');

@@ -26,2 +28,3 @@ const { uploadFolder } = require('./lib/uploadFolder');

getConfig,
findConfig,
loadConfig,

@@ -34,4 +37,5 @@ loadConfigFromEnvironment,

validateConfig,
isTrackingAllowed,
watch,
walk,
};

20

lib/config.js

@@ -354,11 +354,12 @@ const fs = require('fs-extra');

const getConfigPath = path => {
return (
path ||
findup(
[
DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME,
DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME.replace('.yml', '.yaml'),
],
{ cwd: getCwd() }
)
return path || findConfig(getCwd());
};
const findConfig = directory => {
return findup(
[
DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME,
DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME.replace('.yml', '.yaml'),
],
{ cwd: directory }
);

@@ -672,2 +673,3 @@ };

loadConfig,
findConfig,
loadConfigFromEnvironment,

@@ -674,0 +676,0 @@ getPortalConfig,

@@ -95,2 +95,5 @@ const ENVIRONMENTS = {

const HUBSPOT_FOLDER = '@hubspot';
const MARKETPLACE_FOLDER = '@marketplace';
module.exports = {

@@ -114,2 +117,4 @@ Mode,

SCOPE_GROUPS,
HUBSPOT_FOLDER,
MARKETPLACE_FOLDER,
};
{
"name": "@hubspot/cms-lib",
"version": "2.1.1-beta.6",
"version": "2.1.1-beta.7",
"description": "Library for working with the HubSpot CMS",

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

},
"gitHead": "bc3e81ef94b319daf8398ada42206f68ba09cfb4"
"gitHead": "b6d766c32640096dbc163fe4554a049f9dd4e793"
}
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