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.
Files changed (131) 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.mjs → .tests/benchmarks/compute-benchmarks.task.mjs} +46 -51
  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.mjs → .tests/bundling/check-bundling-from-esm-build-import.task.mjs} +31 -75
  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.mjs → .tests/unit-tests/compute-unit-tests.task.mjs} +152 -193
  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 +159 -33
  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 +12 -0
  44. package/builds/itee-validators.cjs.js +53 -15
  45. package/builds/itee-validators.cjs.js.map +1 -1
  46. package/builds/itee-validators.cjs.min.js +36 -35
  47. package/builds/itee-validators.esm.js +25 -2
  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 +25 -4
  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 +3 -3
  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 +3 -3
  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 +3 -3
  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 +3 -3
  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 +3 -3
  100. package/sources/file-system/files/isFilePath.js +3 -3
  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 +3 -3
  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 +3 -3
  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
  118. package/.tasks/builds/build.mjs +0 -65
  119. package/.tasks/cleans/clean.mjs +0 -20
  120. package/.tasks/docs/doc.mjs +0 -37
  121. package/.tasks/helps/help.mjs +0 -195
  122. package/.tasks/lints/lint.mjs +0 -33
  123. package/.tasks/patches/patch.mjs +0 -9
  124. package/.tasks/tests/benchmarks/bundle-benchmarks.mjs +0 -33
  125. package/.tasks/tests/benchmarks/run-benchmarks-for-backend.mjs +0 -24
  126. package/.tasks/tests/benchmarks/run-benchmarks-for-frontend.mjs +0 -38
  127. package/.tasks/tests/bundling/check-bundling-from-esm-files-direct.mjs +0 -129
  128. package/.tasks/tests/bundling/check-bundling-from-esm-files-import.mjs +0 -149
  129. package/.tasks/tests/unit-tests/bundle-unit-tests.mjs +0 -33
  130. package/.tasks/tests/unit-tests/run-unit-tests-for-backend.mjs +0 -25
  131. package/.tasks/tests/unit-tests/run-unit-tests-for-frontend.mjs +0 -41
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itee-validators",
3
- "version": "5.6.0",
3
+ "version": "6.0.0",
4
4
  "description": "A library of validation functions use in various Itee projects",
5
5
  "keywords": [
6
6
  "itee",
@@ -28,7 +28,7 @@
28
28
  "url": "https://github.com/Itee/itee-validators/issues"
29
29
  },
30
30
  "engines": {
31
- "node": ">=18"
31
+ "node": ">=20"
32
32
  },
33
33
  "os": [
34
34
  "win32",
@@ -39,64 +39,72 @@
39
39
  "ia32"
40
40
  ],
41
41
  "scripts": {
42
- "default": "gulp",
42
+ "default": "gulp --tasks",
43
+ "refresh": "gulp refresh",
43
44
  "help": "gulp help",
44
45
  "patch": "gulp patch",
45
46
  "clean": "gulp clean",
46
47
  "lint": "gulp lint",
47
48
  "doc": "gulp doc",
48
- "check-bundling": "gulp check-bundling",
49
- "build-test": "gulp build-tests",
50
- "bench": "gulp run-benchmarks",
51
- "unit": "gulp run-unit-tests",
52
- "test": "gulp test",
53
49
  "build": "gulp build",
50
+ "tests:run": "gulp run-tests",
51
+ "tests:build": "gulp build-tests",
52
+ "tests:bundling": "gulp check-bundling",
53
+ "tests:bundling:build-import": "gulp check-bundling-from-esm-build-import",
54
+ "tests:bundling:files-import": "gulp check-bundling-from-esm-files-import",
55
+ "tests:bundling:files-direct": "gulp check-bundling-from-esm-files-direct",
56
+ "tests:benches:build": "gulp build-benchmarks",
57
+ "tests:benches:compute": "gulp compute-benchmarks",
58
+ "tests:benches:build:back": "gulp build-benchmarks-backend",
59
+ "tests:benches:run": "gulp run-benchmarks",
60
+ "tests:benches:run:back": "gulp run-benchmarks-for-backend",
61
+ "tests:benches:run:front": "gulp run-benchmarks-for-frontend",
62
+ "tests:units:build": "gulp build-unit-tests",
63
+ "tests:units:compute": "gulp compute-unit-tests",
64
+ "tests:units:build:back": "gulp build-unit-tests-backend",
65
+ "tests:units:run": "gulp run-unit-tests",
66
+ "tests:units:run:back": "gulp run-unit-tests-for-backend",
67
+ "tests:units:run:front": "gulp run-unit-tests-for-frontend",
54
68
  "release": "gulp release",
55
69
  "semantic-release": "semantic-release --dry-run --no-ci",
56
70
  "postversion": "gulp build"
57
71
  },
