From b61c8a4d435500a622093cdaab9a3e43f5116b93 Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Mon, 27 Jan 2025 13:36:55 +0100 Subject: [PATCH 1/2] add exports and declare as type: "module" --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5614014..40401a3 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,14 @@ "main": "build/cjs/index.js", "typings": "build/cjs/index.d.ts", "module": "build/esm/index.js", + "exports": { + ".": { + "types": "./build/cjs/index.d.ts", + "import": "./build/esm/index.js", + "require": "./build/cjs/index.js" + } + }, + "type": "module", "files": [ "build", "LICENSE", @@ -47,4 +55,4 @@ "typescript": "^4.7.4" }, "packageManager": "yarn@4.1.1" -} +} \ No newline at end of file From 6cf379d2e70151c3bb93ea26f3d53dfcbd57eafe Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Mon, 27 Jan 2025 13:46:14 +0100 Subject: [PATCH 2/2] bump patch --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 40401a3..f61a617 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "evm-proxy-detection", - "version": "2.0.1", + "version": "2.0.2", "description": "Detect proxy contracts and their target addresses using an EIP-1193 compatible JSON-RPC request function", "repository": "https://github.com/abipub/evm-proxy-detection.git", "author": "Jan-Felix ",