@ai-accounts/ts-core 0.3.3 → 0.3.5

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/index.cjs CHANGED
@@ -43,7 +43,7 @@ async function* parseSseLoginEvents(response) {
43
43
  while (true) {
44
44
  const { value, done } = await reader.read();
45
45
  if (done) break;
46
- buffer += decoder.decode(value, { stream: true });
46
+ buffer += decoder.decode(value, { stream: true }).replace(/\r\n/g, "\n");
47
47
  while (true) {
48
48
  const sep = buffer.indexOf("\n\n");
49
49
  if (sep === -1) break;
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ async function* parseSseLoginEvents(response) {
12
12
  while (true) {
13
13
  const { value, done } = await reader.read();
14
14
  if (done) break;
15
- buffer += decoder.decode(value, { stream: true });
15
+ buffer += decoder.decode(value, { stream: true }).replace(/\r\n/g, "\n");
16
16
  while (true) {
17
17
  const sep = buffer.indexOf("\n\n");
18
18
  if (sep === -1) break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-accounts/ts-core",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Framework-agnostic TypeScript client and protocol for ai-accounts",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",