58
72
  "devDependencies": {
59
- "@rollup/plugin-commonjs": "^23.0.4",
60
- "@rollup/plugin-node-resolve": "^15.0.1",
61
- "@semantic-release/changelog": "^6.0.2",
73
+ "@eslint/js": "^9.38.0",
74
+ "@rollup/plugin-commonjs": "^28.0.9",
75
+ "@rollup/plugin-node-resolve": "^16.0.3",
76
+ "@rollup/plugin-terser": "^0.4.4",
77
+ "@semantic-release/changelog": "^6.0.3",
62
78
  "@semantic-release/git": "^10.0.1",
63
- "@semantic-release/github": "^8.0.7",
64
- "@semantic-release/npm": "^9.0.1",
79
+ "@semantic-release/github": "^11.0.6",
80
+ "@semantic-release/npm": "^12.0.2",
81
+ "@web/test-runner": "^0.20.2",
82
+ "@web/test-runner-playwright": "^0.11.1",
65
83
  "ansi-colors": "^4.1.3",
66
84
  "benchmark": "^2.1.4",
67
- "chai": "^4.3.7",
85
+ "chai": "^6.2.0",
68
86
  "cz-emoji": "^1.3.2-canary.2",
69
- "del": "^7.0.0",
70
- "eslint-plugin-mocha": "^10.1.0",
87
+ "del": "^8.0.1",
88
+ "eslint": "^9.38.0",
89
+ "eslint-plugin-mocha": "^11.2.0",
71
90
  "fancy-log": "^2.0.0",
72
91
  "figlet": "^1.9.3",
73
- "glob": "^8.0.3",
74
- "gulp": "^4.0.2",
75
- "gulp-eslint": "^6.0.0",
76
- "gulp-jsdoc3": "^3.0.0",
92
+ "glob": "^11.0.3",
93
+ "globals": "^16.4.0",
94
+ "gulp": "^5.0.1",
77
95
  "gulp-replace": "^1.1.3",
78
- "itee-utils": "^5.4.2",
79
- "karma": "^4.4.1",
80
- "karma-benchmark": "^1.0.4",
81
- "karma-benchmarkjs-reporter": "^1.0.0",
82
- "karma-chai": "^0.1.0",
83
- "karma-chrome-launcher": "^3.1.1",
84
- "karma-edge-launcher": "^0.4.2",
85
- "karma-firefox-launcher": "^2.1.2",
86
- "karma-htmlfile-reporter": "^0.3.8",
87
- "karma-mocha": "^2.0.1",
88
- "karma-mocha-reporter": "^2.2.5",
89
- "leveldown": "^6.1.1",
90
- "minimist": "^1.2.7",
91
- "mocha": "^10.8.2",
92
- "mochawesome": "^7.1.3",
93
- "prettier": "^2.8.1",
94
- "rollup": "^2.67.2",
96
+ "ink-docstrap": "^1.3.2",
97
+ "itee-utils": "^5.6.0",
98
+ "jsdoc": "^4.0.5",
99
+ "lodash": "^4.17.21",
100
+ "mocha": "^11.7.4",
101
+ "mochawesome": "^7.1.4",
102
+ "platform": "^1.3.6",
103
+ "rollup": "^4.52.5",
95
104
  "rollup-plugin-cleanup": "^3.2.1",
96
- "rollup-plugin-prettier": "^3.0.0",
97
105
  "rollup-plugin-re": "^1.0.7",
98
- "rollup-plugin-terser": "^7.0.2",
99
- "semantic-release": "^19.0.5",
100
- "semantic-release-gitmoji": "^1.6.8"
106
+ "semantic-release": "^24.2.9",
107
+ "semantic-release-gitmoji": "^1.6.8",
108
+ "taffydb": "^2.7.3"
101
109
  }
