@powersync/common 1.57.1 → 1.57.2
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/bundle.cjs +4 -1
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.mjs +4 -1
- package/dist/bundle.mjs.map +1 -1
- package/dist/bundle.node.cjs +4 -1
- package/dist/bundle.node.cjs.map +1 -1
- package/dist/bundle.node.mjs +4 -1
- package/dist/bundle.node.mjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/lib/client/sync/stream/AbstractRemote.d.ts +2 -2
- package/lib/client/sync/stream/AbstractRemote.js +3 -0
- package/lib/client/sync/stream/AbstractRemote.js.map +1 -1
- package/lib/utils/Logger.d.ts +7 -7
- package/lib/utils/Logger.js.map +1 -1
- package/package.json +1 -1
- package/src/client/sync/stream/AbstractRemote.ts +5 -1
- package/src/utils/Logger.ts +9 -1
package/dist/bundle.node.mjs
CHANGED
|
@@ -8604,7 +8604,7 @@ function requireDist () {
|
|
|
8604
8604
|
|
|
8605
8605
|
var distExports = requireDist();
|
|
8606
8606
|
|
|
8607
|
-
var version = "1.57.
|
|
8607
|
+
var version = "1.57.2";
|
|
8608
8608
|
var PACKAGE = {
|
|
8609
8609
|
version: version};
|
|
8610
8610
|
|
|
@@ -9218,6 +9218,9 @@ class AbstractRemote {
|
|
|
9218
9218
|
if (!res.ok || !res.body) {
|
|
9219
9219
|
const text = await res.text();
|
|
9220
9220
|
this.logger.error(`Could not POST streaming to ${path} - ${res.status} - ${res.statusText}: ${text}`);
|
|
9221
|
+
if (res.status === 401) {
|
|
9222
|
+
this.invalidateCredentials();
|
|
9223
|
+
}
|
|
9221
9224
|
const error = new Error(`HTTP ${res.statusText}: ${text}`);
|
|
9222
9225
|
error.status = res.status;
|
|
9223
9226
|
throw error;
|