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
1
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 0.0.10 to 0.0.11

10

lib/client/client.js

@@ -57,3 +57,3 @@ //client.js

} else { // we have recieved a query string ex. '?sort_by=id&sort_order=desc'
if (last_element.indexOf('?') === 0) {
if (last_element.toString().indexOf('?') === 0) {
params = last_element;

@@ -77,3 +77,3 @@ } else {

'Accept' : 'application/json',
'User-Agent' : 'node-zendesk/0.0.10 (node/' + process.versions.node + ')'
'User-Agent' : 'node-zendesk/0.0.11 (node/' + process.versions.node + ')'
};

@@ -113,3 +113,3 @@ if(useOAuth){ //token is an oauth token obtained from OAuth2

this._request(options, function (err, response, result) {
return this._request(options, function (err, response, result) {
if (err) {

@@ -243,3 +243,3 @@ return callback(err);

'Content-Length': stat.size,
'User-Agent' : 'node-zendesk/0.0.10 (node/' + process.versions.node + ')'
'User-Agent' : 'node-zendesk/0.0.11 (node/' + process.versions.node + ')'
};

@@ -263,3 +263,3 @@ if(useOAuth)

out = Client.prototype.request.apply(this, ['POST', uri, function (error, request, result) {
out = Client.prototype.request.apply(self, ['POST', uri, function (error, request, result) {
if (error) {

@@ -266,0 +266,0 @@ return callback(error);

@@ -57,2 +57,6 @@ //tickets.js: Client for the zendesk API.

Tickets.prototype.showMany = function (ticket_ids, cb) {
this.request('GET', ['tickets', 'show_many', '?ids=' + ticket_ids.toString()], cb);
};
// ====================================== Creating Tickets

@@ -59,0 +63,0 @@ Tickets.prototype.create = function (ticket, cb) {

{
"name": "node-zendesk",
"version": "0.0.10",
"version": "0.0.11",
"description": "zendesk API client wrapper",

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

@@ -298,2 +298,3 @@ # node-zendesk

show(ticketID, cb)
showMany(ticket_ids, cb)
create(ticket, cb)

@@ -300,0 +301,0 @@ update(ticketID, ticket, cb)

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