102
110
  }
@@ -8,13 +8,13 @@
8
8
  *
9
9
  */
10
10
 
11
- export * from './arrays/_arrays'
12
- export * from './booleans/_booleans'
13
- export * from './cores'
14
- export * from './functions/_functions'
15
- export * from './numbers/_numbers'
16
- export * from './objects/_objects'
17
- export * from './strings/_strings'
18
- export * from './symbols/_symbols'
19
- export * from './typed-arrays/_typedArrays'
20
- export * from './voids/_voids'
11
+ export * from './arrays/_arrays.js'
12
+ export * from './booleans/_booleans.js'
13
+ export * from './cores.js'
14
+ export * from './functions/_functions.js'
15
+ export * from './numbers/_numbers.js'
16
+ export * from './objects/_objects.js'
17
+ export * from './strings/_strings.js'
18
+ export * from './symbols/_symbols.js'
19
+ export * from './typed-arrays/_typedArrays.js'
20
+ export * from './voids/_voids.js'
@@ -6,15 +6,15 @@
6
6
  * @description Export the validation methods about Arrays
7
7
  */
8
8
 
9
- export * from './isArray'
10
- export * from './isArrayOfArray'
11
- export * from './isArrayOfBoolean'
12
- export * from './isArrayOfFunction'
13
- export * from './isArrayOfMultiElement'
14
- export * from './isArrayOfNull'
15
- export * from './isArrayOfNumber'
16
- export * from './isArrayOfObject'
17
- export * from './isArrayOfSingleElement'
18
- export * from './isArrayOfString'
19
- export * from './isArrayOfUndefined'
20
- export * from './isEmptyArray'
9
+ export * from './isArray.js'
10
+ export * from './isArrayOfArray.js'
11
+ export * from './isArrayOfBoolean.js'
12
+ export * from './isArrayOfFunction.js'
13
+ export * from './isArrayOfMultiElement.js'
14
+ export * from './isArrayOfNull.js'
15
+ export * from './isArrayOfNumber.js'
16
+ export * from './isArrayOfObject.js'
17
+ export * from './isArrayOfSingleElement.js'
18
+ export * from './isArrayOfString.js'
19
+ export * from './isArrayOfUndefined.js'
20
+ export * from './isEmptyArray.js'
@@ -19,8 +19,8 @@
19
19
  import {
20
20
  isArray,
21
21
  isNotArray
22
- } from './isArray'
23
- import { isEmptyArray } from './isEmptyArray'
22
+ } from './isArray.js'
23
+ import { isEmptyArray } from './isEmptyArray.js'
24
24
 
25
25
  /**
26
26
  * Check if given data is an array of array
@@ -16,9 +16,9 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotBoolean } from '../booleans/isBoolean'
20
- import { isNotArray } from './isArray'
21
- import { isEmptyArray } from './isEmptyArray'
19
+ import { isNotBoolean } from '../booleans/isBoolean.js'
20
+ import { isNotArray } from './isArray.js'
21
+ import { isEmptyArray } from './isEmptyArray.js'
22
22
 
23
23
  /**
24
24
  * Check if given data is not an empty array where all values are boolean
@@ -16,9 +16,9 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotFunction } from '../functions/isFunction'
20
- import { isNotArray } from './isArray'
21
- import { isEmptyArray } from './isEmptyArray'
19
+ import { isNotFunction } from '../functions/isFunction.js'
20
+ import { isNotArray } from './isArray.js'
21
+ import { isEmptyArray } from './isEmptyArray.js'
22
22
 
23
23
  /**
24
24
  * Check if given data is not an empty array where all values are functions
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotArray } from './isArray'
19
+ import { isNotArray } from './isArray.js'
20
20
 
21
21
  /**
22
22
  * Check if given data is an array with multiples values
@@ -15,9 +15,9 @@
15
15
  * } *
16
16
  */
17
17
 
18
- import { isNotNull } from '../voids/isNull'
19
- import { isNotArray } from './isArray'
20
- import { isEmptyArray } from './isEmptyArray'
18
+ import { isNotNull } from '../voids/isNull.js'
19
+ import { isNotArray } from './isArray.js'
20
+ import { isEmptyArray } from './isEmptyArray.js'
21
21
 
