@sorrell/utilities 1.2.5 → 1.2.6
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/Distribution/PackageExports.Generated.json +132 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.cts +43 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.mts +43 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.ts +43 -0
- package/Distribution/Types/Array/Array.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Array/Array.Internal.d.cts +16 -0
- package/Distribution/Types/Array/Array.Internal.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.d.mts +16 -0
- package/Distribution/Types/Array/Array.Internal.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.Internal.d.ts +16 -0
- package/Distribution/Types/Array/Array.Internal.d.ts.map +1 -0
- package/Distribution/Types/Array/Array.Types.d.cts +92 -0
- package/Distribution/Types/Array/Array.Types.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.Types.d.mts +92 -0
- package/Distribution/Types/Array/Array.Types.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.Types.d.ts +92 -0
- package/Distribution/Types/Array/Array.Types.d.ts.map +1 -0
- package/Distribution/Types/Array/Array.d.cts +33 -0
- package/Distribution/Types/Array/Array.d.cts.map +10 -0
- package/Distribution/Types/Array/Array.d.mts +33 -0
- package/Distribution/Types/Array/Array.d.mts.map +10 -0
- package/Distribution/Types/Array/Array.d.ts +33 -0
- package/Distribution/Types/Array/Array.d.ts.map +1 -0
- package/Distribution/Types/Array/index.d.cts +9 -0
- package/Distribution/Types/Array/index.d.cts.map +10 -0
- package/Distribution/Types/Array/index.d.mts +9 -0
- package/Distribution/Types/Array/index.d.mts.map +10 -0
- package/Distribution/Types/Array/index.d.ts +9 -0
- package/Distribution/Types/Array/index.d.ts.map +1 -0
- package/Distribution/Types/Async/Async.Types.d.cts +150 -0
- package/Distribution/Types/Async/Async.Types.d.cts.map +10 -0
- package/Distribution/Types/Async/Async.Types.d.mts +150 -0
- package/Distribution/Types/Async/Async.Types.d.mts.map +10 -0
- package/Distribution/Types/Async/Async.Types.d.ts +150 -0
- package/Distribution/Types/Async/Async.Types.d.ts.map +1 -0
- package/Distribution/Types/Async/Async.d.cts +145 -0
- package/Distribution/Types/Async/Async.d.cts.map +10 -0
- package/Distribution/Types/Async/Async.d.mts +145 -0
- package/Distribution/Types/Async/Async.d.mts.map +10 -0
- package/Distribution/Types/Async/Async.d.ts +145 -0
- package/Distribution/Types/Async/Async.d.ts.map +1 -0
- package/Distribution/Types/Async/index.d.cts +9 -0
- package/Distribution/Types/Async/index.d.cts.map +10 -0
- package/Distribution/Types/Async/index.d.mts +9 -0
- package/Distribution/Types/Async/index.d.mts.map +10 -0
- package/Distribution/Types/Async/index.d.ts +9 -0
- package/Distribution/Types/Async/index.d.ts.map +1 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.cts +9 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.cts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.mts +9 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.mts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.ts +9 -0
- package/Distribution/Types/Dependency/Dependency.Internal.d.ts.map +1 -0
- package/Distribution/Types/Dependency/Dependency.d.cts +65 -0
- package/Distribution/Types/Dependency/Dependency.d.cts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.d.mts +65 -0
- package/Distribution/Types/Dependency/Dependency.d.mts.map +10 -0
- package/Distribution/Types/Dependency/Dependency.d.ts +65 -0
- package/Distribution/Types/Dependency/Dependency.d.ts.map +1 -0
- package/Distribution/Types/Dependency/index.d.cts +13 -0
- package/Distribution/Types/Dependency/index.d.cts.map +10 -0
- package/Distribution/Types/Dependency/index.d.mts +13 -0
- package/Distribution/Types/Dependency/index.d.mts.map +10 -0
- package/Distribution/Types/Dependency/index.d.ts +13 -0
- package/Distribution/Types/Dependency/index.d.ts.map +1 -0
- package/Distribution/Types/Effect/Effect.Types.d.cts +16 -0
- package/Distribution/Types/Effect/Effect.Types.d.cts.map +10 -0
- package/Distribution/Types/Effect/Effect.Types.d.mts +16 -0
- package/Distribution/Types/Effect/Effect.Types.d.mts.map +10 -0
- package/Distribution/Types/Effect/Effect.Types.d.ts +16 -0
- package/Distribution/Types/Effect/Effect.Types.d.ts.map +1 -0
- package/Distribution/Types/Effect/Effect.d.cts +8 -0
- package/Distribution/Types/Effect/Effect.d.cts.map +10 -0
- package/Distribution/Types/Effect/Effect.d.mts +8 -0
- package/Distribution/Types/Effect/Effect.d.mts.map +10 -0
- package/Distribution/Types/Effect/Effect.d.ts +8 -0
- package/Distribution/Types/Effect/Effect.d.ts.map +1 -0
- package/Distribution/Types/Effect/Index.Effect.d.cts +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.cts.map +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.mts +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.mts.map +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.ts +10 -0
- package/Distribution/Types/Effect/Index.Effect.d.ts.map +1 -0
- package/Distribution/Types/Effect/index.d.cts +8 -0
- package/Distribution/Types/Effect/index.d.cts.map +10 -0
- package/Distribution/Types/Effect/index.d.mts +8 -0
- package/Distribution/Types/Effect/index.d.mts.map +10 -0
- package/Distribution/Types/Effect/index.d.ts +8 -0
- package/Distribution/Types/Effect/index.d.ts.map +1 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.cts +8 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.cts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.mts +8 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.mts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.ts +8 -0
- package/Distribution/Types/FileSystem/FileSystem.Types.d.ts.map +1 -0
- package/Distribution/Types/FileSystem/FileSystem.d.cts +55 -0
- package/Distribution/Types/FileSystem/FileSystem.d.cts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.d.mts +55 -0
- package/Distribution/Types/FileSystem/FileSystem.d.mts.map +10 -0
- package/Distribution/Types/FileSystem/FileSystem.d.ts +55 -0
- package/Distribution/Types/FileSystem/FileSystem.d.ts.map +1 -0
- package/Distribution/Types/FileSystem/index.d.cts +9 -0
- package/Distribution/Types/FileSystem/index.d.cts.map +10 -0
- package/Distribution/Types/FileSystem/index.d.mts +9 -0
- package/Distribution/Types/FileSystem/index.d.mts.map +10 -0
- package/Distribution/Types/FileSystem/index.d.ts +9 -0
- package/Distribution/Types/FileSystem/index.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.cts +9 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.mts +9 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.ts +9 -0
- package/Distribution/Types/Functional/Functional.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.Internal.d.cts +8 -0
- package/Distribution/Types/Functional/Functional.Internal.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.d.mts +8 -0
- package/Distribution/Types/Functional/Functional.Internal.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.Internal.d.ts +8 -0
- package/Distribution/Types/Functional/Functional.Internal.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.Types.d.cts +28 -0
- package/Distribution/Types/Functional/Functional.Types.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.Types.d.mts +28 -0
- package/Distribution/Types/Functional/Functional.Types.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.Types.d.ts +28 -0
- package/Distribution/Types/Functional/Functional.Types.d.ts.map +1 -0
- package/Distribution/Types/Functional/Functional.d.cts +8 -0
- package/Distribution/Types/Functional/Functional.d.cts.map +10 -0
- package/Distribution/Types/Functional/Functional.d.mts +8 -0
- package/Distribution/Types/Functional/Functional.d.mts.map +10 -0
- package/Distribution/Types/Functional/Functional.d.ts +8 -0
- package/Distribution/Types/Functional/Functional.d.ts.map +1 -0
- package/Distribution/Types/Functional/index.d.cts +9 -0
- package/Distribution/Types/Functional/index.d.cts.map +10 -0
- package/Distribution/Types/Functional/index.d.mts +9 -0
- package/Distribution/Types/Functional/index.d.mts.map +10 -0
- package/Distribution/Types/Functional/index.d.ts +9 -0
- package/Distribution/Types/Functional/index.d.ts.map +1 -0
- package/Distribution/Types/Math/Complex.Internal.d.cts +8 -0
- package/Distribution/Types/Math/Complex.Internal.d.cts.map +10 -0
- package/Distribution/Types/Math/Complex.Internal.d.mts +8 -0
- package/Distribution/Types/Math/Complex.Internal.d.mts.map +10 -0
- package/Distribution/Types/Math/Complex.Internal.d.ts +8 -0
- package/Distribution/Types/Math/Complex.Internal.d.ts.map +1 -0
- package/Distribution/Types/Math/Complex.Types.d.cts +69 -0
- package/Distribution/Types/Math/Complex.Types.d.cts.map +10 -0
- package/Distribution/Types/Math/Complex.Types.d.mts +69 -0
- package/Distribution/Types/Math/Complex.Types.d.mts.map +10 -0
- package/Distribution/Types/Math/Complex.Types.d.ts +69 -0
- package/Distribution/Types/Math/Complex.Types.d.ts.map +1 -0
- package/Distribution/Types/Math/Complex.d.cts +63 -0
- package/Distribution/Types/Math/Complex.d.cts.map +10 -0
- package/Distribution/Types/Math/Complex.d.mts +63 -0
- package/Distribution/Types/Math/Complex.d.mts.map +10 -0
- package/Distribution/Types/Math/Complex.d.ts +63 -0
- package/Distribution/Types/Math/Complex.d.ts.map +1 -0
- package/Distribution/Types/Math/Index.Complex.d.cts +9 -0
- package/Distribution/Types/Math/Index.Complex.d.cts.map +10 -0
- package/Distribution/Types/Math/Index.Complex.d.mts +9 -0
- package/Distribution/Types/Math/Index.Complex.d.mts.map +10 -0
- package/Distribution/Types/Math/Index.Complex.d.ts +9 -0
- package/Distribution/Types/Math/Index.Complex.d.ts.map +1 -0
- package/Distribution/Types/Math/Index.Experimental.d.cts +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.cts.map +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.mts +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.mts.map +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.ts +10 -0
- package/Distribution/Types/Math/Index.Experimental.d.ts.map +1 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.cts +47 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.mts +47 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.ts +47 -0
- package/Distribution/Types/Math/Math.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Math/Math.Types.d.cts +98 -0
- package/Distribution/Types/Math/Math.Types.d.cts.map +10 -0
- package/Distribution/Types/Math/Math.Types.d.mts +98 -0
- package/Distribution/Types/Math/Math.Types.d.mts.map +10 -0
- package/Distribution/Types/Math/Math.Types.d.ts +98 -0
- package/Distribution/Types/Math/Math.Types.d.ts.map +1 -0
- package/Distribution/Types/Math/Math.d.cts +8 -0
- package/Distribution/Types/Math/Math.d.cts.map +10 -0
- package/Distribution/Types/Math/Math.d.mts +8 -0
- package/Distribution/Types/Math/Math.d.mts.map +10 -0
- package/Distribution/Types/Math/Math.d.ts +8 -0
- package/Distribution/Types/Math/Math.d.ts.map +1 -0
- package/Distribution/Types/Math/Vector.d.cts +102 -0
- package/Distribution/Types/Math/Vector.d.cts.map +10 -0
- package/Distribution/Types/Math/Vector.d.mts +102 -0
- package/Distribution/Types/Math/Vector.d.mts.map +10 -0
- package/Distribution/Types/Math/Vector.d.ts +102 -0
- package/Distribution/Types/Math/Vector.d.ts.map +1 -0
- package/Distribution/Types/Math/index.d.cts +15 -0
- package/Distribution/Types/Math/index.d.cts.map +10 -0
- package/Distribution/Types/Math/index.d.mts +15 -0
- package/Distribution/Types/Math/index.d.mts.map +10 -0
- package/Distribution/Types/Math/index.d.ts +15 -0
- package/Distribution/Types/Math/index.d.ts.map +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts +9 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts +9 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts +9 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts.map +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts +104 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts +104 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts.map +10 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts +104 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts.map +1 -0
- package/Distribution/Types/Miscellaneous/index.d.cts +8 -0
- package/Distribution/Types/Miscellaneous/index.d.cts.map +10 -0
- package/Distribution/Types/Miscellaneous/index.d.mts +8 -0
- package/Distribution/Types/Miscellaneous/index.d.mts.map +10 -0
- package/Distribution/Types/Miscellaneous/index.d.ts +8 -0
- package/Distribution/Types/Miscellaneous/index.d.ts.map +1 -0
- package/Distribution/Types/Npm/Index.Effect.d.cts +9 -0
- package/Distribution/Types/Npm/Index.Effect.d.cts.map +10 -0
- package/Distribution/Types/Npm/Index.Effect.d.mts +9 -0
- package/Distribution/Types/Npm/Index.Effect.d.mts.map +10 -0
- package/Distribution/Types/Npm/Index.Effect.d.ts +9 -0
- package/Distribution/Types/Npm/Index.Effect.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts +17 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts +17 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts +17 -0
- package/Distribution/Types/Npm/Npm.Effect.Internal.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.cts +12 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.mts +12 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.ts +12 -0
- package/Distribution/Types/Npm/Npm.Effect.Types.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Effect.d.cts +92 -0
- package/Distribution/Types/Npm/Npm.Effect.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.d.mts +92 -0
- package/Distribution/Types/Npm/Npm.Effect.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Effect.d.ts +92 -0
- package/Distribution/Types/Npm/Npm.Effect.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.Error.d.cts +36 -0
- package/Distribution/Types/Npm/Npm.Error.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.Error.d.mts +36 -0
- package/Distribution/Types/Npm/Npm.Error.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.Error.d.ts +36 -0
- package/Distribution/Types/Npm/Npm.Error.d.ts.map +1 -0
- package/Distribution/Types/Npm/Npm.d.cts +91 -0
- package/Distribution/Types/Npm/Npm.d.cts.map +10 -0
- package/Distribution/Types/Npm/Npm.d.mts +91 -0
- package/Distribution/Types/Npm/Npm.d.mts.map +10 -0
- package/Distribution/Types/Npm/Npm.d.ts +91 -0
- package/Distribution/Types/Npm/Npm.d.ts.map +1 -0
- package/Distribution/Types/Npm/index.d.cts +15 -0
- package/Distribution/Types/Npm/index.d.cts.map +10 -0
- package/Distribution/Types/Npm/index.d.mts +15 -0
- package/Distribution/Types/Npm/index.d.mts.map +10 -0
- package/Distribution/Types/Npm/index.d.ts +15 -0
- package/Distribution/Types/Npm/index.d.ts.map +1 -0
- package/Distribution/Types/Path/Path.d.cts +17 -0
- package/Distribution/Types/Path/Path.d.cts.map +10 -0
- package/Distribution/Types/Path/Path.d.mts +17 -0
- package/Distribution/Types/Path/Path.d.mts.map +10 -0
- package/Distribution/Types/Path/Path.d.ts +17 -0
- package/Distribution/Types/Path/Path.d.ts.map +1 -0
- package/Distribution/Types/Path/index.d.cts +8 -0
- package/Distribution/Types/Path/index.d.cts.map +10 -0
- package/Distribution/Types/Path/index.d.mts +8 -0
- package/Distribution/Types/Path/index.d.mts.map +10 -0
- package/Distribution/Types/Path/index.d.ts +8 -0
- package/Distribution/Types/Path/index.d.ts.map +1 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.cts +32 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.mts +32 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.ts +32 -0
- package/Distribution/Types/Record/Record.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/Record/Record.Types.d.cts +78 -0
- package/Distribution/Types/Record/Record.Types.d.cts.map +10 -0
- package/Distribution/Types/Record/Record.Types.d.mts +78 -0
- package/Distribution/Types/Record/Record.Types.d.mts.map +10 -0
- package/Distribution/Types/Record/Record.Types.d.ts +78 -0
- package/Distribution/Types/Record/Record.Types.d.ts.map +1 -0
- package/Distribution/Types/Record/Record.d.cts +63 -0
- package/Distribution/Types/Record/Record.d.cts.map +10 -0
- package/Distribution/Types/Record/Record.d.mts +63 -0
- package/Distribution/Types/Record/Record.d.mts.map +10 -0
- package/Distribution/Types/Record/Record.d.ts +63 -0
- package/Distribution/Types/Record/Record.d.ts.map +1 -0
- package/Distribution/Types/Record/index.d.cts +9 -0
- package/Distribution/Types/Record/index.d.cts.map +10 -0
- package/Distribution/Types/Record/index.d.mts +9 -0
- package/Distribution/Types/Record/index.d.mts.map +10 -0
- package/Distribution/Types/Record/index.d.ts +9 -0
- package/Distribution/Types/Record/index.d.ts.map +1 -0
- package/Distribution/Types/String/String.d.cts +28 -0
- package/Distribution/Types/String/String.d.cts.map +10 -0
- package/Distribution/Types/String/String.d.mts +28 -0
- package/Distribution/Types/String/String.d.mts.map +10 -0
- package/Distribution/Types/String/String.d.ts +28 -0
- package/Distribution/Types/String/String.d.ts.map +1 -0
- package/Distribution/Types/String/index.d.cts +8 -0
- package/Distribution/Types/String/index.d.cts.map +10 -0
- package/Distribution/Types/String/index.d.mts +8 -0
- package/Distribution/Types/String/index.d.mts.map +10 -0
- package/Distribution/Types/String/index.d.ts +8 -0
- package/Distribution/Types/String/index.d.ts.map +1 -0
- package/Distribution/Types/index.d.cts +24 -0
- package/Distribution/Types/index.d.cts.map +10 -0
- package/Distribution/Types/index.d.mts +24 -0
- package/Distribution/Types/index.d.mts.map +10 -0
- package/Distribution/Types/index.d.ts +24 -0
- package/Distribution/Types/index.d.ts.map +1 -0
- package/Distribution/array.cjs +51 -0
- package/Distribution/array.cjs.map +7 -0
- package/Distribution/array.js +28 -0
- package/Distribution/array.js.map +7 -0
- package/Distribution/async.cjs +174 -0
- package/Distribution/async.cjs.map +7 -0
- package/Distribution/async.js +151 -0
- package/Distribution/async.js.map +7 -0
- package/Distribution/complex.cjs +97 -0
- package/Distribution/complex.cjs.map +7 -0
- package/Distribution/complex.js +74 -0
- package/Distribution/complex.js.map +7 -0
- package/Distribution/effect.cjs +63 -0
- package/Distribution/effect.cjs.map +7 -0
- package/Distribution/effect.js +58 -0
- package/Distribution/effect.js.map +7 -0
- package/Distribution/fs.cjs +128 -0
- package/Distribution/fs.cjs.map +7 -0
- package/Distribution/fs.js +95 -0
- package/Distribution/fs.js.map +7 -0
- package/Distribution/functional.cjs +49 -0
- package/Distribution/functional.cjs.map +7 -0
- package/Distribution/functional.js +26 -0
- package/Distribution/functional.js.map +7 -0
- package/Distribution/index.cjs +701 -0
- package/Distribution/index.cjs.map +7 -0
- package/Distribution/index.js +674 -0
- package/Distribution/index.js.map +7 -0
- package/Distribution/math.cjs +243 -0
- package/Distribution/math.cjs.map +7 -0
- package/Distribution/math.js +226 -0
- package/Distribution/math.js.map +7 -0
- package/Distribution/misc.cjs +45 -0
- package/Distribution/misc.cjs.map +7 -0
- package/Distribution/misc.js +22 -0
- package/Distribution/misc.js.map +7 -0
- package/Distribution/npm-effect.cjs +130 -0
- package/Distribution/npm-effect.cjs.map +7 -0
- package/Distribution/npm-effect.js +97 -0
- package/Distribution/npm-effect.js.map +7 -0
- package/Distribution/npm.cjs +106 -0
- package/Distribution/npm.cjs.map +7 -0
- package/Distribution/npm.js +73 -0
- package/Distribution/npm.js.map +7 -0
- package/Distribution/path.cjs +63 -0
- package/Distribution/path.cjs.map +7 -0
- package/Distribution/path.js +40 -0
- package/Distribution/path.js.map +7 -0
- package/Distribution/record.cjs +116 -0
- package/Distribution/record.cjs.map +7 -0
- package/Distribution/record.js +93 -0
- package/Distribution/record.js.map +7 -0
- package/package.json +11 -1
|
@@ -0,0 +1,92 @@
|
|
|
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
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Npm.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { IPackageJson } from "package-json-type";
|
|
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
|
+
* @throws {RootDirectoryNotFoundError | PackageJsonParseError} An error
|
|
15
|
+
* describing either failure to identify a root directory, or failing to
|
|
16
|
+
* parse the discovered `package.json`.
|
|
17
|
+
*
|
|
18
|
+
* @returns {Promise<IPackageJson>} The {@link IPackageJson} of {@link Path}
|
|
19
|
+
* if provided, otherwise of `process.cwd()`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* Suppose `process.cwd() === "./MyPackage"`,
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const PackageJson: IPackageJson = await GetPackageJson();
|
|
25
|
+
* // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function GetPackageJson(Path?: string): Promise<IPackageJson>;
|
|
29
|
+
/**
|
|
30
|
+
* Get the root directory of the Node.js project in which the
|
|
31
|
+
* current working directory resides.
|
|
32
|
+
*
|
|
33
|
+
* @param Path - The given path from which to look for a root directory.
|
|
34
|
+
*
|
|
35
|
+
* @throws {RootDirectoryNotFoundError} An error iff the root directory
|
|
36
|
+
* of a NodeJS package could not be found.
|
|
37
|
+
*
|
|
38
|
+
* @returns {Promise<string>} The path to the root directory of the package
|
|
39
|
+
* containing {@link Path} if specified, otherwise containing `process.cwd()`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* Suppose `process.cwd()` is any one of the following,
|
|
43
|
+
* - `/home/alex/myPackage`,
|
|
44
|
+
* - `/home/alex/myPackage/src/MyModule`,
|
|
45
|
+
* - `/home/alex/myPackage/resource/Images`,
|
|
46
|
+
*
|
|
47
|
+
* then,
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* const Root: string = await GetPackageRootDirectory();
|
|
51
|
+
* // `Root` <- `"/home/alex/myPackage"`
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* Suppose `TestPath === "/home/alex/Documents"` is *not* a NodeJS package root
|
|
56
|
+
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
57
|
+
*
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const TestPath: string = "/home/alex/Documents";
|
|
60
|
+
* let Root: string | undefined = undefined;
|
|
61
|
+
* try
|
|
62
|
+
* {
|
|
63
|
+
* Root = await GetPackageRootDirectory(TestPath);
|
|
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
|
+
* let Root: string | undefined = undefined;
|
|
79
|
+
* try
|
|
80
|
+
* {
|
|
81
|
+
* Root = await GetPackageRootDirectory();
|
|
82
|
+
* }
|
|
83
|
+
* catch (Error: unknown)
|
|
84
|
+
* {
|
|
85
|
+
* // `Error instanceof RootDirectoryNotFound`
|
|
86
|
+
* }
|
|
87
|
+
* // `Root` <- `undefined`
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
export declare function GetPackageRootDirectory(Path?: string): Promise<string>;
|
|
91
|
+
//# sourceMappingURL=Npm.d.cts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Npm.d.cts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Npm/Npm.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoBzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5E"
|
|
10
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Npm.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { IPackageJson } from "package-json-type";
|
|
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
|
+
* @throws {RootDirectoryNotFoundError | PackageJsonParseError} An error
|
|
15
|
+
* describing either failure to identify a root directory, or failing to
|
|
16
|
+
* parse the discovered `package.json`.
|
|
17
|
+
*
|
|
18
|
+
* @returns {Promise<IPackageJson>} The {@link IPackageJson} of {@link Path}
|
|
19
|
+
* if provided, otherwise of `process.cwd()`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* Suppose `process.cwd() === "./MyPackage"`,
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const PackageJson: IPackageJson = await GetPackageJson();
|
|
25
|
+
* // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function GetPackageJson(Path?: string): Promise<IPackageJson>;
|
|
29
|
+
/**
|
|
30
|
+
* Get the root directory of the Node.js project in which the
|
|
31
|
+
* current working directory resides.
|
|
32
|
+
*
|
|
33
|
+
* @param Path - The given path from which to look for a root directory.
|
|
34
|
+
*
|
|
35
|
+
* @throws {RootDirectoryNotFoundError} An error iff the root directory
|
|
36
|
+
* of a NodeJS package could not be found.
|
|
37
|
+
*
|
|
38
|
+
* @returns {Promise<string>} The path to the root directory of the package
|
|
39
|
+
* containing {@link Path} if specified, otherwise containing `process.cwd()`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* Suppose `process.cwd()` is any one of the following,
|
|
43
|
+
* - `/home/alex/myPackage`,
|
|
44
|
+
* - `/home/alex/myPackage/src/MyModule`,
|
|
45
|
+
* - `/home/alex/myPackage/resource/Images`,
|
|
46
|
+
*
|
|
47
|
+
* then,
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* const Root: string = await GetPackageRootDirectory();
|
|
51
|
+
* // `Root` <- `"/home/alex/myPackage"`
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* Suppose `TestPath === "/home/alex/Documents"` is *not* a NodeJS package root
|
|
56
|
+
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
57
|
+
*
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const TestPath: string = "/home/alex/Documents";
|
|
60
|
+
* let Root: string | undefined = undefined;
|
|
61
|
+
* try
|
|
62
|
+
* {
|
|
63
|
+
* Root = await GetPackageRootDirectory(TestPath);
|
|
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
|
+
* let Root: string | undefined = undefined;
|
|
79
|
+
* try
|
|
80
|
+
* {
|
|
81
|
+
* Root = await GetPackageRootDirectory();
|
|
82
|
+
* }
|
|
83
|
+
* catch (Error: unknown)
|
|
84
|
+
* {
|
|
85
|
+
* // `Error instanceof RootDirectoryNotFound`
|
|
86
|
+
* }
|
|
87
|
+
* // `Root` <- `undefined`
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
export declare function GetPackageRootDirectory(Path?: string): Promise<string>;
|
|
91
|
+
//# sourceMappingURL=Npm.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Npm.d.mts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Npm/Npm.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoBzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5E"
|
|
10
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Npm.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { IPackageJson } from "package-json-type";
|
|
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
|
+
* @throws {RootDirectoryNotFoundError | PackageJsonParseError} An error
|
|
15
|
+
* describing either failure to identify a root directory, or failing to
|
|
16
|
+
* parse the discovered `package.json`.
|
|
17
|
+
*
|
|
18
|
+
* @returns {Promise<IPackageJson>} The {@link IPackageJson} of {@link Path}
|
|
19
|
+
* if provided, otherwise of `process.cwd()`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* Suppose `process.cwd() === "./MyPackage"`,
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const PackageJson: IPackageJson = await GetPackageJson();
|
|
25
|
+
* // `PackageJson` <- *The parsed `package.json` of `MyPackage`.*
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function GetPackageJson(Path?: string): Promise<IPackageJson>;
|
|
29
|
+
/**
|
|
30
|
+
* Get the root directory of the Node.js project in which the
|
|
31
|
+
* current working directory resides.
|
|
32
|
+
*
|
|
33
|
+
* @param Path - The given path from which to look for a root directory.
|
|
34
|
+
*
|
|
35
|
+
* @throws {RootDirectoryNotFoundError} An error iff the root directory
|
|
36
|
+
* of a NodeJS package could not be found.
|
|
37
|
+
*
|
|
38
|
+
* @returns {Promise<string>} The path to the root directory of the package
|
|
39
|
+
* containing {@link Path} if specified, otherwise containing `process.cwd()`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* Suppose `process.cwd()` is any one of the following,
|
|
43
|
+
* - `/home/alex/myPackage`,
|
|
44
|
+
* - `/home/alex/myPackage/src/MyModule`,
|
|
45
|
+
* - `/home/alex/myPackage/resource/Images`,
|
|
46
|
+
*
|
|
47
|
+
* then,
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* const Root: string = await GetPackageRootDirectory();
|
|
51
|
+
* // `Root` <- `"/home/alex/myPackage"`
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* Suppose `TestPath === "/home/alex/Documents"` is *not* a NodeJS package root
|
|
56
|
+
* (of course, neither are `/home/alex` or `/home`). Then,
|
|
57
|
+
*
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const TestPath: string = "/home/alex/Documents";
|
|
60
|
+
* let Root: string | undefined = undefined;
|
|
61
|
+
* try
|
|
62
|
+
* {
|
|
63
|
+
* Root = await GetPackageRootDirectory(TestPath);
|
|
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
|
+
* let Root: string | undefined = undefined;
|
|
79
|
+
* try
|
|
80
|
+
* {
|
|
81
|
+
* Root = await GetPackageRootDirectory();
|
|
82
|
+
* }
|
|
83
|
+
* catch (Error: unknown)
|
|
84
|
+
* {
|
|
85
|
+
* // `Error instanceof RootDirectoryNotFound`
|
|
86
|
+
* }
|
|
87
|
+
* // `Root` <- `undefined`
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
export declare function GetPackageRootDirectory(Path?: string): Promise<string>;
|
|
91
|
+
//# sourceMappingURL=Npm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Npm.d.ts","sourceRoot":"","sources":["../../../Source/Npm/Npm.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoBzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmC5E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file index.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @module Npm
|
|
9
|
+
* Utilities for working with `npm` (NodeJS) packages.
|
|
10
|
+
* Many of these likely work with packages of other NodeJS
|
|
11
|
+
* package managers and adjacent runtimes (*e.g.*, `bun` or `deno`).
|
|
12
|
+
*/
|
|
13
|
+
export * from "./Npm.cjs";
|
|
14
|
+
export * from "./Npm.Error.cjs";
|
|
15
|
+
//# sourceMappingURL=index.d.cts.map
|