pinjs
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -18,3 +18,3 @@ const got = require('got'); | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -25,3 +25,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -32,3 +32,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -39,3 +39,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -46,3 +46,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -53,3 +53,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -60,3 +60,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -67,3 +67,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -74,3 +74,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
}; | ||
@@ -82,3 +82,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -89,3 +89,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -96,3 +96,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -103,3 +103,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -110,3 +110,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -117,3 +117,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -124,3 +124,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -131,3 +131,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -138,3 +138,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -145,3 +145,3 @@ | ||
.then(response => callback(null, response, response.body)) | ||
.catch(error => callback(error, error.response, error.response.body)); | ||
.catch(error => callback(error, error.response, error.response ? error.response.body : null)); | ||
} | ||
@@ -148,0 +148,0 @@ }; |
@@ -12,3 +12,3 @@ { | ||
"main": "./lib/pin", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"dependencies": { | ||
@@ -15,0 +15,0 @@ "got": "^10.7.0" |
25458