itee-validators 5.5.1 → 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.
Files changed (117) hide show
  1. package/.github/workflows/node.js.yml +2 -2
  2. package/.releaserc.mjs +94 -0
  3. package/.tasks/.builds/build-benchmarks.task.mjs +16 -0
  4. package/.tasks/.builds/build-tests.task.mjs +18 -0
  5. package/.tasks/.builds/build-unit-tests.task.mjs +16 -0
  6. package/.tasks/.builds/build.task.mjs +46 -0
  7. package/.tasks/.cleans/clean.task.mjs +23 -0
  8. package/.tasks/.docs/doc.task.mjs +35 -0
  9. package/.tasks/.helps/help.task.mjs +151 -0
  10. package/.tasks/.lints/lint.task.mjs +37 -0
  11. package/.tasks/.patches/patch.task.mjs +13 -0
  12. package/.tasks/.releases/release.task.mjs +26 -0
  13. package/.tasks/.tests/benchmarks/build-benchmarks-backend.task.mjs +42 -0
  14. package/.tasks/.tests/benchmarks/compute-benchmarks.task.mjs +210 -0
  15. package/.tasks/.tests/benchmarks/run-benchmarks-for-backend.task.mjs +39 -0
  16. package/.tasks/.tests/benchmarks/run-benchmarks-for-frontend.task.mjs +41 -0
  17. package/.tasks/.tests/benchmarks/run-benchmarks.task.mjs +18 -0
  18. package/.tasks/.tests/bundling/check-bundling-from-esm-build-import.task.mjs +123 -0
  19. package/.tasks/.tests/bundling/check-bundling-from-esm-files-direct.task.mjs +77 -0
  20. package/.tasks/.tests/bundling/check-bundling-from-esm-files-import.task.mjs +95 -0
  21. package/.tasks/.tests/bundling/check-bundling.task.mjs +20 -0
  22. package/.tasks/.tests/run-tests.task.mjs +18 -0
  23. package/.tasks/.tests/unit-tests/build-unit-tests-backend.task.mjs +42 -0
  24. package/.tasks/.tests/unit-tests/compute-unit-tests.task.mjs +537 -0
  25. package/.tasks/.tests/unit-tests/run-unit-tests-for-backend.task.mjs +44 -0
  26. package/.tasks/.tests/unit-tests/run-unit-tests-for-frontend.task.mjs +41 -0
  27. package/.tasks/.tests/unit-tests/run-unit-tests.task.mjs +18 -0
  28. package/.tasks/_refresh-gulpfile.task.mjs +65 -0
  29. package/.tasks/_utils.mjs +192 -0
  30. package/.tasks/configs/benchmarks.conf.mjs +57 -0
  31. package/.tasks/configs/build-benchmarks-backend.conf.mjs +51 -0
  32. package/.tasks/configs/build-unit-tests-backend.conf.mjs +46 -0
  33. package/.tasks/configs/build.conf.mjs +354 -0
  34. package/.tasks/configs/check-bundling.conf.mjs +26 -0
  35. package/.tasks/configs/clean.conf.mjs +9 -0
  36. package/.tasks/configs/compute-benchmarks.conf.mjs +28 -0
  37. package/.tasks/configs/compute-unit-tests.conf.mjs +27 -0
  38. package/.tasks/configs/doc.conf.json +50 -0
  39. package/.tasks/configs/eslint.conf.mjs +121 -0
  40. package/.tasks/configs/units.conf.mjs +27 -0
  41. package/.tasks/itee-benchmarks-framework.js +186 -0
  42. package/.tasks/itee-reporter.mjs +217 -0
  43. package/CHANGELOG.md +20 -0
  44. package/builds/itee-validators.cjs.js +71 -25
  45. package/builds/itee-validators.cjs.js.map +1 -1
  46. package/builds/itee-validators.cjs.min.js +70 -69
  47. package/builds/itee-validators.esm.js +27 -4
  48. package/builds/itee-validators.esm.js.map +1 -1
  49. package/builds/itee-validators.esm.min.js +3 -3
  50. package/builds/itee-validators.iife.js +27 -6
  51. package/builds/itee-validators.iife.js.map +1 -1
  52. package/builds/itee-validators.iife.min.js +10 -10
  53. package/package.json +49 -41
  54. package/sources/cores/_cores.js +10 -10
  55. package/sources/cores/arrays/_arrays.js +12 -12
  56. package/sources/cores/arrays/isArrayOfArray.js +2 -2
  57. package/sources/cores/arrays/isArrayOfBoolean.js +3 -3
  58. package/sources/cores/arrays/isArrayOfFunction.js +3 -3
  59. package/sources/cores/arrays/isArrayOfMultiElement.js +1 -1
  60. package/sources/cores/arrays/isArrayOfNull.js +3 -3
  61. package/sources/cores/arrays/isArrayOfNumber.js +3 -3
  62. package/sources/cores/arrays/isArrayOfObject.js +3 -3
  63. package/sources/cores/arrays/isArrayOfSingleElement.js +1 -1
  64. package/sources/cores/arrays/isArrayOfString.js +3 -3
  65. package/sources/cores/arrays/isArrayOfUndefined.js +3 -3
  66. package/sources/cores/arrays/isEmptyArray.js +1 -1
  67. package/sources/cores/booleans/_booleans.js +2 -2
  68. package/sources/cores/booleans/isTrue.js +1 -1
  69. package/sources/cores/cores.js +8 -8
  70. package/sources/cores/functions/_functions.js +1 -1
  71. package/sources/cores/numbers/_numbers.js +6 -6
  72. package/sources/cores/numbers/isNumber.js +3 -3
  73. package/sources/cores/objects/_objects.js +2 -2
  74. package/sources/cores/objects/isEmptyObject.js +1 -1
  75. package/sources/cores/objects/isObject.js +1 -1
  76. package/sources/cores/strings/_strings.js +3 -3
  77. package/sources/cores/strings/isBlankString.js +2 -2
  78. package/sources/cores/strings/isEmptyString.js +1 -1
  79. package/sources/cores/symbols/_symbols.js +1 -1
  80. package/sources/cores/tests/isTestUnitGenerator.js +5 -6
  81. package/sources/cores/typed-arrays/_typedArrays.js +12 -12
  82. package/sources/cores/voids/_voids.js +4 -4
  83. package/sources/cores/voids/isEmpty.js +4 -4
  84. package/sources/file-system/_file-system.js +9 -9
  85. package/sources/file-system/block-devices/_blockDevices.js +3 -3
  86. package/sources/file-system/block-devices/isBlockDevicePath.js +5 -4
  87. package/sources/file-system/block-devices/isValidBlockDevicePath.js +2 -2
  88. package/sources/file-system/character-devices/_characterDevices.js +3 -3
  89. package/sources/file-system/character-devices/isCharacterDevicePath.js +5 -4
  90. package/sources/file-system/character-devices/isValidCharacterDevicePath.js +2 -2
  91. package/sources/file-system/directories/_directories.js +4 -4
  92. package/sources/file-system/directories/isDirectoryPath.js +5 -4
  93. package/sources/file-system/directories/isEmptyDirectory.js +2 -2
  94. package/sources/file-system/directories/isValidDirectoryPath.js +2 -2
  95. package/sources/file-system/fifo-pipes/_fifoPipes.js +3 -3
  96. package/sources/file-system/fifo-pipes/isFIFOPath.js +5 -4
  97. package/sources/file-system/fifo-pipes/isValidFIFOPath.js +2 -2
  98. package/sources/file-system/files/_files.js +4 -4
  99. package/sources/file-system/files/isEmptyFile.js +5 -4
  100. package/sources/file-system/files/isFilePath.js +5 -4
  101. package/sources/file-system/files/isValidFilePath.js +2 -2
  102. package/sources/file-system/paths/_paths.js +2 -2
  103. package/sources/file-system/paths/isValidPath.js +1 -1
  104. package/sources/file-system/sockets/_sockets.js +3 -3
  105. package/sources/file-system/sockets/isSocketPath.js +5 -4
  106. package/sources/file-system/sockets/isValidSocketPath.js +2 -2
  107. package/sources/file-system/symbolic-links/_symbolicLinks.js +3 -3
  108. package/sources/file-system/symbolic-links/isSymbolicLinkPath.js +5 -4
  109. package/sources/file-system/symbolic-links/isValidSymbolicLinkPath.js +2 -2
  110. package/sources/itee-validators.js +4 -4
  111. package/sources/maths/_maths.js +1 -1
  112. package/sources/physics/_physics.js +2 -2
  113. package/sources/physics/temperatures/_temperatures.js +5 -5
  114. package/sources/physics/temperatures/isCelsius.js +2 -2
  115. package/sources/physics/temperatures/isFahrenheit.js +2 -2
  116. package/sources/physics/temperatures/isKelvin.js +2 -2
  117. package/sources/physics/temperatures/isTemperature.js +3 -3
