@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.js
CHANGED
|
@@ -16258,8 +16258,14 @@ function diffImmutableSiweFields(original, signed, options2) {
|
|
|
16258
16258
|
function extractRecapAttenuations(siwe) {
|
|
16259
16259
|
const merged = {};
|
|
16260
16260
|
const lines = siwe.split(/\r?\n/);
|
|
16261
|
+
let resources = false;
|
|
16261
16262
|
for (const line of lines) {
|
|
16262
|
-
|
|
16263
|
+
if (line === "Resources:") {
|
|
16264
|
+
resources = true;
|
|
16265
|
+
continue;
|
|
16266
|
+
}
|
|
16267
|
+
if (!resources) continue;
|
|
16268
|
+
const match = line.match(/^- urn:recap:([A-Za-z0-9_-]+=*)$/);
|
|
16263
16269
|
if (!match) continue;
|
|
16264
16270
|
const encoded = match[1];
|
|
16265
16271
|
let decodedJson;
|