@hubspot/cms-lib
Advanced tools
Comparing version 2.1.1-beta.6 to 2.1.1-beta.7
@@ -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, | ||
}; |
@@ -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, | ||
}; |
@@ -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" | ||
} |
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
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
275667
8841