@powersync/web 0.0.0-dev-20251106124255 → 0.0.0-dev-20251111122755

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.umd.js CHANGED
@@ -38737,15 +38737,11 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
38737
38737
  const start = performance.now();
38738
38738
  try {
38739
38739
  const r = await originalExecute(sql, bindings);
38740
- const duration = performance.now() - start;
38741
38740
  performance.measure(`[SQL] ${sql}`, { start });
38742
- console.log('%c[SQL] %c%s %c%s', 'color: grey; font-weight: normal', durationStyle(duration), `[${duration.toFixed(1)}ms]`, 'color: grey; font-weight: normal', sql);
38743
38741
  return r;
38744
38742
  }
38745
38743
  catch (e) {
38746
- const duration = performance.now() - start;
38747
38744
  performance.measure(`[SQL] [ERROR: ${e.message}] ${sql}`, { start });
38748
- console.error('%c[SQL] %c%s %c%s %c%s', 'color: grey; font-weight: normal', 'color: red; font-weight: normal', `[ERROR: ${e.message}]`, durationStyle(duration), `[${duration.toFixed(1)}ms]`, 'color: grey; font-weight: normal', sql);
38749
38745
  throw e;
38750
38746
  }
38751
38747
  };
@@ -38985,17 +38981,6 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
38985
38981
  };
38986
38982
  };
38987
38983
  }
38988
- function durationStyle(duration) {
38989
- if (duration < 30) {
38990
- return 'color: grey; font-weight: normal';
38991
- }
38992
- else if (duration < 300) {
38993
- return 'color: blue; font-weight: normal';
38994
- }
38995
- else {
38996
- return 'color: red; font-weight: normal';
38997
- }
38998
- }
38999
38984
 
39000
38985
 
39001
38986
  /***/ }),