apps 0.0.1-beta.140 → 0.0.1-beta.141

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/js/ui/serving.js CHANGED
@@ -8444,17 +8444,23 @@ var resourceLinks = /* @__PURE__ */ new Set([
8444
8444
  ]);
8445
8445
  var retained = (url) => url !== "" && !/^(?:[a-z][a-z\d+.-]*:|[/#?])/i.test(url);
8446
8446
  var rewriteSrcset = (value, resolve) => {
8447
+ const separators = /[\s,]*/y;
8448
+ const tokens = /\S+/y;
8447
8449
  let output = "";
8448
8450
  let index = 0;
8449
8451
  while (index < value.length) {
8450
- const separator = /^[\s,]*/.exec(value.slice(index))?.[0] ?? "";
8452
+ separators.lastIndex = index;
8453
+ const separator = separators.exec(value)?.[0] ?? "";
8451
8454
  output += separator;
8452
8455
  index += separator.length;
8453
- const token = /^\S+/.exec(value.slice(index))?.[0];
8456
+ tokens.lastIndex = index;
8457
+ const token = tokens.exec(value)?.[0];
8454
8458
  if (token === void 0) break;
8455
8459
  index += token.length;
8456
- const commas = /,*$/.exec(token)?.[0] ?? "";
8457
- output += resolve(token.slice(0, token.length - commas.length)) + commas;
8460
+ let url = token.length;
8461
+ while (url > 0 && token[url - 1] === ",") url--;
8462
+ const commas = token.slice(url);
8463
+ output += resolve(token.slice(0, url)) + commas;
8458
8464
  if (commas !== "") continue;
8459
8465
  let depth = 0;
8460
8466
  let end = index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps",
3
- "version": "0.0.1-beta.140",
3
+ "version": "0.0.1-beta.141",
4
4
  "description": "TypeScript apps with typed tools, accounts, storage, and UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,