@electric-sql/client 1.2.0 → 1.2.1
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/cjs/index.cjs +4 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +34 -3
- package/dist/index.browser.mjs +2 -2
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.ts +34 -3
- package/dist/index.legacy-esm.js +4 -1
- package/dist/index.legacy-esm.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +7 -1
- package/src/types.ts +33 -2
package/dist/index.mjs
CHANGED
|
@@ -1660,10 +1660,13 @@ requestShapeSSE_fn = function(opts) {
|
|
|
1660
1660
|
const { fetchUrl, requestAbortController, headers } = opts;
|
|
1661
1661
|
const fetch2 = __privateGet(this, _sseFetchClient);
|
|
1662
1662
|
__privateSet(this, _lastSseConnectionStartTime, Date.now());
|
|
1663
|
+
const sseHeaders = __spreadProps(__spreadValues({}, headers), {
|
|
1664
|
+
Accept: `text/event-stream`
|
|
1665
|
+
});
|
|
1663
1666
|
try {
|
|
1664
1667
|
let buffer = [];
|
|
1665
1668
|
yield fetchEventSource(fetchUrl.toString(), {
|
|
1666
|
-
headers,
|
|
1669
|
+
headers: sseHeaders,
|
|
1667
1670
|
fetch: fetch2,
|
|
1668
1671
|
onopen: (response) => __async(this, null, function* () {
|
|
1669
1672
|
__privateSet(this, _connected, true);
|