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

cce-unified-config

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cce-unified-config - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

28

index.js

@@ -79,13 +79,19 @@ const request = require('request-promise-native')

async get(type, id) {
return request({
url: `${this.url}${type.toLowerCase()}/${id}`,
headers: {
'Accept': 'application/json'
},
auth: {
user: this.auth.username,
pass: this.auth.password
},
json: true
})
try {
const response = await request({
url: `${this.url}${type.toLowerCase()}/${id}`,
headers: {
'Accept': 'application/xml'
},
auth: {
user: this.auth.username,
pass: this.auth.password
}
})
const jsonData = await parseXmlString(response)
// console.log('jsonData', jsonData)
return jsonData[type]
} catch (e) {
throw e
}
}

@@ -92,0 +98,0 @@

{
"name": "cce-unified-config",
"version": "0.9.1",
"version": "0.9.2",
"description": "JavaScript library for Cisco Contact Center Enterprise APIs",

@@ -5,0 +5,0 @@ "main": "index.js",

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