From 20b7e8190f022bc8a50776176bdcc70d3bdcd08f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 24 Aug 2024 08:46:22 +0000 Subject: [PATCH] chore(deps): bump the npm group across 1 directory with 3 updates (#1212) --- package-lock.json | 26 +++++++++++++------------- package.json | 6 +++--- tests/specs/osx.test.js | 22 ++++++++++++++++------ 3 files changed, 32 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a54da56..476c335b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "license": "MIT", "dependencies": { "archiver": "^7.0.1", - "axios": "^1.7.4", + "axios": "^1.7.5", "glob": "^11.0.0", "node-gyp": "^10.2.0", "plist": "^3.1.0", @@ -25,7 +25,7 @@ "nwbuild": "src/cli.js" }, "devDependencies": { - "@stylistic/eslint-plugin-js": "^2.6.2", + "@stylistic/eslint-plugin-js": "^2.6.4", "@vitest/coverage-v8": "^2.0.5", "base-volta-off-of-nwjs": "^1.0.5", "eslint": "^9.9.0", @@ -33,7 +33,7 @@ "eslint-plugin-jsdoc": "^50.2.2", "eslint-plugin-markdown": "^5.0.0", "jsdoc": "^4.0.3", - "nw": "^0.90.0", + "nw": "^0.91.0", "selenium-webdriver": "^4.23.0", "vitest": "^2.0.4" } @@ -1406,9 +1406,9 @@ ] }, "node_modules/@stylistic/eslint-plugin-js": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-2.6.2.tgz", - "integrity": "sha512-wCr/kVctAPayMU3pcOI1MKR7MoKIh6VKZU89lPklAqtJoxT+Em6RueiiARbpznUYG5eg3LymiU+aMD+aIZXdqA==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-2.6.4.tgz", + "integrity": "sha512-kx1hS3xTvzxZLdr/DCU/dLBE++vcP97sHeEFX2QXhk1Ipa4K1rzPOLw1HCbf4mU3s+7kHP5eYpDe+QteEOFLug==", "dev": true, "dependencies": { "@types/eslint": "^9.6.0", @@ -1979,9 +1979,9 @@ "license": "MIT" }, "node_modules/axios": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", - "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.5.tgz", + "integrity": "sha512-fZu86yCo+svH3uqJ/yTdQ0QHpQu5oL+/QE+QPSv6BZSkDAoky9vytxp7u5qk83OJFS3kEBcesWni9WTZAv3tSw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -4775,13 +4775,13 @@ } }, "node_modules/nw": { - "version": "0.90.0", - "resolved": "https://registry.npmjs.org/nw/-/nw-0.90.0.tgz", - "integrity": "sha512-g/4ha0GGXXeLmUBoEpykOnmGiPG+XLCq63pJdav27xu4b8+jAGLrMVwfVrNPDu0EIbxZ0OKC/20/Ob2Ij+uUtw==", + "version": "0.91.0", + "resolved": "https://registry.npmjs.org/nw/-/nw-0.91.0.tgz", + "integrity": "sha512-ARO8t7J5QXKx0nR6kWOeHd7O2f/T8qGmWIG7r2SVTuoOUuWAgTm01DV8j5MCKlzM+wIDcTapspJ/xgxOEWJNxg==", "dev": true, "hasInstallScript": true, "dependencies": { - "axios": "^1.7.2", + "axios": "^1.7.4", "commander": "^12.1.0", "semver": "^7.6.3", "tar": "^7.4.3", diff --git a/package.json b/package.json index dcbe7a19..b406462b 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "demo:exe": "./tests/fixtures/out/nwapp.app/Contents/MacOS/nwapp" }, "devDependencies": { - "@stylistic/eslint-plugin-js": "^2.6.2", + "@stylistic/eslint-plugin-js": "^2.6.4", "@vitest/coverage-v8": "^2.0.5", "base-volta-off-of-nwjs": "^1.0.5", "eslint": "^9.9.0", @@ -58,13 +58,13 @@ "eslint-plugin-jsdoc": "^50.2.2", "eslint-plugin-markdown": "^5.0.0", "jsdoc": "^4.0.3", - "nw": "^0.90.0", + "nw": "^0.91.0", "selenium-webdriver": "^4.23.0", "vitest": "^2.0.4" }, "dependencies": { "archiver": "^7.0.1", - "axios": "^1.7.4", + "axios": "^1.7.5", "glob": "^11.0.0", "node-gyp": "^10.2.0", "plist": "^3.1.0", diff --git a/tests/specs/osx.test.js b/tests/specs/osx.test.js index 5cecbb8d..36a4140e 100644 --- a/tests/specs/osx.test.js +++ b/tests/specs/osx.test.js @@ -9,16 +9,26 @@ import { afterAll, beforeAll, describe, expect, it } from "vitest"; import setOsxConfig from "../../src/bld/osx.js"; import util from "../../src/util.js"; +import nodeManifest from "../../package.json"; + describe.runIf(process.platform === 'darwin')("bld/setOsxConfig", async function () { const outDir = './tests/fixtures/macos'; const appPath = path.join(outDir, 'nwapp.app'); + const releaseInfo = await util.getReleaseInfo( + nodeManifest.devDependencies.nw.split('^')[1], + util.PLATFORM_KV['darwin'], + util.ARCH_KV['arm64'], + './node_modules/nw', + 'https://nwjs.io/versions', + ); + const chromiumVersion = releaseInfo.components.chromium; const helperAlertsPath = path.join(appPath, "Contents", "Frameworks", "nwjs Framework.framework", "Versions", - "127.0.6533.73", + chromiumVersion, "Helpers", `nwapp Helper (Alerts).app`); const helperGPUPath = path.join(appPath, @@ -26,7 +36,7 @@ describe.runIf(process.platform === 'darwin')("bld/setOsxConfig", async function "Frameworks", "nwjs Framework.framework", "Versions", - "127.0.6533.73", + chromiumVersion, "Helpers", `nwapp Helper (GPU).app`); const helperPluginPath = path.join(appPath, @@ -34,7 +44,7 @@ describe.runIf(process.platform === 'darwin')("bld/setOsxConfig", async function "Frameworks", "nwjs Framework.framework", "Versions", - "127.0.6533.73", + chromiumVersion, "Helpers", `nwapp Helper (Plugin).app`); const helperRendererPath = path.join(appPath, @@ -42,7 +52,7 @@ describe.runIf(process.platform === 'darwin')("bld/setOsxConfig", async function "Frameworks", "nwjs Framework.framework", "Versions", - "127.0.6533.73", + chromiumVersion, "Helpers", `nwapp Helper (Renderer).app`); const helperPath = path.join(appPath, @@ -50,7 +60,7 @@ describe.runIf(process.platform === 'darwin')("bld/setOsxConfig", async function "Frameworks", "nwjs Framework.framework", "Versions", - "127.0.6533.73", + chromiumVersion, "Helpers", `nwapp Helper.app`); @@ -75,7 +85,7 @@ describe.runIf(process.platform === 'darwin')("bld/setOsxConfig", async function outDir: outDir, releaseInfo: { components: { - chromium: "127.0.6533.73", + chromium: chromiumVersion, } }, });