Socket
Socket
Sign inDemoInstall

@hubspot/cms-lib

Package Overview
Dependencies
Maintainers
14
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.2.2 to 2.2.3-beta.0

7

api/designManager.js

@@ -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,
};

4

package.json
{
"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"
}
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