Comparing version 5.1.10 to 6.0.0
@@ -0,1 +1,18 @@ | ||
# [6.0.0](https://github.com/alexghr/got-fetch/compare/v5.1.10...v6.0.0) (2024-07-19) | ||
### Bug Fixes | ||
* tests ([b5268c8](https://github.com/alexghr/got-fetch/commit/b5268c8d677a6cd1b31c85e86db7db1de60116e9)) | ||
### Features | ||
* **core:** support got 14 ([#433](https://github.com/alexghr/got-fetch/issues/433)) ([05cb11a](https://github.com/alexghr/got-fetch/commit/05cb11a72323d46937787e038065bb439fcb4f77)) | ||
### BREAKING CHANGES | ||
* **core:** new got version, new minimum node version | ||
## [5.1.10](https://github.com/alexghr/got-fetch/compare/v5.1.9...v5.1.10) (2024-06-16) | ||
@@ -2,0 +19,0 @@ |
@@ -1,4 +0,3 @@ | ||
/// <reference types="node" /> | ||
import { Readable } from "node:stream"; | ||
export type Body = Readable | Blob | BufferSource | FormData | URLSearchParams | string; | ||
//# sourceMappingURL=body-type.d.ts.map |
@@ -21,4 +21,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } | ||
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
@@ -141,12 +142,7 @@ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
try { | ||
for (var _d = true, req_1 = __asyncValues(req), req_1_1; req_1_1 = yield __await(req_1.next()), _a = req_1_1.done, !_a;) { | ||
for (var _d = true, req_1 = __asyncValues(req), req_1_1; req_1_1 = yield __await(req_1.next()), _a = req_1_1.done, !_a; _d = true) { | ||
_c = req_1_1.value; | ||
_d = false; | ||
try { | ||
const chunk = _c; | ||
yield yield __await(chunk); | ||
} | ||
finally { | ||
_d = true; | ||
} | ||
const chunk = _c; | ||
yield yield __await(chunk); | ||
} | ||
@@ -153,0 +149,0 @@ } |
@@ -6,2 +6,3 @@ export type GotHeadersGuard = 'immutable' | 'none'; | ||
constructor(headers?: Record<string, string | string[] | undefined>, guard?: GotHeadersGuard); | ||
getSetCookie(): string[]; | ||
private checkGuard; | ||
@@ -8,0 +9,0 @@ append(name: string, value: string): void; |
@@ -17,2 +17,6 @@ export class GotHeaders { | ||
} | ||
getSetCookie() { | ||
var _a; | ||
return (_a = this.headers.get('set-cookie')) !== null && _a !== void 0 ? _a : []; | ||
} | ||
checkGuard() { | ||
@@ -19,0 +23,0 @@ if (this.guard === 'immutable') { |
@@ -5,4 +5,2 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { IncomingHttpHeaders } from 'http2'; | ||
@@ -9,0 +7,0 @@ import { Body } from './body-type.js'; |
@@ -72,4 +72,4 @@ /** | ||
text() { | ||
var _a, e_1, _b, _c; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var _a, e_1, _b, _c; | ||
__classPrivateFieldSet(this, _GotFetchResponse_bodyUsed, true, "f"); | ||
@@ -88,12 +88,7 @@ if (this.body === null) { | ||
try { | ||
for (var _d = true, _e = __asyncValues(this.body), _f; _f = yield _e.next(), _a = _f.done, !_a;) { | ||
for (var _d = true, _e = __asyncValues(this.body), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) { | ||
_c = _f.value; | ||
_d = false; | ||
try { | ||
const chunk = _c; | ||
body += chunk; | ||
} | ||
finally { | ||
_d = true; | ||
} | ||
const chunk = _c; | ||
body += chunk; | ||
} | ||
@@ -100,0 +95,0 @@ } |
{ | ||
"name": "got-fetch", | ||
"version": "5.1.10", | ||
"version": "6.0.0", | ||
"type": "module", | ||
@@ -31,3 +31,3 @@ "license": "MIT", | ||
"pretest": "$npm_execpath run build:test", | ||
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest", | ||
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --no-warnings\" jest", | ||
"pretest:watch": "$npm_execpath run build:test", | ||
@@ -54,5 +54,5 @@ "test:watch": "concurrently '$npm_execpath run build:test:watch' 'jest --watchAll'", | ||
"eslint": "^8.4.1", | ||
"got": "^12.0.0", | ||
"got": "^14.0.0", | ||
"jest": "^29.0.1", | ||
"nock": "^13.2.4", | ||
"nock": "^13.5.4", | ||
"semantic-release": "^19.0.2", | ||
@@ -62,6 +62,6 @@ "typescript": "^5.0.2" | ||
"peerDependencies": { | ||
"got": "^12.0.0" | ||
"got": "^14.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=20.0.0" | ||
}, | ||
@@ -68,0 +68,0 @@ "resolutions": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36111
523