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

node-zendesk

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-zendesk - npm Package Compare versions

Comparing version 2.0.3 to 2.0.5

lib/client/helpcenter/usersegments.js

15

docs/api/README.md

@@ -623,2 +623,17 @@ ---

```
### usersegments
```js
list(cb)
listApplicable(cb)
listByUser(userID, cb)
show(sectionID, cb)
listSections(userSegmentID, cb)
listTopics(userSegmentID, cb)
create(userSegment, cb)
update(userSegmentID, userSegment, cb)
delete(userSegmentID, cb)
```
### subscriptions

@@ -625,0 +640,0 @@

17

lib/client.js

@@ -64,3 +64,4 @@ // client.js - node-zendesk client initialization

'AccessPolicies',
'Subscriptions'
'Subscriptions',
'UserSegments'
],

@@ -112,3 +113,3 @@ voiceParts = [

'serv': {
alias: 'services'
alias: 'services'
}

@@ -120,3 +121,11 @@ });

if (nconf.get('subdomain')) {
var subdomain
// Allow subdomain to be supplied when global state disabled (library mode)
if (options.stores.defaults.store.subdomain) {
subdomain = options.stores.defaults.store.subdomain
}
if (!subdomain) {
subdomain = nconf.get('subdomain');
}
if (subdomain) {
var endpoint;

@@ -133,3 +142,3 @@ if (options.stores.defaults.store.helpcenter) {

options.stores.defaults.store.remoteUri =
'https://' + nconf.get('subdomain') + endpoint;
'https://' + subdomain + endpoint;
}

@@ -136,0 +145,0 @@

@@ -239,5 +239,8 @@ // client.js - main client file that does most of the processing

return new Promise(function (resolve, reject) {
const stdCallback = function (e, res) {
return e ? reject(e) : resolve(res);
}
var stdCallback = function (error, statusCode, body, response) {
if (error) return reject(error);
return resolve(body);
};
// assumes a binary file is passed in instead of a path

@@ -244,0 +247,0 @@ if (binary) {

@@ -25,1 +25,6 @@ //ticketforms.js: Client for the zendesk API.

};
// // ====================================== Updating TicketForm
TicketForms.prototype.show = function (ticketFormID, cb) {
return this.request('PUT', ['ticket_forms', ticketFormID], ticketForm, cb);
};
{
"name": "node-zendesk",
"version": "2.0.3",
"version": "2.0.5",
"description": "zendesk API client wrapper",

@@ -66,5 +66,5 @@ "keywords": [

"async": "3.2.x",
"nconf": "0.10.x",
"nconf": "0.11.0",
"querystring": "0.2.x",
"request": "2.88.x"
"request": "2.88.2"
},

@@ -71,0 +71,0 @@ "devDependencies": {

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