@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 +0 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/worker/SharedSyncImplementation.umd.js +0 -15
- package/dist/worker/SharedSyncImplementation.umd.js.map +1 -1
- package/lib/src/db/adapters/LockedAsyncDatabaseAdapter.js +0 -15
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/db/adapters/LockedAsyncDatabaseAdapter.ts +0 -30
|
@@ -14112,15 +14112,11 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
|
|
|
14112
14112
|
const start = performance.now();
|
|
14113
14113
|
try {
|
|
14114
14114
|
const r = await originalExecute(sql, bindings);
|
|
14115
|
-
const duration = performance.now() - start;
|
|
14116
14115
|
performance.measure(`[SQL] ${sql}`, { start });
|
|
14117
|
-
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);
|
|
14118
14116
|
return r;
|
|
14119
14117
|
}
|
|
14120
14118
|
catch (e) {
|
|
14121
|
-
const duration = performance.now() - start;
|
|
14122
14119
|
performance.measure(`[SQL] [ERROR: ${e.message}] ${sql}`, { start });
|
|
14123
|
-
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);
|
|
14124
14120
|
throw e;
|
|
14125
14121
|
}
|
|
14126
14122
|
};
|
|
@@ -14360,17 +14356,6 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
|
|
|
14360
14356
|
};
|
|
14361
14357
|
};
|
|
14362
14358
|
}
|
|
14363
|
-
function durationStyle(duration) {
|
|
14364
|
-
if (duration < 30) {
|
|
14365
|
-
return 'color: grey; font-weight: normal';
|
|
14366
|
-
}
|
|
14367
|
-
else if (duration < 300) {
|
|
14368
|
-
return 'color: blue; font-weight: normal';
|
|
14369
|
-
}
|
|
14370
|
-
else {
|
|
14371
|
-
return 'color: red; font-weight: normal';
|
|
14372
|
-
}
|
|
14373
|
-
}
|
|
14374
14359
|
|
|
14375
14360
|
|
|
14376
14361
|
/***/ }),
|