@absolutejs/absolute 0.19.0-beta.1070 → 0.19.0-beta.1072
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 +55 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +55 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +55 -2
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +58 -17
- package/dist/index.js +55 -2
- package/dist/index.js.map +3 -3
- package/dist/src/vue/index.d.ts +2 -0
- package/dist/src/vue/useResource.d.ts +65 -0
- package/dist/vue/index.js +68 -1
- package/dist/vue/index.js.map +5 -4
- package/package.json +1 -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-yyBAvH/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-yyBAvH/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-yyBAvH/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
|
@@ -4557,6 +4557,59 @@ ${fields}
|
|
|
4557
4557
|
deferSlots: inlinedTemplate.deferSlots,
|
|
4558
4558
|
source: result
|
|
4559
4559
|
};
|
|
4560
|
+
}, CLASS_KEYWORD = "class", isIdentifierChar = (char) => char !== undefined && /[A-Za-z0-9_$]/.test(char), skipStringLiteral = (source, start) => {
|
|
4561
|
+
const quote = source[start];
|
|
4562
|
+
let index = start + 1;
|
|
4563
|
+
while (index < source.length) {
|
|
4564
|
+
if (source[index] === "\\") {
|
|
4565
|
+
index += 2;
|
|
4566
|
+
continue;
|
|
4567
|
+
}
|
|
4568
|
+
if (source[index] === quote)
|
|
4569
|
+
return index + 1;
|
|
4570
|
+
index += 1;
|
|
4571
|
+
}
|
|
4572
|
+
return index;
|
|
4573
|
+
}, findDecoratedClassKeyword = (source, start) => {
|
|
4574
|
+
let index = start;
|
|
4575
|
+
let depth = 0;
|
|
4576
|
+
while (index < source.length) {
|
|
4577
|
+
const char = source[index];
|
|
4578
|
+
if (char === '"' || char === "'" || char === "`") {
|
|
4579
|
+
index = skipStringLiteral(source, index);
|
|
4580
|
+
continue;
|
|
4581
|
+
}
|
|
4582
|
+
const isOpen = char === "(" || char === "[" || char === "{";
|
|
4583
|
+
const isClose = char === ")" || char === "]" || char === "}";
|
|
4584
|
+
const atClass = depth === 0 && source.startsWith(CLASS_KEYWORD, index) && !isIdentifierChar(source[index - 1]) && !isIdentifierChar(source[index + CLASS_KEYWORD.length]);
|
|
4585
|
+
if (atClass)
|
|
4586
|
+
return index;
|
|
4587
|
+
if (isOpen)
|
|
4588
|
+
depth += 1;
|
|
4589
|
+
else if (isClose)
|
|
4590
|
+
depth -= 1;
|
|
4591
|
+
index += 1;
|
|
4592
|
+
}
|
|
4593
|
+
return -1;
|
|
4594
|
+
}, hoistExportPastDecorators = (source) => {
|
|
4595
|
+
const exportBeforeDecorator = /\bexport\s+(?=@)/g;
|
|
4596
|
+
let result = "";
|
|
4597
|
+
let lastIndex = 0;
|
|
4598
|
+
let match = exportBeforeDecorator.exec(source);
|
|
4599
|
+
while (match !== null) {
|
|
4600
|
+
const decoratorStart = match.index + match[0].length;
|
|
4601
|
+
const classIndex = findDecoratedClassKeyword(source, decoratorStart);
|
|
4602
|
+
if (classIndex !== -1) {
|
|
4603
|
+
result += source.slice(lastIndex, match.index);
|
|
4604
|
+
result += source.slice(decoratorStart, classIndex);
|
|
4605
|
+
result += `export ${CLASS_KEYWORD}`;
|
|
4606
|
+
lastIndex = classIndex + CLASS_KEYWORD.length;
|
|
4607
|
+
exportBeforeDecorator.lastIndex = lastIndex;
|
|
4608
|
+
}
|
|
4609
|
+
match = exportBeforeDecorator.exec(source);
|
|
4610
|
+
}
|
|
4611
|
+
result += source.slice(lastIndex);
|
|
4612
|
+
return result;
|
|
4560
4613
|
}, compileAngularFileJIT = async (inputPath, outDir, rootDir, stylePreprocessors, cacheBuster) => {
|
|
4561
4614
|
const entryPath = resolve7(inputPath);
|
|
4562
4615
|
const allOutputs = [];
|
|
@@ -4621,7 +4674,7 @@ ${fields}
|
|
|
4621
4674
|
return specifier.includes("?") ? `${specifier}&t=${cacheBuster}` : `${specifier}?t=${cacheBuster}`;
|
|
4622
4675
|
};
|
|
4623
4676
|
const transpileAndRewrite = (sourceCode, relativeDir, actualPath, importRewrites) => {
|
|
4624
|
-
let processedContent = angularTranspiler.transformSync(sourceCode);
|
|
4677
|
+
let processedContent = angularTranspiler.transformSync(hoistExportPastDecorators(sourceCode));
|
|
4625
4678
|
const outputPath = toOutputPath(actualPath);
|
|
4626
4679
|
const rewriteBareImport = (prefix, specifier, suffix) => {
|
|
4627
4680
|
const rewritten = importRewrites.get(specifier);
|
|
@@ -15790,5 +15843,5 @@ export {
|
|
|
15790
15843
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
15791
15844
|
};
|
|
15792
15845
|
|
|
15793
|
-
//# debugId=
|
|
15846
|
+
//# debugId=C6A2385D5C79A51164756E2164756E21
|
|
15794
15847
|
//# sourceMappingURL=index.js.map
|