Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,7 @@ | ||
### 4.0.1 | ||
* various type declaration fixes - **[@dbushong](https://github.com/dbushong)** [#106](https://github.com/groupon/gofer/pull/106) | ||
- [`5f5968f`](https://github.com/groupon/gofer/commit/5f5968fb262c2e7c33c985bcfe16a47dc635d22d) **fix:** various type declarations - see: [#104](https://github.com/groupon/gofer/issues/104), [#105](https://github.com/groupon/gofer/issues/105) | ||
### 4.0.0 | ||
@@ -2,0 +8,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { SecureContext } from "tls"; | ||
import { ServerResponse } from "http"; | ||
import { SecureContext } from 'tls'; | ||
import { ServerResponse } from 'http'; | ||
@@ -22,6 +22,10 @@ type BodyMethods = { | ||
addOptionMapper(mapper: (opts: Gofer.Opts) => Gofer.Opts): void; | ||
getMergedOptions( | ||
defaults?: Gofer.FetchOpts, | ||
options?: Gofer.FetchOpts | ||
): Gofer.FetchOpts; | ||
clone(): Gofer; | ||
clone(): this; | ||
with(opts: Gofer.Opts): Gofer; | ||
with(opts: Gofer.Opts): this; | ||
@@ -57,8 +61,9 @@ fetch(path: string, opts?: Gofer.FetchOpts): FetchResponse; | ||
secureContext?: SecureContext; | ||
[opt: string]: any; | ||
}; | ||
export type FetchOpts = Opts & { | ||
endpointName: string; | ||
endpointName?: string; | ||
json?: object; | ||
method?: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"; | ||
method?: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS'; | ||
body?: string | Buffer | ReadableStream; | ||
@@ -65,0 +70,0 @@ form?: { [name: string]: any }; |
{ | ||
"name": "gofer", | ||
"version": "4.0.0", | ||
"version": "4.0.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
73056
1328