@@ -1,8 +1,8 @@
1
1
  /**
2
- * ┳ ┓┏ ┓• ┓ ┏━ ┏━ ┏┓ ┳┳┓ ┓ ┓
3
- * ┃╋┏┓┏┓ ┃┃┏┓┃┓┏┫┏┓╋┏┓┏┓┏ ┓┏┗┓ ┗┓ ━━ ┣ ┏┃┃┃┏┓┏┫┓┏┃┏┓
4
- * ┻┗┗ ┗ •┗┛┗┻┗┗┗┻┗┻┗┗┛┛ ┛ ┗┛┗┛•┗┛•┻ ┗┛┛┛ ┗┗┛┗┻┗┻┗┗
5
- *
2
+ * ┳ ┓┏ ┓• ┓ ┏┓ ┏┓ ┏┓ ┏┓ ┳┳┓ ┓ ┓
3
+ * ┃╋┏┓┏┓ ┃┃┏┓┃┓┏┫┏┓╋┏┓┏┓┏ ┓┏┣┓ ┃┫ ┃┫ ━━ ┣ ┏┃┃┃┏┓┏┫┓┏┃┏┓
4
+ * ┻┗┗ ┗ •┗┛┗┻┗┗┗┻┗┻┗┗┛┛ ┛ ┗┛┗┛•┗┛•┗┛ ┗┛┛┛ ┗┗┛┗┻┗┻┗┗
5
+ *
6
6
  * @desc A library of validation functions use in various Itee projects
7
7
  * @author [Tristan Valcke]{@link https://github.com/Itee}
8
8
  * @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
@@ -64,6 +64,7 @@ function isNotArray( data ) {
64
64
  *
65
65
  */
