@hubspot/cms-lib
Advanced tools
Comparing version 2.2.2 to 2.2.3-beta.0
@@ -28,5 +28,12 @@ const http = require('../http'); | ||
async function fetchRawAssetByPath(accountId, path) { | ||
return http.get(accountId, { | ||
uri: `${DESIGN_MANAGER_API_PATH}/raw-assets/by-path/${path}?portalId=${accountId}`, | ||
}); | ||
} | ||
module.exports = { | ||
fetchBuiltinMapping, | ||
fetchMenus, | ||
fetchRawAssetByPath, | ||
}; |
const http = require('../http'); | ||
const { fetchRawAssetByPath } = require('./designManager'); | ||
@@ -26,6 +27,15 @@ const FUNCTION_API_PATH = 'cms/v3/functions'; | ||
async function deletePackage(portalId, path) { | ||
return fetchRawAssetByPath(portalId, path).then(resp => { | ||
return http.delete(portalId, { | ||
uri: `${FUNCTION_API_PATH}/package?portalId=${portalId}&rawAssetId=${resp.id}`, | ||
}); | ||
}); | ||
} | ||
module.exports = { | ||
buildPackage, | ||
deletePackage, | ||
getFunctionByPath, | ||
getRoutes, | ||
}; |
{ | ||
"name": "@hubspot/cms-lib", | ||
"version": "2.2.2", | ||
"version": "2.2.3-beta.0", | ||
"description": "Library for working with the HubSpot CMS", | ||
@@ -34,3 +34,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "8b31b3b847f9f29543bdbc6c75d6e0ce5accecce" | ||
"gitHead": "dfcd0fba47567c7a0b720dc5a3d7ff37fdbdae9f" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
279787
8961
2