Comparing version 1.1.1 to 1.2.0
@@ -54,5 +54,3 @@ /** | ||
server.on('error', reject) | ||
resolve(/** @type {Promise<void>} */ ( | ||
;/** @type {Promise<void>} */ ( | ||
new Promise(resolve => { | ||
@@ -75,3 +73,2 @@ if (listening) { | ||
(response) => { | ||
server.off('error', reject) | ||
if (listening) { | ||
@@ -86,3 +83,2 @@ return response | ||
(error) => { | ||
server.off('error', reject) | ||
if (listening) { | ||
@@ -96,3 +92,3 @@ throw error | ||
} | ||
)) | ||
).then(resolve, reject) | ||
}) | ||
@@ -99,0 +95,0 @@ |
{ | ||
"name": "axiosist", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Convert node.js request handler to axios adapter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8549
102