@absolutejs/absolute 0.19.0-beta.375 → 0.19.0-beta.377
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/browser.js +11 -13
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/index.js +56 -56
- package/dist/angular/index.js.map +5 -5
- package/dist/core/streamingSlotRegistrar.js +96 -0
- package/dist/core/streamingSlotRegistrar.js.map +10 -0
- package/dist/core/streamingSlotRegistry.js +140 -0
- package/dist/core/streamingSlotRegistry.js.map +11 -0
- package/dist/index.js +56 -56
- package/dist/index.js.map +5 -5
- package/dist/react/components/browser/index.js +10 -77
- package/dist/react/components/index.js +11 -11
- package/dist/react/components/index.js.map +4 -4
- package/dist/react/index.js +56 -56
- package/dist/react/index.js.map +5 -5
- package/dist/src/react/components/StreamSlot.browser.d.ts +10 -0
- package/dist/src/react/components/SuspenseSlot.browser.d.ts +22 -0
- package/dist/src/react/components/browser/index.d.ts +5 -0
- package/dist/src/svelte/browser.d.ts +0 -3
- package/dist/src/svelte/index.d.ts +0 -3
- package/dist/svelte/browser.js +2 -11
- package/dist/svelte/browser.js.map +3 -3
- package/dist/svelte/index.js +57 -66
- package/dist/svelte/index.js.map +6 -6
- package/dist/vue/components/index.js +7 -9
- package/dist/vue/components/index.js.map +4 -4
- package/dist/vue/index.js +52 -54
- package/dist/vue/index.js.map +5 -5
- package/package.json +5 -1
- package/dist/AwaitSlot-yd9jtwpr.svelte +0 -39
- package/dist/Island-hn6g4vxm.svelte +0 -71
- package/dist/StreamSlot-kyee4w0z.svelte +0 -35
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
13
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
21
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __toCommonJS = (from) => {
|
|
34
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
35
|
+
if (entry)
|
|
36
|
+
return entry;
|
|
37
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
38
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
+
for (var key of __getOwnPropNames(from))
|
|
40
|
+
if (!__hasOwnProp.call(entry, key))
|
|
41
|
+
__defProp(entry, key, {
|
|
42
|
+
get: __accessProp.bind(from, key),
|
|
43
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
__moduleCache.set(from, entry);
|
|
47
|
+
return entry;
|
|
48
|
+
};
|
|
49
|
+
var __moduleCache;
|
|
50
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
51
|
+
var __returnValue = (v) => v;
|
|
52
|
+
function __exportSetter(name, newValue) {
|
|
53
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
54
|
+
}
|
|
55
|
+
var __export = (target, all) => {
|
|
56
|
+
for (var name in all)
|
|
57
|
+
__defProp(target, name, {
|
|
58
|
+
get: all[name],
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
set: __exportSetter.bind(all, name)
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
65
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
66
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
67
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
68
|
+
else
|
|
69
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
70
|
+
if (d = decorators[i])
|
|
71
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
72
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
73
|
+
};
|
|
74
|
+
var __legacyMetadataTS = (k, v) => {
|
|
75
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
+
return Reflect.metadata(k, v);
|
|
77
|
+
};
|
|
78
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
79
|
+
var __require = import.meta.require;
|
|
80
|
+
|
|
81
|
+
// src/core/streamingSlotRegistrar.ts
|
|
82
|
+
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
83
|
+
var getRegistrarGlobal = () => globalThis;
|
|
84
|
+
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
85
|
+
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY] = nextRegistrar;
|
|
86
|
+
};
|
|
87
|
+
var registerStreamingSlot = (slot) => {
|
|
88
|
+
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY]?.(slot);
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
setStreamingSlotRegistrar,
|
|
92
|
+
registerStreamingSlot
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
//# debugId=FFEEBEFFA542E77764756E2164756E21
|
|
96
|
+
//# sourceMappingURL=streamingSlotRegistrar.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/core/streamingSlotRegistrar.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { StreamingSlot } from '../utils/streamingSlots';\n\ntype StreamingSlotRegistrar = (slot: StreamingSlot) => void;\n\nconst STREAMING_SLOT_REGISTRAR_KEY = Symbol.for(\n\t'absolutejs.streamingSlotRegistrar'\n);\ntype StreamingSlotRegistrarGlobal = typeof globalThis & {\n\t[STREAMING_SLOT_REGISTRAR_KEY]?: StreamingSlotRegistrar | null;\n};\n\nconst getRegistrarGlobal = () => globalThis as StreamingSlotRegistrarGlobal;\n\nexport const setStreamingSlotRegistrar = (\n\tnextRegistrar: StreamingSlotRegistrar | null\n) => {\n\tgetRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY] = nextRegistrar;\n};\n\nexport const registerStreamingSlot = (slot: StreamingSlot) => {\n\tgetRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY]?.(slot);\n};\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,+BAA+B,OAAO,IAC3C,mCACD;AAKA,IAAM,qBAAqB,MAAM;AAE1B,IAAM,4BAA4B,CACxC,kBACI;AAAA,EACJ,mBAAmB,EAAE,gCAAgC;AAAA;AAG/C,IAAM,wBAAwB,CAAC,SAAwB;AAAA,EAC7D,mBAAmB,EAAE,gCAAgC,IAAI;AAAA;",
|
|
8
|
+
"debugId": "FFEEBEFFA542E77764756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
13
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
21
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __toCommonJS = (from) => {
|
|
34
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
35
|
+
if (entry)
|
|
36
|
+
return entry;
|
|
37
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
38
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
+
for (var key of __getOwnPropNames(from))
|
|
40
|
+
if (!__hasOwnProp.call(entry, key))
|
|
41
|
+
__defProp(entry, key, {
|
|
42
|
+
get: __accessProp.bind(from, key),
|
|
43
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
__moduleCache.set(from, entry);
|
|
47
|
+
return entry;
|
|
48
|
+
};
|
|
49
|
+
var __moduleCache;
|
|
50
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
51
|
+
var __returnValue = (v) => v;
|
|
52
|
+
function __exportSetter(name, newValue) {
|
|
53
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
54
|
+
}
|
|
55
|
+
var __export = (target, all) => {
|
|
56
|
+
for (var name in all)
|
|
57
|
+
__defProp(target, name, {
|
|
58
|
+
get: all[name],
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
set: __exportSetter.bind(all, name)
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
65
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
66
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
67
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
68
|
+
else
|
|
69
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
70
|
+
if (d = decorators[i])
|
|
71
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
72
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
73
|
+
};
|
|
74
|
+
var __legacyMetadataTS = (k, v) => {
|
|
75
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
+
return Reflect.metadata(k, v);
|
|
77
|
+
};
|
|
78
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
79
|
+
var __require = import.meta.require;
|
|
80
|
+
|
|
81
|
+
// src/core/streamingSlotRegistrar.ts
|
|
82
|
+
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
83
|
+
var getRegistrarGlobal = () => globalThis;
|
|
84
|
+
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
85
|
+
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY] = nextRegistrar;
|
|
86
|
+
};
|
|
87
|
+
var registerStreamingSlot = (slot) => {
|
|
88
|
+
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY]?.(slot);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// src/core/streamingSlotRegistry.ts
|
|
92
|
+
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
93
|
+
var getStorageGlobal = () => globalThis;
|
|
94
|
+
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
95
|
+
var ensureAsyncLocalStorage = async () => {
|
|
96
|
+
const storageGlobal = getStorageGlobal();
|
|
97
|
+
if (typeof storageGlobal[STREAMING_SLOT_STORAGE_KEY] !== "undefined") {
|
|
98
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
99
|
+
}
|
|
100
|
+
if (!isServerRuntime()) {
|
|
101
|
+
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = null;
|
|
102
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
103
|
+
}
|
|
104
|
+
const mod = await import("async_hooks");
|
|
105
|
+
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = new mod.AsyncLocalStorage;
|
|
106
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
107
|
+
};
|
|
108
|
+
var registerStreamingSlot2 = (slot) => {
|
|
109
|
+
const storage = getStorageGlobal()[STREAMING_SLOT_STORAGE_KEY];
|
|
110
|
+
if (!storage)
|
|
111
|
+
return;
|
|
112
|
+
const store = storage.getStore();
|
|
113
|
+
if (!store)
|
|
114
|
+
return;
|
|
115
|
+
store.set(slot.id, slot);
|
|
116
|
+
};
|
|
117
|
+
setStreamingSlotRegistrar(registerStreamingSlot2);
|
|
118
|
+
var runWithStreamingSlotRegistry = async (task) => {
|
|
119
|
+
const storage = await ensureAsyncLocalStorage();
|
|
120
|
+
if (!storage) {
|
|
121
|
+
return {
|
|
122
|
+
result: await task(),
|
|
123
|
+
slots: []
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
return storage.run(new Map, async () => {
|
|
127
|
+
const result = await task();
|
|
128
|
+
const store = storage.getStore();
|
|
129
|
+
return {
|
|
130
|
+
result,
|
|
131
|
+
slots: store ? [...store.values()] : []
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
export {
|
|
136
|
+
runWithStreamingSlotRegistry
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
//# debugId=3B93EBA78951E67B64756E2164756E21
|
|
140
|
+
//# sourceMappingURL=streamingSlotRegistry.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/core/streamingSlotRegistrar.ts", "../src/core/streamingSlotRegistry.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { StreamingSlot } from '../utils/streamingSlots';\n\ntype StreamingSlotRegistrar = (slot: StreamingSlot) => void;\n\nconst STREAMING_SLOT_REGISTRAR_KEY = Symbol.for(\n\t'absolutejs.streamingSlotRegistrar'\n);\ntype StreamingSlotRegistrarGlobal = typeof globalThis & {\n\t[STREAMING_SLOT_REGISTRAR_KEY]?: StreamingSlotRegistrar | null;\n};\n\nconst getRegistrarGlobal = () => globalThis as StreamingSlotRegistrarGlobal;\n\nexport const setStreamingSlotRegistrar = (\n\tnextRegistrar: StreamingSlotRegistrar | null\n) => {\n\tgetRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY] = nextRegistrar;\n};\n\nexport const registerStreamingSlot = (slot: StreamingSlot) => {\n\tgetRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY]?.(slot);\n};\n",
|
|
6
|
+
"import type { StreamingSlot } from '../utils/streamingSlots';\nimport { setStreamingSlotRegistrar } from './streamingSlotRegistrar';\n\ntype SlotStore = Map<string, StreamingSlot>;\ntype AsyncLocalStorageType =\n\timport('node:async_hooks').AsyncLocalStorage<SlotStore>;\n\nconst STREAMING_SLOT_STORAGE_KEY = Symbol.for(\n\t'absolutejs.streamingSlotAsyncLocalStorage'\n);\ntype StreamingSlotStorageGlobal = typeof globalThis & {\n\t[STREAMING_SLOT_STORAGE_KEY]?: AsyncLocalStorageType | null;\n};\n\nconst getStorageGlobal = () => globalThis as StreamingSlotStorageGlobal;\n\nconst isServerRuntime = () =>\n\ttypeof process !== 'undefined' &&\n\ttypeof process.versions?.node === 'string';\n\nconst ensureAsyncLocalStorage = async () => {\n\tconst storageGlobal = getStorageGlobal();\n\tif (typeof storageGlobal[STREAMING_SLOT_STORAGE_KEY] !== 'undefined') {\n\t\treturn storageGlobal[STREAMING_SLOT_STORAGE_KEY];\n\t}\n\tif (!isServerRuntime()) {\n\t\tstorageGlobal[STREAMING_SLOT_STORAGE_KEY] = null;\n\n\t\treturn storageGlobal[STREAMING_SLOT_STORAGE_KEY];\n\t}\n\n\tconst mod = await import('node:async_hooks');\n\tstorageGlobal[STREAMING_SLOT_STORAGE_KEY] =\n\t\tnew mod.AsyncLocalStorage<SlotStore>();\n\n\treturn storageGlobal[STREAMING_SLOT_STORAGE_KEY];\n};\n\nconst registerStreamingSlot = (slot: StreamingSlot) => {\n\tconst storage = getStorageGlobal()[STREAMING_SLOT_STORAGE_KEY];\n\tif (!storage) return;\n\tconst store = storage.getStore();\n\tif (!store) return;\n\tstore.set(slot.id, slot);\n};\n\nsetStreamingSlotRegistrar(registerStreamingSlot);\n\nexport const runWithStreamingSlotRegistry = async <T>(\n\ttask: () => Promise<T> | T\n) => {\n\tconst storage = await ensureAsyncLocalStorage();\n\tif (!storage) {\n\t\treturn {\n\t\t\tresult: await task(),\n\t\t\tslots: [] as StreamingSlot[]\n\t\t};\n\t}\n\n\treturn storage.run(new Map<string, StreamingSlot>(), async () => {\n\t\tconst result = await task();\n\t\tconst store = storage.getStore();\n\n\t\treturn {\n\t\t\tresult,\n\t\t\tslots: store ? [...store.values()] : []\n\t\t};\n\t});\n};\n"
|
|
7
|
+
],
|
|
8
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,+BAA+B,OAAO,IAC3C,mCACD;AAKA,IAAM,qBAAqB,MAAM;AAE1B,IAAM,4BAA4B,CACxC,kBACI;AAAA,EACJ,mBAAmB,EAAE,gCAAgC;AAAA;AAG/C,IAAM,wBAAwB,CAAC,SAAwB;AAAA,EAC7D,mBAAmB,EAAE,gCAAgC,IAAI;AAAA;;;ACb1D,IAAM,6BAA6B,OAAO,IACzC,2CACD;AAKA,IAAM,mBAAmB,MAAM;AAE/B,IAAM,kBAAkB,MACvB,OAAO,YAAY,eACnB,OAAO,QAAQ,UAAU,SAAS;AAEnC,IAAM,0BAA0B,YAAY;AAAA,EAC3C,MAAM,gBAAgB,iBAAiB;AAAA,EACvC,IAAI,OAAO,cAAc,gCAAgC,aAAa;AAAA,IACrE,OAAO,cAAc;AAAA,EACtB;AAAA,EACA,IAAI,CAAC,gBAAgB,GAAG;AAAA,IACvB,cAAc,8BAA8B;AAAA,IAE5C,OAAO,cAAc;AAAA,EACtB;AAAA,EAEA,MAAM,MAAM,MAAa;AAAA,EACzB,cAAc,8BACb,IAAI,IAAI;AAAA,EAET,OAAO,cAAc;AAAA;AAGtB,IAAM,yBAAwB,CAAC,SAAwB;AAAA,EACtD,MAAM,UAAU,iBAAiB,EAAE;AAAA,EACnC,IAAI,CAAC;AAAA,IAAS;AAAA,EACd,MAAM,QAAQ,QAAQ,SAAS;AAAA,EAC/B,IAAI,CAAC;AAAA,IAAO;AAAA,EACZ,MAAM,IAAI,KAAK,IAAI,IAAI;AAAA;AAGxB,0BAA0B,sBAAqB;AAExC,IAAM,+BAA+B,OAC3C,SACI;AAAA,EACJ,MAAM,UAAU,MAAM,wBAAwB;AAAA,EAC9C,IAAI,CAAC,SAAS;AAAA,IACb,OAAO;AAAA,MACN,QAAQ,MAAM,KAAK;AAAA,MACnB,OAAO,CAAC;AAAA,IACT;AAAA,EACD;AAAA,EAEA,OAAO,QAAQ,IAAI,IAAI,KAA8B,YAAY;AAAA,IAChE,MAAM,SAAS,MAAM,KAAK;AAAA,IAC1B,MAAM,QAAQ,QAAQ,SAAS;AAAA,IAE/B,OAAO;AAAA,MACN;AAAA,MACA,OAAO,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC;AAAA,IACvC;AAAA,GACA;AAAA;",
|
|
9
|
+
"debugId": "3B93EBA78951E67B64756E2164756E21",
|
|
10
|
+
"names": []
|
|
11
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -179932,6 +179932,61 @@ var init_devCert = __esm(() => {
|
|
|
179932
179932
|
KEY_PATH = join24(CERT_DIR, "key.pem");
|
|
179933
179933
|
});
|
|
179934
179934
|
|
|
179935
|
+
// src/core/streamingSlotRegistrar.ts
|
|
179936
|
+
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
179937
|
+
var getRegistrarGlobal = () => globalThis;
|
|
179938
|
+
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
179939
|
+
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY] = nextRegistrar;
|
|
179940
|
+
};
|
|
179941
|
+
var registerStreamingSlot = (slot) => {
|
|
179942
|
+
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY]?.(slot);
|
|
179943
|
+
};
|
|
179944
|
+
|
|
179945
|
+
// src/core/streamingSlotRegistry.ts
|
|
179946
|
+
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
179947
|
+
var getStorageGlobal = () => globalThis;
|
|
179948
|
+
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
179949
|
+
var ensureAsyncLocalStorage = async () => {
|
|
179950
|
+
const storageGlobal = getStorageGlobal();
|
|
179951
|
+
if (typeof storageGlobal[STREAMING_SLOT_STORAGE_KEY] !== "undefined") {
|
|
179952
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
179953
|
+
}
|
|
179954
|
+
if (!isServerRuntime()) {
|
|
179955
|
+
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = null;
|
|
179956
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
179957
|
+
}
|
|
179958
|
+
const mod = await import("async_hooks");
|
|
179959
|
+
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = new mod.AsyncLocalStorage;
|
|
179960
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
179961
|
+
};
|
|
179962
|
+
var registerStreamingSlot2 = (slot) => {
|
|
179963
|
+
const storage = getStorageGlobal()[STREAMING_SLOT_STORAGE_KEY];
|
|
179964
|
+
if (!storage)
|
|
179965
|
+
return;
|
|
179966
|
+
const store = storage.getStore();
|
|
179967
|
+
if (!store)
|
|
179968
|
+
return;
|
|
179969
|
+
store.set(slot.id, slot);
|
|
179970
|
+
};
|
|
179971
|
+
setStreamingSlotRegistrar(registerStreamingSlot2);
|
|
179972
|
+
var runWithStreamingSlotRegistry = async (task) => {
|
|
179973
|
+
const storage = await ensureAsyncLocalStorage();
|
|
179974
|
+
if (!storage) {
|
|
179975
|
+
return {
|
|
179976
|
+
result: await task(),
|
|
179977
|
+
slots: []
|
|
179978
|
+
};
|
|
179979
|
+
}
|
|
179980
|
+
return storage.run(new Map, async () => {
|
|
179981
|
+
const result = await task();
|
|
179982
|
+
const store = storage.getStore();
|
|
179983
|
+
return {
|
|
179984
|
+
result,
|
|
179985
|
+
slots: store ? [...store.values()] : []
|
|
179986
|
+
};
|
|
179987
|
+
});
|
|
179988
|
+
};
|
|
179989
|
+
|
|
179935
179990
|
// src/client/streamSwap.ts
|
|
179936
179991
|
var streamSwapRuntime = () => {
|
|
179937
179992
|
if (window.__ABS_SLOT_RUNTIME__ === true)
|
|
@@ -180421,61 +180476,6 @@ var appendStreamingSlotPatchesToStream = (stream, slots = [], {
|
|
|
180421
180476
|
});
|
|
180422
180477
|
};
|
|
180423
180478
|
|
|
180424
|
-
// src/core/streamingSlotRegistrar.ts
|
|
180425
|
-
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
180426
|
-
var getRegistrarGlobal = () => globalThis;
|
|
180427
|
-
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
180428
|
-
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY] = nextRegistrar;
|
|
180429
|
-
};
|
|
180430
|
-
var registerStreamingSlot = (slot) => {
|
|
180431
|
-
getRegistrarGlobal()[STREAMING_SLOT_REGISTRAR_KEY]?.(slot);
|
|
180432
|
-
};
|
|
180433
|
-
|
|
180434
|
-
// src/core/streamingSlotRegistry.ts
|
|
180435
|
-
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
180436
|
-
var getStorageGlobal = () => globalThis;
|
|
180437
|
-
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
180438
|
-
var ensureAsyncLocalStorage = async () => {
|
|
180439
|
-
const storageGlobal = getStorageGlobal();
|
|
180440
|
-
if (typeof storageGlobal[STREAMING_SLOT_STORAGE_KEY] !== "undefined") {
|
|
180441
|
-
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
180442
|
-
}
|
|
180443
|
-
if (!isServerRuntime()) {
|
|
180444
|
-
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = null;
|
|
180445
|
-
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
180446
|
-
}
|
|
180447
|
-
const mod = await import("async_hooks");
|
|
180448
|
-
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = new mod.AsyncLocalStorage;
|
|
180449
|
-
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
180450
|
-
};
|
|
180451
|
-
var registerStreamingSlot2 = (slot) => {
|
|
180452
|
-
const storage = getStorageGlobal()[STREAMING_SLOT_STORAGE_KEY];
|
|
180453
|
-
if (!storage)
|
|
180454
|
-
return;
|
|
180455
|
-
const store = storage.getStore();
|
|
180456
|
-
if (!store)
|
|
180457
|
-
return;
|
|
180458
|
-
store.set(slot.id, slot);
|
|
180459
|
-
};
|
|
180460
|
-
setStreamingSlotRegistrar(registerStreamingSlot2);
|
|
180461
|
-
var runWithStreamingSlotRegistry = async (task) => {
|
|
180462
|
-
const storage = await ensureAsyncLocalStorage();
|
|
180463
|
-
if (!storage) {
|
|
180464
|
-
return {
|
|
180465
|
-
result: await task(),
|
|
180466
|
-
slots: []
|
|
180467
|
-
};
|
|
180468
|
-
}
|
|
180469
|
-
return storage.run(new Map, async () => {
|
|
180470
|
-
const result = await task();
|
|
180471
|
-
const store = storage.getStore();
|
|
180472
|
-
return {
|
|
180473
|
-
result,
|
|
180474
|
-
slots: store ? [...store.values()] : []
|
|
180475
|
-
};
|
|
180476
|
-
});
|
|
180477
|
-
};
|
|
180478
|
-
|
|
180479
180479
|
// src/core/responseEnhancers.ts
|
|
180480
180480
|
var toResponse = async (responseLike) => await responseLike;
|
|
180481
180481
|
var cloneHeaders = (response) => {
|
|
@@ -187443,5 +187443,5 @@ export {
|
|
|
187443
187443
|
ANGULAR_INIT_TIMEOUT_MS
|
|
187444
187444
|
};
|
|
187445
187445
|
|
|
187446
|
-
//# debugId=
|
|
187446
|
+
//# debugId=03E808908A891BB364756E2164756E21
|
|
187447
187447
|
//# sourceMappingURL=index.js.map
|