22
22
  /**
23
23
  * Check if given data is not an empty array where all values are null
@@ -16,9 +16,9 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotNumber } from '../numbers/isNumber'
20
- import { isNotArray } from './isArray'
21
- import { isEmptyArray } from './isEmptyArray'
19
+ import { isNotNumber } from '../numbers/isNumber.js'
20
+ import { isNotArray } from './isArray.js'
21
+ import { isEmptyArray } from './isEmptyArray.js'
22
22
 
23
23
  /**
24
24
  * Check if given data is not an empty array where all values are numbers
@@ -16,9 +16,9 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotObject } from '../objects/isObject'
20
- import { isNotArray } from './isArray'
21
- import { isEmptyArray } from './isEmptyArray'
19
+ import { isNotObject } from '../objects/isObject.js'
20
+ import { isNotArray } from './isArray.js'
21
+ import { isEmptyArray } from './isEmptyArray.js'
22
22
 
23
23
  /**
24
24
  * Check if given data is an array where all values are of object type
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotArray } from './isArray'
19
+ import { isNotArray } from './isArray.js'
20
20
 
21
21
  /**
22
22
  * Check if given data is an array with a single value
@@ -16,9 +16,9 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotString } from '../strings/isString'
20
- import { isNotArray } from './isArray'
21
- import { isEmptyArray } from './isEmptyArray'
19
+ import { isNotString } from '../strings/isString.js'
20
+ import { isNotArray } from './isArray.js'
21
+ import { isEmptyArray } from './isEmptyArray.js'
22
22
 
23
23
  /**
24
24
  * Check if given data is not an empty array where all values are string
@@ -16,9 +16,9 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotUndefined } from '../voids/isUndefined'
20
- import { isNotArray } from './isArray'
21
- import { isEmptyArray } from './isEmptyArray'
19
+ import { isNotUndefined } from '../voids/isUndefined.js'
20
+ import { isNotArray } from './isArray.js'
21
+ import { isEmptyArray } from './isEmptyArray.js'
22
22
 
23
23
  /**
24
24
  * Check if given data is not an empty array where all values are undefined
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotArray } from './isArray'
19
+ import { isNotArray } from './isArray.js'
20
20
 
21
21
  /**
22
22
  * Check if given data is an empty array
@@ -7,5 +7,5 @@
7
7
  *
8
8
  */
9
9
 
10
- export * from './isBoolean'
11
- export * from './isTrue'
10
+ export * from './isBoolean.js'
11
+ export * from './isTrue.js'
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isBoolean } from './isBoolean'
19
+ import { isBoolean } from './isBoolean.js'
20
20
 
21
21
  /**
22
22
  * Check if given data is a boolean with value to true
@@ -124,30 +124,30 @@
124
124
  *
125
125
  */
126
126
 
127
- import { isArray } from './arrays/_arrays'
128
- import { isBoolean } from './booleans/_booleans'
127
+ import { isArray } from './arrays/_arrays.js'
128
+ import { isBoolean } from './booleans/_booleans.js'
129
129
  import {
130
130
  isFunction,
131
131
  isNotFunction
132
- } from './functions/_functions'
132
+ } from './functions/_functions.js'
133
133
  import {
134
134
  isFloat,
135
135
  isInteger,
136
136
  isNumber
137
- } from './numbers/_numbers'
137
+ } from './numbers/_numbers.js'
138
138
  import {
139
139
  isNotObject,
140
140
  isObject
141
- } from './objects/_objects'
141
+ } from './objects/_objects.js'
142
142
  import {
143
143
  isNotString,
144
144
  isString
145
- } from './strings/_strings'
146
- import { isSymbol } from './symbols/_symbols'
145
+ } from './strings/_strings.js'
146
+ import { isSymbol } from './symbols/_symbols.js'
147
147
  import {
148
148
  isDefined,
149
149
  isNotDefined
150
- } from './voids/_voids'
150
+ } from './voids/_voids.js'
151
151
 
