@tinycloud/sdk-core 3.8.0-beta.19 → 3.8.0-beta.20
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16638,8 +16638,14 @@ function diffImmutableSiweFields(original, signed, options2) {
|
|
|
16638
16638
|
function extractRecapAttenuations(siwe) {
|
|
16639
16639
|
const merged = {};
|
|
16640
16640
|
const lines = siwe.split(/\r?\n/);
|
|
16641
|
+
let resources = false;
|
|
16641
16642
|
for (const line of lines) {
|
|
16642
|
-
|
|
16643
|
+
if (line === "Resources:") {
|
|
16644
|
+
resources = true;
|
|
16645
|
+
continue;
|
|
16646
|
+
}
|
|
16647
|
+
if (!resources) continue;
|
|
16648
|
+
const match = line.match(/^- urn:recap:([A-Za-z0-9_-]+=*)$/);
|
|
16643
16649
|
if (!match) continue;
|
|
16644
16650
|
const encoded = match[1];
|
|
16645
16651
|
let decodedJson;
|