@didit-protocol/sdk-node 2.11.0 → 2.11.1

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/dist/index.cjs CHANGED
@@ -150,7 +150,7 @@ function errorDetail(body) {
150
150
  return null;
151
151
  }
152
152
  function spellings(secret) {
153
- const out = /* @__PURE__ */ new Set([secret]);
153
+ const out = /* @__PURE__ */ new Set([secret, JSON.stringify(secret).slice(1, -1)]);
154
154
  try {
155
155
  out.add(encodeURIComponent(secret));
156
156
  out.add(new URLSearchParams({ s: secret }).toString().slice(2));
@@ -282,7 +282,7 @@ function decodeDates(value, plan, named, depth = 0) {
282
282
  }
283
283
 
284
284
  // src/core/version.ts
285
- var VERSION = "2.11.0";
285
+ var VERSION = "2.11.1";
286
286
 
287
287
  // src/core/runtime.ts
288
288
  function processLike() {
@@ -11281,16 +11281,11 @@ function textList(value, name) {
11281
11281
  }
11282
11282
  return [...value];
11283
11283
  }
11284
- function assertionSecrets(assertion) {
11285
- const response = isRecord4(assertion.response) ? assertion.response : {};
11286
- return [
11287
- assertion.id,
11288
- assertion.rawId,
11289
- response.clientDataJSON,
11290
- response.authenticatorData,
11291
- response.signature,
11292
- response.userHandle
11293
- ].filter((value) => typeof value === "string" && value.length > 0);
11284
+ function assertionSecrets(value) {
11285
+ if (typeof value === "string") return value.length > 0 ? [value] : [];
11286
+ if (Array.isArray(value)) return value.flatMap(assertionSecrets);
11287
+ if (isRecord4(value)) return Object.values(value).flatMap(assertionSecrets);
11288
+ return [];
11294
11289
  }
11295
11290
  function optionalText(value, name) {
11296
11291
  if (value === void 0 || value === null) return void 0;