@absolutejs/absolute 0.19.0-beta.369 → 0.19.0-beta.370
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/ai/client/index.js +71 -1
- package/dist/ai/client/index.js.map +5 -4
- package/dist/ai/index.js.map +2 -2
- package/dist/angular/components/core/streamingSlotRegistry.js +13 -9
- package/dist/angular/index.js +14 -10
- package/dist/angular/index.js.map +3 -3
- package/dist/index.js +14 -10
- package/dist/index.js.map +3 -3
- package/dist/react/index.js +14 -10
- package/dist/react/index.js.map +3 -3
- package/dist/src/ai/client/actions.d.ts +2 -2
- package/dist/src/ai/client/index.d.ts +2 -0
- package/dist/src/ai/index.d.ts +1 -1
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/types.d.ts +1 -1
- package/dist/svelte/index.js +14 -10
- package/dist/svelte/index.js.map +3 -3
- package/dist/vue/index.js +14 -10
- package/dist/vue/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -180412,23 +180412,27 @@ var registerStreamingSlot = (slot) => {
|
|
|
180412
180412
|
};
|
|
180413
180413
|
|
|
180414
180414
|
// src/core/streamingSlotRegistry.ts
|
|
180415
|
-
var
|
|
180415
|
+
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
180416
|
+
var getStorageGlobal = () => globalThis;
|
|
180416
180417
|
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
180417
180418
|
var ensureAsyncLocalStorage = async () => {
|
|
180418
|
-
|
|
180419
|
-
|
|
180419
|
+
const storageGlobal = getStorageGlobal();
|
|
180420
|
+
if (typeof storageGlobal[STREAMING_SLOT_STORAGE_KEY] !== "undefined") {
|
|
180421
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
180422
|
+
}
|
|
180420
180423
|
if (!isServerRuntime()) {
|
|
180421
|
-
|
|
180422
|
-
return
|
|
180424
|
+
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = null;
|
|
180425
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
180423
180426
|
}
|
|
180424
180427
|
const mod = await import("async_hooks");
|
|
180425
|
-
|
|
180426
|
-
return
|
|
180428
|
+
storageGlobal[STREAMING_SLOT_STORAGE_KEY] = new mod.AsyncLocalStorage;
|
|
180429
|
+
return storageGlobal[STREAMING_SLOT_STORAGE_KEY];
|
|
180427
180430
|
};
|
|
180428
180431
|
var registerStreamingSlot2 = (slot) => {
|
|
180429
|
-
|
|
180432
|
+
const storage = getStorageGlobal()[STREAMING_SLOT_STORAGE_KEY];
|
|
180433
|
+
if (!storage)
|
|
180430
180434
|
return;
|
|
180431
|
-
const store =
|
|
180435
|
+
const store = storage.getStore();
|
|
180432
180436
|
if (!store)
|
|
180433
180437
|
return;
|
|
180434
180438
|
store.set(slot.id, slot);
|
|
@@ -187419,5 +187423,5 @@ export {
|
|
|
187419
187423
|
ANGULAR_INIT_TIMEOUT_MS
|
|
187420
187424
|
};
|
|
187421
187425
|
|
|
187422
|
-
//# debugId=
|
|
187426
|
+
//# debugId=56839D95BBABD60C64756E2164756E21
|
|
187423
187427
|
//# sourceMappingURL=index.js.map
|