From f4d81dd3dd45a3aa9767864b238518dad9aa14a5 Mon Sep 17 00:00:00 2001 From: Alice39s Date: Tue, 30 Jun 2026 19:22:01 +0900 Subject: [PATCH] fix: ensure root SPDX identifier and correct npm license metadata --- LICENSE.md | 8 ++++++++ binding/javascript/package.json | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 739ef00..82c2274 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,3 +1,11 @@ +ip2region is dual-licensed under the Apache License 2.0 and the MIT License. + +You may use, distribute, and modify this software under either license, +at your option. The full text of both licenses appears below. + +SPDX-License-Identifier: Apache-2.0 OR MIT + +============================================================================== Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/binding/javascript/package.json b/binding/javascript/package.json index 1033288..f27dd76 100644 --- a/binding/javascript/package.json +++ b/binding/javascript/package.json @@ -31,11 +31,20 @@ "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" + ], "devDependencies": { "@types/jest": "^30.0.0", "argparse": "^2.0.1",