From 7f86382e950c227043620c8f0ad1797643ea848e Mon Sep 17 00:00:00 2001 From: Akamig Date: Mon, 30 Oct 2023 15:12:08 +0900 Subject: [PATCH] Update Nanobundle 1.6.0 --- @planetarium/account-aws-kms/package.json | 2 +- .../account-web3-secret-storage/package.json | 2 +- @planetarium/account/package.json | 2 +- @planetarium/tx/package.json | 18 ++++++++++++------ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/@planetarium/account-aws-kms/package.json b/@planetarium/account-aws-kms/package.json index 4220ebe11d8..0210e9a7ed3 100644 --- a/@planetarium/account-aws-kms/package.json +++ b/@planetarium/account-aws-kms/package.json @@ -37,7 +37,7 @@ "@vitest/coverage-c8": "^0.29.3", "@vitest/ui": "^0.29.3", "es-aggregate-error": "^1.0.9", - "nanobundle": "^1.5.0", + "nanobundle": "^1.6.0", "vite": "^4.1.1", "vitest": "^0.29.3" }, diff --git a/@planetarium/account-web3-secret-storage/package.json b/@planetarium/account-web3-secret-storage/package.json index 9be98d3cd9a..63263ce5f31 100644 --- a/@planetarium/account-web3-secret-storage/package.json +++ b/@planetarium/account-web3-secret-storage/package.json @@ -56,7 +56,7 @@ "@vitest/coverage-c8": "^0.29.2", "@vitest/ui": "^0.29.2", "fast-check": "^3.8.0", - "nanobundle": "^1.5.0", + "nanobundle": "^1.6.0", "stream-buffers": "^3.0.2", "vite": "^4.1.4", "vitest": "^0.29.2" diff --git a/@planetarium/account/package.json b/@planetarium/account/package.json index c48ce548b9d..29e2ca667a3 100644 --- a/@planetarium/account/package.json +++ b/@planetarium/account/package.json @@ -41,7 +41,7 @@ "@vitest/coverage-c8": "^0.29.2", "@vitest/ui": "^0.29.2", "fast-check": "^3.1.2", - "nanobundle": "^1.5.0", + "nanobundle": "^1.6.0", "vite": "^4.1.1", "vitest": "^0.29.2" }, diff --git a/@planetarium/tx/package.json b/@planetarium/tx/package.json index 2c5f376e6da..a9d2c4f0b82 100644 --- a/@planetarium/tx/package.json +++ b/@planetarium/tx/package.json @@ -4,6 +4,12 @@ "description": "Creating Libplanet transactions from JavaScript/TypeScript", "type": "module", "main": "./dist/index.js", + "imports": { + "#crypto": { + "node": "./src/webcrypto/crypto.ts", + "default": "./src/webcrypto/cryptoNode.ts" + } + }, "exports": { ".": { "types": "./dist/index.d.ts", @@ -11,13 +17,13 @@ "require": "./dist/index.cjs" }, "./webcrypto/crypto": { - "types": "./webcrypto/crypto.d.ts", + "types": "./src/webcrypto/crypto.d.ts", "node": { - "import": "./esm/webcrypto/cryptoNode.js", - "default": "./webcrypto/cryptoNode.js" + "import": "./src/webcrypto/cryptoNode.js", + "default": "./src/webcrypto/cryptoNode.cjs" }, - "import": "./esm/webcrypto/crypto.js", - "default": "./webcrypto/crypto.js" + "import": "./src/webcrypto/crypto.js", + "default": "./src/webcrypto/crypto.cjs" } }, "browser": { @@ -59,7 +65,7 @@ "@vitest/ui": "^0.29.2", "execa": "^6.1.0", "fast-check": "^3.1.2", - "nanobundle": "^1.5.0", + "nanobundle": "^1.6.0", "vite": "^4.1.3", "vitest": "^0.29.2" },