mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-10-09 09:59:45 +07:00
node_modules: update (#332)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
1 parent
c1dac70e3a
commit
6bf0a2f26a
95 files changed
+1102
-503
No files matched your search
+12
-1
@@ -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;
|
||||
+11
@@ -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
@@ -193,14 +193,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 {
|
||||
|
||||
Reference in new issue
Block a user