Comparing version 5.1.3 to 5.2.0
@@ -0,1 +1,8 @@ | ||
### v5.2.0 (2021-07-13) | ||
<a id="v5.2.0"></a> | ||
#### 🚀 New Features | ||
* [#125](https://github.com/groupon/gofer/pull/125) feat: support AbortController signal ([@aaarichter](https://github.com/aaarichter)) | ||
### v5.1.3 (2021-06-04) | ||
@@ -2,0 +9,0 @@ <a id="v5.1.3"></a> |
@@ -218,2 +218,3 @@ /* | ||
const method = options.method || 'GET'; | ||
return request({ | ||
@@ -245,2 +246,3 @@ agent, | ||
captureAsyncStack: options.captureAsyncStack, | ||
signal: options.signal, | ||
}); | ||
@@ -247,0 +249,0 @@ } |
@@ -36,6 +36,4 @@ /* | ||
/** | ||
* @typedef {string | QSVal[] | { [name: string]: QSVal }} QSVal | ||
* | ||
* @param {URLSearchParams} query | ||
* @param {{ [name: string]: QSVal }} qs | ||
* @param {Record<string, any> | URLSearchParams} qs | ||
* @param {Array<string>} [path] | ||
@@ -45,3 +43,5 @@ */ | ||
if (qs instanceof URLSearchParams) { | ||
for (const [key, val] of qs.entries()) query.append(key, val); | ||
for (const [key, val] of qs.entries()) { | ||
query.append(key, val); | ||
} | ||
return query; | ||
@@ -63,4 +63,4 @@ } | ||
/** | ||
* @param {string} pathname | ||
* @param {{ [name: string]: string }} pathParams | ||
* @param {URL.pathname} pathname | ||
* @param {Record<string, string>} pathParams | ||
*/ | ||
@@ -84,4 +84,4 @@ function replacePathParams(pathname, pathParams) { | ||
return pathname.replace(/{(\w+)}|%7B(\w+)%7D/g, onPlaceHolder); | ||
return (pathname || '').replace(/{(\w+)}|%7B(\w+)%7D/g, onPlaceHolder); | ||
} | ||
exports.replacePathParams = replacePathParams; |
{ | ||
"name": "gofer", | ||
"version": "5.1.3", | ||
"version": "5.2.0", | ||
"description": "A general purpose service client library", | ||
@@ -43,5 +43,16 @@ "license": "BSD-3-Clause", | ||
}, | ||
"c8": { | ||
"reporter": [ | ||
"text", | ||
"json-summary" | ||
], | ||
"exclude": [ | ||
"examples/**", | ||
"**/*.d.ts", | ||
"{spec,test}{,s}/**" | ||
] | ||
}, | ||
"types": "lib/typedefs.d.ts", | ||
"dependencies": { | ||
"debug": "^4.3.1", | ||
"debug": "^4.3.2", | ||
"lodash.isobjectlike": "^4.0.0", | ||
@@ -54,16 +65,17 @@ "lodash.isplainobject": "^4.0.6", | ||
"assertive": "^5.0.5", | ||
"c8": "^7.7.2", | ||
"eslint": "^7.27.0", | ||
"eslint-config-groupon": "^10.0.3", | ||
"c8": "^7.7.3", | ||
"eslint": "^7.30.0", | ||
"eslint-config-groupon": "^10.0.4", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-mocha": "^8.2.0", | ||
"eslint-plugin-mocha": "^9.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"form-data": "^4.0.0", | ||
"mocha": "^8.4.0", | ||
"mocha": "^9.0.2", | ||
"mochify": "^7.1.1", | ||
"nlm": "^5.5.0", | ||
"nlm": "^5.5.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.3.0", | ||
"self-signed": "^1.3.1" | ||
"prettier": "^2.3.2", | ||
"self-signed": "^1.3.1", | ||
"semver": "^7.3.5" | ||
}, | ||
@@ -70,0 +82,0 @@ "author": { |
[![nlm-github](https://img.shields.io/badge/github-groupon%2Fgofer%2Fissues-F4D03F?logo=github&logoColor=white)](https://github.com/groupon/gofer/issues) | ||
![nlm-node](https://img.shields.io/badge/node-%3E%3D10.13-blue?logo=node.js&logoColor=white) | ||
![nlm-version](https://img.shields.io/badge/version-5.1.3-blue?logo=version&logoColor=white) | ||
![nlm-version](https://img.shields.io/badge/version-5.2.0-blue?logo=version&logoColor=white) | ||
[![Build Status](https://travis-ci.com/groupon/gofer.svg?branch=main)](https://travis-ci.com/groupon/gofer) | ||
@@ -5,0 +5,0 @@ |
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
81805
1361
16
Updateddebug@^4.3.2