diff --git a/docs/API-Reference/utils/ValidationUtils.md b/docs/API-Reference/utils/ValidationUtils.md index 4c12d7aa6..fdfc7a404 100644 --- a/docs/API-Reference/utils/ValidationUtils.md +++ b/docs/API-Reference/utils/ValidationUtils.md @@ -18,7 +18,8 @@ Used to validate whether type of unknown value is an integer. ## isIntegerInRange(value, [lowerLimit], [upperLimit]) ⇒ boolean -Used to validate whether type of unknown value is an integer, and, if so, is it within the option lower and upper limits. +Used to validate whether type of unknown value is an integer, and, if so, +is it within the option lower and upper limits. **Kind**: global function **Returns**: boolean - true if value is an interger, and optionally in specified range. @@ -29,3 +30,18 @@ Used to validate whether type of unknown value is an integer, and, if so, is it | [lowerLimit] | number | Optional lower limit (inclusive) | | [upperLimit] | number | Optional upper limit (inclusive) | + + +## isWithinRange(value, [lowerLimit], [upperLimit]) ⇒ boolean +Used to validate whether type of unknown value is a number (including decimals), +and, if so, is it within the optional lower and upper limits. + +**Kind**: global function +**Returns**: boolean - true if value is a finite number, and optionally in specified range. + +| Param | Type | Description | +| --- | --- | --- | +| value | \* | Value for which to validate its type | +| [lowerLimit] | number | Optional lower limit (inclusive) | +| [upperLimit] | number | Optional upper limit (inclusive) | + diff --git a/package-lock.json b/package-lock.json index 27808ef6c..56b5cad95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "phoenix", - "version": "4.1.2-0", + "version": "5.1.0-0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "phoenix", - "version": "4.1.2-0", + "version": "5.1.0-0", "dependencies": { "@bugsnag/js": "^7.18.0", "@floating-ui/dom": "^0.5.4", "@fortawesome/fontawesome-free": "^6.1.2", "@highlightjs/cdn-assets": "^11.5.1", - "@phcode/fs": "^3.0.1", + "@phcode/fs": "^4.0.1", "@phcode/language-support": "^1.1.0", "@pixelbrackets/gfm-stylesheet": "^1.1.0", "@prettier/plugin-php": "^0.22.2", @@ -898,10 +898,9 @@ } }, "node_modules/@phcode/fs": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@phcode/fs/-/fs-3.0.1.tgz", - "integrity": "sha512-IntWO/GdUyC7BX+WeDQUTZmL8inGY//aiFzaphw1eni+0LRh3aGSK61eOlwlpcdA3TRxEzbEyH15NZYaUaWRHg==", - "license": "GNU-AGPL3.0", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@phcode/fs/-/fs-4.0.1.tgz", + "integrity": "sha512-qBK7UJxEVgrM1MMGtv7vFLd6jcd50nwZi9PkD2fVKpXUjFTAgY5324agrs7xfS8QTkFqGRYnrHghirH3+roQLg==", "dependencies": { "chokidar": "^3.5.3", "ignore": "^5.2.4", @@ -13613,9 +13612,9 @@ } }, "@phcode/fs": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@phcode/fs/-/fs-3.0.1.tgz", - "integrity": "sha512-IntWO/GdUyC7BX+WeDQUTZmL8inGY//aiFzaphw1eni+0LRh3aGSK61eOlwlpcdA3TRxEzbEyH15NZYaUaWRHg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@phcode/fs/-/fs-4.0.1.tgz", + "integrity": "sha512-qBK7UJxEVgrM1MMGtv7vFLd6jcd50nwZi9PkD2fVKpXUjFTAgY5324agrs7xfS8QTkFqGRYnrHghirH3+roQLg==", "requires": { "chokidar": "^3.5.3", "ignore": "^5.2.4", diff --git a/package.json b/package.json index fdd13b596..459eac522 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@floating-ui/dom": "^0.5.4", "@fortawesome/fontawesome-free": "^6.1.2", "@highlightjs/cdn-assets": "^11.5.1", - "@phcode/fs": "^3.0.1", + "@phcode/fs": "^4.0.1", "@phcode/language-support": "^1.1.0", "@pixelbrackets/gfm-stylesheet": "^1.1.0", "@prettier/plugin-php": "^0.22.2", @@ -121,4 +121,4 @@ "tinycolor2": "^1.4.2", "underscore": "^1.13.4" } -} \ No newline at end of file +} diff --git a/src-node/package-lock.json b/src-node/package-lock.json index 6d6d3779b..4039abc39 100644 --- a/src-node/package-lock.json +++ b/src-node/package-lock.json @@ -1,16 +1,16 @@ { "name": "@phcode/node-core", - "version": "5.0.0-0", + "version": "5.1.0-0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@phcode/node-core", - "version": "5.0.0-0", + "version": "5.1.0-0", "license": "GNU-AGPL3.0", "dependencies": { "@expo/sudo-prompt": "^9.3.2", - "@phcode/fs": "^3.0.1", + "@phcode/fs": "^4.0.1", "cross-spawn": "^7.0.6", "lmdb": "^2.9.2", "mime-types": "^2.1.35", @@ -173,10 +173,9 @@ ] }, "node_modules/@phcode/fs": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@phcode/fs/-/fs-3.0.1.tgz", - "integrity": "sha512-IntWO/GdUyC7BX+WeDQUTZmL8inGY//aiFzaphw1eni+0LRh3aGSK61eOlwlpcdA3TRxEzbEyH15NZYaUaWRHg==", - "license": "GNU-AGPL3.0", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@phcode/fs/-/fs-4.0.1.tgz", + "integrity": "sha512-qBK7UJxEVgrM1MMGtv7vFLd6jcd50nwZi9PkD2fVKpXUjFTAgY5324agrs7xfS8QTkFqGRYnrHghirH3+roQLg==", "dependencies": { "chokidar": "^3.5.3", "ignore": "^5.2.4", diff --git a/src-node/package.json b/src-node/package.json index 600f9bfb2..77610b263 100644 --- a/src-node/package.json +++ b/src-node/package.json @@ -19,7 +19,7 @@ }, "IMPORTANT!!": "Adding things here will bloat up the package size", "dependencies": { - "@phcode/fs": "^3.0.1", + "@phcode/fs": "^4.0.1", "open": "^10.1.0", "npm": "10.1.0", "ws": "^8.17.1", @@ -29,4 +29,4 @@ "which": "^2.0.1", "@expo/sudo-prompt": "^9.3.2" } -} \ No newline at end of file +}