itee-validators 5.6.0 → 6.0.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.
- package/.github/workflows/node.js.yml +2 -2
- package/.releaserc.mjs +94 -0
- package/.tasks/.builds/build-benchmarks.task.mjs +16 -0
- package/.tasks/.builds/build-tests.task.mjs +18 -0
- package/.tasks/.builds/build-unit-tests.task.mjs +16 -0
- package/.tasks/.builds/build.task.mjs +46 -0
- package/.tasks/.cleans/clean.task.mjs +23 -0
- package/.tasks/.docs/doc.task.mjs +35 -0
- package/.tasks/.helps/help.task.mjs +151 -0
- package/.tasks/.lints/lint.task.mjs +37 -0
- package/.tasks/.patches/patch.task.mjs +13 -0
- package/.tasks/.releases/release.task.mjs +26 -0
- package/.tasks/.tests/benchmarks/build-benchmarks-backend.task.mjs +42 -0
- package/.tasks/{tests/benchmarks/compute-benchmarks.mjs → .tests/benchmarks/compute-benchmarks.task.mjs} +46 -51
- package/.tasks/.tests/benchmarks/run-benchmarks-for-backend.task.mjs +39 -0
- package/.tasks/.tests/benchmarks/run-benchmarks-for-frontend.task.mjs +41 -0
- package/.tasks/.tests/benchmarks/run-benchmarks.task.mjs +18 -0
- package/.tasks/{tests/bundling/check-bundling-from-esm-build-import.mjs → .tests/bundling/check-bundling-from-esm-build-import.task.mjs} +31 -75
- package/.tasks/.tests/bundling/check-bundling-from-esm-files-direct.task.mjs +77 -0
- package/.tasks/.tests/bundling/check-bundling-from-esm-files-import.task.mjs +95 -0
- package/.tasks/.tests/bundling/check-bundling.task.mjs +20 -0
- package/.tasks/.tests/run-tests.task.mjs +18 -0
- package/.tasks/.tests/unit-tests/build-unit-tests-backend.task.mjs +42 -0
- package/.tasks/{tests/unit-tests/compute-unit-tests.mjs → .tests/unit-tests/compute-unit-tests.task.mjs} +152 -193
- package/.tasks/.tests/unit-tests/run-unit-tests-for-backend.task.mjs +44 -0
- package/.tasks/.tests/unit-tests/run-unit-tests-for-frontend.task.mjs +41 -0
- package/.tasks/.tests/unit-tests/run-unit-tests.task.mjs +18 -0
- package/.tasks/_refresh-gulpfile.task.mjs +65 -0
- package/.tasks/_utils.mjs +159 -33
- package/.tasks/configs/benchmarks.conf.mjs +57 -0
- package/.tasks/configs/build-benchmarks-backend.conf.mjs +51 -0
- package/.tasks/configs/build-unit-tests-backend.conf.mjs +46 -0
- package/.tasks/configs/build.conf.mjs +354 -0
- package/.tasks/configs/check-bundling.conf.mjs +26 -0
- package/.tasks/configs/clean.conf.mjs +9 -0
- package/.tasks/configs/compute-benchmarks.conf.mjs +28 -0
- package/.tasks/configs/compute-unit-tests.conf.mjs +27 -0
- package/.tasks/configs/doc.conf.json +50 -0
- package/.tasks/configs/eslint.conf.mjs +121 -0
- package/.tasks/configs/units.conf.mjs +27 -0
- package/.tasks/itee-benchmarks-framework.js +186 -0
- package/.tasks/itee-reporter.mjs +217 -0
- package/CHANGELOG.md +12 -0
- package/builds/itee-validators.cjs.js +53 -15
- package/builds/itee-validators.cjs.js.map +1 -1
- package/builds/itee-validators.cjs.min.js +36 -35
- package/builds/itee-validators.esm.js +25 -2
- package/builds/itee-validators.esm.js.map +1 -1
- package/builds/itee-validators.esm.min.js +3 -3
- package/builds/itee-validators.iife.js +25 -4
- package/builds/itee-validators.iife.js.map +1 -1
- package/builds/itee-validators.iife.min.js +10 -10
- package/package.json +49 -41
- package/sources/cores/_cores.js +10 -10
- package/sources/cores/arrays/_arrays.js +12 -12
- package/sources/cores/arrays/isArrayOfArray.js +2 -2
- package/sources/cores/arrays/isArrayOfBoolean.js +3 -3
- package/sources/cores/arrays/isArrayOfFunction.js +3 -3
- package/sources/cores/arrays/isArrayOfMultiElement.js +1 -1
- package/sources/cores/arrays/isArrayOfNull.js +3 -3
- package/sources/cores/arrays/isArrayOfNumber.js +3 -3
- package/sources/cores/arrays/isArrayOfObject.js +3 -3
- package/sources/cores/arrays/isArrayOfSingleElement.js +1 -1
- package/sources/cores/arrays/isArrayOfString.js +3 -3
- package/sources/cores/arrays/isArrayOfUndefined.js +3 -3
- package/sources/cores/arrays/isEmptyArray.js +1 -1
- package/sources/cores/booleans/_booleans.js +2 -2
- package/sources/cores/booleans/isTrue.js +1 -1
- package/sources/cores/cores.js +8 -8
- package/sources/cores/functions/_functions.js +1 -1
- package/sources/cores/numbers/_numbers.js +6 -6
- package/sources/cores/numbers/isNumber.js +3 -3
- package/sources/cores/objects/_objects.js +2 -2
- package/sources/cores/objects/isEmptyObject.js +1 -1
- package/sources/cores/objects/isObject.js +1 -1
- package/sources/cores/strings/_strings.js +3 -3
- package/sources/cores/strings/isBlankString.js +2 -2
- package/sources/cores/strings/isEmptyString.js +1 -1
- package/sources/cores/symbols/_symbols.js +1 -1
- package/sources/cores/tests/isTestUnitGenerator.js +5 -6
- package/sources/cores/typed-arrays/_typedArrays.js +12 -12
- package/sources/cores/voids/_voids.js +4 -4
- package/sources/cores/voids/isEmpty.js +4 -4
- package/sources/file-system/_file-system.js +9 -9
- package/sources/file-system/block-devices/_blockDevices.js +3 -3
- package/sources/file-system/block-devices/isBlockDevicePath.js +3 -3
- package/sources/file-system/block-devices/isValidBlockDevicePath.js +2 -2
- package/sources/file-system/character-devices/_characterDevices.js +3 -3
- package/sources/file-system/character-devices/isCharacterDevicePath.js +3 -3
- package/sources/file-system/character-devices/isValidCharacterDevicePath.js +2 -2
- package/sources/file-system/directories/_directories.js +4 -4
- package/sources/file-system/directories/isDirectoryPath.js +3 -3
- package/sources/file-system/directories/isEmptyDirectory.js +2 -2
- package/sources/file-system/directories/isValidDirectoryPath.js +2 -2
- package/sources/file-system/fifo-pipes/_fifoPipes.js +3 -3
- package/sources/file-system/fifo-pipes/isFIFOPath.js +3 -3
- package/sources/file-system/fifo-pipes/isValidFIFOPath.js +2 -2
- package/sources/file-system/files/_files.js +4 -4
- package/sources/file-system/files/isEmptyFile.js +3 -3
- package/sources/file-system/files/isFilePath.js +3 -3
- package/sources/file-system/files/isValidFilePath.js +2 -2
- package/sources/file-system/paths/_paths.js +2 -2
- package/sources/file-system/paths/isValidPath.js +1 -1
- package/sources/file-system/sockets/_sockets.js +3 -3
- package/sources/file-system/sockets/isSocketPath.js +3 -3
- package/sources/file-system/sockets/isValidSocketPath.js +2 -2
- package/sources/file-system/symbolic-links/_symbolicLinks.js +3 -3
- package/sources/file-system/symbolic-links/isSymbolicLinkPath.js +3 -3
- package/sources/file-system/symbolic-links/isValidSymbolicLinkPath.js +2 -2
- package/sources/itee-validators.js +4 -4
- package/sources/maths/_maths.js +1 -1
- package/sources/physics/_physics.js +2 -2
- package/sources/physics/temperatures/_temperatures.js +5 -5
- package/sources/physics/temperatures/isCelsius.js +2 -2
- package/sources/physics/temperatures/isFahrenheit.js +2 -2
- package/sources/physics/temperatures/isKelvin.js +2 -2
- package/sources/physics/temperatures/isTemperature.js +3 -3
- package/.tasks/builds/build.mjs +0 -65
- package/.tasks/cleans/clean.mjs +0 -20
- package/.tasks/docs/doc.mjs +0 -37
- package/.tasks/helps/help.mjs +0 -195
- package/.tasks/lints/lint.mjs +0 -33
- package/.tasks/patches/patch.mjs +0 -9
- package/.tasks/tests/benchmarks/bundle-benchmarks.mjs +0 -33
- package/.tasks/tests/benchmarks/run-benchmarks-for-backend.mjs +0 -24
- package/.tasks/tests/benchmarks/run-benchmarks-for-frontend.mjs +0 -38
- package/.tasks/tests/bundling/check-bundling-from-esm-files-direct.mjs +0 -129
- package/.tasks/tests/bundling/check-bundling-from-esm-files-import.mjs +0 -149
- package/.tasks/tests/unit-tests/bundle-unit-tests.mjs +0 -33
- package/.tasks/tests/unit-tests/run-unit-tests-for-backend.mjs +0 -25
- package/.tasks/tests/unit-tests/run-unit-tests-for-frontend.mjs +0 -41
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ┳ ┓┏ ┓• ┓
|
|
3
|
-
* ┃╋┏┓┏┓ ┃┃┏┓┃┓┏┫┏┓╋┏┓┏┓┏
|
|
2
|
+
* ┳ ┓┏ ┓• ┓ ┏┓ ┏┓ ┏┓ ┏┓ ┓ ┓
|
|
3
|
+
* ┃╋┏┓┏┓ ┃┃┏┓┃┓┏┫┏┓╋┏┓┏┓┏ ┓┏┣┓ ┃┫ ┃┫ ━━ ┗┓╋┏┓┏┓┏┫┏┓┃┏┓┏┓┏┓
|
|
4
4
|
* ┻┗┗ ┗ •┗┛┗┻┗┗┗┻┗┻┗┗┛┛ ┛ ┗┛┗┛•┗┛•┗┛ ┗┛┗┗┻┛┗┗┻┗┻┗┗┛┛┗┗
|
|
5
5
|
*
|
|
6
6
|
* @desc A library of validation functions use in various Itee projects
|
|
@@ -68,6 +68,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
70
|
|
|
71
|
+
|
|
71
72
|
/**
|
|
72
73
|
* Check if given data is an empty array
|
|
73
74
|
*
|
|
@@ -114,6 +115,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
114
115
|
*
|
|
115
116
|
*/
|
|
116
117
|
|
|
118
|
+
|
|
117
119
|
/**
|
|
118
120
|
* Check if given data is an array of array
|
|
119
121
|
*
|
|
@@ -212,6 +214,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
212
214
|
*
|
|
213
215
|
*/
|
|
214
216
|
|
|
217
|
+
|
|
215
218
|
/**
|
|
216
219
|
* Check if given data is not an empty array where all values are boolean
|
|
217
220
|
*
|
|
@@ -310,6 +313,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
310
313
|
*
|
|
311
314
|
*/
|
|
312
315
|
|
|
316
|
+
|
|
313
317
|
/**
|
|
314
318
|
* Check if given data is not an empty array where all values are functions
|
|
315
319
|
*
|
|
@@ -370,6 +374,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
370
374
|
*
|
|
371
375
|
*/
|
|
372
376
|
|
|
377
|
+
|
|
373
378
|
/**
|
|
374
379
|
* Check if given data is an array with multiples values
|
|
375
380
|
*
|
|
@@ -441,6 +446,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
441
446
|
* } *
|
|
442
447
|
*/
|
|
443
448
|
|
|
449
|
+
|
|
444
450
|
/**
|
|
445
451
|
* Check if given data is not an empty array where all values are null
|
|
446
452
|
*
|
|
@@ -649,6 +655,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
649
655
|
*
|
|
650
656
|
*/
|
|
651
657
|
|
|
658
|
+
|
|
652
659
|
/**
|
|
653
660
|
* Check if given data is a number
|
|
654
661
|
*
|
|
@@ -752,6 +759,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
752
759
|
*
|
|
753
760
|
*/
|
|
754
761
|
|
|
762
|
+
|
|
755
763
|
/**
|
|
756
764
|
* Check if given data is not an empty array where all values are numbers
|
|
757
765
|
*
|
|
@@ -812,6 +820,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
812
820
|
*
|
|
813
821
|
*/
|
|
814
822
|
|
|
823
|
+
|
|
815
824
|
/**
|
|
816
825
|
* Check if given data is an object
|
|
817
826
|
*
|
|
@@ -853,6 +862,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
853
862
|
*
|
|
854
863
|
*/
|
|
855
864
|
|
|
865
|
+
|
|
856
866
|
/**
|
|
857
867
|
* Check if given data is an array where all values are of object type
|
|
858
868
|
*
|
|
@@ -913,6 +923,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
913
923
|
*
|
|
914
924
|
*/
|
|
915
925
|
|
|
926
|
+
|
|
916
927
|
/**
|
|
917
928
|
* Check if given data is an array with a single value
|
|
918
929
|
*
|
|
@@ -987,6 +998,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
987
998
|
*
|
|
988
999
|
*/
|
|
989
1000
|
|
|
1001
|
+
|
|
990
1002
|
/**
|
|
991
1003
|
* Check if given data is not an empty array where all values are string
|
|
992
1004
|
*
|
|
@@ -1085,6 +1097,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
1085
1097
|
*
|
|
1086
1098
|
*/
|
|
1087
1099
|
|
|
1100
|
+
|
|
1088
1101
|
/**
|
|
1089
1102
|
* Check if given data is not an empty array where all values are undefined
|
|
1090
1103
|
*
|
|
@@ -1145,6 +1158,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
1145
1158
|
*
|
|
1146
1159
|
*/
|
|
1147
1160
|
|
|
1161
|
+
|
|
1148
1162
|
/**
|
|
1149
1163
|
* Check if given data is a boolean with value to true
|
|
1150
1164
|
*
|
|
@@ -1301,6 +1315,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
1301
1315
|
*
|
|
1302
1316
|
*/
|
|
1303
1317
|
|
|
1318
|
+
|
|
1304
1319
|
/**
|
|
1305
1320
|
* Check if given data is an empty object
|
|
1306
1321
|
*
|
|
@@ -1354,6 +1369,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
1354
1369
|
*
|
|
1355
1370
|
*/
|
|
1356
1371
|
|
|
1372
|
+
|
|
1357
1373
|
/**
|
|
1358
1374
|
* Check if given data is an empty string
|
|
1359
1375
|
*
|
|
@@ -1400,6 +1416,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
1400
1416
|
*
|
|
1401
1417
|
*/
|
|
1402
1418
|
|
|
1419
|
+
|
|
1403
1420
|
/**
|
|
1404
1421
|
* Check if the given data is a blank string
|
|
1405
1422
|
*
|
|
@@ -1482,6 +1499,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
1482
1499
|
*
|
|
1483
1500
|
*/
|
|
1484
1501
|
|
|
1502
|
+
|
|
1485
1503
|
/**
|
|
1486
1504
|
* Check emptiness of given data
|
|
1487
1505
|
*
|
|
@@ -1637,6 +1655,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
1637
1655
|
*
|
|
1638
1656
|
*/
|
|
1639
1657
|
|
|
1658
|
+
|
|
1640
1659
|
class Validator {
|
|
1641
1660
|
|
|
1642
1661
|
constructor() {
|
|
@@ -2308,6 +2327,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
2308
2327
|
*
|
|
2309
2328
|
*/
|
|
2310
2329
|
|
|
2330
|
+
|
|
2311
2331
|
/**
|
|
2312
2332
|
*
|
|
2313
2333
|
* @param data {*}
|
|
@@ -2344,6 +2364,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
2344
2364
|
*
|
|
2345
2365
|
*/
|
|
2346
2366
|
|
|
2367
|
+
|
|
2347
2368
|
/**
|
|
2348
2369
|
*
|
|
2349
2370
|
* @param data {*}
|
|
@@ -2380,6 +2401,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
2380
2401
|
*
|
|
2381
2402
|
*/
|
|
2382
2403
|
|
|
2404
|
+
|
|
2383
2405
|
/**
|
|
2384
2406
|
*
|
|
2385
2407
|
* @param data {*}
|
|
@@ -2416,6 +2438,7 @@ this.Itee.Validators = (function (exports) {
|
|
|
2416
2438
|
*
|
|
2417
2439
|
*/
|
|
2418
2440
|
|
|
2441
|
+
|
|
2419
2442
|
/**
|
|
2420
2443
|
*
|
|
2421
2444
|
* @param data {*}
|
|
@@ -2538,8 +2561,6 @@ this.Itee.Validators = (function (exports) {
|
|
|
2538
2561
|
exports.isZeroNegative = isZeroNegative;
|
|
2539
2562
|
exports.isZeroPositive = isZeroPositive;
|
|
2540
2563
|
|
|
2541
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2542
|
-
|
|
2543
2564
|
return exports;
|
|
2544
2565
|
|
|
2545
2566
|
})({});
|