@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 CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AA+KA,wBAAgB,KAAK,CAAC,MAAM,UAAQ,QA0CnC;AAyaD,wBAAsB,GAAG,kBAsExB"}
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: SSEHandler<T>): Promise<void>;
167
+ onMessage(cb: (data: T) => void): Promise<void>;
167
168
  abort(): void;
168
169
  };
169
170
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/aura",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",