@absolutejs/absolute 0.19.0-beta.1130 → 0.19.0-beta.1132
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/build.js +18 -5
- package/dist/build.js.map +3 -3
- package/dist/index.js +18 -5
- package/dist/index.js.map +3 -3
- package/dist/src/vue/index.d.ts +1 -0
- package/dist/src/vue/teleports.d.ts +2 -0
- package/dist/vue/index.js +18 -7
- package/dist/vue/index.js.map +5 -4
- package/dist/vue/server.js +15 -6
- package/dist/vue/server.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-Buz5DA/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-Buz5DA/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-Buz5DA/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/build.js
CHANGED
|
@@ -24574,7 +24574,13 @@ ${stubs}
|
|
|
24574
24574
|
if (indexHit)
|
|
24575
24575
|
return `${srcPath}/index${indexHit}`;
|
|
24576
24576
|
return srcPath;
|
|
24577
|
-
}, IMPORT_EXTENSIONS, SIDE_EFFECT_EXTENSIONS, MODULE_EXTENSIONS, RESOLVED_MODULE_EXTENSIONS, REACT_EXTENSIONS, escapeRegex3 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
|
|
24577
|
+
}, IMPORT_EXTENSIONS, SIDE_EFFECT_EXTENSIONS, MODULE_EXTENSIONS, RESOLVED_MODULE_EXTENSIONS, REACT_EXTENSIONS, escapeRegex3 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), importScanTranspiler, scanRealImportSpecifiers = (code) => {
|
|
24578
|
+
try {
|
|
24579
|
+
return new Set(importScanTranspiler.scanImports(code).map((entry) => entry.path));
|
|
24580
|
+
} catch {
|
|
24581
|
+
return null;
|
|
24582
|
+
}
|
|
24583
|
+
}, buildImportRewriter = (vendorPaths) => {
|
|
24578
24584
|
const entries = Object.entries(vendorPaths).sort(([a], [b2]) => b2.length - a.length);
|
|
24579
24585
|
if (entries.length === 0)
|
|
24580
24586
|
return null;
|
|
@@ -24642,7 +24648,11 @@ ${stubs}
|
|
|
24642
24648
|
}
|
|
24643
24649
|
}, rewriteImports = (code, filePath, projectRoot, rewriter) => {
|
|
24644
24650
|
let result = code;
|
|
24651
|
+
const realSpecifiers = scanRealImportSpecifiers(code);
|
|
24652
|
+
const isRealImport = (specifier) => realSpecifiers === null || realSpecifiers.has(specifier);
|
|
24645
24653
|
const vendorReplace = (_match, prefix, specifier, suffix) => {
|
|
24654
|
+
if (!isRealImport(specifier))
|
|
24655
|
+
return _match;
|
|
24646
24656
|
const webPath = rewriter?.lookup.get(specifier);
|
|
24647
24657
|
return webPath ? `${prefix}${webPath}${suffix}` : _match;
|
|
24648
24658
|
};
|
|
@@ -24653,6 +24663,8 @@ ${stubs}
|
|
|
24653
24663
|
const stubReplace = (_match, prefix, specifier, suffix) => {
|
|
24654
24664
|
if (specifier.startsWith("/") || specifier.startsWith("."))
|
|
24655
24665
|
return _match;
|
|
24666
|
+
if (!isRealImport(specifier))
|
|
24667
|
+
return _match;
|
|
24656
24668
|
const resolved = resolveAbsoluteSpecifier(specifier, projectRoot);
|
|
24657
24669
|
if (resolved) {
|
|
24658
24670
|
return `${prefix}${srcUrl(resolved, projectRoot)}${suffix}`;
|
|
@@ -24662,9 +24674,9 @@ ${stubs}
|
|
|
24662
24674
|
result = result.replace(/^((?:import\s+[^"'`;]+?\s+from|export\s+[^"'`;]+?\s+from|import)\s*["'])([^"'./][^"']*)(["'])/gm, stubReplace);
|
|
24663
24675
|
result = result.replace(/(import\s*\(\s*["'])([^"'./][^"']*)(["']\s*\))/g, stubReplace);
|
|
24664
24676
|
const fileDir = dirname25(filePath);
|
|
24665
|
-
result = result.replace(/(from\s*["'])(\.\.?\/[^"']+)(["'])/g, (_match, prefix, relPath, suffix) => `${prefix}${resolveRelativeImport(relPath, fileDir, projectRoot, IMPORT_EXTENSIONS)}${suffix}`);
|
|
24666
|
-
result = result.replace(/(import\s*\(\s*["'])(\.\.?\/[^"']+)(["']\s*\))/g, (_match, prefix, relPath, suffix) => `${prefix}${resolveRelativeImport(relPath, fileDir, projectRoot, IMPORT_EXTENSIONS)}${suffix}`);
|
|
24667
|
-
result = result.replace(/(import\s*["'])(\.\.?\/[^"']+)(["']\s*;?)/g, (_match, prefix, relPath, suffix) => `${prefix}${resolveRelativeImport(relPath, fileDir, projectRoot, SIDE_EFFECT_EXTENSIONS)}${suffix}`);
|
|
24677
|
+
result = result.replace(/(from\s*["'])(\.\.?\/[^"']+)(["'])/g, (_match, prefix, relPath, suffix) => isRealImport(relPath) ? `${prefix}${resolveRelativeImport(relPath, fileDir, projectRoot, IMPORT_EXTENSIONS)}${suffix}` : _match);
|
|
24678
|
+
result = result.replace(/(import\s*\(\s*["'])(\.\.?\/[^"']+)(["']\s*\))/g, (_match, prefix, relPath, suffix) => isRealImport(relPath) ? `${prefix}${resolveRelativeImport(relPath, fileDir, projectRoot, IMPORT_EXTENSIONS)}${suffix}` : _match);
|
|
24679
|
+
result = result.replace(/(import\s*["'])(\.\.?\/[^"']+)(["']\s*;?)/g, (_match, prefix, relPath, suffix) => isRealImport(relPath) ? `${prefix}${resolveRelativeImport(relPath, fileDir, projectRoot, SIDE_EFFECT_EXTENSIONS)}${suffix}` : _match);
|
|
24668
24680
|
const rewriteAbsoluteToSrc = (_match, prefix, absPath, _ext, suffix) => {
|
|
24669
24681
|
if (absPath.startsWith(projectRoot)) {
|
|
24670
24682
|
const rel2 = relative16(projectRoot, absPath).replace(/\\/g, "/");
|
|
@@ -25387,6 +25399,7 @@ var init_moduleServer = __esm(() => {
|
|
|
25387
25399
|
".css"
|
|
25388
25400
|
]);
|
|
25389
25401
|
REACT_EXTENSIONS = new Set([".tsx", ".jsx"]);
|
|
25402
|
+
importScanTranspiler = new Bun.Transpiler({ loader: "tsx" });
|
|
25390
25403
|
mtimeCache = new Map;
|
|
25391
25404
|
NODE_BUILTIN_RE = /^(?:node:|(?:assert|async_hooks|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|http2|https|inspector|module|net|os|path|perf_hooks|process|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|trace_events|tty|url|util|v8|vm|wasi|worker_threads|zlib)(?:\/|$))/;
|
|
25392
25405
|
JSX_AUTO_RE = /\b(jsxDEV_[a-z0-9]+)\b/;
|
|
@@ -29185,5 +29198,5 @@ export {
|
|
|
29185
29198
|
build
|
|
29186
29199
|
};
|
|
29187
29200
|
|
|
29188
|
-
//# debugId=
|
|
29201
|
+
//# debugId=33368F6F6290584064756E2164756E21
|
|
29189
29202
|
//# sourceMappingURL=build.js.map
|