66
66
 
67
+
67
68
  /**
68
69
  * Check if given data is an empty array
69
70
  *
@@ -110,6 +111,7 @@ function isNotEmptyArray( data ) {
110
111
  *
111
112
  */
112
113
 
114
+
113
115
  /**
114
116
  * Check if given data is an array of array
115
117
  *
@@ -208,6 +210,7 @@ function isNotBoolean( data ) {
208
210
  *
209
211
  */
210
212
 
213
+
211
214
  /**
212
215
  * Check if given data is not an empty array where all values are boolean
213
216
  *
@@ -306,6 +309,7 @@ function isNotFunction( data ) {
306
309
  *
307
310
  */
308
311
 
312
+
309
313
  /**
310
314
  * Check if given data is not an empty array where all values are functions
311
315
  *
@@ -366,6 +370,7 @@ function isNotArrayOfFunction( data ) {
366
370
  *
367
371
  */
368
372
 
373
+
369
374
  /**
370
375
  * Check if given data is an array with multiples values
371
376
  *
@@ -437,6 +442,7 @@ function isNotNull( data ) {
437
442
  * } *
438
443
  */
439
444
 
445
+
440
446
  /**
441
447
  * Check if given data is not an empty array where all values are null
442
448
  *
@@ -645,6 +651,7 @@ function isZeroNegative( data ) {
645
651
  *
646
652
  */
647
653
 
