@otskit/client 0.7.0 → 0.7.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/browser.js CHANGED
@@ -500,7 +500,7 @@ function parseWhitelistPattern(raw) {
500
500
  return void 0;
501
501
  }
502
502
  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return void 0;
503
- const hostname = parsed.hostname.toLowerCase();
503
+ const hostname = parsed.hostname.toLowerCase().replaceAll("%2a", "*");
504
504
  const wildcardSuffix = hostname.startsWith("*.") ? hostname.slice(2) : void 0;
505
505
  if (hostname.includes("*") && wildcardSuffix === void 0) return void 0;
506
506
  if (wildcardSuffix !== void 0 && (wildcardSuffix.length === 0 || wildcardSuffix.includes("*"))) return void 0;
package/dist/index.cjs CHANGED
@@ -583,7 +583,7 @@ function parseWhitelistPattern(raw) {
583
583
  return void 0;
584
584
  }
585
585
  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return void 0;
586
- const hostname = parsed.hostname.toLowerCase();
586
+ const hostname = parsed.hostname.toLowerCase().replaceAll("%2a", "*");
587
587
  const wildcardSuffix = hostname.startsWith("*.") ? hostname.slice(2) : void 0;
588
588
  if (hostname.includes("*") && wildcardSuffix === void 0) return void 0;
589
589
  if (wildcardSuffix !== void 0 && (wildcardSuffix.length === 0 || wildcardSuffix.includes("*"))) return void 0;
package/dist/index.js CHANGED
@@ -533,7 +533,7 @@ function parseWhitelistPattern(raw) {
533
533
  return void 0;
534
534
  }
535
535
  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return void 0;
536
- const hostname = parsed.hostname.toLowerCase();
536
+ const hostname = parsed.hostname.toLowerCase().replaceAll("%2a", "*");
537
537
  const wildcardSuffix = hostname.startsWith("*.") ? hostname.slice(2) : void 0;
538
538
  if (hostname.includes("*") && wildcardSuffix === void 0) return void 0;
539
539
  if (wildcardSuffix !== void 0 && (wildcardSuffix.length === 0 || wildcardSuffix.includes("*"))) return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otskit/client",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Official client SDK for OpenTimestamps calendars with resilience patterns",
5
5
  "author": "alexalves87",
6
6
  "license": "MIT",