@flue/client 0.0.15 → 0.0.16

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -90,12 +90,12 @@ function transformEvent(raw) {
90
90
  return null;
91
91
  }
92
92
  if (part.type === "text") {
93
- const delta = raw.properties?.delta;
94
- if (delta) return {
93
+ const text = raw.properties?.delta ?? part.text;
94
+ if (text) return {
95
95
  timestamp: now,
96
96
  sessionId,
97
97
  type: "text",
98
- text: delta
98
+ text
99
99
  };
100
100
  return null;
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flue/client",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "exports": {