@blamejs/pki 0.5.22 → 0.5.24

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/trust.js CHANGED
@@ -40,6 +40,10 @@ var constants = require("./constants");
40
40
  var errors = require("./framework-error");
41
41
  var asn1 = require("./asn1-der");
42
42
  var guard = require("./guard-all");
43
+ var intrinsic = require("./guard-intrinsic");
44
+ // Own-key membership through an operation taken at load. Written out, the question reads two
45
+ // replaceable properties to answer one thing, and here it decides which trust bits an anchor carries.
46
+ var _hasOwn = intrinsic.hasOwn;
43
47
  var x509 = require("./schema-x509");
44
48
 
45
49
  var TrustError = errors.TrustError;
@@ -604,7 +608,7 @@ function _trustBits(cell) {
604
608
  var t = tok.trim();
605
609
  if (t === "") return;
606
610
  var l = t.toLowerCase();
607
- if (!Object.prototype.hasOwnProperty.call(_TRUST_BIT_TOKENS, l)) {
611
+ if (!_hasOwn(_TRUST_BIT_TOKENS, l)) {
608
612
  throw E("trust/bad-csv", "unrecognized Trust Bits token " + JSON.stringify(t));
609
613
  }
610
614
  var p = _TRUST_BIT_TOKENS[l];
@@ -22,6 +22,10 @@
22
22
  var frameworkError = require("./framework-error");
23
23
  var x509 = require("./schema-x509");
24
24
  var guard = require("./guard-all");
25
+ var intrinsic = require("./guard-intrinsic");
26
+ // Own-key membership through an operation taken at load. Written out, the question reads two
27
+ // replaceable properties to answer one thing, and here it decides which status rows an entry carries.
28
+ var _hasOwn = intrinsic.hasOwn;
25
29
  var jose = require("./jose");
26
30
  var rfc3339 = require("./rfc3339");
27
31
  var constants = require("./constants");
@@ -348,7 +352,7 @@ function _verifyMetadataBlob(blob, opts) {
348
352
  // reader that skips the list accepts a token on terms it never met. Nothing here processes an
349
353
  // extension parameter, so any name is unprocessed, including a standard name, which sec. 4.1.11
350
354
  // forbids listing at all.
351
- if (Object.prototype.hasOwnProperty.call(header, "crit")) {
355
+ if (_hasOwn(header, "crit")) {
352
356
  var crit = header.crit;
353
357
  if (!Array.isArray(crit) || crit.length === 0) {
354
358
  throw _err("webauthn/bad-metadata-blob", "the metadata BLOB header crit must be a non-empty array (RFC 7515 sec. 4.1.11)");
package/lib/webauthn.js CHANGED
@@ -34,6 +34,10 @@ var constants = require("./constants");
34
34
  var validator = require("./validator-all");
35
35
  var edwardsPoint = require("./edwards-point");
36
36
  var guard = require("./guard-all");
37
+ var intrinsic = require("./guard-intrinsic");
38
+ // Own-key membership through an operation taken at load: written out it reads two replaceable
39
+ // properties to answer one question, and either answering true admits a name the table never had.
40
+ var _hasOwn = intrinsic.hasOwn;
37
41
  var jose = require("./jose");
38
42
  var mds = require("./webauthn-mds");
39
43
  var nodeCrypto = require("crypto");
@@ -2220,7 +2224,7 @@ function _snapshotAssertion(input) {
2220
2224
  if (!_isPlainObject(input)) throw _err("webauthn/bad-input", "pki.webauthn.verifyAssertion takes an options object");
2221
2225
  guard.identifier.assertKnownKeys(input, _ASSERT_OPTS, _err, "webauthn/bad-input", "verifyAssertion input has an unknown key ");
2222
2226
  var out = {}, k;
2223
- for (k in input) { if (Object.prototype.hasOwnProperty.call(input, k)) out[k] = input[k]; }
2227
+ for (k in input) { if (_hasOwn(input, k)) out[k] = input[k]; }
2224
2228
  // The SAME set of byte forms the arguments accept. A snapshot list narrower than the accept list
2225
2229
  // leaves whatever falls in the gap aliased across the yield -- which is the one input a widened
2226
2230
  // accept list newly admits, so the two must be written from one predicate.
@@ -2237,7 +2241,7 @@ function _snapshotAssertion(input) {
2237
2241
  } else if (_isPlainObject(out.credentialPublicKey)) {
2238
2242
  var key = {}, kk;
2239
2243
  for (kk in out.credentialPublicKey) {
2240
- if (!Object.prototype.hasOwnProperty.call(out.credentialPublicKey, kk)) continue;
2244
+ if (!_hasOwn(out.credentialPublicKey, kk)) continue;
2241
2245
  // The read itself can fault: a stored key is a caller-supplied object, so a field may be an
2242
2246
  // accessor, and one that THROWS would escape as a raw error from the very copy whose job is
2243
2247
  // to make the descriptor stop being the caller's. The copy is the boundary, so the fault is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blamejs/pki",
3
- "version": "0.5.22",
3
+ "version": "0.5.24",
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:3735feb6-6447-4894-953a-28811d47f2c0",
5
+ "serialNumber": "urn:uuid:1d864685-81db-45d8-92b0-ef5b74906999",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-08-21T03:44:09.554Z",
8
+ "timestamp": "2026-08-21T11:03:39.559Z",
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.5.22",
22
+ "bom-ref": "@blamejs/pki@0.5.24",
23
23
  "type": "application",
24
24
  "name": "pki",
25
- "version": "0.5.22",
25
+ "version": "0.5.24",
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.5.22",
29
+ "purl": "pkg:npm/%40blamejs/pki@0.5.24",
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.5.22",
57
+ "ref": "@blamejs/pki@0.5.24",
58
58
  "dependsOn": []
59
59
  }
60
60
  ]