Comparing version 3.8.0 to 3.8.1
@@ -0,1 +1,7 @@ | ||
### 3.8.1 | ||
* add missing verbs & make types match - **[@dbushong](https://github.com/dbushong)** [#102](https://github.com/groupon/gofer/pull/102) | ||
- [`4c52721`](https://github.com/groupon/gofer/commit/4c527214f91c02b014296fb79afe1b382e03337a) **fix:** add missing verbs & make types match | ||
### 3.8.0 | ||
@@ -2,0 +8,0 @@ |
@@ -138,6 +138,8 @@ /* | ||
['get', 'put', 'post', 'patch', 'del', 'head'].forEach(function withVerb(verb) { | ||
var httpMethod = verb === 'del' ? 'DELETE' : verb.toUpperCase(); | ||
Gofer.prototype[verb] = fetchWithDefaults({ method: httpMethod }); | ||
}); | ||
['get', 'put', 'post', 'patch', 'del', 'head', 'options', 'delete'].forEach( | ||
function withVerb(verb) { | ||
var httpMethod = verb === 'del' ? 'DELETE' : verb.toUpperCase(); | ||
Gofer.prototype[verb] = fetchWithDefaults({ method: httpMethod }); | ||
} | ||
); | ||
Gofer.prototype.fetch = Gofer.prototype.get; | ||
@@ -144,0 +146,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { SecureContext } from 'tls'; | ||
import { ServerResponse } from 'http'; | ||
import { SecureContext } from "tls"; | ||
import { ServerResponse } from "http"; | ||
@@ -31,4 +31,5 @@ type BodyMethods = { | ||
put(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
del(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
head(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
delete(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
head(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
patch(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
@@ -49,3 +50,3 @@ options(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
headers?: { [name: string]: string }; | ||
auth?: string | { username: string, password: string }; | ||
auth?: string | { username: string; password: string }; | ||
qs?: { [name: string]: any }; | ||
@@ -52,0 +53,0 @@ maxSockets?: number; |
{ | ||
"name": "gofer", | ||
"version": "3.8.0", | ||
"version": "3.8.1", | ||
"description": "A general purpose service client library", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
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
71836
1369