node_modules: update (#332)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurlaanddawidd6 authored and GitHub committed 2026-10-01 09:48:38 +02:00
1 parent c1dac70e3a
commit 6bf0a2f26a
95 files changed
+1102 -503

No files matched your search

+12 -1
View File
@@ -17,13 +17,14 @@ export interface Cookie {
secure?: boolean | undefined;
httponly?: boolean | undefined;
}
type CookieEntry = Cookie;
/**
* Creates a biskviit cookie jar for managing cookie values in memory
*
* @constructor
* @param [options] Optional options object
*/
export default class Cookies {
declare class Cookies {
options: CookiesOptions;
cookies: Cookie[];
constructor(options?: CookiesOptions);
@@ -94,3 +95,13 @@ export default class Cookies {
*/
getPath(pathname?: string | null): string;
}
/**
* Type aliases in the layout of @types/nodemailer, so `Cookies.Cookie` style references keep working
*/
declare namespace Cookies {
type Options = CookiesOptions;
type Cookie = CookieEntry;
}
/** The same alias as a module level export, for `import * as Cookies` and `import Cookies = require()` */
export type { CookiesOptions as Options };
export default Cookies;
+2 -1
View File
@@ -8,7 +8,7 @@ const SESSION_TIMEOUT = 1800; // 30 min
* @constructor
* @param [options] Optional options object
*/
export default class Cookies {
class Cookies {
constructor(options) {
this.options = options || {};
this.cookies = [];
@@ -239,3 +239,4 @@ export default class Cookies {
return path;
}
}
export default Cookies;
+11
View File
@@ -48,4 +48,15 @@ declare function nmfetch(url: string, options?: FetchOptions): FetchResponse;
declare namespace nmfetch {
var Cookies: typeof import("./cookies.js").default;
}
type CookiesJar = Cookies;
/**
* Type aliases in the layout of @types/nodemailer, so `fetch.Options` style references keep working
*/
declare namespace nmfetch {
type Options = FetchOptions;
type WritableResponse = FetchResponse;
type Cookies = CookiesJar;
}
/** The same aliases as module level exports, for `import * as fetch` and `import fetch = require()` */
export type { FetchOptions as Options, FetchResponse as WritableResponse, Cookies };
export default nmfetch;
+5 -5
View File
@@ -155,14 +155,14 @@ function nmfetch(url, options) {
.join('&'));
}
catch (E) {
if (finished) {
return undefined;
}
// the caller attaches its error listener once nmfetch has returned, so
// the error is emitted on the next tick and the stream is handed back
// the way every other failure is reported
finished = true;
E.code = errors.EFETCH;
E.sourceUrl = url;
fetchRes.emit('error', E);
return undefined;
setImmediate(() => fetchRes.emit('error', E));
return fetchRes;
}
}
else {