@xyo-network/event-kit-node 2.2.0 → 2.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/node/index.mjs +4 -4
- package/dist/node/index.mjs.map +2 -2
- package/dist/node/runtime.mjs +2 -2
- package/dist/node/runtime.mjs.map +2 -2
- package/package.json +24 -24
package/dist/node/runtime.mjs
CHANGED
|
@@ -71,7 +71,7 @@ function createBoundedPublisherFetch(options = {}) {
|
|
|
71
71
|
if (chunk.done)
|
|
72
72
|
break;
|
|
73
73
|
const bytes = chunk.value;
|
|
74
|
-
if (!(bytes instanceof Uint8Array)) throw new
|
|
74
|
+
if (!(bytes instanceof Uint8Array)) throw new TypeError("Publisher HTTP body returned a non-byte chunk");
|
|
75
75
|
size += bytes.byteLength;
|
|
76
76
|
if (size > maximum) {
|
|
77
77
|
await reader.cancel();
|
|
@@ -1728,7 +1728,7 @@ async function openSqlitePublisherState(options) {
|
|
|
1728
1728
|
try {
|
|
1729
1729
|
const result = work();
|
|
1730
1730
|
if (result instanceof Promise)
|
|
1731
|
-
throw new
|
|
1731
|
+
throw new TypeError("Publisher state transactions must be synchronous");
|
|
1732
1732
|
database.exec("COMMIT");
|
|
1733
1733
|
return result;
|
|
1734
1734
|
} catch (error) {
|