aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-09-21 20:46:45 +0200
committerFlorian Dold <florian@dold.me>2022-09-21 22:50:42 +0200
commit7d6bcd42ea9efced6200cf94924aa38bed2dbb02 (patch)
tree54b2077512c7d098e558193392a7ac92a6d74d63 /packages/taler-wallet-core/src/util
parent5d31803c92ac085d50ab0942a6cf657a6cd9cc4b (diff)
downloadwallet-core-7d6bcd42ea9efced6200cf94924aa38bed2dbb02.tar.xz
wallet-core: use numeric status field to allow range queries
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r--packages/taler-wallet-core/src/util/invariants.ts7
-rw-r--r--packages/taler-wallet-core/src/util/query.ts2
2 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/util/invariants.ts b/packages/taler-wallet-core/src/util/invariants.ts
index b788d044e..3598d857c 100644
--- a/packages/taler-wallet-core/src/util/invariants.ts
+++ b/packages/taler-wallet-core/src/util/invariants.ts
@@ -14,6 +14,13 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
+export class InvariantViolatedError extends Error {
+ constructor(message?: string) {
+ super(message);
+ Object.setPrototypeOf(this, InvariantViolatedError.prototype);
+ }
+}
+
/**
* Helpers for invariants.
*/
diff --git a/packages/taler-wallet-core/src/util/query.ts b/packages/taler-wallet-core/src/util/query.ts
index d1aae6fd6..3d4ff79cb 100644
--- a/packages/taler-wallet-core/src/util/query.ts
+++ b/packages/taler-wallet-core/src/util/query.ts
@@ -36,8 +36,6 @@ import {
IDBKeyRange,
} from "@gnu-taler/idb-bridge";
import { Logger } from "@gnu-taler/taler-util";
-import { performanceNow } from "./timer.js";
-import { access } from "fs";
const logger = new Logger("query.ts");