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.7 to 2.1.1-beta.8

lib/functions.js

11

api/function.js
const http = require('../http');
const FUNCTION_API_PATH = 'cms/v3/functions/function';
const FUNCTION_API_PATH = 'cms/v3/functions';
async function getFunctionByPath(portalId, functionPath) {
return http.get(portalId, {
uri: `${FUNCTION_API_PATH}/by-path/${functionPath}`,
uri: `${FUNCTION_API_PATH}/function/by-path/${functionPath}`,
});
}
async function getRoutes(portalId) {
return http.get(portalId, {
uri: `${FUNCTION_API_PATH}/routes`,
});
}
module.exports = {
getFunctionByPath,
getRoutes,
};

4

package.json
{
"name": "@hubspot/cms-lib",
"version": "2.1.1-beta.7",
"version": "2.1.1-beta.8",
"description": "Library for working with the HubSpot CMS",

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

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