@next-core/http
Advanced tools
Comparing version 1.1.11 to 1.2.0
@@ -52,3 +52,3 @@ "use strict"; | ||
responseJson = await response.json(); | ||
} catch (e) { | ||
} catch { | ||
// Do nothing. | ||
@@ -55,0 +55,0 @@ } |
@@ -51,3 +51,3 @@ import _classPrivateMethodInitSpec from "@babel/runtime/helpers/classPrivateMethodInitSpec"; | ||
responseJson = yield response.json(); | ||
} catch (e) { | ||
} catch (_unused) { | ||
// Do nothing. | ||
@@ -54,0 +54,0 @@ } |
@@ -56,3 +56,3 @@ import { HttpAbortError, HttpFetchError, HttpParseError, HttpResponseError } from "./errors.js"; | ||
getUrlWithParams(url: string, params?: HttpParams): string; | ||
getBodyAndHeaders(data: unknown, headers: HeadersInit): { | ||
getBodyAndHeaders(data: unknown, headers?: HeadersInit): { | ||
body?: BodyInit; | ||
@@ -59,0 +59,0 @@ headers?: HeadersInit; |
@@ -14,3 +14,3 @@ import * as HttpModuleV3 from "./exports.js"; | ||
getUrlWithParams(url: string, params?: HttpModuleV3.HttpParams | undefined): string; | ||
getBodyAndHeaders(data: unknown, headers: HeadersInit): { | ||
getBodyAndHeaders(data: unknown, headers?: HeadersInit | undefined): { | ||
body?: BodyInit | undefined; | ||
@@ -17,0 +17,0 @@ headers?: HeadersInit | undefined; |
{ | ||
"name": "@next-core/http", | ||
"version": "1.1.11", | ||
"version": "1.2.0", | ||
"description": "> TODO: description", | ||
@@ -45,3 +45,3 @@ "homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/http", | ||
}, | ||
"gitHead": "f1d78a35e4b72b99008750be9741fa0ec1772916" | ||
"gitHead": "8255acda4ad909cc07087dd99755325e3f31fb70" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96853