mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Update Node.js dependencies
This commit is contained in:
parent
36e04fc85c
commit
7af6c0fe6f
16
dist/index.js
vendored
16
dist/index.js
vendored
@ -4592,11 +4592,27 @@ function copyFile(srcFile, destFile, force) {
|
|||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
const validate = (version) => typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
|
const validate = (version) => typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version);
|
||||||
|
/**
|
||||||
|
* Validate [semver](https://semver.org/) version strings strictly. Will not accept wildcards and version ranges.
|
||||||
|
*
|
||||||
|
* @param version Version number to validate
|
||||||
|
* @returns `true` if the version number is a valid semver version number `false` otherwise
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* validate('1.0.0-rc.1'); // return true
|
||||||
|
* validate('1.0-rc.1'); // return false
|
||||||
|
* validate('foo'); // return false
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
const validateStrict = (version) => typeof version === 'string' &&
|
||||||
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(version);
|
||||||
|
|
||||||
exports.compare = compare;
|
exports.compare = compare;
|
||||||
exports.compareVersions = compareVersions;
|
exports.compareVersions = compareVersions;
|
||||||
exports.satisfies = satisfies;
|
exports.satisfies = satisfies;
|
||||||
exports.validate = validate;
|
exports.validate = validate;
|
||||||
|
exports.validateStrict = validateStrict;
|
||||||
|
|
||||||
}));
|
}));
|
||||||
//# sourceMappingURL=index.js.map
|
//# sourceMappingURL=index.js.map
|
||||||
|
1837
package-lock.json
generated
1837
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@ -37,26 +37,26 @@
|
|||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"compare-versions": "^6.0.0"
|
"compare-versions": "^6.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.3",
|
"@types/jest": "^29.5.4",
|
||||||
"@types/node": "^20.4.5",
|
"@types/node": "^20.5.6",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
||||||
"@typescript-eslint/parser": "^6.2.0",
|
"@typescript-eslint/parser": "^6.4.1",
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"eslint": "^8.46.0",
|
"eslint": "^8.47.0",
|
||||||
"eslint-config-prettier": "^8.9.0",
|
"eslint-config-prettier": "^9.0.0",
|
||||||
"eslint-plugin-import": "^2.28.0",
|
"eslint-plugin-import": "^2.28.1",
|
||||||
"eslint-plugin-jest": "^27.2.3",
|
"eslint-plugin-jest": "^27.2.3",
|
||||||
"eslint-plugin-prettier": "^5.0.0",
|
"eslint-plugin-prettier": "^5.0.0",
|
||||||
"jest": "^29.6.2",
|
"jest": "^29.6.4",
|
||||||
"jest-circus": "^29.6.2",
|
"jest-circus": "^29.6.4",
|
||||||
"nock": "^13.3.2",
|
"nock": "^13.3.3",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.2",
|
||||||
"simple-git-hooks": "^2.9.0",
|
"simple-git-hooks": "^2.9.0",
|
||||||
"ts-jest": "^29.1.1",
|
"ts-jest": "^29.1.1",
|
||||||
"typescript": "^5.1.6"
|
"typescript": "^5.2.2"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/shivammathur/setup-php/issues"
|
"url": "https://github.com/shivammathur/setup-php/issues"
|
||||||
|
Loading…
Reference in New Issue
Block a user