@inflector/aura 0.2.8 → 0.2.9
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/bin.d.ts.map +1 -1
- package/dist/bin.js +4 -3
- package/package.json +1 -1
package/dist/bin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AA+KA,wBAAgB,KAAK,CAAC,MAAM,UAAQ,
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AA+KA,wBAAgB,KAAK,CAAC,MAAM,UAAQ,QA2CnC;AA0aD,wBAAsB,GAAG,kBAsExB"}
|
package/dist/bin.js
CHANGED
|
@@ -159,11 +159,12 @@ export function build(silent = false) {
|
|
|
159
159
|
try {
|
|
160
160
|
const folder = join(process.cwd(), "Aura", "Functions");
|
|
161
161
|
const structure = scanFolderWithTypes(folder);
|
|
162
|
+
// IMPORTANT:
|
|
163
|
+
// - SSEHandler is NOT generic
|
|
164
|
+
// - Client exposes parsed data, not raw SSE events
|
|
162
165
|
const header = `
|
|
163
|
-
import type { SSEHandler } from "@inflector/aura";
|
|
164
|
-
|
|
165
166
|
export type SSEStream<T> = {
|
|
166
|
-
onMessage(cb:
|
|
167
|
+
onMessage(cb: (data: T) => void): Promise<void>;
|
|
167
168
|
abort(): void;
|
|
168
169
|
};
|
|
169
170
|
|