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/framework-reference.json +1 -1
- package/js/ui/serving.js +10 -4
- package/package.json +1 -1
- package/runtime.json +1 -1
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
|
-
|
|
8452
|
+
separators.lastIndex = index;
|
|
8453
|
+
const separator = separators.exec(value)?.[0] ?? "";
|
|
8451
8454
|
output += separator;
|
|
8452
8455
|
index += separator.length;
|
|
8453
|
-
|
|
8456
|
+
tokens.lastIndex = index;
|
|
8457
|
+
const token = tokens.exec(value)?.[0];
|
|
8454
8458
|
if (token === void 0) break;
|
|
8455
8459
|
index += token.length;
|
|
8456
|
-
|
|
8457
|
-
|
|
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;
|