From 6223563845b409619cf27af98995bbdd06fe658f Mon Sep 17 00:00:00 2001 From: Alice39s Date: Mon, 29 Jun 2026 23:39:13 +0900 Subject: [PATCH] fix(license): correct JavaScript package license and metadata - Change license from ISC to Apache-2.0 OR MIT - Add files, engines, and exports fields - Ensure LICENSE.md is included in npm package --- binding/javascript/package.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/binding/javascript/package.json b/binding/javascript/package.json index 1033288..849d94f 100644 --- a/binding/javascript/package.json +++ b/binding/javascript/package.json @@ -31,11 +31,29 @@ "ipv6-search" ], "author": "lionsoul2014", - "license": "ISC", + "license": "Apache-2.0 OR MIT", "bugs": { "url": "https://github.com/lionsoul2014/ip2region/issues" }, "homepage": "https://github.com/lionsoul2014/ip2region#readme", + "files": [ + "index.js", + "index.d.ts", + "searcher.js", + "util.js", + "README.md", + "README_zh.md", + "LICENSE.md" + ], + "engines": { + "node": ">=14.0.0" + }, + "exports": { + ".": { + "types": "./index.d.ts", + "default": "./index.js" + } + }, "devDependencies": { "@types/jest": "^30.0.0", "argparse": "^2.0.1",