152
152
  class Validator {
153
153
 
@@ -7,5 +7,5 @@
7
7
  *
8
8
  */
9
9
 
10
- export * from './isFunction'
10
+ export * from './isFunction.js'
11
11
 
@@ -7,11 +7,11 @@
7
7
  *
8
8
  */
9
9
 
10
- export * from './isInfinite'
11
- export * from './isMax'
12
- export * from './isMin'
13
- export * from './isNumber'
14
- export * from './isSafeInteger'
15
- export * from './isZero'
10
+ export * from './isInfinite.js'
11
+ export * from './isMax.js'
12
+ export * from './isMin.js'
13
+ export * from './isNumber.js'
14
+ export * from './isSafeInteger.js'
15
+ export * from './isZero.js'
16
16
 
17
17
  // Todo isMultipleOf( multiple, value )
@@ -20,12 +20,12 @@
20
20
  //Todo: isInRange(x, y, value, xInclusive, yInclusive)
21
21
  //Todo: isInRangeZeroOne(value, zeroInclusive, oneInclusive) //inclusive
22
22
 
23
- import { isNotDefined } from '../voids/isDefined'
23
+ import { isNotDefined } from '../voids/isDefined.js'
24
24
  import {
25
25
  isInfinite,
26
26
  isInfinitePositive
27
- } from './isInfinite'
28
- import { isZeroPositive } from './isZero'
27
+ } from './isInfinite.js'
28
+ import { isZeroPositive } from './isZero.js'
29
29
 
30
30
  /**
31
31
  * Check if given data is a number
@@ -6,5 +6,5 @@
6
6
  * @description Export the validation methods about objects
7
7
  */
8
8
 
9
- export * from './isEmptyObject'
10
- export * from './isObject'
9
+ export * from './isEmptyObject.js'
10
+ export * from './isObject.js'
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotObject } from './isObject'
19
+ import { isNotObject } from './isObject.js'
20
20
 
21
21
  /**
22
22
  * Check if given data is an empty object
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotDefined } from '../voids/isDefined'
19
+ import { isNotDefined } from '../voids/isDefined.js'
20
20
 
21
21
  /**
22
22
  * Check if given data is an object
@@ -6,7 +6,7 @@
6
6
  * @description Export the validation methods about strings
7
7
  */
8
8
 
9
- export * from './isBlankString'
10
- export * from './isEmptyString'
11
- export * from './isString'
9
+ export * from './isBlankString.js'
10
+ export * from './isEmptyString.js'
11
+ export * from './isString.js'
12
12
 
@@ -16,8 +16,8 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isEmptyString } from './isEmptyString'
20
- import { isNotString } from './isString'
19
+ import { isEmptyString } from './isEmptyString.js'
20
+ import { isNotString } from './isString.js'
21
21
 
22
22
  /**
23
23
  * Check if the given data is a blank string
@@ -16,7 +16,7 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isNotString } from './isString'
19
+ import { isNotString } from './isString.js'
20
20
 
21
21
  /**
22
22
  * Check if given data is an empty string
@@ -6,4 +6,4 @@
6
6
  * @description Export the validation methods about symbols
7
7
  */
8
8
 
9
- export * from './isSymbol'
9
+ export * from './isSymbol.js'
@@ -3,12 +3,13 @@
3
3
  * @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
4
4
  */
5
5
 
6
+ let _localTestState = null
7
+
6
8
  /**
7
9
  * This is noParamNoReturn
8
10
  */
9
11
  function noParamNoReturn() {
10
- // eslint-disable-next-line no-console
11
- console.log( 'Hello' )
12
+ _localTestState = ( Math.random() >= 0.5 ) ? 'The response to life is' : 42
12
13
  }
13
14
 
14
15
  /**
@@ -32,8 +33,7 @@ function noParamTwoReturn() {
32
33
  * @param {string} paramA
33
34
  */
34
35
  function oneParamNoReturn( paramA = '' ) {
35
- // eslint-disable-next-line no-console
36
- console.log( paramA )
36
+ _localTestState = 'The response to life is' + paramA
37
37
  }
38
38
 
39
39
  /**
@@ -64,8 +64,7 @@ function oneParamTwoReturn( paramA = 0 ) {
64
64
  * @param {number} paramB
65
65
  */
