nw-builder 4.14.2 → 4.16.0

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.
Files changed (2) hide show
  1. package/package.json +13 -13
  2. package/src/util.js +6 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.14.2",
3
+ "version": "4.16.0",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
@@ -52,33 +52,33 @@
52
52
  "demo:exe:linux": "./tests/fixtures/out/linux/Demo",
53
53
  "demo:exe:osx": "./tests/fixtures/out/osx/Demo.app/Contents/MacOS/Demo",
54
54
  "demo:exe:win": "./tests/fixtures/out/win/Demo.exe",
55
- "demo:cli": "nwbuild --mode=build --flavor=sdk --glob=false --cacheDir=./node_modules/nw --logLevel=debug --outDir=./tests/fixtures/out/linux --app.name=Demo --app.icon=./tests/fixtures/app/icon.png ./tests/fixtures/app"
55
+ "demo:cli": "nwbuild --mode=build --flavor=sdk --glob=false --cacheDir=./node_modules/nw --logLevel=debug --managedManifest=./tests/fixtures/app/package.json --outDir=./tests/fixtures/out/linux --app.name=Demo --app.icon=./tests/fixtures/app/icon.png ./tests/fixtures/app"
56
56
  },
57
57
  "devDependencies": {
58
- "@eslint/js": "^9.32.0",
58
+ "@eslint/js": "^9.37.0",
59
59
  "@vitest/coverage-v8": "^3.2.4",
60
60
  "base-volta-off-of-nwjs": "^1.0.5",
61
- "eslint": "^9.32.0",
62
- "eslint-plugin-jsdoc": "^52.0.4",
63
- "globals": "^16.3.0",
64
- "nw": "^0.102.0",
65
- "selenium-webdriver": "^4.34.0",
61
+ "eslint": "^9.37.0",
62
+ "eslint-plugin-jsdoc": "^60.8.1",
63
+ "globals": "^16.4.0",
64
+ "nw": "^0.104.0",
65
+ "selenium-webdriver": "^4.36.0",
66
66
  "vitest": "^3.0.7"
67
67
  },
68
68
  "dependencies": {
69
69
  "archiver": "^7.0.1",
70
- "axios": "^1.11.0",
71
- "commander": "^14.0.0",
70
+ "axios": "^1.12.2",
71
+ "commander": "^14.0.1",
72
72
  "glob": "^11.0.3",
73
- "node-gyp": "^11.3.0",
73
+ "node-gyp": "^11.4.2",
74
74
  "plist": "^3.1.0",
75
75
  "resedit": "^2.0.3",
76
76
  "semver": "^7.7.2",
77
- "tar": "^7.4.3",
77
+ "tar": "^7.5.1",
78
78
  "yauzl-promise": "^4.0.0"
79
79
  },
80
80
  "volta": {
81
- "node": "24.3.0",
81
+ "node": "24.7.0",
82
82
  "npm": "11.5.2"
83
83
  }
84
84
  }
package/src/util.js CHANGED
@@ -176,16 +176,14 @@ async function getNodeManifest({
176
176
  /**
177
177
  * Function to convert `'true'` and `'false'` into `true` and `false`.
178
178
  * `commander` does not do the conversion automatically.
179
- * @param {any} option - a boolean type option
180
- * @returns {any} Usually `undefined`, `true` or `false`. if not then it is validated later on.
179
+ * @param {string} option - a boolean type option
180
+ * @returns {true | false | string} `true`, `false` or file path
181
181
  */
182
182
  function str2Bool(option) {
183
- if (typeof option === 'string') {
184
- if (option === 'true') {
185
- return true;
186
- } else if (option === 'false') {
187
- return false;
188
- }
183
+ if (option === 'true') {
184
+ return true;
185
+ } else if (option === 'false') {
186
+ return false;
189
187
  } else {
190
188
  return option;
191
189
  }