hc-service-client
Advanced tools
Comparing version 1.1.8 to 1.2.1
@@ -135,2 +135,3 @@ 'use strict'; | ||
} | ||
let headers = options.headers; | ||
@@ -232,30 +233,31 @@ let signatureHeader = this.signatureHeader; | ||
} | ||
return urllib.request(href, options, cb); | ||
}).catch(() => {}); | ||
}); | ||
if (callback) { | ||
return undefined; | ||
} else { | ||
return result.then(d => { | ||
const body = d.data; | ||
const res = d.res; | ||
} | ||
const processedData = this.responseWrapper(body); | ||
if (processedData instanceof Error) { | ||
this.log.debug('promise request got error: ', processedData); | ||
throw processedData; | ||
} | ||
return result.then(d => { | ||
const body = d.data; | ||
const res = d.res; | ||
if (res instanceof http.IncomingMessage) { | ||
this.log.debug('promise request return result with http.IncomingMessage.'); | ||
return { | ||
data: processedData, | ||
res | ||
}; | ||
} else { | ||
this.log.debug('promise request return result without http.IncomingMessage.'); | ||
return processedData; | ||
} | ||
}); | ||
} | ||
const processedData = this.responseWrapper(body); | ||
if (processedData instanceof Error) { | ||
this.log.debug('promise request got error: ', processedData); | ||
throw processedData; | ||
} | ||
if (res instanceof http.IncomingMessage) { | ||
this.log.debug('promise request return result with http.IncomingMessage.'); | ||
return { | ||
data: processedData, | ||
res | ||
}; | ||
} else { | ||
this.log.debug('promise request return result without http.IncomingMessage.'); | ||
return processedData; | ||
} | ||
}); | ||
} | ||
@@ -262,0 +264,0 @@ |
{ | ||
"name": "hc-service-client", | ||
"version": "1.1.8", | ||
"version": "1.2.1", | ||
"description": "Service Client Extension for Honeybee", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
"qs": "6.4.0", | ||
"urllib": "2.34.1", | ||
"urllib": "2.38.0", | ||
"uuid": "^8.3.0" | ||
@@ -25,0 +25,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
49679
1080
+ Added@tootallnate/once@1.1.2(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-walk@8.3.4(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedast-types@0.13.4(transitive)
+ Addeddata-uri-to-buffer@3.0.1(transitive)
+ Addeddegenerator@3.0.4(transitive)
+ Addedfile-uri-to-path@2.0.0(transitive)
+ Addedfs-extra@8.1.0(transitive)
+ Addedget-uri@3.0.2(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhttp-proxy-agent@4.0.1(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addednetmask@2.0.2(transitive)
+ Addedpac-proxy-agent@5.0.0(transitive)
+ Addedpac-resolver@5.0.1(transitive)
+ Addedproxy-agent@5.0.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@5.0.1(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedurllib@2.38.0(transitive)
+ Addedvm2@3.9.19(transitive)
- Removedagent-base@4.2.14.3.0(transitive)
- Removedast-types@0.16.1(transitive)
- Removedco@4.6.0(transitive)
- Removeddata-uri-to-buffer@1.2.0(transitive)
- Removeddebug@3.1.03.2.7(transitive)
- Removeddegenerator@1.0.4(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedesprima@3.1.3(transitive)
- Removedextend@3.0.2(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedget-uri@2.0.4(transitive)
- Removedhttp-proxy-agent@2.1.0(transitive)
- Removedhttps-proxy-agent@3.0.1(transitive)
- Removedip@1.1.5(transitive)
- Removedisarray@1.0.0(transitive)
- Removednetmask@1.0.6(transitive)
- Removedpac-proxy-agent@3.0.1(transitive)
- Removedpac-resolver@3.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedproxy-agent@3.1.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsocks@2.3.3(transitive)
- Removedsocks-proxy-agent@4.0.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthunkify@2.1.2(transitive)
- Removedurllib@2.34.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedurllib@2.38.0