@blamejs/pki 0.8.28 → 0.8.30

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/lib/ocsp.js CHANGED
@@ -197,9 +197,16 @@ function _buildRequest(query, opts) {
197
197
  var issuer = _certOf(q.issuer, "the issuer certificate");
198
198
  return _buildCertID(cert, issuer, hashName).then(function (certID) {
199
199
  var reqChildren = [certID];
200
- if (q.singleRequestExtensions && q.singleRequestExtensions.length) {
201
- if (lightweight) throw _err("ocsp/bad-input", "the lightweight profile permits no singleRequestExtensions (RFC 5019 sec. 2.1.1)");
202
- reqChildren.push(b.explicit(0, b.sequence(q.singleRequestExtensions)));
200
+ if (q.singleRequestExtensions != null) {
201
+ /** @internal Read through the same door the sibling lists in this module use, so a value that is
202
+ * not an array is refused rather than passed over: read as truthy-and-has-length, an object or a
203
+ * number produced a Request carrying none of the extensions the caller asked for, and nothing in
204
+ * the result said so. */
205
+ var singles = pkiBuild.reqDenseArray(q.singleRequestExtensions, "singleRequestExtensions", _err, "ocsp/bad-input");
206
+ if (singles.length) {
207
+ if (lightweight) throw _err("ocsp/bad-input", "the lightweight profile permits no singleRequestExtensions (RFC 5019 sec. 2.1.1)");
208
+ reqChildren.push(b.explicit(0, b.sequence(singles)));
209
+ }
203
210
  }
204
211
  return b.sequence(reqChildren);
205
212
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blamejs/pki",
3
- "version": "0.8.28",
3
+ "version": "0.8.30",
4
4
  "description": "Pure-JavaScript PKI toolkit that owns its stack — X.509, ASN.1/DER, CMS, PQC-first.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "blamejs contributors",
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.5",
5
- "serialNumber": "urn:uuid:3eb9063d-93f7-4a44-bdff-52a992c9a1e7",
5
+ "serialNumber": "urn:uuid:b9b5ff1a-3017-4ab5-ab52-4eb332fecb31",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-09-28T21:19:37.849Z",
8
+ "timestamp": "2026-09-29T03:10:30.011Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "build"
@@ -19,14 +19,14 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "@blamejs/pki@0.8.28",
22
+ "bom-ref": "@blamejs/pki@0.8.30",
23
23
  "type": "application",
24
24
  "name": "pki",
25
- "version": "0.8.28",
25
+ "version": "0.8.30",
26
26
  "scope": "required",
27
27
  "author": "blamejs contributors",
28
28
  "description": "Pure-JavaScript PKI toolkit that owns its stack — X.509, ASN.1/DER, CMS, PQC-first.",
29
- "purl": "pkg:npm/%40blamejs/pki@0.8.28",
29
+ "purl": "pkg:npm/%40blamejs/pki@0.8.30",
30
30
  "properties": [],
31
31
  "externalReferences": [
32
32
  {
@@ -54,7 +54,7 @@
54
54
  "components": [],
55
55
  "dependencies": [
56
56
  {
57
- "ref": "@blamejs/pki@0.8.28",
57
+ "ref": "@blamejs/pki@0.8.30",
58
58
  "dependsOn": []
59
59
  }
60
60
  ]