@absolutejs/absolute 0.8.0 → 0.8.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/index.js
CHANGED
|
@@ -45360,9 +45360,19 @@ function render(component2, options = {}) {
|
|
|
45360
45360
|
body: payload.out
|
|
45361
45361
|
};
|
|
45362
45362
|
}
|
|
45363
|
+
// src/utils/escapeScriptContent.ts
|
|
45364
|
+
var ESCAPE_LOOKUP = {
|
|
45365
|
+
"\u2028": "\\u2028",
|
|
45366
|
+
"\u2029": "\\u2029",
|
|
45367
|
+
"&": "\\u0026",
|
|
45368
|
+
"<": "\\u003C",
|
|
45369
|
+
">": "\\u003E"
|
|
45370
|
+
};
|
|
45371
|
+
var ESCAPE_REGEX = /[&><\u2028\u2029]/g;
|
|
45372
|
+
var escapeScriptContent = (content) => content.replace(ESCAPE_REGEX, (char) => ESCAPE_LOOKUP[char]);
|
|
45373
|
+
|
|
45363
45374
|
// src/svelte/renderToReadableStream.ts
|
|
45364
45375
|
var DEFAULT_CHUNK_SIZE = 16384;
|
|
45365
|
-
var escapeScriptContent = (content) => content.replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
45366
45376
|
var renderToReadableStream = async (component2, props, {
|
|
45367
45377
|
bootstrapScriptContent,
|
|
45368
45378
|
bootstrapScripts = [],
|
|
@@ -45494,5 +45504,5 @@ export {
|
|
|
45494
45504
|
DEFAULT_PORT
|
|
45495
45505
|
};
|
|
45496
45506
|
|
|
45497
|
-
//# debugId=
|
|
45507
|
+
//# debugId=CEB32816B046E97E64756E2164756E21
|
|
45498
45508
|
//# sourceMappingURL=index.js.map
|