@settlemint/dalp-sdk 2.1.7-main.25496070032 → 2.1.7-main.25498030517
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.js +14 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27256,7 +27256,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
27256
27256
|
// package.json
|
|
27257
27257
|
var package_default = {
|
|
27258
27258
|
name: "@settlemint/dalp-sdk",
|
|
27259
|
-
version: "2.1.7-main.
|
|
27259
|
+
version: "2.1.7-main.25498030517",
|
|
27260
27260
|
private: false,
|
|
27261
27261
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
27262
27262
|
homepage: "https://settlemint.com",
|
|
@@ -27691,10 +27691,11 @@ function splitConcatenatedSetCookie(setCookie) {
|
|
|
27691
27691
|
current = segment;
|
|
27692
27692
|
continue;
|
|
27693
27693
|
}
|
|
27694
|
-
|
|
27694
|
+
const boundary = classifyBoundary(segment);
|
|
27695
|
+
if (boundary === "newCookie") {
|
|
27695
27696
|
result.push(current.trim());
|
|
27696
27697
|
current = segment;
|
|
27697
|
-
} else {
|
|
27698
|
+
} else if (boundary === "attributeContinuation") {
|
|
27698
27699
|
current += `,${segment}`;
|
|
27699
27700
|
}
|
|
27700
27701
|
}
|
|
@@ -27703,13 +27704,20 @@ function splitConcatenatedSetCookie(setCookie) {
|
|
|
27703
27704
|
}
|
|
27704
27705
|
return result;
|
|
27705
27706
|
}
|
|
27706
|
-
function
|
|
27707
|
+
function classifyBoundary(segment) {
|
|
27707
27708
|
const eqIndex = segment.indexOf("=");
|
|
27708
27709
|
if (eqIndex <= 0) {
|
|
27709
|
-
return
|
|
27710
|
+
return "attributeContinuation";
|
|
27711
|
+
}
|
|
27712
|
+
const semiIndex = segment.indexOf(";");
|
|
27713
|
+
if (semiIndex !== -1 && semiIndex < eqIndex) {
|
|
27714
|
+
return "attributeContinuation";
|
|
27710
27715
|
}
|
|
27711
27716
|
const name = segment.slice(0, eqIndex).trim();
|
|
27712
|
-
|
|
27717
|
+
if (name === "") {
|
|
27718
|
+
return "attributeContinuation";
|
|
27719
|
+
}
|
|
27720
|
+
return /^[\w!#$%&'*+\-.^`|~]+$/.test(name) ? "newCookie" : "invalidCookieName";
|
|
27713
27721
|
}
|
|
27714
27722
|
|
|
27715
27723
|
// src/auth.ts
|
package/package.json
CHANGED