654
+
648
655
  /**
649
656
  * Check if given data is a number
650
657
  *
@@ -748,6 +755,7 @@ function isNaN( data ) {
748
755
  *
749
756
  */
750
757
 
758
+
751
759
  /**
752
760
  * Check if given data is not an empty array where all values are numbers
753
761
  *
@@ -808,6 +816,7 @@ function isNotArrayOfNumber( data ) {
808
816
  *
809
817
  */
810
818
 
819
+
811
820
  /**
812
821
  * Check if given data is an object
813
822
  *
@@ -849,6 +858,7 @@ function isNotObject( data ) {
849
858
  *
850
859
  */
851
860
 
861
+
852
862
  /**
853
863
  * Check if given data is an array where all values are of object type
854
864
  *
@@ -909,6 +919,7 @@ function isNotArrayOfObject( data ) {
909
919
  *
910
920
  */
911
921
 
922
+
912
923
  /**
913
924
  * Check if given data is an array with a single value
914
925
  *
@@ -983,6 +994,7 @@ function isNotString( data ) {
983
994
  *
984
995
  */
985
996
 
997
+
986
998
  /**
987
999
  * Check if given data is not an empty array where all values are string
988
1000
  *
@@ -1081,6 +1093,7 @@ function isNotUndefined( data ) {
1081
1093
  *
1082
1094
  */
1083
1095
 
1096
+
1084
1097
  /**
1085
1098
  * Check if given data is not an empty array where all values are undefined
1086
1099
  *
@@ -1141,6 +1154,7 @@ function isNotArrayOfUndefined( data ) {
1141
1154
  *
1142
1155
  */
1143
1156
 
1157
+
1144
1158
  /**
1145
1159
  * Check if given data is a boolean with value to true
1146
1160
  *
@@ -1297,6 +1311,7 @@ function isMinSafeInteger( data ) {
1297
1311
  *
1298
1312
  */
1299
1313
 
1314
+
1300
1315
  /**
1301
1316
  * Check if given data is an empty object
1302
1317
  *
@@ -1350,6 +1365,7 @@ function isNotEmptyObject( data ) {
1350
1365
  *
1351
1366
  */
1352
1367
 
1368
+
1353
1369
  /**
1354
1370
  * Check if given data is an empty string
1355
1371
  *
@@ -1396,6 +1412,7 @@ function isNotEmptyString( data ) {
1396
1412
  *
1397
1413
  */
1398
1414
 
1415
+
1399
1416
  /**
1400
1417
  * Check if the given data is a blank string
1401
1418
  *
@@ -1478,6 +1495,7 @@ function isNotSymbol( data ) {
1478
1495
  *
1479
1496
  */
1480
1497
 
1498
+
1481
1499
  /**
1482
1500
  * Check emptiness of given data
1483
1501
  *
@@ -1633,6 +1651,7 @@ function isNotEmpty( data ) {
1633
1651
  *
1634
1652
  */
1635
1653
 
1654
+
1636
1655
  class Validator {
1637
1656
 
1638
1657
  constructor() {
@@ -2304,6 +2323,7 @@ const ABSOLUTE_ZERO_FAHRENHEIT = -459.67;
2304
2323
  *
2305
2324
  */
2306
2325
 
2326
+
2307
2327
  /**
2308
2328
  *
2309
2329
  * @param data {*}
@@ -2340,6 +2360,7 @@ function isNotCelsius( data ) {
2340
2360
  *
2341
2361
  */
2342
2362
 
2363
+
2343
2364
  /**
2344
2365
  *
2345
2366
  * @param data {*}
@@ -2376,6 +2397,7 @@ function isNotFahrenheit( data ) {
2376
2397
  *
2377
2398
  */
2378
2399
 
2400
+
2379
2401
  /**
2380
2402
  *
2381
2403
  * @param data {*}
@@ -2412,6 +2434,7 @@ function isNotKelvin( data ) {
2412
2434
  *
2413
2435
  */
2414
2436
 
2437
+
2415
2438
  /**
2416
2439
  *
2417
2440
  * @param data {*}