@absolutejs/absolute 0.19.0-beta.1103 → 0.19.0-beta.1105
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +18 -11
- package/dist/angular/index.js.map +4 -4
- package/dist/angular/server.js +18 -11
- package/dist/angular/server.js.map +4 -4
- package/dist/build.js +45 -19
- package/dist/build.js.map +5 -5
- package/dist/cli/index.js +7 -9
- package/dist/index.js +45 -19
- package/dist/index.js.map +5 -5
- package/dist/islands/index.js +8 -10
- package/dist/islands/index.js.map +3 -3
- package/dist/react/index.js +8 -10
- package/dist/react/index.js.map +3 -3
- package/dist/src/build/compileAngular.d.ts +0 -5
- package/dist/src/build/maskLiterals.d.ts +9 -6
- package/dist/svelte/index.js +8 -10
- package/dist/svelte/index.js.map +3 -3
- package/dist/vue/index.js +11 -10
- package/dist/vue/index.js.map +4 -4
- package/dist/vue/server.js +4 -1
- package/dist/vue/server.js.map +3 -3
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-9qSKPF/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-9qSKPF/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-9qSKPF/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/angular/index.js
CHANGED
|
@@ -1152,7 +1152,7 @@ var init_islandSsr = __esm(() => {
|
|
|
1152
1152
|
});
|
|
1153
1153
|
|
|
1154
1154
|
// src/build/maskLiterals.ts
|
|
1155
|
-
var SENTINEL, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c), REGEX_OK_AFTER_CHAR, REGEX_OK_AFTER_WORD, maskLiterals = (src) => {
|
|
1155
|
+
var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c), REGEX_OK_AFTER_CHAR, REGEX_OK_AFTER_WORD, maskLiterals = (src) => {
|
|
1156
1156
|
const n = src.length;
|
|
1157
1157
|
const pieces = [];
|
|
1158
1158
|
let out = "";
|
|
@@ -1160,7 +1160,6 @@ var SENTINEL, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c), REGEX_OK_AFTER_CHAR,
|
|
|
1160
1160
|
let prevChar = "";
|
|
1161
1161
|
let prevWord = "";
|
|
1162
1162
|
let prevWasSpace = false;
|
|
1163
|
-
let wordBeforeParen = "";
|
|
1164
1163
|
const mask = (text) => {
|
|
1165
1164
|
out += SENTINEL + pieces.length + SENTINEL;
|
|
1166
1165
|
pieces.push(text);
|
|
@@ -1298,14 +1297,14 @@ var SENTINEL, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c), REGEX_OK_AFTER_CHAR,
|
|
|
1298
1297
|
}
|
|
1299
1298
|
if (c === '"' || c === "'") {
|
|
1300
1299
|
const end = endOfString(i);
|
|
1301
|
-
const
|
|
1302
|
-
if (
|
|
1303
|
-
|
|
1300
|
+
const text = src.slice(i, end);
|
|
1301
|
+
if (RISKY_STRING_CONTENT.test(text)) {
|
|
1302
|
+
mask(text);
|
|
1303
|
+
} else {
|
|
1304
|
+
out += text;
|
|
1304
1305
|
prevChar = '"';
|
|
1305
1306
|
prevWord = "";
|
|
1306
1307
|
prevWasSpace = false;
|
|
1307
|
-
} else {
|
|
1308
|
-
mask(src.slice(i, end));
|
|
1309
1308
|
}
|
|
1310
1309
|
i = end;
|
|
1311
1310
|
continue;
|
|
@@ -1332,8 +1331,6 @@ var SENTINEL, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c), REGEX_OK_AFTER_CHAR,
|
|
|
1332
1331
|
const contiguous = isIdentChar(prevChar) && !prevWasSpace;
|
|
1333
1332
|
prevWord = contiguous ? prevWord + c : c;
|
|
1334
1333
|
} else {
|
|
1335
|
-
if (c === "(")
|
|
1336
|
-
wordBeforeParen = prevWord;
|
|
1337
1334
|
prevWord = "";
|
|
1338
1335
|
}
|
|
1339
1336
|
prevChar = c;
|
|
@@ -1345,6 +1342,7 @@ var SENTINEL, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c), REGEX_OK_AFTER_CHAR,
|
|
|
1345
1342
|
};
|
|
1346
1343
|
var init_maskLiterals = __esm(() => {
|
|
1347
1344
|
SENTINEL = String.fromCharCode(57344);
|
|
1345
|
+
RISKY_STRING_CONTENT = /\b(?:from|import|require)\s*\(?\s*["'`]/;
|
|
1348
1346
|
REGEX_OK_AFTER_CHAR = new Set([
|
|
1349
1347
|
"(",
|
|
1350
1348
|
",",
|
|
@@ -5251,6 +5249,13 @@ ${fields}
|
|
|
5251
5249
|
}
|
|
5252
5250
|
result += source.slice(lastIndex);
|
|
5253
5251
|
return result;
|
|
5252
|
+
}, PROVIDERS_INJECTION_BLOCK_RE, readPreservedInjection = async (targetPath) => {
|
|
5253
|
+
try {
|
|
5254
|
+
const existing = await fs.readFile(targetPath, "utf-8");
|
|
5255
|
+
return PROVIDERS_INJECTION_BLOCK_RE.exec(existing)?.[0] ?? "";
|
|
5256
|
+
} catch {
|
|
5257
|
+
return "";
|
|
5258
|
+
}
|
|
5254
5259
|
}, compileAngularFileJIT = async (inputPath, outDir, rootDir, stylePreprocessors, cacheBuster) => {
|
|
5255
5260
|
const entryPath = resolve7(inputPath);
|
|
5256
5261
|
const allOutputs = [];
|
|
@@ -5408,8 +5413,9 @@ ${fields}
|
|
|
5408
5413
|
const shouldWriteFile = cacheBuster && isEntry ? true : jitContentCache.get(cacheKey) !== contentHash || !existsSync5(targetPath);
|
|
5409
5414
|
if (shouldWriteFile) {
|
|
5410
5415
|
const processedContent = transpileAndRewrite(sourceCode, relativeDir, actualPath, importRewrites);
|
|
5416
|
+
const preservedInjection = await readPreservedInjection(targetPath);
|
|
5411
5417
|
await fs.mkdir(targetDir, { recursive: true });
|
|
5412
|
-
await fs.writeFile(targetPath, processedContent, "utf-8");
|
|
5418
|
+
await fs.writeFile(targetPath, processedContent + preservedInjection, "utf-8");
|
|
5413
5419
|
jitContentCache.set(cacheKey, contentHash);
|
|
5414
5420
|
}
|
|
5415
5421
|
allOutputs.push(targetPath);
|
|
@@ -5795,6 +5801,7 @@ var init_compileAngular = __esm(() => {
|
|
|
5795
5801
|
hmrClientPath = join9(devClientDir, "hmrClient.ts").replace(/\\/g, "/");
|
|
5796
5802
|
jitContentCache = new Map;
|
|
5797
5803
|
wrapperOutputCache = new Map;
|
|
5804
|
+
PROVIDERS_INJECTION_BLOCK_RE = /\n\/\* __ABS_PROVIDERS_INJECTION_START \*\/[\s\S]*?\/\* __ABS_PROVIDERS_INJECTION_END \*\/\n?/;
|
|
5798
5805
|
});
|
|
5799
5806
|
|
|
5800
5807
|
// node_modules/rxjs/dist/cjs/internal/util/isFunction.js
|
|
@@ -16177,5 +16184,5 @@ export {
|
|
|
16177
16184
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
16178
16185
|
};
|
|
16179
16186
|
|
|
16180
|
-
//# debugId=
|
|
16187
|
+
//# debugId=78F77D6279AA5F1B64756E2164756E21
|
|
16181
16188
|
//# sourceMappingURL=index.js.map
|