@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 CHANGED
@@ -10975,7 +10975,7 @@ function requireDist () {
10975
10975
 
10976
10976
  var distExports = requireDist();
10977
10977
 
10978
- var version = "1.57.1";
10978
+ var version = "1.57.2";
10979
10979
  var PACKAGE = {
10980
10980
  version: version};
10981
10981
 
@@ -11589,6 +11589,9 @@ class AbstractRemote {
11589
11589
  if (!res.ok || !res.body) {
11590
11590
  const text = await res.text();
11591
11591
  this.logger.error(`Could not POST streaming to ${path} - ${res.status} - ${res.statusText}: ${text}`);
11592
+ if (res.status === 401) {
11593
+ this.invalidateCredentials();
11594
+ }
11592
11595
  const error = new Error(`HTTP ${res.statusText}: ${text}`);
11593
11596
  error.status = res.status;
11594
11597
  throw error;