66
66
  function twoParamNoReturn( paramA = '', paramB = 123 ) {
67
- // eslint-disable-next-line no-console
68
- console.log( `${ paramA }:${ paramB }` )
67
+ _localTestState = 'The response to life is' + paramA + ' or maybe ' + paramB
69
68
  }
70
69
 
71
70
  /**
@@ -7,16 +7,16 @@
7
7
  *
8
8
  */
9
9
 
10
- export * from './isArrayBuffer'
11
- export * from './isBigInt64Array'
12
- export * from './isBigUint64Array'
13
- export * from './isFloat32Array'
14
- export * from './isFloat64Array'
15
- export * from './isInt16Array'
16
- export * from './isInt32Array'
17
- export * from './isInt8Array'
18
- export * from './isUint16Array'
19
- export * from './isUint32Array'
20
- export * from './isUint8Array'
21
- export * from './isUint8ClampedArray'
10
+ export * from './isArrayBuffer.js'
11
+ export * from './isBigInt64Array.js'
12
+ export * from './isBigUint64Array.js'
13
+ export * from './isFloat32Array.js'
14
+ export * from './isFloat64Array.js'
15
+ export * from './isInt16Array.js'
16
+ export * from './isInt32Array.js'
17
+ export * from './isInt8Array.js'
18
+ export * from './isUint16Array.js'
19
+ export * from './isUint32Array.js'
20
+ export * from './isUint8Array.js'
21
+ export * from './isUint8ClampedArray.js'
22
22
 
@@ -6,7 +6,7 @@
6
6
  * @description Export the validation methods about voids notions like null or undefined
7
7
  */
8
8
 
9
- export * from './isDefined'
10
- export * from './isEmpty'
11
- export * from './isNull'
12
- export * from './isUndefined'
9
+ export * from './isDefined.js'
10
+ export * from './isEmpty.js'
11
+ export * from './isNull.js'
12
+ export * from './isUndefined.js'
@@ -16,10 +16,10 @@
16
16
  *
17
17
  */
18
18
 
19
- import { isEmptyArray } from '../arrays/isEmptyArray'
20
- import { isEmptyObject } from '../objects/isEmptyObject'
21
- import { isEmptyString } from '../strings/isEmptyString'
22
- import { isNotDefined } from './isDefined'
19
+ import { isEmptyArray } from '../arrays/isEmptyArray.js'
20
+ import { isEmptyObject } from '../objects/isEmptyObject.js'
21
+ import { isEmptyString } from '../strings/isEmptyString.js'
22
+ import { isNotDefined } from './isDefined.js'
23
23
 
24
24
  /**
25
25
  * Check emptiness of given data
@@ -4,16 +4,16 @@
4
4
  *
5
5
  * @module sources/file-system
6
6
  * @description This is the files system main export entry point.
7
- * It expose all exports of the files system validators.
7
+ * It exposes all exports of the files system validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './block-devices/_blockDevices'
12
- export * from './character-devices/_characterDevices'
13
- export * from './directories/_directories'
14
- export * from './fifo-pipes/_fifoPipes'
15
- export * from './files/_files'
16
- export * from './paths/_paths'
17
- export * from './sockets/_sockets'
18
- export * from './symbolic-links/_symbolicLinks'
11
+ export * from './block-devices/_blockDevices.js'
12
+ export * from './character-devices/_characterDevices.js'
13
+ export * from './directories/_directories.js'
14
+ export * from './fifo-pipes/_fifoPipes.js'
15
+ export * from './files/_files.js'
16
+ export * from './paths/_paths.js'
17
+ export * from './sockets/_sockets.js'
18
+ export * from './symbolic-links/_symbolicLinks.js'
19
19
 
@@ -4,9 +4,9 @@
4
4
  *
5
5
  * @module sources/file-system/block-devices
6
6
  * @description This is the block devices main export entry point.
7
- * It expose all exports of the block devices validators.
7
+ * It exposes all exports of the block devices validators.
8
8
  *
9
9
  */
10
10
 
11
- export * from './isBlockDevicePath'
12
- export * from './isValidBlockDevicePath'
11
+ export * from './isBlockDevicePath.js'
12
+ export * from './isValidBlockDevicePath.js'