@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 +7 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -23567,7 +23567,7 @@ declare class TokenVerificationError extends DiditError {
|
|
|
23567
23567
|
constructor(reason: TokenVerificationReason, message: string);
|
|
23568
23568
|
}
|
|
23569
23569
|
|
|
23570
|
-
declare const VERSION = "2.11.
|
|
23570
|
+
declare const VERSION = "2.11.1";
|
|
23571
23571
|
|
|
23572
23572
|
/**
|
|
23573
23573
|
* The canonical JSON of a parsed webhook body: the text `X-Signature-V2` signs
|
package/dist/index.d.ts
CHANGED
|
@@ -23567,7 +23567,7 @@ declare class TokenVerificationError extends DiditError {
|
|
|
23567
23567
|
constructor(reason: TokenVerificationReason, message: string);
|
|
23568
23568
|
}
|
|
23569
23569
|
|
|
23570
|
-
declare const VERSION = "2.11.
|
|
23570
|
+
declare const VERSION = "2.11.1";
|
|
23571
23571
|
|
|
23572
23572
|
/**
|
|
23573
23573
|
* The canonical JSON of a parsed webhook body: the text `X-Signature-V2` signs
|
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function errorDetail(body) {
|
|
|
146
146
|
return null;
|
|
147
147
|
}
|
|
148
148
|
function spellings(secret) {
|
|
149
|
-
const out = /* @__PURE__ */ new Set([secret]);
|
|
149
|
+
const out = /* @__PURE__ */ new Set([secret, JSON.stringify(secret).slice(1, -1)]);
|
|
150
150
|
try {
|
|
151
151
|
out.add(encodeURIComponent(secret));
|
|
152
152
|
out.add(new URLSearchParams({ s: secret }).toString().slice(2));
|
|
@@ -278,7 +278,7 @@ function decodeDates(value, plan, named, depth = 0) {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
// src/core/version.ts
|
|
281
|
-
var VERSION = "2.11.
|
|
281
|
+
var VERSION = "2.11.1";
|
|
282
282
|
|
|
283
283
|
// src/core/runtime.ts
|
|
284
284
|
function processLike() {
|
|
@@ -11277,16 +11277,11 @@ function textList(value, name) {
|
|
|
11277
11277
|
}
|
|
11278
11278
|
return [...value];
|
|
11279
11279
|
}
|
|
11280
|
-
function assertionSecrets(
|
|
11281
|
-
|
|
11282
|
-
return
|
|
11283
|
-
|
|
11284
|
-
|
|
11285
|
-
response.clientDataJSON,
|
|
11286
|
-
response.authenticatorData,
|
|
11287
|
-
response.signature,
|
|
11288
|
-
response.userHandle
|
|
11289
|
-
].filter((value) => typeof value === "string" && value.length > 0);
|
|
11280
|
+
function assertionSecrets(value) {
|
|
11281
|
+
if (typeof value === "string") return value.length > 0 ? [value] : [];
|
|
11282
|
+
if (Array.isArray(value)) return value.flatMap(assertionSecrets);
|
|
11283
|
+
if (isRecord4(value)) return Object.values(value).flatMap(assertionSecrets);
|
|
11284
|
+
return [];
|
|
11290
11285
|
}
|
|
11291
11286
|
function optionalText(value, name) {
|
|
11292
11287
|
if (value === void 0 || value === null) return void 0;
|