@sorrell/utilities 1.2.2 → 1.2.5
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/ReadMe.md +4 -0
- package/package.json +12 -3
- package/Distribution/PackageExports.Generated.json +0 -122
- package/Distribution/Types/Array/Array.Internal.Types.d.cts +0 -43
- package/Distribution/Types/Array/Array.Internal.Types.d.cts.map +0 -10
- package/Distribution/Types/Array/Array.Internal.Types.d.mts +0 -43
- package/Distribution/Types/Array/Array.Internal.Types.d.mts.map +0 -10
- package/Distribution/Types/Array/Array.Internal.Types.d.ts +0 -43
- package/Distribution/Types/Array/Array.Internal.Types.d.ts.map +0 -1
- package/Distribution/Types/Array/Array.Internal.d.cts +0 -16
- package/Distribution/Types/Array/Array.Internal.d.cts.map +0 -10
- package/Distribution/Types/Array/Array.Internal.d.mts +0 -16
- package/Distribution/Types/Array/Array.Internal.d.mts.map +0 -10
- package/Distribution/Types/Array/Array.Internal.d.ts +0 -16
- package/Distribution/Types/Array/Array.Internal.d.ts.map +0 -1
- package/Distribution/Types/Array/Array.Types.d.cts +0 -92
- package/Distribution/Types/Array/Array.Types.d.cts.map +0 -10
- package/Distribution/Types/Array/Array.Types.d.mts +0 -92
- package/Distribution/Types/Array/Array.Types.d.mts.map +0 -10
- package/Distribution/Types/Array/Array.Types.d.ts +0 -92
- package/Distribution/Types/Array/Array.Types.d.ts.map +0 -1
- package/Distribution/Types/Array/Array.d.cts +0 -33
- package/Distribution/Types/Array/Array.d.cts.map +0 -10
- package/Distribution/Types/Array/Array.d.mts +0 -33
- package/Distribution/Types/Array/Array.d.mts.map +0 -10
- package/Distribution/Types/Array/Array.d.ts +0 -33
- package/Distribution/Types/Array/Array.d.ts.map +0 -1
- package/Distribution/Types/Array/index.d.cts +0 -9
- package/Distribution/Types/Array/index.d.cts.map +0 -10
- package/Distribution/Types/Array/index.d.mts +0 -9
- package/Distribution/Types/Array/index.d.mts.map +0 -10
- package/Distribution/Types/Array/index.d.ts +0 -9
- package/Distribution/Types/Array/index.d.ts.map +0 -1
- package/Distribution/Types/Async/Async.Types.d.cts +0 -150
- package/Distribution/Types/Async/Async.Types.d.cts.map +0 -10
- package/Distribution/Types/Async/Async.Types.d.mts +0 -150
- package/Distribution/Types/Async/Async.Types.d.mts.map +0 -10
- package/Distribution/Types/Async/Async.Types.d.ts +0 -150
- package/Distribution/Types/Async/Async.Types.d.ts.map +0 -1
- package/Distribution/Types/Async/Async.d.cts +0 -145
- package/Distribution/Types/Async/Async.d.cts.map +0 -10
- package/Distribution/Types/Async/Async.d.mts +0 -145
- package/Distribution/Types/Async/Async.d.mts.map +0 -10
- package/Distribution/Types/Async/Async.d.ts +0 -145
- package/Distribution/Types/Async/Async.d.ts.map +0 -1
- package/Distribution/Types/Async/index.d.cts +0 -9
- package/Distribution/Types/Async/index.d.cts.map +0 -10
- package/Distribution/Types/Async/index.d.mts +0 -9
- package/Distribution/Types/Async/index.d.mts.map +0 -10
- package/Distribution/Types/Async/index.d.ts +0 -9
- package/Distribution/Types/Async/index.d.ts.map +0 -1
- package/Distribution/Types/Effect/Effect.Types.d.cts +0 -16
- package/Distribution/Types/Effect/Effect.Types.d.cts.map +0 -10
- package/Distribution/Types/Effect/Effect.Types.d.mts +0 -16
- package/Distribution/Types/Effect/Effect.Types.d.mts.map +0 -10
- package/Distribution/Types/Effect/Effect.Types.d.ts +0 -16
- package/Distribution/Types/Effect/Effect.Types.d.ts.map +0 -1
- package/Distribution/Types/Effect/Effect.d.cts +0 -8
- package/Distribution/Types/Effect/Effect.d.cts.map +0 -10
- package/Distribution/Types/Effect/Effect.d.mts +0 -8
- package/Distribution/Types/Effect/Effect.d.mts.map +0 -10
- package/Distribution/Types/Effect/Effect.d.ts +0 -8
- package/Distribution/Types/Effect/Effect.d.ts.map +0 -1
- package/Distribution/Types/Effect/Index.Effect.d.cts +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.cts.map +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.mts +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.mts.map +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.ts +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.ts.map +0 -1
- package/Distribution/Types/Effect/index.d.cts +0 -8
- package/Distribution/Types/Effect/index.d.cts.map +0 -10
- package/Distribution/Types/Effect/index.d.mts +0 -8
- package/Distribution/Types/Effect/index.d.mts.map +0 -10
- package/Distribution/Types/Effect/index.d.ts +0 -8
- package/Distribution/Types/Effect/index.d.ts.map +0 -1
- package/Distribution/Types/FileSystem/FileSystem.Types.d.cts +0 -8
- package/Distribution/Types/FileSystem/FileSystem.Types.d.cts.map +0 -10
- package/Distribution/Types/FileSystem/FileSystem.Types.d.mts +0 -8
- package/Distribution/Types/FileSystem/FileSystem.Types.d.mts.map +0 -10
- package/Distribution/Types/FileSystem/FileSystem.Types.d.ts +0 -8
- package/Distribution/Types/FileSystem/FileSystem.Types.d.ts.map +0 -1
- package/Distribution/Types/FileSystem/FileSystem.d.cts +0 -55
- package/Distribution/Types/FileSystem/FileSystem.d.cts.map +0 -10
- package/Distribution/Types/FileSystem/FileSystem.d.mts +0 -55
- package/Distribution/Types/FileSystem/FileSystem.d.mts.map +0 -10
- package/Distribution/Types/FileSystem/FileSystem.d.ts +0 -55
- package/Distribution/Types/FileSystem/FileSystem.d.ts.map +0 -1
- package/Distribution/Types/FileSystem/index.d.cts +0 -9
- package/Distribution/Types/FileSystem/index.d.cts.map +0 -10
- package/Distribution/Types/FileSystem/index.d.mts +0 -9
- package/Distribution/Types/FileSystem/index.d.mts.map +0 -10
- package/Distribution/Types/FileSystem/index.d.ts +0 -9
- package/Distribution/Types/FileSystem/index.d.ts.map +0 -1
- package/Distribution/Types/Functional/Functional.Internal.Types.d.cts +0 -9
- package/Distribution/Types/Functional/Functional.Internal.Types.d.cts.map +0 -10
- package/Distribution/Types/Functional/Functional.Internal.Types.d.mts +0 -9
- package/Distribution/Types/Functional/Functional.Internal.Types.d.mts.map +0 -10
- package/Distribution/Types/Functional/Functional.Internal.Types.d.ts +0 -9
- package/Distribution/Types/Functional/Functional.Internal.Types.d.ts.map +0 -1
- package/Distribution/Types/Functional/Functional.Internal.d.cts +0 -8
- package/Distribution/Types/Functional/Functional.Internal.d.cts.map +0 -10
- package/Distribution/Types/Functional/Functional.Internal.d.mts +0 -8
- package/Distribution/Types/Functional/Functional.Internal.d.mts.map +0 -10
- package/Distribution/Types/Functional/Functional.Internal.d.ts +0 -8
- package/Distribution/Types/Functional/Functional.Internal.d.ts.map +0 -1
- package/Distribution/Types/Functional/Functional.Types.d.cts +0 -28
- package/Distribution/Types/Functional/Functional.Types.d.cts.map +0 -10
- package/Distribution/Types/Functional/Functional.Types.d.mts +0 -28
- package/Distribution/Types/Functional/Functional.Types.d.mts.map +0 -10
- package/Distribution/Types/Functional/Functional.Types.d.ts +0 -28
- package/Distribution/Types/Functional/Functional.Types.d.ts.map +0 -1
- package/Distribution/Types/Functional/Functional.d.cts +0 -8
- package/Distribution/Types/Functional/Functional.d.cts.map +0 -10
- package/Distribution/Types/Functional/Functional.d.mts +0 -8
- package/Distribution/Types/Functional/Functional.d.mts.map +0 -10
- package/Distribution/Types/Functional/Functional.d.ts +0 -8
- package/Distribution/Types/Functional/Functional.d.ts.map +0 -1
- package/Distribution/Types/Functional/index.d.cts +0 -9
- package/Distribution/Types/Functional/index.d.cts.map +0 -10
- package/Distribution/Types/Functional/index.d.mts +0 -9
- package/Distribution/Types/Functional/index.d.mts.map +0 -10
- package/Distribution/Types/Functional/index.d.ts +0 -9
- package/Distribution/Types/Functional/index.d.ts.map +0 -1
- package/Distribution/Types/Math/Complex.Internal.d.cts +0 -8
- package/Distribution/Types/Math/Complex.Internal.d.cts.map +0 -10
- package/Distribution/Types/Math/Complex.Internal.d.mts +0 -8
- package/Distribution/Types/Math/Complex.Internal.d.mts.map +0 -10
- package/Distribution/Types/Math/Complex.Internal.d.ts +0 -8
- package/Distribution/Types/Math/Complex.Internal.d.ts.map +0 -1
- package/Distribution/Types/Math/Complex.Types.d.cts +0 -69
- package/Distribution/Types/Math/Complex.Types.d.cts.map +0 -10
- package/Distribution/Types/Math/Complex.Types.d.mts +0 -69
- package/Distribution/Types/Math/Complex.Types.d.mts.map +0 -10
- package/Distribution/Types/Math/Complex.Types.d.ts +0 -69
- package/Distribution/Types/Math/Complex.Types.d.ts.map +0 -1
- package/Distribution/Types/Math/Complex.d.cts +0 -63
- package/Distribution/Types/Math/Complex.d.cts.map +0 -10
- package/Distribution/Types/Math/Complex.d.mts +0 -63
- package/Distribution/Types/Math/Complex.d.mts.map +0 -10
- package/Distribution/Types/Math/Complex.d.ts +0 -63
- package/Distribution/Types/Math/Complex.d.ts.map +0 -1
- package/Distribution/Types/Math/Index.Complex.d.cts +0 -9
- package/Distribution/Types/Math/Index.Complex.d.cts.map +0 -10
- package/Distribution/Types/Math/Index.Complex.d.mts +0 -9
- package/Distribution/Types/Math/Index.Complex.d.mts.map +0 -10
- package/Distribution/Types/Math/Index.Complex.d.ts +0 -9
- package/Distribution/Types/Math/Index.Complex.d.ts.map +0 -1
- package/Distribution/Types/Math/Index.Experimental.d.cts +0 -10
- package/Distribution/Types/Math/Index.Experimental.d.cts.map +0 -10
- package/Distribution/Types/Math/Index.Experimental.d.mts +0 -10
- package/Distribution/Types/Math/Index.Experimental.d.mts.map +0 -10
- package/Distribution/Types/Math/Index.Experimental.d.ts +0 -10
- package/Distribution/Types/Math/Index.Experimental.d.ts.map +0 -1
- package/Distribution/Types/Math/Math.Internal.Types.d.cts +0 -47
- package/Distribution/Types/Math/Math.Internal.Types.d.cts.map +0 -10
- package/Distribution/Types/Math/Math.Internal.Types.d.mts +0 -47
- package/Distribution/Types/Math/Math.Internal.Types.d.mts.map +0 -10
- package/Distribution/Types/Math/Math.Internal.Types.d.ts +0 -47
- package/Distribution/Types/Math/Math.Internal.Types.d.ts.map +0 -1
- package/Distribution/Types/Math/Math.Types.d.cts +0 -92
- package/Distribution/Types/Math/Math.Types.d.cts.map +0 -10
- package/Distribution/Types/Math/Math.Types.d.mts +0 -92
- package/Distribution/Types/Math/Math.Types.d.mts.map +0 -10
- package/Distribution/Types/Math/Math.Types.d.ts +0 -92
- package/Distribution/Types/Math/Math.Types.d.ts.map +0 -1
- package/Distribution/Types/Math/Math.d.cts +0 -8
- package/Distribution/Types/Math/Math.d.cts.map +0 -10
- package/Distribution/Types/Math/Math.d.mts +0 -8
- package/Distribution/Types/Math/Math.d.mts.map +0 -10
- package/Distribution/Types/Math/Math.d.ts +0 -8
- package/Distribution/Types/Math/Math.d.ts.map +0 -1
- package/Distribution/Types/Math/Vector.d.cts +0 -102
- package/Distribution/Types/Math/Vector.d.cts.map +0 -10
- package/Distribution/Types/Math/Vector.d.mts +0 -102
- package/Distribution/Types/Math/Vector.d.mts.map +0 -10
- package/Distribution/Types/Math/Vector.d.ts +0 -102
- package/Distribution/Types/Math/Vector.d.ts.map +0 -1
- package/Distribution/Types/Math/index.d.cts +0 -15
- package/Distribution/Types/Math/index.d.cts.map +0 -10
- package/Distribution/Types/Math/index.d.mts +0 -15
- package/Distribution/Types/Math/index.d.mts.map +0 -10
- package/Distribution/Types/Math/index.d.ts +0 -15
- package/Distribution/Types/Math/index.d.ts.map +0 -1
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts +0 -8
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts.map +0 -10
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts +0 -8
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts.map +0 -10
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts +0 -8
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts.map +0 -1
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts +0 -104
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts.map +0 -10
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts +0 -104
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts.map +0 -10
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts +0 -104
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts.map +0 -1
- package/Distribution/Types/Miscellaneous/index.d.cts +0 -8
- package/Distribution/Types/Miscellaneous/index.d.cts.map +0 -10
- package/Distribution/Types/Miscellaneous/index.d.mts +0 -8
- package/Distribution/Types/Miscellaneous/index.d.mts.map +0 -10
- package/Distribution/Types/Miscellaneous/index.d.ts +0 -8
- package/Distribution/Types/Miscellaneous/index.d.ts.map +0 -1
- package/Distribution/Types/Npm/Index.Effect.d.cts +0 -9
- package/Distribution/Types/Npm/Index.Effect.d.cts.map +0 -10
- package/Distribution/Types/Npm/Index.Effect.d.mts +0 -9
- package/Distribution/Types/Npm/Index.Effect.d.mts.map +0 -10
- package/Distribution/Types/Npm/Index.Effect.d.ts +0 -9
- package/Distribution/Types/Npm/Index.Effect.d.ts.map +0 -1
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts +0 -17
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts.map +0 -10
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts +0 -17
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts.map +0 -10
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts +0 -17
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts.map +0 -1
- package/Distribution/Types/Npm/Npm.Effect.Types.d.cts +0 -12
- package/Distribution/Types/Npm/Npm.Effect.Types.d.cts.map +0 -10
- package/Distribution/Types/Npm/Npm.Effect.Types.d.mts +0 -12
- package/Distribution/Types/Npm/Npm.Effect.Types.d.mts.map +0 -10
- package/Distribution/Types/Npm/Npm.Effect.Types.d.ts +0 -12
- package/Distribution/Types/Npm/Npm.Effect.Types.d.ts.map +0 -1
- package/Distribution/Types/Npm/Npm.Effect.d.cts +0 -92
- package/Distribution/Types/Npm/Npm.Effect.d.cts.map +0 -10
- package/Distribution/Types/Npm/Npm.Effect.d.mts +0 -92
- package/Distribution/Types/Npm/Npm.Effect.d.mts.map +0 -10
- package/Distribution/Types/Npm/Npm.Effect.d.ts +0 -92
- package/Distribution/Types/Npm/Npm.Effect.d.ts.map +0 -1
- package/Distribution/Types/Npm/Npm.Error.d.cts +0 -36
- package/Distribution/Types/Npm/Npm.Error.d.cts.map +0 -10
- package/Distribution/Types/Npm/Npm.Error.d.mts +0 -36
- package/Distribution/Types/Npm/Npm.Error.d.mts.map +0 -10
- package/Distribution/Types/Npm/Npm.Error.d.ts +0 -36
- package/Distribution/Types/Npm/Npm.Error.d.ts.map +0 -1
- package/Distribution/Types/Npm/Npm.d.cts +0 -91
- package/Distribution/Types/Npm/Npm.d.cts.map +0 -10
- package/Distribution/Types/Npm/Npm.d.mts +0 -91
- package/Distribution/Types/Npm/Npm.d.mts.map +0 -10
- package/Distribution/Types/Npm/Npm.d.ts +0 -91
- package/Distribution/Types/Npm/Npm.d.ts.map +0 -1
- package/Distribution/Types/Npm/index.d.cts +0 -15
- package/Distribution/Types/Npm/index.d.cts.map +0 -10
- package/Distribution/Types/Npm/index.d.mts +0 -15
- package/Distribution/Types/Npm/index.d.mts.map +0 -10
- package/Distribution/Types/Npm/index.d.ts +0 -15
- package/Distribution/Types/Npm/index.d.ts.map +0 -1
- package/Distribution/Types/Path/Path.d.cts +0 -17
- package/Distribution/Types/Path/Path.d.cts.map +0 -10
- package/Distribution/Types/Path/Path.d.mts +0 -17
- package/Distribution/Types/Path/Path.d.mts.map +0 -10
- package/Distribution/Types/Path/Path.d.ts +0 -17
- package/Distribution/Types/Path/Path.d.ts.map +0 -1
- package/Distribution/Types/Path/index.d.cts +0 -8
- package/Distribution/Types/Path/index.d.cts.map +0 -10
- package/Distribution/Types/Path/index.d.mts +0 -8
- package/Distribution/Types/Path/index.d.mts.map +0 -10
- package/Distribution/Types/Path/index.d.ts +0 -8
- package/Distribution/Types/Path/index.d.ts.map +0 -1
- package/Distribution/Types/String/String.d.cts +0 -28
- package/Distribution/Types/String/String.d.cts.map +0 -10
- package/Distribution/Types/String/String.d.mts +0 -28
- package/Distribution/Types/String/String.d.mts.map +0 -10
- package/Distribution/Types/String/String.d.ts +0 -28
- package/Distribution/Types/String/String.d.ts.map +0 -1
- package/Distribution/Types/String/index.d.cts +0 -8
- package/Distribution/Types/String/index.d.cts.map +0 -10
- package/Distribution/Types/String/index.d.mts +0 -8
- package/Distribution/Types/String/index.d.mts.map +0 -10
- package/Distribution/Types/String/index.d.ts +0 -8
- package/Distribution/Types/String/index.d.ts.map +0 -1
- package/Distribution/Types/index.d.cts +0 -24
- package/Distribution/Types/index.d.cts.map +0 -10
- package/Distribution/Types/index.d.mts +0 -24
- package/Distribution/Types/index.d.mts.map +0 -10
- package/Distribution/Types/index.d.ts +0 -24
- package/Distribution/Types/index.d.ts.map +0 -1
- package/Distribution/array.cjs +0 -51
- package/Distribution/array.cjs.map +0 -7
- package/Distribution/array.js +0 -28
- package/Distribution/array.js.map +0 -7
- package/Distribution/async.cjs +0 -174
- package/Distribution/async.cjs.map +0 -7
- package/Distribution/async.js +0 -151
- package/Distribution/async.js.map +0 -7
- package/Distribution/complex.cjs +0 -97
- package/Distribution/complex.cjs.map +0 -7
- package/Distribution/complex.js +0 -74
- package/Distribution/complex.js.map +0 -7
- package/Distribution/effect.cjs +0 -63
- package/Distribution/effect.cjs.map +0 -7
- package/Distribution/effect.js +0 -58
- package/Distribution/effect.js.map +0 -7
- package/Distribution/fs.cjs +0 -128
- package/Distribution/fs.cjs.map +0 -7
- package/Distribution/fs.js +0 -95
- package/Distribution/fs.js.map +0 -7
- package/Distribution/functional.cjs +0 -49
- package/Distribution/functional.cjs.map +0 -7
- package/Distribution/functional.js +0 -26
- package/Distribution/functional.js.map +0 -7
- package/Distribution/index.cjs +0 -701
- package/Distribution/index.cjs.map +0 -7
- package/Distribution/index.js +0 -674
- package/Distribution/index.js.map +0 -7
- package/Distribution/math.cjs +0 -243
- package/Distribution/math.cjs.map +0 -7
- package/Distribution/math.js +0 -226
- package/Distribution/math.js.map +0 -7
- package/Distribution/misc.cjs +0 -45
- package/Distribution/misc.cjs.map +0 -7
- package/Distribution/misc.js +0 -22
- package/Distribution/misc.js.map +0 -7
- package/Distribution/npm-effect.cjs +0 -130
- package/Distribution/npm-effect.cjs.map +0 -7
- package/Distribution/npm-effect.js +0 -97
- package/Distribution/npm-effect.js.map +0 -7
- package/Distribution/npm.cjs +0 -106
- package/Distribution/npm.cjs.map +0 -7
- package/Distribution/npm.js +0 -73
- package/Distribution/npm.js.map +0 -7
- package/Distribution/path.cjs +0 -63
- package/Distribution/path.cjs.map +0 -7
- package/Distribution/path.js +0 -40
- package/Distribution/path.js.map +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Index.Effect.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Index.Effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.Internal.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Returns whether a given {@link Value} contains a `readonly` `string` `"code"`.
|
|
9
|
-
*
|
|
10
|
-
* @param Value - The value to test.
|
|
11
|
-
* @returns {Value is { readonly code: string }} Whether {@link Value} is a
|
|
12
|
-
* `{ readonly code: string }`.
|
|
13
|
-
*/
|
|
14
|
-
export declare function HasErrorCode(Value: unknown): Value is {
|
|
15
|
-
readonly code: string;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=Npm.Effect.Internal.d.cts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Effect.Internal.d.cts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Effect.Internal.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;AAIH;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAM/E"
|
|
10
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.Internal.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Returns whether a given {@link Value} contains a `readonly` `string` `"code"`.
|
|
9
|
-
*
|
|
10
|
-
* @param Value - The value to test.
|
|
11
|
-
* @returns {Value is { readonly code: string }} Whether {@link Value} is a
|
|
12
|
-
* `{ readonly code: string }`.
|
|
13
|
-
*/
|
|
14
|
-
export declare function HasErrorCode(Value: unknown): Value is {
|
|
15
|
-
readonly code: string;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=Npm.Effect.Internal.d.mts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Effect.Internal.d.mts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Effect.Internal.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;AAIH;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAM/E"
|
|
10
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.Internal.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Returns whether a given {@link Value} contains a `readonly` `string` `"code"`.
|
|
9
|
-
*
|
|
10
|
-
* @param Value - The value to test.
|
|
11
|
-
* @returns {Value is { readonly code: string }} Whether {@link Value} is a
|
|
12
|
-
* `{ readonly code: string }`.
|
|
13
|
-
*/
|
|
14
|
-
export declare function HasErrorCode(Value: unknown): Value is {
|
|
15
|
-
readonly code: string;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=Npm.Effect.Internal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Npm.Effect.Internal.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Effect.Internal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAM/E"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.Types.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
import type { PackageJsonParseError, RootDirectoryNotFoundError } from "./Npm.Error.cjs";
|
|
8
|
-
import type { Effect } from "effect";
|
|
9
|
-
import type { IPackageJson } from "package-json-type";
|
|
10
|
-
export type EGetPackageJson = Effect.Effect<IPackageJson, PackageJsonParseError | RootDirectoryNotFoundError, never>;
|
|
11
|
-
export type EGetPackageRootDirectory = Effect.Effect<string, RootDirectoryNotFoundError, never>;
|
|
12
|
-
//# sourceMappingURL=Npm.Effect.Types.d.cts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Effect.Types.d.cts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Effect.Types.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,eAAe,GACvB,MAAM,CAAC,MAAM,CACT,YAAY,EACZ,qBAAqB,GAAG,0BAA0B,EAClD,KAAK,CACR,CAAC;AAEN,MAAM,MAAM,wBAAwB,GAChC,MAAM,CAAC,MAAM,CACT,MAAM,EACN,0BAA0B,EAC1B,KAAK,CACR,CAAC"
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.Types.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
import type { PackageJsonParseError, RootDirectoryNotFoundError } from "./Npm.Error.mjs";
|
|
8
|
-
import type { Effect } from "effect";
|
|
9
|
-
import type { IPackageJson } from "package-json-type";
|
|
10
|
-
export type EGetPackageJson = Effect.Effect<IPackageJson, PackageJsonParseError | RootDirectoryNotFoundError, never>;
|
|
11
|
-
export type EGetPackageRootDirectory = Effect.Effect<string, RootDirectoryNotFoundError, never>;
|
|
12
|
-
//# sourceMappingURL=Npm.Effect.Types.d.mts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Effect.Types.d.mts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Effect.Types.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,eAAe,GACvB,MAAM,CAAC,MAAM,CACT,YAAY,EACZ,qBAAqB,GAAG,0BAA0B,EAClD,KAAK,CACR,CAAC;AAEN,MAAM,MAAM,wBAAwB,GAChC,MAAM,CAAC,MAAM,CACT,MAAM,EACN,0BAA0B,EAC1B,KAAK,CACR,CAAC"
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.Types.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
import type { PackageJsonParseError, RootDirectoryNotFoundError } from "./Npm.Error.ts";
|
|
8
|
-
import type { Effect } from "effect";
|
|
9
|
-
import type { IPackageJson } from "package-json-type";
|
|
10
|
-
export type EGetPackageJson = Effect.Effect<IPackageJson, PackageJsonParseError | RootDirectoryNotFoundError, never>;
|
|
11
|
-
export type EGetPackageRootDirectory = Effect.Effect<string, RootDirectoryNotFoundError, never>;
|
|
12
|
-
//# sourceMappingURL=Npm.Effect.Types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Npm.Effect.Types.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Effect.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,eAAe,GACvB,MAAM,CAAC,MAAM,CACT,YAAY,EACZ,qBAAqB,GAAG,0BAA0B,EAClD,KAAK,CACR,CAAC;AAEN,MAAM,MAAM,wBAAwB,GAChC,MAAM,CAAC,MAAM,CACT,MAAM,EACN,0BAA0B,EAC1B,KAAK,CACR,CAAC"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
import type { EGetPackageJson, EGetPackageRootDirectory } from "./Npm.Effect.Types.cjs";
|
|
8
|
-
/**
|
|
9
|
-
* Get the `package.json` of the Node.js project in which the
|
|
10
|
-
* given path, or the current working directory, resides.
|
|
11
|
-
*
|
|
12
|
-
* @param Path - The given path from which to look for a root directory.
|
|
13
|
-
*
|
|
14
|
-
* @returns {EGetPackageJson} An Effect that succeeds with the parsed `package.json`, or fails
|
|
15
|
-
* with {@link RootDirectoryNotFoundError} or {@link PackageJsonParseError}.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* Suppose `process.cwd() === "./MyPackage"`,
|
|
19
|
-
* ```typescript
|
|
20
|
-
* Effect.gen(function* ()
|
|
21
|
-
* {
|
|
22
|
-
* const PackageJson: IPackageJson = yield* GetPackageJson();
|
|
23
|
-
* // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare function GetPackageJson(Path?: string): EGetPackageJson;
|
|
28
|
-
/**
|
|
29
|
-
* Get the root directory of the Node.js project in which the
|
|
30
|
-
* current working directory resides.
|
|
31
|
-
*
|
|
32
|
-
* @param Path - *(Optional)* The given path from which to look for a root directory.
|
|
33
|
-
*
|
|
34
|
-
* @returns {EGetPackageRootDirectory} An Effect that succeeds with the package root
|
|
35
|
-
* directory, or fails with {@link RootDirectoryNotFoundError}.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* Suppose `process.cwd()` is any one of the following,
|
|
39
|
-
* - `/home/alex/myPackage`,
|
|
40
|
-
* - `/home/alex/myPackage/src/MyModule`,
|
|
41
|
-
* - `/home/alex/myPackage/resource/Images`,
|
|
42
|
-
*
|
|
43
|
-
* then,
|
|
44
|
-
*
|
|
45
|
-
* ```typescript
|
|
46
|
-
* import { Effect } from "effect";
|
|
47
|
-
* const Root: string = await Effect.runPromise(GetPackageRootDirectory());
|
|
48
|
-
* // `Root` <- `"/home/alex/myPackage"`
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* Suppose `TestPath === "/home/alex/Documents"` is *not* a NodeJS package root
|
|
53
|
-
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
54
|
-
*
|
|
55
|
-
* ```typescript
|
|
56
|
-
* import { Effect } from "effect";
|
|
57
|
-
* const TestPath: string = "/home/alex/Documents";
|
|
58
|
-
* let Root: string | undefined = undefined;
|
|
59
|
-
* try
|
|
60
|
-
* {
|
|
61
|
-
* Root = await Effect.runPromise(
|
|
62
|
-
* GetPackageRootDirectory(TestPath)
|
|
63
|
-
* );
|
|
64
|
-
* }
|
|
65
|
-
* catch (Error: unknown)
|
|
66
|
-
* {
|
|
67
|
-
* // `Error instanceof RootDirectoryNotFound`
|
|
68
|
-
* }
|
|
69
|
-
*
|
|
70
|
-
* // `Root` <- `undefined`
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* Suppose `process.cwd() === /home/alex/Downloads`, which is *not* a NodeJS package
|
|
75
|
-
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
76
|
-
*
|
|
77
|
-
* ```typescript
|
|
78
|
-
* import { Effect } from "effect";
|
|
79
|
-
* let Root: string | undefined = undefined;
|
|
80
|
-
* try
|
|
81
|
-
* {
|
|
82
|
-
* Root = await Effect.runPromise(GetPackageRootDirectory());
|
|
83
|
-
* }
|
|
84
|
-
* catch (Error: unknown)
|
|
85
|
-
* {
|
|
86
|
-
* // `Error instanceof RootDirectoryNotFound`
|
|
87
|
-
* }
|
|
88
|
-
* // `Root` <- `undefined`
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
export declare function GetPackageRootDirectory(Path?: string): EGetPackageRootDirectory;
|
|
92
|
-
//# sourceMappingURL=Npm.Effect.d.cts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Effect.d.cts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Effect.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AASvF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAyB7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,wBAAwB,CA6C/E"
|
|
10
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
import type { EGetPackageJson, EGetPackageRootDirectory } from "./Npm.Effect.Types.mjs";
|
|
8
|
-
/**
|
|
9
|
-
* Get the `package.json` of the Node.js project in which the
|
|
10
|
-
* given path, or the current working directory, resides.
|
|
11
|
-
*
|
|
12
|
-
* @param Path - The given path from which to look for a root directory.
|
|
13
|
-
*
|
|
14
|
-
* @returns {EGetPackageJson} An Effect that succeeds with the parsed `package.json`, or fails
|
|
15
|
-
* with {@link RootDirectoryNotFoundError} or {@link PackageJsonParseError}.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* Suppose `process.cwd() === "./MyPackage"`,
|
|
19
|
-
* ```typescript
|
|
20
|
-
* Effect.gen(function* ()
|
|
21
|
-
* {
|
|
22
|
-
* const PackageJson: IPackageJson = yield* GetPackageJson();
|
|
23
|
-
* // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare function GetPackageJson(Path?: string): EGetPackageJson;
|
|
28
|
-
/**
|
|
29
|
-
* Get the root directory of the Node.js project in which the
|
|
30
|
-
* current working directory resides.
|
|
31
|
-
*
|
|
32
|
-
* @param Path - *(Optional)* The given path from which to look for a root directory.
|
|
33
|
-
*
|
|
34
|
-
* @returns {EGetPackageRootDirectory} An Effect that succeeds with the package root
|
|
35
|
-
* directory, or fails with {@link RootDirectoryNotFoundError}.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* Suppose `process.cwd()` is any one of the following,
|
|
39
|
-
* - `/home/alex/myPackage`,
|
|
40
|
-
* - `/home/alex/myPackage/src/MyModule`,
|
|
41
|
-
* - `/home/alex/myPackage/resource/Images`,
|
|
42
|
-
*
|
|
43
|
-
* then,
|
|
44
|
-
*
|
|
45
|
-
* ```typescript
|
|
46
|
-
* import { Effect } from "effect";
|
|
47
|
-
* const Root: string = await Effect.runPromise(GetPackageRootDirectory());
|
|
48
|
-
* // `Root` <- `"/home/alex/myPackage"`
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* Suppose `TestPath === "/home/alex/Documents"` is *not* a NodeJS package root
|
|
53
|
-
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
54
|
-
*
|
|
55
|
-
* ```typescript
|
|
56
|
-
* import { Effect } from "effect";
|
|
57
|
-
* const TestPath: string = "/home/alex/Documents";
|
|
58
|
-
* let Root: string | undefined = undefined;
|
|
59
|
-
* try
|
|
60
|
-
* {
|
|
61
|
-
* Root = await Effect.runPromise(
|
|
62
|
-
* GetPackageRootDirectory(TestPath)
|
|
63
|
-
* );
|
|
64
|
-
* }
|
|
65
|
-
* catch (Error: unknown)
|
|
66
|
-
* {
|
|
67
|
-
* // `Error instanceof RootDirectoryNotFound`
|
|
68
|
-
* }
|
|
69
|
-
*
|
|
70
|
-
* // `Root` <- `undefined`
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* Suppose `process.cwd() === /home/alex/Downloads`, which is *not* a NodeJS package
|
|
75
|
-
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
76
|
-
*
|
|
77
|
-
* ```typescript
|
|
78
|
-
* import { Effect } from "effect";
|
|
79
|
-
* let Root: string | undefined = undefined;
|
|
80
|
-
* try
|
|
81
|
-
* {
|
|
82
|
-
* Root = await Effect.runPromise(GetPackageRootDirectory());
|
|
83
|
-
* }
|
|
84
|
-
* catch (Error: unknown)
|
|
85
|
-
* {
|
|
86
|
-
* // `Error instanceof RootDirectoryNotFound`
|
|
87
|
-
* }
|
|
88
|
-
* // `Root` <- `undefined`
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
export declare function GetPackageRootDirectory(Path?: string): EGetPackageRootDirectory;
|
|
92
|
-
//# sourceMappingURL=Npm.Effect.d.mts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Effect.d.mts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Effect.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AASvF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAyB7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,wBAAwB,CA6C/E"
|
|
10
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Effect.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
import type { EGetPackageJson, EGetPackageRootDirectory } from "./Npm.Effect.Types.ts";
|
|
8
|
-
/**
|
|
9
|
-
* Get the `package.json` of the Node.js project in which the
|
|
10
|
-
* given path, or the current working directory, resides.
|
|
11
|
-
*
|
|
12
|
-
* @param Path - The given path from which to look for a root directory.
|
|
13
|
-
*
|
|
14
|
-
* @returns {EGetPackageJson} An Effect that succeeds with the parsed `package.json`, or fails
|
|
15
|
-
* with {@link RootDirectoryNotFoundError} or {@link PackageJsonParseError}.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* Suppose `process.cwd() === "./MyPackage"`,
|
|
19
|
-
* ```typescript
|
|
20
|
-
* Effect.gen(function* ()
|
|
21
|
-
* {
|
|
22
|
-
* const PackageJson: IPackageJson = yield* GetPackageJson();
|
|
23
|
-
* // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare function GetPackageJson(Path?: string): EGetPackageJson;
|
|
28
|
-
/**
|
|
29
|
-
* Get the root directory of the Node.js project in which the
|
|
30
|
-
* current working directory resides.
|
|
31
|
-
*
|
|
32
|
-
* @param Path - *(Optional)* The given path from which to look for a root directory.
|
|
33
|
-
*
|
|
34
|
-
* @returns {EGetPackageRootDirectory} An Effect that succeeds with the package root
|
|
35
|
-
* directory, or fails with {@link RootDirectoryNotFoundError}.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* Suppose `process.cwd()` is any one of the following,
|
|
39
|
-
* - `/home/alex/myPackage`,
|
|
40
|
-
* - `/home/alex/myPackage/src/MyModule`,
|
|
41
|
-
* - `/home/alex/myPackage/resource/Images`,
|
|
42
|
-
*
|
|
43
|
-
* then,
|
|
44
|
-
*
|
|
45
|
-
* ```typescript
|
|
46
|
-
* import { Effect } from "effect";
|
|
47
|
-
* const Root: string = await Effect.runPromise(GetPackageRootDirectory());
|
|
48
|
-
* // `Root` <- `"/home/alex/myPackage"`
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* Suppose `TestPath === "/home/alex/Documents"` is *not* a NodeJS package root
|
|
53
|
-
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
54
|
-
*
|
|
55
|
-
* ```typescript
|
|
56
|
-
* import { Effect } from "effect";
|
|
57
|
-
* const TestPath: string = "/home/alex/Documents";
|
|
58
|
-
* let Root: string | undefined = undefined;
|
|
59
|
-
* try
|
|
60
|
-
* {
|
|
61
|
-
* Root = await Effect.runPromise(
|
|
62
|
-
* GetPackageRootDirectory(TestPath)
|
|
63
|
-
* );
|
|
64
|
-
* }
|
|
65
|
-
* catch (Error: unknown)
|
|
66
|
-
* {
|
|
67
|
-
* // `Error instanceof RootDirectoryNotFound`
|
|
68
|
-
* }
|
|
69
|
-
*
|
|
70
|
-
* // `Root` <- `undefined`
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* Suppose `process.cwd() === /home/alex/Downloads`, which is *not* a NodeJS package
|
|
75
|
-
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
76
|
-
*
|
|
77
|
-
* ```typescript
|
|
78
|
-
* import { Effect } from "effect";
|
|
79
|
-
* let Root: string | undefined = undefined;
|
|
80
|
-
* try
|
|
81
|
-
* {
|
|
82
|
-
* Root = await Effect.runPromise(GetPackageRootDirectory());
|
|
83
|
-
* }
|
|
84
|
-
* catch (Error: unknown)
|
|
85
|
-
* {
|
|
86
|
-
* // `Error instanceof RootDirectoryNotFound`
|
|
87
|
-
* }
|
|
88
|
-
* // `Root` <- `undefined`
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
export declare function GetPackageRootDirectory(Path?: string): EGetPackageRootDirectory;
|
|
92
|
-
//# sourceMappingURL=Npm.Effect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Npm.Effect.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AASvF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAyB7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,wBAAwB,CA6C/E"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Error.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
declare const PackageJsonParseError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
8
|
-
readonly _tag: "PackageJsonParseError";
|
|
9
|
-
} & Readonly<A>;
|
|
10
|
-
/**
|
|
11
|
-
* An error describing that {@link GetPackageJson} failed to parse the discovered `package.json` file.
|
|
12
|
-
*
|
|
13
|
-
* @property {string | undefined} Path - The `Path` argument passed to the effect returning this error,
|
|
14
|
-
* if one was given.
|
|
15
|
-
* @property {unknown} Cause - The cause of this error.
|
|
16
|
-
*/
|
|
17
|
-
export declare class PackageJsonParseError extends PackageJsonParseError_base<{
|
|
18
|
-
readonly Path: string | undefined;
|
|
19
|
-
readonly Cause: unknown;
|
|
20
|
-
}> {
|
|
21
|
-
}
|
|
22
|
-
declare const RootDirectoryNotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
23
|
-
readonly _tag: "RootDirectoryNotFound";
|
|
24
|
-
} & Readonly<A>;
|
|
25
|
-
/**
|
|
26
|
-
* An error describing that {@link GetPackageRootDirectory} failed.
|
|
27
|
-
*
|
|
28
|
-
* @property {string | undefined} Path - The `Path` argument passed to the effect returning
|
|
29
|
-
* this error, if one was given.
|
|
30
|
-
*/
|
|
31
|
-
export declare class RootDirectoryNotFoundError extends RootDirectoryNotFoundError_base<{
|
|
32
|
-
readonly Path: string | undefined;
|
|
33
|
-
}> {
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=Npm.Error.d.cts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Error.d.cts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Error.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;;;;AAIH;;;;;;GAMG;AACH,qBAAa,qBACT,SAAQ,2BAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CAC3B,CAAC;CAAI;;;;AAEV;;;;;GAKG;AACH,qBAAa,0BACT,SAAQ,gCAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;CAAI"
|
|
10
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Error.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
declare const PackageJsonParseError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
8
|
-
readonly _tag: "PackageJsonParseError";
|
|
9
|
-
} & Readonly<A>;
|
|
10
|
-
/**
|
|
11
|
-
* An error describing that {@link GetPackageJson} failed to parse the discovered `package.json` file.
|
|
12
|
-
*
|
|
13
|
-
* @property {string | undefined} Path - The `Path` argument passed to the effect returning this error,
|
|
14
|
-
* if one was given.
|
|
15
|
-
* @property {unknown} Cause - The cause of this error.
|
|
16
|
-
*/
|
|
17
|
-
export declare class PackageJsonParseError extends PackageJsonParseError_base<{
|
|
18
|
-
readonly Path: string | undefined;
|
|
19
|
-
readonly Cause: unknown;
|
|
20
|
-
}> {
|
|
21
|
-
}
|
|
22
|
-
declare const RootDirectoryNotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
23
|
-
readonly _tag: "RootDirectoryNotFound";
|
|
24
|
-
} & Readonly<A>;
|
|
25
|
-
/**
|
|
26
|
-
* An error describing that {@link GetPackageRootDirectory} failed.
|
|
27
|
-
*
|
|
28
|
-
* @property {string | undefined} Path - The `Path` argument passed to the effect returning
|
|
29
|
-
* this error, if one was given.
|
|
30
|
-
*/
|
|
31
|
-
export declare class RootDirectoryNotFoundError extends RootDirectoryNotFoundError_base<{
|
|
32
|
-
readonly Path: string | undefined;
|
|
33
|
-
}> {
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=Npm.Error.d.mts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"file": "Npm.Error.d.mts",
|
|
4
|
-
"sourceRoot": "",
|
|
5
|
-
"sources": [
|
|
6
|
-
"../../../Source/Npm/Npm.Error.ts"
|
|
7
|
-
],
|
|
8
|
-
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;;;;AAIH;;;;;;GAMG;AACH,qBAAa,qBACT,SAAQ,2BAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CAC3B,CAAC;CAAI;;;;AAEV;;;;;GAKG;AACH,qBAAa,0BACT,SAAQ,gCAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;CAAI"
|
|
10
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Npm.Error.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
declare const PackageJsonParseError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
8
|
-
readonly _tag: "PackageJsonParseError";
|
|
9
|
-
} & Readonly<A>;
|
|
10
|
-
/**
|
|
11
|
-
* An error describing that {@link GetPackageJson} failed to parse the discovered `package.json` file.
|
|
12
|
-
*
|
|
13
|
-
* @property {string | undefined} Path - The `Path` argument passed to the effect returning this error,
|
|
14
|
-
* if one was given.
|
|
15
|
-
* @property {unknown} Cause - The cause of this error.
|
|
16
|
-
*/
|
|
17
|
-
export declare class PackageJsonParseError extends PackageJsonParseError_base<{
|
|
18
|
-
readonly Path: string | undefined;
|
|
19
|
-
readonly Cause: unknown;
|
|
20
|
-
}> {
|
|
21
|
-
}
|
|
22
|
-
declare const RootDirectoryNotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
23
|
-
readonly _tag: "RootDirectoryNotFound";
|
|
24
|
-
} & Readonly<A>;
|
|
25
|
-
/**
|
|
26
|
-
* An error describing that {@link GetPackageRootDirectory} failed.
|
|
27
|
-
*
|
|
28
|
-
* @property {string | undefined} Path - The `Path` argument passed to the effect returning
|
|
29
|
-
* this error, if one was given.
|
|
30
|
-
*/
|
|
31
|
-
export declare class RootDirectoryNotFoundError extends RootDirectoryNotFoundError_base<{
|
|
32
|
-
readonly Path: string | undefined;
|
|
33
|
-
}> {
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=Npm.Error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Npm.Error.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.Error.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;;AAIH;;;;;;GAMG;AACH,qBAAa,qBACT,SAAQ,2BAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CAC3B,CAAC;CAAI;;;;AAEV;;;;;GAKG;AACH,qBAAa,0BACT,SAAQ,gCAA0C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;CAAI"}
|