aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/package.json23
-rw-r--r--packages/taler-util/src/ReserveTransaction.ts2
-rw-r--r--packages/taler-util/tsconfig.json2
3 files changed, 10 insertions, 17 deletions
diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json
index 718447d7f..5f7befc3e 100644
--- a/packages/taler-util/package.json
+++ b/packages/taler-util/package.json
@@ -2,25 +2,18 @@
"name": "@gnu-taler/taler-util",
"version": "0.9.0-dev.1",
"description": "Generic helper functionality for GNU Taler",
- "module": "./lib/index.node.js",
- "main": "./lib/index.node.js",
- "browser": {
- "./lib/index.node.js": "./lib/index.browser.js"
- },
"type": "module",
"types": "./lib/index.node.d.ts",
- "typesVersions": {
- "*": {
- "lib/index.node.d.ts": [
- "lib/index.node.d.ts"
- ],
- "src/*": [],
- "*": []
- }
- },
"author": "Florian Dold",
"license": "AGPL-3.0-or-later",
"private": false,
+ "exports": {
+ ".": {
+ "node": "./lib/index.node.js",
+ "browser": "./lib/index.browser.js",
+ "default": "./lib/index.js"
+ }
+ },
"scripts": {
"prepare": "tsc",
"compile": "tsc",
@@ -38,7 +31,7 @@
},
"dependencies": {
"big-integer": "^1.6.51",
- "fflate": "^0.7.3",
+ "fflate": "^0.7.4",
"jed": "^1.1.1",
"tslib": "^2.4.0"
},
diff --git a/packages/taler-util/src/ReserveTransaction.ts b/packages/taler-util/src/ReserveTransaction.ts
index 50610483f..8f3e16da2 100644
--- a/packages/taler-util/src/ReserveTransaction.ts
+++ b/packages/taler-util/src/ReserveTransaction.ts
@@ -37,7 +37,7 @@ import {
EddsaSignatureString,
EddsaPublicKeyString,
CoinPublicKeyString,
-} from "./talerTypes";
+} from "./talerTypes.js";
import {
AbsoluteTime,
codecForTimestamp,
diff --git a/packages/taler-util/tsconfig.json b/packages/taler-util/tsconfig.json
index 30cb65e1d..cbf393f5a 100644
--- a/packages/taler-util/tsconfig.json
+++ b/packages/taler-util/tsconfig.json
@@ -6,7 +6,7 @@
"declarationMap": false,
"target": "ES6",
"module": "ESNext",
- "moduleResolution": "node",
+ "moduleResolution": "Node16",
"sourceMap": true,
"lib": ["es6"],
"types": ["node"],