@api-ts/superagent-wrapper
Advanced tools
Comparing version 0.2.0-beta.6 to 0.2.0-beta.7
@@ -67,3 +67,2 @@ "use strict"; | ||
return decodedResponse({ | ||
// DISCUSS: what's this non-standard HTTP status code? | ||
status: 'decodeError', | ||
@@ -79,5 +78,3 @@ error: `No codec for status ${status}`, | ||
original: res, | ||
})), E.getOrElse((error) => | ||
// DISCUSS: what's this non-standard HTTP status code? | ||
decodedResponse({ | ||
})), E.getOrElse((error) => decodedResponse({ | ||
status: 'decodeError', | ||
@@ -99,2 +96,3 @@ error, | ||
}); | ||
patchedReq.ok(() => true); | ||
return patchedReq; | ||
@@ -101,0 +99,0 @@ }; |
@@ -21,3 +21,2 @@ "use strict"; | ||
} | ||
// Type assert that I did in fact add all the expected properties | ||
return result; | ||
@@ -24,0 +23,0 @@ }; |
{ | ||
"name": "@api-ts/superagent-wrapper", | ||
"version": "0.2.0-beta.6", | ||
"version": "0.2.0-beta.7", | ||
"description": "Make type-safe HTTP requests with superagent", | ||
@@ -15,2 +15,4 @@ "author": "Patrick McLaughlin <patrickmclaughlin@bitgo.com>", | ||
"clean": "rm -rf -- dist", | ||
"format": "prettier --check .", | ||
"format:fix": "prettier --write .", | ||
"test": "nyc --reporter=lcov --reporter=text --reporter=json-summary mocha test/**/*.test.ts --require ts-node/register --exit" | ||
@@ -17,0 +19,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21859
201