@blamejs/core 0.8.89 → 0.8.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -1
- package/lib/mail-require-tls.js +209 -0
- package/lib/mail.js +3 -1
- package/package.json +1 -1
- package/sbom.cdx.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -8,7 +8,8 @@ upgrading across more than a few patches at a time.
|
|
|
8
8
|
|
|
9
9
|
## v0.8.x
|
|
10
10
|
|
|
11
|
-
- v0.8.
|
|
11
|
+
- v0.8.90 (2026-05-11) — **RFC 8689 REQUIRETLS support** (`b.mail.requireTls`). Per-message TLS-requirement signaling between sender and receiver MTAs. Complements MTA-STS / DANE (policy-side, domain-scoped) with a per-message knob that overrides policy when the operator wants stricter-than-policy delivery — message bounces instead of falling back to cleartext if no downstream MTA can deliver under TLS. **`peerSupports(ehloLines)`**: walks a parsed EHLO response and returns `true` when the peer advertised the `REQUIRETLS` keyword; case-insensitive per RFC 5321 §2.4; refuses substring matches (`FOO-REQUIRETLS-BAR` does NOT match); empty / non-array input returns `false`. **`mailFromExtension({ requireTls })`**: builds the trailing `" REQUIRETLS"` token to append to a MAIL FROM line; refuses non-boolean flag value (a truthy-but-wrong-shape value like `"yes"` throws instead of silently succeeding). **`parseTlsRequiredHeader(headerValue)`**: parses the RFC 8689 §5 `TLS-Required` header — returns `"no"` only when the value is the literal token `no` (case-insensitive, ignoring whitespace) per spec; any other non-empty value returns `"yes"` (RFC 8689 §5: "any value other than 'No' MUST be treated as if the field had been absent" — conservative strict path); returns `null` for absent / empty / non-string input; refuses control characters on the **raw** header value before `trim()` runs so a leading `\n` / trailing `\r` / NUL / DEL byte can no longer slip past as the literal token `no` (ASCII HT remains permitted as structural folding whitespace).
|
|
12
|
+
- v0.8.89 (2026-05-11) — **Hotfix: `b.earlyHints.send()` case-variant link bypass + new `b.mail.srs` Sender Rewriting Scheme**. **Hotfix (PRIMARY)**: pre-v0.8.89, supplying both `link` (lowercase) AND `Link` (capital, or any other case variant) to `b.earlyHints.send()` bypassed the validator. `opts.link` got the dedicated `_validateLink` pass and was assigned to `headers.link`; the trailing header loop then iterated `Object.keys(opts)`, skipped only the exact-match `"link"` key, and for `"Link"` lowercased the name and wrote `headers.link = opts.Link` — overwriting the validated value with unvalidated content. Malformed Link headers (missing `rel=`, unknown relation, oversized) reached `writeEarlyHints()` despite the API contract. The fix collapses all opt keys to a single canonical lowercase map up front; duplicate case-variants of any header (not just `link`) now refuse with `early-hints/duplicate-header` so operators see the collision instead of getting silent winner-take-all behavior. Capital `Link` alone (no lowercase variant) still works — it goes through the same validator. Tests added: case-variant-collision refuse, capital-Link-alone validates, capital-Link with malformed value still throws `bad-link`. **New**: `b.mail.srs.create({ secret, forwarderDomain, expiryDays? })` — Sender Rewriting Scheme (SRS0) implementation for forwarder envelope-from rewriting so the next-hop SPF check passes and bounces route correctly back to the original sender. Returns `{ rewrite, reverse }`. `rewrite(addr)` produces an SRS-encoded `SRS0=HHHH=TT=domain=local@forwarder.example` form; `reverse(srs)` decodes back to the original sender, verifying the HMAC-SHA-256 short-tag (operator-supplied secret), the day-stamp expiry window (default 30 days), and the canonical 4-field SRS0 grammar. Domain-binding check: `reverse(srs)` refuses with `srs/wrong-forwarder` when the SRS0 address's `@domain` part doesn't match the rewriter's `forwarderDomain` (case-insensitive per RFC 5321 §2.3.5) so a tag signed with the same secret but addressed to a different forwarder domain can no longer be accepted. Refuses tampered tags via `srs/bad-tag`, expired rewrites via `srs/expired`, double-SRS-encoding via `srs/already-rewritten`, and bad address shapes via `srs/bad-address`. HMAC uses `b.crypto.timingSafeEqual` for tag comparison so the verification side stays constant-time against operator-controlled tag inputs.
|
|
12
13
|
- v0.8.88 (2026-05-11) — **Hotfix: `b.auth.fal.meets()` authorization-correctness bug + new `b.earlyHints` RFC 8297 helper**. **Hotfix (PRIMARY)**: `b.auth.fal.meets(actualBand, requiredBand)` previously compared raw ranks (`_bandRank(actual) >= _bandRank(required)`) without validating either input. Unknown bands mapped to rank `0`, so `meets("FAL1", "FALX")` returned `true` (because `1 >= 0`) and `meets("bad", "bad")` returned `true` (because `0 >= 0`) — both contradicting the documented contract that invalid bands MUST return `false`. Operators calling `meets()` directly for authorization decisions could grant access on malformed input pairs. The new implementation validates both bands via `isValidBand()` first; any invalid band on either side returns `false`. The `requireFal()` guard was already correct (it used `meets()` after a separate `isValidBand(actualBand)` check, but a defense-in-depth pass into `meets()` itself now catches direct callers too). Tests added: 7 invalid-input shapes (`FALX` actual, `FALX` required, `bad`/`bad`, `FALX`/`FALX`, null on either side, both null). **New**: `b.earlyHints.send(res, { link })` — RFC 8297 103 Early Hints interim-response helper. Wraps Node 18.11+'s built-in `res.writeEarlyHints()` with: link-header validation (RFC 8288 form with one of `preload` / `preconnect` / `prefetch` / `dns-prefetch` / `modulepreload` / `prerender` / `next` / `prev`); silent no-op when the response object lacks `writeEarlyHints` (HTTP/1.0, mocks, older Node); refusal of per-request-state headers per RFC 8297 §3 (`set-cookie`, `authorization`, `content-length`, `content-type`, etc.). Operators use it to start browser-side preload of CSS / JS / fonts / preconnect origins in parallel with the server-side composition of the final response.
|
|
13
14
|
- v0.8.87 (2026-05-11) — **NIST 800-63-4 FAL classifier + RFC 7505 Null-MX helper + Gmail FBL Feedback-ID builder + vendor-update.sh stale-entry cleanup**. **`b.auth.fal`** lands as the federation-side counterpart to the existing `b.auth.aal` band classifier. `fromAssertion({ channel, encrypted?, replayProtected?, hokBinding? })` classifies an incoming federation assertion as `"FAL1"` / `"FAL2"` / `"FAL3"` per NIST 800-63C-4: Holder-of-Key (mTLS / DPoP / SAML HoK) with replay-protection → FAL3; back-channel OR encrypted front-channel with replay-protection → FAL2; bare bearer front-channel → FAL1. Conservative: missing replay-protection on a back-channel assertion downgrades to FAL1 because §5.2 requires nonce / jti binding before back-channel can claim FAL2. `requireFal(minimumBand)` builds a band-check guard that throws `auth/fal-insufficient` for stale-band requests; compose with the request-scope auth state to gate sensitive operations. **`b.network.dns.isNullMx(records)`** lands as the RFC 7505 Null-MX classifier: returns `true` when an operator-supplied MX-record array signals "this domain does not accept email" (single record, priority 0, exchange `.` per RFC 7505 §3). Operators send-side check this before delivery to skip domains that have explicitly opted out — `node:dns.resolveMx` returns `exchange: ""` for the same RDATA, so the classifier accepts both shapes. **`b.mail.feedbackId({ campaignId, customerId, mailType, senderId })`** builds a Gmail Feedback-Loop (FBL) Feedback-ID header value as the canonical 4-tuple `CampaignID:CustomerID:MailType:SenderID`. Refuses missing / empty fields, fields containing `:` (would corrupt the field separator), fields >64 chars (Gmail FBL truncation threshold), and control-char content (CR/LF header-injection defense). Setting Feedback-ID on outbound mail lets Gmail Postmaster Tools surface per-campaign abuse-rate metrics keyed by the operator's vocabulary instead of by SMTP envelope-sender alone. **vendor-update.sh cleanup**: `scripts/vendor-update.sh --check` removed the stale `argon2` entry from `VENDORED_PACKAGES`. argon2 was removed from `lib/vendor/` back in v0.4.x when Node 24's built-in `crypto.argon2*` API replaced the third-party prebuilds (per `lib/argon2-builtin.js`); the script still listed it in the check array, producing a false "UPDATE AVAILABLE" line for an unvendored package. The case-block error path that still says "argon2 is no longer vendored" stays so anyone running `./scripts/vendor-update.sh argon2` gets the operator-friendly explanation.
|
|
14
15
|
- v0.8.86 (2026-05-11) — **Sectoral + cybersecurity posture sweep + HTTP-hygiene primitives + npm-publish hotfix**. **npm-publish hotfix**: the v0.8.85 `npm audit signatures` step failed with `npm error found no installed dependencies to audit` because the framework's zero-runtime-deps posture produces an empty install tree; the gate now treats that specific message as success while keeping every other failure mode loud (v0.8.85 npm tarball never published — operators upgrade `0.8.83 → 0.8.86` to pick up the carried v0.8.84 + v0.8.85 surface plus the new v0.8.86 primitives). **10 new compliance postures**: `cmmc-2.0` (DoD Cybersecurity Maturity Model Certification 2.0), `cjis-v6` (FBI CJIS Security Policy v6.0), `iso-27001-2022` + `iso-27002-2022` + `iso-27017` + `iso-27018` + `iso-27701` (ISO/IEC 27001 family), `nist-800-66-r2` (HIPAA Security Rule implementation guidance), `ehds` (European Health Data Space), `circia` (US Cyber Incident Reporting for Critical Infrastructure Act). Cascade defaults set encrypted-backup + signed-audit-chain + TLS 1.3 + vacuum-after-erase for the data-tier postures; `iso-27002-2022` + `circia` defer the data-tier mandate to operator choice. **`b.cacheStatus`** — RFC 9211 Cache-Status response-header builder + parser. `append(prev, entry)` chains the operator's current cache decision onto whatever upstream caches wrote; `entry({...})` formats a single entry; `parse(headerValue)` returns the parsed chain as `[{ cache, params }]` records with `hit`/`stored`/`collapsed` as booleans, `ttl`/`fwdStatus` as numbers, `fwd` as the RFC 9211 §2 enum string, `key`/`detail` as unquoted sf-strings. Operators diagnose CDN/reverse-proxy/app-cache decision chains by reading the header instead of guessing from elapsed-time metrics. **`b.serverTiming`** — W3C Server-Timing response-header builder. `create()` returns a per-request collector with `mark(name, durationMs?, description?)` / `measure(name, fn)` async-timing wrapper / `toHeader()` serializer. Surfaces server-side latency in the browser's Performance API. **`b.middleware.noCache`** — RFC 9111 §5.2.2.5 `Cache-Control: no-store` middleware for auth-gated / individualized response paths. Sets `Cache-Control: no-store`, `Pragma: no-cache` (HTTP/1.0 compatibility), `Vary: Cookie, Authorization` so intermediate caches don't store personalized responses keyed by URL alone. Optional `opts.when(req)` predicate for conditional application; `opts.skipExisting:true` skips when `Cache-Control` is already set.
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module b.mail.requireTls
|
|
4
|
+
* @nav Mail
|
|
5
|
+
* @title REQUIRETLS — RFC 8689
|
|
6
|
+
* @order 460
|
|
7
|
+
*
|
|
8
|
+
* @intro
|
|
9
|
+
* RFC 8689 SMTP REQUIRETLS — per-message TLS-requirement signaling
|
|
10
|
+
* between sender and receiver MTAs. The sender advertises that the
|
|
11
|
+
* message MUST NOT be relayed over a cleartext (non-TLS) hop; if
|
|
12
|
+
* no downstream MTA can deliver under TLS, the message bounces
|
|
13
|
+
* instead of falling back to cleartext. Complements MTA-STS / DANE
|
|
14
|
+
* (which are policy-side, domain-scoped) with a per-message
|
|
15
|
+
* knob that overrides the policy when the operator wants
|
|
16
|
+
* stricter-than-policy delivery.
|
|
17
|
+
*
|
|
18
|
+
* Wire surface (RFC 8689 §3):
|
|
19
|
+
*
|
|
20
|
+
* EHLO peer advertises: 250 REQUIRETLS
|
|
21
|
+
* Client sends: MAIL FROM:<sender> REQUIRETLS
|
|
22
|
+
* Server replies: 250 OK (or 550 if it can't honor)
|
|
23
|
+
*
|
|
24
|
+
* Header surface (RFC 8689 §5):
|
|
25
|
+
*
|
|
26
|
+
* TLS-Required: No Explicit operator override; sender
|
|
27
|
+
* requests REQUIRETLS-style behavior be
|
|
28
|
+
* DISABLED for this message even if the
|
|
29
|
+
* policy infrastructure (MTA-STS / DANE)
|
|
30
|
+
* says otherwise. Use sparingly — primary
|
|
31
|
+
* use case is delivery to legacy peers
|
|
32
|
+
* during a controlled migration.
|
|
33
|
+
*
|
|
34
|
+
* This module ships:
|
|
35
|
+
*
|
|
36
|
+
* b.mail.requireTls.peerSupports(ehloLines) → boolean
|
|
37
|
+
* Walks EHLO response lines and returns true when the peer
|
|
38
|
+
* advertised the REQUIRETLS keyword.
|
|
39
|
+
*
|
|
40
|
+
* b.mail.requireTls.mailFromExtension({ requireTls }) → string
|
|
41
|
+
* Returns the trailing " REQUIRETLS" token (or empty string)
|
|
42
|
+
* to append to a MAIL FROM line.
|
|
43
|
+
*
|
|
44
|
+
* b.mail.requireTls.parseTlsRequiredHeader(headerValue) → "yes" | "no" | null
|
|
45
|
+
* Parses the TLS-Required header field per §5. Returns "no"
|
|
46
|
+
* only when the value is the literal token "no" (case-
|
|
47
|
+
* insensitive); any other value returns "yes" (the conservative
|
|
48
|
+
* default — operators must opt OUT explicitly, never default to
|
|
49
|
+
* fall-back-to-cleartext). null when the header is absent.
|
|
50
|
+
*
|
|
51
|
+
* @card
|
|
52
|
+
* RFC 8689 REQUIRETLS — per-message TLS-requirement signaling between MTAs (EHLO keyword + MAIL FROM extension + TLS-Required header parser).
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
var validateOpts = require("./validate-opts");
|
|
56
|
+
var { defineClass } = require("./framework-error");
|
|
57
|
+
|
|
58
|
+
var RequireTlsError = defineClass("RequireTlsError", { alwaysPermanent: true });
|
|
59
|
+
|
|
60
|
+
var REQUIRETLS_TOKEN = "REQUIRETLS";
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @primitive b.mail.requireTls.peerSupports
|
|
64
|
+
* @signature b.mail.requireTls.peerSupports(ehloLines)
|
|
65
|
+
* @since 0.8.90
|
|
66
|
+
* @status stable
|
|
67
|
+
*
|
|
68
|
+
* Walk a parsed EHLO response and return `true` when the peer
|
|
69
|
+
* advertised the `REQUIRETLS` keyword. `ehloLines` is the array of
|
|
70
|
+
* post-greeting capability lines returned by the SMTP transport
|
|
71
|
+
* (each entry is the capability token, e.g. `"SIZE 10485760"`,
|
|
72
|
+
* `"PIPELINING"`, `"REQUIRETLS"`). Case-insensitive match per RFC
|
|
73
|
+
* 5321 §2.4 (EHLO keywords are uppercase by convention but
|
|
74
|
+
* comparison is case-insensitive).
|
|
75
|
+
*
|
|
76
|
+
* Returns `false` for empty / non-array input — operators who can't
|
|
77
|
+
* parse the EHLO get a definitive "not supported" verdict rather
|
|
78
|
+
* than a throw, matching the "defensive request-shape reader"
|
|
79
|
+
* convention used elsewhere.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* var ehlo = ["mail.example.com", "PIPELINING", "SIZE 10485760", "REQUIRETLS", "STARTTLS"];
|
|
83
|
+
* b.mail.requireTls.peerSupports(ehlo); // → true
|
|
84
|
+
*
|
|
85
|
+
* b.mail.requireTls.peerSupports(["PIPELINING", "SIZE 10485760"]); // → false
|
|
86
|
+
*/
|
|
87
|
+
function peerSupports(ehloLines) {
|
|
88
|
+
if (!Array.isArray(ehloLines)) return false;
|
|
89
|
+
for (var i = 0; i < ehloLines.length; i += 1) {
|
|
90
|
+
var line = ehloLines[i];
|
|
91
|
+
if (typeof line !== "string") continue;
|
|
92
|
+
// Keyword is everything up to the first space (RFC 5321 §4.1.1.1).
|
|
93
|
+
var sp = line.indexOf(" ");
|
|
94
|
+
var keyword = sp === -1 ? line : line.slice(0, sp);
|
|
95
|
+
if (keyword.toUpperCase() === REQUIRETLS_TOKEN) return true;
|
|
96
|
+
}
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @primitive b.mail.requireTls.mailFromExtension
|
|
102
|
+
* @signature b.mail.requireTls.mailFromExtension(opts)
|
|
103
|
+
* @since 0.8.90
|
|
104
|
+
* @status stable
|
|
105
|
+
*
|
|
106
|
+
* Build the trailing SMTP MAIL FROM extension token for REQUIRETLS.
|
|
107
|
+
* Returns `" REQUIRETLS"` (with a leading space, ready to append)
|
|
108
|
+
* when `opts.requireTls === true`; empty string otherwise. The
|
|
109
|
+
* primitive does NOT validate the operator's address — that's the
|
|
110
|
+
* SMTP transport's job. This only emits the standard-defined token
|
|
111
|
+
* suffix.
|
|
112
|
+
*
|
|
113
|
+
* Refuses non-object opts. `requireTls` must be a boolean when
|
|
114
|
+
* provided (any other type throws `mail-require-tls/bad-flag`) so
|
|
115
|
+
* a truthy-but-wrong-shape value (e.g. `"yes"`) doesn't silently
|
|
116
|
+
* succeed.
|
|
117
|
+
*
|
|
118
|
+
* @opts
|
|
119
|
+
* requireTls: boolean, // true to emit " REQUIRETLS"; falsy/absent → ""
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* var line = "MAIL FROM:<alice@example.com>" +
|
|
123
|
+
* b.mail.requireTls.mailFromExtension({ requireTls: true });
|
|
124
|
+
* // → "MAIL FROM:<alice@example.com> REQUIRETLS"
|
|
125
|
+
*/
|
|
126
|
+
function mailFromExtension(opts) {
|
|
127
|
+
if (!opts || typeof opts !== "object" || Array.isArray(opts)) {
|
|
128
|
+
throw new RequireTlsError("mail-require-tls/bad-opts",
|
|
129
|
+
"mailFromExtension: opts must be a non-null object", true);
|
|
130
|
+
}
|
|
131
|
+
if (opts.requireTls === undefined || opts.requireTls === false) return "";
|
|
132
|
+
if (opts.requireTls !== true) {
|
|
133
|
+
throw new RequireTlsError("mail-require-tls/bad-flag",
|
|
134
|
+
"mailFromExtension: requireTls must be a boolean (got " + typeof opts.requireTls + ")");
|
|
135
|
+
}
|
|
136
|
+
return " " + REQUIRETLS_TOKEN;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @primitive b.mail.requireTls.parseTlsRequiredHeader
|
|
141
|
+
* @signature b.mail.requireTls.parseTlsRequiredHeader(headerValue)
|
|
142
|
+
* @since 0.8.90
|
|
143
|
+
* @status stable
|
|
144
|
+
*
|
|
145
|
+
* Parse the RFC 8689 §5 `TLS-Required` header field. Returns:
|
|
146
|
+
*
|
|
147
|
+
* - `"no"` when the value is the literal token `no` (case-
|
|
148
|
+
* insensitive, ignoring surrounding whitespace) — the sender
|
|
149
|
+
* EXPLICITLY opts out of REQUIRETLS-style behavior for this
|
|
150
|
+
* message.
|
|
151
|
+
* - `"yes"` for any other non-empty value — conservative default
|
|
152
|
+
* so an operator who set a typo / malformed value still gets
|
|
153
|
+
* the strict path (RFC 8689 §5: "if a recipient receives a
|
|
154
|
+
* message containing a TLS-Required field with any value other
|
|
155
|
+
* than 'No', it MUST be treated as if the field had been
|
|
156
|
+
* absent").
|
|
157
|
+
* - `null` when the header is absent / empty / not a string —
|
|
158
|
+
* operator code branches on null vs "yes" / "no".
|
|
159
|
+
*
|
|
160
|
+
* Refuses CR / LF / NUL in the value (header-injection-shape inputs
|
|
161
|
+
* shouldn't reach a parser that's downstream of header splitters
|
|
162
|
+
* anyway, but a defensive check here catches operator-side mistakes).
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* b.mail.requireTls.parseTlsRequiredHeader("No"); // → "no"
|
|
166
|
+
* b.mail.requireTls.parseTlsRequiredHeader("no"); // → "no"
|
|
167
|
+
* b.mail.requireTls.parseTlsRequiredHeader(" no "); // → "no"
|
|
168
|
+
* b.mail.requireTls.parseTlsRequiredHeader("yes"); // → "yes"
|
|
169
|
+
* b.mail.requireTls.parseTlsRequiredHeader("anything"); // → "yes" (RFC 8689 §5 default)
|
|
170
|
+
* b.mail.requireTls.parseTlsRequiredHeader(""); // → null
|
|
171
|
+
* b.mail.requireTls.parseTlsRequiredHeader(undefined); // → null
|
|
172
|
+
*/
|
|
173
|
+
function parseTlsRequiredHeader(headerValue) {
|
|
174
|
+
if (typeof headerValue !== "string") return null;
|
|
175
|
+
// Refuse control characters defensively on the RAW value — scanning
|
|
176
|
+
// after trim() would strip leading/trailing \r\n\t etc. before the
|
|
177
|
+
// check ran, letting a header-injection-shape input like "\nno" or
|
|
178
|
+
// "no\r" slip past as the literal "no" token. Validate the original
|
|
179
|
+
// string so the contract ("control bytes are refused") holds for any
|
|
180
|
+
// position in the value.
|
|
181
|
+
for (var i = 0; i < headerValue.length; i += 1) {
|
|
182
|
+
var code = headerValue.charCodeAt(i);
|
|
183
|
+
// ASCII HT (0x09) is structural folding whitespace in HTTP/email
|
|
184
|
+
// headers — strip-equivalent at the parser layer, so the trim()
|
|
185
|
+
// below absorbs it. Everything else in C0 + DEL is rejected.
|
|
186
|
+
if (code === 9) continue; // allow:raw-byte-literal — ASCII HT codepoint
|
|
187
|
+
if (code < 32 || code === 127) { // allow:raw-byte-literal — C0 + DEL codepoint range
|
|
188
|
+
throw new RequireTlsError("mail-require-tls/bad-header-value",
|
|
189
|
+
"parseTlsRequiredHeader: value contains control characters");
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var trimmed = headerValue.trim();
|
|
193
|
+
if (trimmed.length === 0) return null;
|
|
194
|
+
if (trimmed.toLowerCase() === "no") return "no";
|
|
195
|
+
// RFC 8689 §5 — any other value treated as if absent (strict path).
|
|
196
|
+
return "yes";
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
module.exports = {
|
|
200
|
+
peerSupports: peerSupports,
|
|
201
|
+
mailFromExtension: mailFromExtension,
|
|
202
|
+
parseTlsRequiredHeader: parseTlsRequiredHeader,
|
|
203
|
+
REQUIRETLS_TOKEN: REQUIRETLS_TOKEN,
|
|
204
|
+
RequireTlsError: RequireTlsError,
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
// Reserved for future field validation paths; kept in canonical
|
|
208
|
+
// require ordering.
|
|
209
|
+
void validateOpts;
|
package/lib/mail.js
CHANGED
|
@@ -1818,11 +1818,13 @@ function feedbackId(opts) {
|
|
|
1818
1818
|
return parts.join(":");
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
|
-
var
|
|
1821
|
+
var mailRequireTls = require("./mail-require-tls");
|
|
1822
|
+
var mailSrs = require("./mail-srs");
|
|
1822
1823
|
|
|
1823
1824
|
module.exports = {
|
|
1824
1825
|
create: create,
|
|
1825
1826
|
feedbackId: feedbackId,
|
|
1827
|
+
requireTls: mailRequireTls,
|
|
1826
1828
|
srs: mailSrs,
|
|
1827
1829
|
MailError: MailError,
|
|
1828
1830
|
unsubscribe: mailUnsubscribe,
|
package/package.json
CHANGED
package/sbom.cdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.6",
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:860a5246-eb35-4113-adf2-886982273421",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-05-
|
|
8
|
+
"timestamp": "2026-05-11T19:04:39.738Z",
|
|
9
9
|
"lifecycles": [
|
|
10
10
|
{
|
|
11
11
|
"phase": "build"
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"component": {
|
|
22
|
-
"bom-ref": "@blamejs/core@0.8.
|
|
22
|
+
"bom-ref": "@blamejs/core@0.8.90",
|
|
23
23
|
"type": "library",
|
|
24
24
|
"name": "blamejs",
|
|
25
|
-
"version": "0.8.
|
|
25
|
+
"version": "0.8.90",
|
|
26
26
|
"scope": "required",
|
|
27
27
|
"author": "blamejs contributors",
|
|
28
28
|
"description": "The Node framework that owns its stack.",
|
|
29
|
-
"purl": "pkg:npm/%40blamejs/core@0.8.
|
|
29
|
+
"purl": "pkg:npm/%40blamejs/core@0.8.90",
|
|
30
30
|
"properties": [],
|
|
31
31
|
"externalReferences": [
|
|
32
32
|
{
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"components": [],
|
|
55
55
|
"dependencies": [
|
|
56
56
|
{
|
|
57
|
-
"ref": "@blamejs/core@0.8.
|
|
57
|
+
"ref": "@blamejs/core@0.8.90",
|
|
58
58
|
"dependsOn": []
|
|
59
59
|
}
|
|
60
60
|
]
|