node-zendesk
Advanced tools
Comparing version 4.0.3 to 4.0.4
{ | ||
"name": "node-zendesk", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"type": "commonjs", | ||
@@ -70,2 +70,8 @@ "description": "zendesk API client wrapper", | ||
"license": "MIT", | ||
"funding": [ | ||
{ | ||
"type": "individual", | ||
"url": "https://github.com/blakmatrix/node-zendesk?sponsor=1" | ||
} | ||
], | ||
"engines": { | ||
@@ -77,2 +83,4 @@ "node": ">= 18" | ||
"dotenv": "^16.3.1", | ||
"nock": "^13.3.3", | ||
"request": "^2.88.2", | ||
"vitest": "^0.34.3", | ||
@@ -79,0 +87,0 @@ "xo": "^0.56.0" |
@@ -184,5 +184,7 @@ // Organizations.js: Client for the zendesk API. | ||
async deleteMany(organizationMembershipIDs) { | ||
return super.delete( | ||
['organization_memberships', 'destroy_many', { ids: organizationMembershipIDs.join(',') }], | ||
); | ||
return super.delete([ | ||
'organization_memberships', | ||
'destroy_many', | ||
{ids: organizationMembershipIDs.join(',')}, | ||
]); | ||
} | ||
@@ -189,0 +191,0 @@ |
@@ -27,2 +27,3 @@ /** | ||
'tickets/incremental/.*', | ||
'incremental/tickets/.*', | ||
'ticket_metrics', | ||
@@ -102,6 +103,3 @@ 'ticket/.+/audits', | ||
const regex = new RegExp( | ||
`^${pattern | ||
.replaceAll('.', '\\.') | ||
.replaceAll('/', '\\/') | ||
.replaceAll(/{.+}/g, '.+')}$`, | ||
`^${pattern.replaceAll('/', '\\/').replaceAll(/{.+}/g, '.+')}$`, | ||
); | ||
@@ -108,0 +106,0 @@ this.SUPPORTED_REGEXES.add(regex); |
@@ -227,4 +227,4 @@ const failCodes = { | ||
// The following occurs on delete requests | ||
if (response.status === 204 && response.statusText === 'No Content') { | ||
return createError(response.statusText, response.status); | ||
if (response.status === 204 && (response.statusText == null || response.statusText === 'No Content')) { | ||
return createError('No Content', response.status); | ||
} | ||
@@ -231,0 +231,0 @@ |
220039
6