Comparing version 2.2.0 to 2.2.1
@@ -34,3 +34,3 @@ /// <reference types="node" /> | ||
userAgent(origin: string): string; | ||
decoders(origin: string): ReadonlyArray<Decoder>; | ||
decoders(origin: string): readonly Decoder[]; | ||
sessionOptions(origin: string): SecureClientSessionOptions; | ||
@@ -37,0 +37,0 @@ onPush(pushHandler?: PushHandler): void; |
@@ -22,3 +22,3 @@ "use strict"; | ||
const defaultUserAgent = makeDefaultUserAgent(); | ||
const defaultAccept = "application/json, text/*;0.9, */*;q=0.8"; | ||
const defaultAccept = "application/json,text/*;q=0.9,*/*;q=0.8"; | ||
class Context { | ||
@@ -25,0 +25,0 @@ constructor(opts) { |
@@ -75,3 +75,3 @@ /// <reference types="node" /> | ||
export declare function getByOrigin<T>(val: T | PerOrigin<T>, origin: string): T; | ||
export declare function parsePerOrigin<T>(val: T | PerOrigin<T> | void, _default: T): T | PerOrigin<T>; | ||
export declare function parsePerOrigin<T>(val: T | PerOrigin<T> | undefined, _default: T): T | PerOrigin<T>; | ||
export interface Http1Options { | ||
@@ -78,0 +78,0 @@ keepAlive: boolean | PerOrigin<boolean>; |
@@ -15,3 +15,3 @@ import { AbortError, Decoder, FetchInit, SimpleSession, TimeoutError } from "./core"; | ||
cleanup: () => void; | ||
contentDecoders: ReadonlyArray<Decoder>; | ||
contentDecoders: readonly Decoder[]; | ||
endStream: boolean; | ||
@@ -18,0 +18,0 @@ headersToSend: RawHeaders; |
@@ -1,1 +0,1 @@ | ||
export declare const version = "2.2.0"; | ||
export declare const version = "2.2.1"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "2.2.0"; | ||
exports.version = "2.2.1"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "fetch-h2", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "HTTP/1+2 Fetch API client for Node.js", | ||
@@ -52,15 +52,15 @@ "author": "Gustaf Räntilä", | ||
"devDependencies": { | ||
"@types/execa": "0.x", | ||
"@types/execa": "^2.0.0", | ||
"@types/from2": "2.x", | ||
"@types/jest": "24.x", | ||
"@types/node": "11.x", | ||
"@types/node": "12.x", | ||
"@types/through2": "2.x", | ||
"commitizen": "3.x", | ||
"commitizen": "^4.0.3", | ||
"coveralls": "3.x", | ||
"cz-conventional-changelog": "2.x", | ||
"execa": "1.x", | ||
"cz-conventional-changelog": "^3.0.2", | ||
"execa": "^2.0.4", | ||
"from2": "2.x", | ||
"jest": "24.x", | ||
"nyc": "13.x", | ||
"rimraf": "2.x", | ||
"nyc": "14.x", | ||
"rimraf": "^3.0.0", | ||
"semantic-release": "15.x", | ||
@@ -67,0 +67,0 @@ "travis-deploy-once": "5.x", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
352858