@blamejs/pki 0.1.17 → 0.1.18

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/schema-tsp.js CHANGED
@@ -359,7 +359,7 @@ function parseToken(input) {
359
359
  throw new TspError("tsp/multi-signer", "a TimeStampToken must contain exactly one (TSA) signerInfo (RFC 3161 §2.4.2)");
360
360
  }
361
361
  var tstInfo;
362
- try { tstInfo = schema.walk(TST_INFO, asn1.decode(encap.eContent), NS); }
362
+ try { tstInfo = schema.embeddedDer(TST_INFO, encap.eContent, NS, { code: "tsp/bad-der", what: "the encapsulated TSTInfo" }); }
363
363
  catch (e) {
364
364
  if (e instanceof TspError) throw e;
365
365
  throw new TspError("tsp/bad-der", "the encapsulated TSTInfo did not decode: " + ((e && e.message) || String(e)), e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blamejs/pki",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
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:b6db5d53-2a3e-46f9-9187-9c2f6fd9249b",
5
+ "serialNumber": "urn:uuid:a14a33cf-8c68-40d3-92b0-6f17ef343543",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-07-07T05:30:55.753Z",
8
+ "timestamp": "2026-07-09T03:55:56.855Z",
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.1.17",
22
+ "bom-ref": "@blamejs/pki@0.1.18",
23
23
  "type": "application",
24
24
  "name": "pki",
25
- "version": "0.1.17",
25
+ "version": "0.1.18",
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.1.17",
29
+ "purl": "pkg:npm/%40blamejs/pki@0.1.18",
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.1.17",
57
+ "ref": "@blamejs/pki@0.1.18",
58
58
  "dependsOn": []
59
59
  }
60
60
  ]