itee-validators 5.6.0 → 6.1.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/publish.yml +61 -0
- package/.releaserc.mjs +94 -0
- package/.tasks/configs/lints/lint.conf.mjs +42 -0
- package/.tasks/configs/tests/benchmarks/compute-benchmarks.conf.mjs +5 -0
- package/.tasks/configs/tests/benchmarks/run-benchmarks-for-frontend.conf.mjs +5 -0
- package/.tasks/configs/tests/units/run-unit-tests-for-frontend.conf.mjs +5 -0
- package/CHANGELOG.md +25 -0
- package/builds/{itee-validators.cjs.js → validators.cjs} +56 -18
- package/builds/validators.cjs.map +1 -0
- package/builds/{itee-validators.iife.js → validators.js} +28 -7
- package/builds/validators.js.map +1 -0
- package/builds/{itee-validators.cjs.min.js → validators.min.cjs} +36 -35
- package/builds/{itee-validators.iife.min.js → validators.min.js} +10 -10
- package/builds/{itee-validators.esm.min.js → validators.min.mjs} +3 -3
- package/builds/{itee-validators.esm.js → validators.mjs} +28 -5
- package/builds/validators.mjs.map +1 -0
- package/package.json +27 -52
- 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/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/sources/{itee-validators.js → validators.js} +4 -4
- package/.github/workflows/node.js.yml +0 -53
- package/.tasks/_utils.mjs +0 -66
- 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/compute-benchmarks.mjs +0 -215
- 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-build-import.mjs +0 -167
- 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/compute-unit-tests.mjs +0 -578
- 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
- package/builds/itee-validators.cjs.js.map +0 -1
- package/builds/itee-validators.esm.js.map +0 -1
- package/builds/itee-validators.iife.js.map +0 -1
|
@@ -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
|
|
@@ -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,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
|
package/sources/cores/cores.js
CHANGED
|
@@ -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,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,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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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'
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { statSync } from 'fs'
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { statSync } from 'node:fs'
|
|
23
|
+
import { isNotString } from '../../cores/strings/isString.js'
|
|
24
|
+
import { isDefined } from '../../cores/voids/isDefined.js'
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if given path is a block device path
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { isValidPath } from '../paths/isValidPath'
|
|
20
|
-
import { isBlockDevicePath } from './isBlockDevicePath'
|
|
19
|
+
import { isValidPath } from '../paths/isValidPath.js'
|
|
20
|
+
import { isBlockDevicePath } from './isBlockDevicePath.js'
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Check if given data is a valid block device path
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module sources/file-system/character-devices
|
|
6
6
|
* @description This is the character devices main export entry point.
|
|
7
|
-
* It
|
|
7
|
+
* It exposes all exports of the character devices validators.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export * from './isCharacterDevicePath'
|
|
12
|
-
export * from './isValidCharacterDevicePath'
|
|
11
|
+
export * from './isCharacterDevicePath.js'
|
|
12
|
+
export * from './isValidCharacterDevicePath.js'
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { statSync } from 'fs'
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { statSync } from 'node:fs'
|
|
23
|
+
import { isNotString } from '../../cores/strings/isString.js'
|
|
24
|
+
import { isDefined } from '../../cores/voids/isDefined.js'
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if given path is a character device path
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { isValidPath } from '../paths/isValidPath'
|
|
20
|
-
import { isCharacterDevicePath } from './isCharacterDevicePath'
|
|
19
|
+
import { isValidPath } from '../paths/isValidPath.js'
|
|
20
|
+
import { isCharacterDevicePath } from './isCharacterDevicePath.js'
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Check if given data is a valid character device path
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module sources/file-system/directories
|
|
6
6
|
* @description This is the directories main export entry point.
|
|
7
|
-
* It
|
|
7
|
+
* It exposes all exports of the directories validators.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export * from './isDirectoryPath'
|
|
12
|
-
export * from './isEmptyDirectory'
|
|
13
|
-
export * from './isValidDirectoryPath'
|
|
11
|
+
export * from './isDirectoryPath.js'
|
|
12
|
+
export * from './isEmptyDirectory.js'
|
|
13
|
+
export * from './isValidDirectoryPath.js'
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { statSync } from 'fs'
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { statSync } from 'node:fs'
|
|
23
|
+
import { isNotString } from '../../cores/strings/isString.js'
|
|
24
|
+
import { isDefined } from '../../cores/voids/isDefined.js'
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if given path is a directory path
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { readdirSync } from 'fs'
|
|
23
|
-
import { isDirectoryPath } from './isDirectoryPath'
|
|
22
|
+
import { readdirSync } from 'node:fs'
|
|
23
|
+
import { isDirectoryPath } from './isDirectoryPath.js'
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Check if given directory path is an empty directory
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { isValidPath } from '../paths/isValidPath'
|
|
20
|
-
import { isDirectoryPath } from './isDirectoryPath'
|
|
19
|
+
import { isValidPath } from '../paths/isValidPath.js'
|
|
20
|
+
import { isDirectoryPath } from './isDirectoryPath.js'
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Check if given data is a valid directory path
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module sources/file-system/fifo-pipes
|
|
6
6
|
* @description This is the fifo-pipes main export entry point.
|
|
7
|
-
* It
|
|
7
|
+
* It exposes all exports of the fifo-pipes validators.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export * from './isFIFOPath'
|
|
12
|
-
export * from './isValidFIFOPath'
|
|
11
|
+
export * from './isFIFOPath.js'
|
|
12
|
+
export * from './isValidFIFOPath.js'
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { statSync } from 'fs'
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { statSync } from 'node:fs'
|
|
23
|
+
import { isNotString } from '../../cores/strings/isString.js'
|
|
24
|
+
import { isDefined } from '../../cores/voids/isDefined.js'
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if given path is a fifo path
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { isValidPath } from '../paths/isValidPath'
|
|
23
|
-
import { isFIFOPath } from './isFIFOPath'
|
|
22
|
+
import { isValidPath } from '../paths/isValidPath.js'
|
|
23
|
+
import { isFIFOPath } from './isFIFOPath.js'
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Check if given data is a valid fifo path
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module sources/file-system/files
|
|
6
6
|
* @description This is the files main export entry point.
|
|
7
|
-
* It
|
|
7
|
+
* It exposes all exports of the files validators.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export * from './isEmptyFile'
|
|
12
|
-
export * from './isFilePath'
|
|
13
|
-
export * from './isValidFilePath'
|
|
11
|
+
export * from './isEmptyFile.js'
|
|
12
|
+
export * from './isFilePath.js'
|
|
13
|
+
export * from './isValidFilePath.js'
|