diff --git a/package-lock.json b/package-lock.json index 04eb8c7..a48be9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,14 +11,14 @@ "dependencies": { "@qiwi/deep-proxy": "^2.0.3", "@types/ip": "^1.1.3", - "@types/node": "^20.9.0", - "@types/semver": "^7.5.5", - "globby-cp": "^1.2.0", + "@types/node": "^20.11.19", + "@types/semver": "^7.5.7", + "globby-cp": "^1.3.0", "ini": "^4.1.1", - "ip": "^1.1.8", + "ip": "^2.0.1", "is-reachable": "^5.2.1", - "npm-run-path": "^5.1.0", - "semver": "^7.5.4", + "npm-run-path": "^5.2.0", + "semver": "^7.6.0", "ssri": "^10.0.5", "tempy": "^3.1.0", "zx": "^7.2.3" @@ -27,7 +27,7 @@ "zx-extra": "src/main/js/cli.mjs" }, "devDependencies": { - "c8": "^9.0.0" + "c8": "^9.1.0" } }, "node_modules/@bcoe/v8-coverage": { @@ -193,9 +193,9 @@ "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==" }, "node_modules/@types/node": { - "version": "20.9.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.1.tgz", - "integrity": "sha512-HhmzZh5LSJNS5O8jQKpJ/3ZcrrlG6L70hpGqMIAoM9YVD0YBRNWYsfwcXq8VnSjlNpCpgLzMXdiPo+dxcvSmiA==", + "version": "20.11.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz", + "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==", "dependencies": { "undici-types": "~5.26.4" } @@ -214,9 +214,9 @@ } }, "node_modules/@types/semver": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.5.tgz", - "integrity": "sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg==" + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.7.tgz", + "integrity": "sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==" }, "node_modules/@types/which": { "version": "3.0.2", @@ -295,9 +295,9 @@ } }, "node_modules/c8": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/c8/-/c8-9.0.0.tgz", - "integrity": "sha512-nFJhU2Cz6Frh2awk3IW7wwk3wx27/U2v8ojQCHGc1GWTCHS6aMu4lal327/ZnnYj7oSThGF1X3qUP1yzAJBcOQ==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/c8/-/c8-9.1.0.tgz", + "integrity": "sha512-mBWcT5iqNir1zIkzSPyI3NCR9EZCVI3WUD+AVO17MVWTSFNyUueXE82qTeampNtTr+ilN/5Ua3j24LgbCKjDVg==", "dev": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", @@ -755,9 +755,9 @@ } }, "node_modules/globby-cp": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/globby-cp/-/globby-cp-1.2.0.tgz", - "integrity": "sha512-anR+QHhxoxjRAJULzC9w7HjUecRFBSAUV8r8I0De1zLkeVSnm1ihCeC4/NYcs7Eq0Ln9dZXWjGYhKd8qBt5icA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/globby-cp/-/globby-cp-1.3.0.tgz", + "integrity": "sha512-6a5QbtTZYQoEMg66haOMu46JxVuUAJYNnSdimiF/TBcps+ZU/TsymzMZ16MZWzSmerdskMV36PD+1MV9JJKLrw==", "dependencies": { "fs-extra": "^11.1.1", "globby": "^13.1.2", @@ -870,9 +870,9 @@ } }, "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz", + "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==" }, "node_modules/is-extglob": { "version": "2.1.1", @@ -1172,9 +1172,9 @@ } }, "node_modules/npm-run-path": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", - "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz", + "integrity": "sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==", "dependencies": { "path-key": "^4.0.0" }, @@ -1481,9 +1481,9 @@ } }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dependencies": { "lru-cache": "^6.0.0" }, diff --git a/package.json b/package.json index 95c6435..b13de47 100644 --- a/package.json +++ b/package.json @@ -40,19 +40,19 @@ "dependencies": { "@qiwi/deep-proxy": "^2.0.3", "@types/ip": "^1.1.3", - "@types/node": "^20.9.0", - "@types/semver": "^7.5.5", - "globby-cp": "^1.2.0", + "@types/node": "^20.11.19", + "@types/semver": "^7.5.7", + "globby-cp": "^1.3.0", "ini": "^4.1.1", - "ip": "^1.1.8", + "ip": "^2.0.1", "is-reachable": "^5.2.1", - "npm-run-path": "^5.1.0", - "semver": "^7.5.4", + "npm-run-path": "^5.2.0", + "semver": "^7.6.0", "ssri": "^10.0.5", "tempy": "^3.1.0", "zx": "^7.2.3" }, "devDependencies": { - "c8": "^9.0.0" + "c8": "^9.1.0" } } diff --git a/src/test/js/test.mjs b/src/test/js/test.mjs index 4c68c4c..11ccf4d 100644 --- a/src/test/js/test.mjs +++ b/src/test/js/test.mjs @@ -70,7 +70,7 @@ import { // ver { - assert.equal(ver('ip'), '1.1.8') + assert(ver('ip').match(/^2\.\d+\.\d+$/)) assert(ver('git').match(/^\d+\.\d+\.\d+$/)) assert(ver('git', '>=2')) assert.throws(() => ver('git', '>=5'), {message: /^git@\d+\.\d+\.\d+ does not satisfy >=5$/})