@flun/nodejs-mobile-gyp 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,13 @@
1
1
  # 变更日志
2
+ ## [1.2.4] - 2026-11-14 08:57
3
+ ### 修复
4
+ - `lib/process-release.js` 第 7 行以 `;` 结尾,截断了 `const` 声明链,使后续 `bitsreV3`、`normalizePath`、
5
+ `resolveLibUrl` 成为隐式全局;在 ESM 严格模式下导入即抛 `ReferenceError: bitsreV3 is not defined`,
6
+ 导致原生模块编译失败(`npm rebuild` 在 `node-gyp-build-mobile` 阶段崩溃);
7
+ - 第 7 行末的 `;` 改为 `,`,三变量归入同一 `const` 声明链;
8
+
9
+ ### 更新
10
+ - 更新依赖包为最新;
2
11
 
3
12
  ## [1.2.3] - 2026-11-10 22:15
4
13
  ### 优化
@@ -6,29 +15,4 @@
6
15
 
7
16
  ## [1.2.2] - 2026-11-06 11:02
8
17
  ### 优化
9
- - 细节优化;
10
-
11
- ## [1.2.1] - 2026-11-06 10:02
12
- ### 优化
13
- - 帮助文本层级改为与其它作用域包一致:`用法:` 缩进 2,分组名缩进 4,各条目缩进 6;
14
- 分组名去掉行尾冒号,底部版本行缩进 2,与 `用法:` 行对齐;
15
- - `usage()` 内原 `cmd` 与 `opt` 两个函数体完全相同,合并为单个 `row`;
16
- - 用户可见的命令名、日志标签与错误消息统一改为中文,涉及 `bin/node-gyp.js`、
17
- `lib/build.js`、`lib/configure.js`、`lib/create-config-gypi.js`、`lib/install.js`、
18
- `lib/find-python.js`、`lib/find-visualstudio.js`、`lib/find-node-directory.js`、
19
- `lib/clean.js`、`lib/list.js`、`lib/remove.js`、`lib/process-release.js`、`lib/util.js`;
20
- - `--verbose`/`--silly` 下的诊断消息一并中文化;技术标识保留原文,如 `py -0p`、
21
- `installVersion`、`node.lib`、`EACCES`、`SHASUMS256.txt`、`--nodedir`;
22
- - 各命令的 `usage` 属性改为中文;命令名与参数名保留原文;
23
-
24
- ### 修复
25
- - 主目录缺失时的错误消息此前仍为整句英文,且含拼写错误 `Overide`;现改为中文;
26
- - `find-python.js` 的 `fail()` 提示与 `addLog` 诊断、`find-visualstudio.js` 的
27
- `fail()` 提示与 `addLog` 诊断,此前为英文;现改为中文;
28
- - `install.js` 中下载、解压、校验相关的英文错误消息改为中文;
29
- - `package.json` 的 `files` 字段含 `gyp/LICENSE`,该文件在磁盘上不存在;现移除;
30
- 其余条目按磁盘实际顺序重排:目录在前,文件在后,否定项紧随其对应的目录;
31
-
32
- ### 文档
33
- - README 的包目录结构同步磁盘实际内容:补 `gyp/pyproject.toml`、`gyp/README.md`、
34
- `gyp/test_gyp.py`,移除不存在的 `gyp/LICENSE`;顶层文件按 `files` 顺序重排;
18
+ - 细节优化;
@@ -4,8 +4,8 @@ import semver from 'semver';
4
4
  import * as log from './log.js';
5
5
 
6
6
  // 开始发布 -headers.tar.gz 的版本(io.js v3.x.x 里用的是 "ia32",本应是 "x86")
7
- const headersTarballRange = '>= 3.0.0 || ~0.12.10 || ~0.10.42', bitsre = /\/win-(x86|x64|arm64)\//;
8
- bitsreV3 = /\/win-(x86|ia32|x64)\//, normalizePath = (p) => path.normalize(p).replace(/\\/g, '/'), // 统一分隔符为 /
7
+ const headersTarballRange = '>= 3.0.0 || ~0.12.10 || ~0.10.42', bitsre = /\/win-(x86|x64|arm64)\//,
8
+ bitsreV3 = /\/win-(x86|ia32|x64)\//, normalizePath = p => path.normalize(p).replace(/\\/g, '/'), // 统一分隔符为 /
9
9
  /**
10
10
  * 根据名称、基础 URL、架构、主版本号解析 lib 下载地址
11
11
  */
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "bindings",
12
12
  "gyp"
13
13
  ],
14
- "version": "1.2.3",
14
+ "version": "1.2.4",
15
15
  "installVersion": 11,
16
16
  "author": "flun <open@flun.top>",
17
17
  "bin": {
@@ -41,13 +41,13 @@
41
41
  "chalk": "^6.0.1",
42
42
  "env-paths": "^4.0.0",
43
43
  "exponential-backoff": "^3.1.3",
44
- "glob": "^14.0.4",
45
- "graceful-fs": "^4.2.11",
44
+ "glob": "^14.0.6",
45
+ "graceful-fs": "^4.2.12",
46
46
  "make-fetch-happen": "^16.0.1",
47
47
  "nopt": "^10.0.1",
48
48
  "proc-log": "^7.0.0",
49
49
  "semver": "^7.8.6",
50
- "tar": "^7.5.22",
50
+ "tar": "^7.5.23",
51
51
  "which": "^7.0.0"
52
52
  },
53
53
  "allowScripts": {
package/gyp/README.md DELETED
@@ -1,32 +0,0 @@
1
- GYP can Generate Your Projects.
2
- ===================================
3
-
4
- Documents are available at [gyp.gsrc.io](https://gyp.gsrc.io), or you can check out ```md-pages``` branch to read those
5
- documents offline.
6
-
7
- __gyp-next__ is [released](https://github.com/nodejs/gyp-next/releases)
8
- to the [__Python Packaging Index__](https://pypi.org/project/gyp-next) (PyPI) and can be installed with the command:
9
- * `python3 -m pip install gyp-next`
10
-
11
- When used as a command line utility, __gyp-next__ can also be installed with [pipx](https://pypa.github.io/pipx):
12
- * `pipx install gyp-next`
13
- ```
14
- Installing to a new venv 'gyp-next'
15
- installed package gyp-next 0.13.0, installed using Python 3.10.6
16
- These apps are now globally available
17
- - gyp
18
- done! ✨ 🌟 ✨
19
- ```
20
-
21
- Or to run __gyp-next__ directly without installing it:
22
- * `pipx run gyp-next --help`
23
- ```
24
- NOTE: running app 'gyp' from 'gyp-next'
25
- usage: usage: gyp [options ...] [build_file ...]
26
-
27
- options:
28
- -h, --help show this help message and exit
29
- --build CONFIGS configuration for build after project generation
30
- --check check format of gyp files
31
- [ ... ]
32
- ```