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

+11 -3
View File
@@ -1,6 +1,7 @@
import { Stream } from 'node:stream';
import crypto from 'node:crypto';
import * as shared from '../shared/index.js';
import type { ResultCallback } from '../errors.js';
import type { OutgoingHttpHeaders } from 'node:http';
/**
* Receives the result of a provisionCallback run: an error, or the new access token and
@@ -13,9 +14,11 @@ export type XOAuth2ProvisionResultCallback = (err: Error | null, accessToken?: s
*/
export type XOAuth2ProvisionCallback = (user: string, renew: boolean, callback: XOAuth2ProvisionResultCallback) => void;
/**
* Receives an access token, or the error that prevented generating one
* Receives an access token, or the error that prevented generating one. Declared with a
* required token, the way @types/nodemailer declared it, the error path hands over the
* error alone
*/
export type XOAuth2TokenCallback = (err: Error | null, accessToken?: string) => void;
export type XOAuth2TokenCallback = (err: Error | null, accessToken: string) => void;
/**
* A private key accepted by crypto.createSign().sign()
*/
@@ -79,7 +82,7 @@ export interface XOAuth2Token {
*/
export interface XOAuth2QueuedRequest {
renew: boolean;
callback: XOAuth2TokenCallback;
callback: ResultCallback<string>;
}
/**
* XOAUTH2 access_token generator for Gmail.
@@ -181,11 +184,16 @@ declare class XOAuth2 extends Stream {
[key: string]: any;
}): string;
}
/** The extra request settings of the token request, the customHeaders and customParams options */
export type XOAuth2RequestParams = Pick<XOAuth2Options, 'customHeaders' | 'customParams'>;
/**
* Type aliases in the layout of @types/nodemailer, so `XOAuth2.Options` style references keep working
*/
declare namespace XOAuth2 {
type Options = XOAuth2Options;
type Token = XOAuth2Token;
type RequestParams = XOAuth2RequestParams;
}
/** The same aliases as module level exports, for `import * as XOAuth2` and `import XOAuth2 = require()` */
export type { XOAuth2Options as Options, XOAuth2Token as Token, XOAuth2RequestParams as RequestParams };
export default XOAuth2;