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
+16
-1
@@ -42,4 +42,19 @@ export type Address = MailboxAddress | GroupAddress;
|
||||
* @param options._depth Internal recursion depth counter (do not set manually)
|
||||
* @return An array of address objects
|
||||
*/
|
||||
export default function addressparser(str?: string | null, options?: AddressParserOptions): Address[];
|
||||
declare function addressparser(str: string | null | undefined, options: AddressParserOptions & {
|
||||
flatten: true;
|
||||
}): MailboxAddress[];
|
||||
declare function addressparser(str?: string | null, options?: AddressParserOptions): Address[];
|
||||
/**
|
||||
* Type aliases in the layout of @types/nodemailer, so `addressparser.Address` style references keep working
|
||||
*/
|
||||
type AddressEntry = Address;
|
||||
declare namespace addressparser {
|
||||
type Address = MailboxAddress;
|
||||
type Group = GroupAddress;
|
||||
type AddressOrGroup = AddressEntry;
|
||||
}
|
||||
/** The names @types/nodemailer used for the group entry and for the union of both entry types */
|
||||
export type { GroupAddress as Group, Address as AddressOrGroup };
|
||||
export default addressparser;
|
||||
+1
-17
@@ -1,6 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = addressparser;
|
||||
/**
|
||||
* Restores the quoting of a local part that was read out of a quoted string.
|
||||
*
|
||||
@@ -583,22 +582,6 @@ class Tokenizer {
|
||||
* malicious input that could cause stack overflow.
|
||||
*/
|
||||
const MAX_NESTED_GROUP_DEPTH = 50;
|
||||
/**
|
||||
* Parses structured e-mail addresses from an address field
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* 'Name <address@domain>'
|
||||
*
|
||||
* will be converted to
|
||||
*
|
||||
* [{name: 'Name', address: 'address@domain'}]
|
||||
*
|
||||
* @param str Address field
|
||||
* @param options Optional options object
|
||||
* @param options._depth Internal recursion depth counter (do not set manually)
|
||||
* @return An array of address objects
|
||||
*/
|
||||
function addressparser(str, options) {
|
||||
options = options || {};
|
||||
const depth = options._depth || 0;
|
||||
@@ -667,5 +650,6 @@ function addressparser(str, options) {
|
||||
}
|
||||
return parsedAddresses;
|
||||
}
|
||||
exports.default = addressparser;
|
||||
module.exports = exports.default;
|
||||
Object.defineProperty(module.exports, 'default', { value: exports.default, enumerable: false, writable: true, configurable: true });
|
||||
Reference in new issue
Block a user