New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

custom-object-manager

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-object-manager - npm Package Compare versions

Comparing version 1.1.8 to 2.0.0

22

lib/cli.js

@@ -26,18 +26,10 @@ #!/usr/bin/env node

baseURL: "https://api.hubapi.com/",
params: process.env.API_KEY
? {
hapikey: process.env.API_KEY,
}
: {},
headers: process.env.ACCESS_TOKEN
? {
Authorization: `Bearer ${process.env.ACCESS_TOKEN}`,
}
: {},
params: {
hapikey: process.env.API_KEY,
},
});
const readJSON = (filePath) => JSON.parse((0, fs_1.readFileSync)(filePath, "utf8"));
const getExistingSchemas = () => __awaiter(void 0, void 0, void 0, function* () {
return {};
// const { data } = await hs.get("/crm/v3/schemas");
// return keyBy(data.results, "name");
const { data } = yield hs.get("/crm/v3/schemas");
return (0, lodash_1.keyBy)(data.results, "name");
});

@@ -51,6 +43,2 @@ const createSchema = (objectSchema) => __awaiter(void 0, void 0, void 0, function* () {

console.log(`Failed to Create Schema ${objectSchema.name}`);
if (e instanceof Error) {
console.log(e);
console.log(e.message);
}
return null;

@@ -57,0 +45,0 @@ }

{
"name": "custom-object-manager",
"version": "1.1.8",
"version": "2.0.0",
"description": "Custom Object Manager CLI",

@@ -8,3 +8,3 @@ "bin": "./lib/cli.js",

"test": "echo \"Error: no test specified\" && exit 1",
"pre:publish": "tsc"
"prepublish": "tsc"
},

@@ -11,0 +11,0 @@ "files": [

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