@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,674 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// Source/Array/index.ts
|
|
8
|
+
var Array_exports = {};
|
|
9
|
+
__export(Array_exports, {
|
|
10
|
+
FilterDefined: () => FilterDefined
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// Source/Array/Array.ts
|
|
14
|
+
function FilterDefined(Array) {
|
|
15
|
+
return Array.filter((Element) => {
|
|
16
|
+
return Element !== void 0;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Source/Async/index.ts
|
|
21
|
+
var Async_exports = {};
|
|
22
|
+
__export(Async_exports, {
|
|
23
|
+
FPromiseInstantiationError: () => FPromiseInstantiationError,
|
|
24
|
+
Map: () => Map,
|
|
25
|
+
TPromise: () => TPromise,
|
|
26
|
+
TPromiseLike: () => TPromiseLike,
|
|
27
|
+
Try: () => Try
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// Source/Miscellaneous/Utility.Types.ts
|
|
31
|
+
var AbstractMethodCallError = class extends Error {
|
|
32
|
+
constructor(ClassName) {
|
|
33
|
+
super(ClassName);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// Source/Async/Async.ts
|
|
38
|
+
async function Try(Source) {
|
|
39
|
+
try {
|
|
40
|
+
const Data2 = typeof Source === "function" ? await Source() : await Source;
|
|
41
|
+
return {
|
|
42
|
+
Data: Data2,
|
|
43
|
+
Error: void 0
|
|
44
|
+
};
|
|
45
|
+
} catch (ErrorValue) {
|
|
46
|
+
return {
|
|
47
|
+
Data: void 0,
|
|
48
|
+
Error: ErrorValue
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
async function Map(Elements, Mapper) {
|
|
53
|
+
const MapperWrapped = async (Element) => {
|
|
54
|
+
return Mapper(Element);
|
|
55
|
+
};
|
|
56
|
+
const Out = Elements.map(MapperWrapped);
|
|
57
|
+
return await Promise.all(Out);
|
|
58
|
+
}
|
|
59
|
+
var TPromiseLike = class {
|
|
60
|
+
then(_OnFulfilled, _OnRejected) {
|
|
61
|
+
throw new AbstractMethodCallError("TPromiseLike");
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var FPromiseInstantiationError = class extends TypeError {
|
|
65
|
+
constructor() {
|
|
66
|
+
super();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
var TPromise = class _TPromise extends TPromiseLike {
|
|
70
|
+
constructor(Argument) {
|
|
71
|
+
super();
|
|
72
|
+
if (typeof Argument === "function") {
|
|
73
|
+
this.Underlying = new Promise(Argument);
|
|
74
|
+
} else {
|
|
75
|
+
if (Argument instanceof _TPromise) {
|
|
76
|
+
this.Underlying = Argument.Raw();
|
|
77
|
+
} else if (Argument instanceof Promise) {
|
|
78
|
+
this.Underlying = Argument;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
throw new FPromiseInstantiationError();
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* This class's extension of {@link Promise!then}.
|
|
85
|
+
*
|
|
86
|
+
* @template ResultType - The type to which the value underlying the {@link TPromise} returned by this
|
|
87
|
+
* will resolve, if the {@link TPromise} resolves.
|
|
88
|
+
*
|
|
89
|
+
* @template RejectType - The type to which the value underlying the {@link TPromise} returned by this
|
|
90
|
+
* will reject, if the {@link TPromise} rejects.
|
|
91
|
+
*
|
|
92
|
+
* @param OnFulfilled - The callback that is called when the underlying {@link Promise} resolves,
|
|
93
|
+
* if it resolves.
|
|
94
|
+
*
|
|
95
|
+
* @param OnRejected - The callback that is called when the underlying {@link Promise} rejects,
|
|
96
|
+
* if it rejects.
|
|
97
|
+
*
|
|
98
|
+
* @returns {TPromise<ResultType | RejectType>} A new {@link TPromise} of the result of the
|
|
99
|
+
* given callbacks.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const Example: TPromise<string> = new TPromise<string>((Resolve, Reject) =>
|
|
104
|
+
* {
|
|
105
|
+
* if (Math.random() < 0.5)
|
|
106
|
+
* {
|
|
107
|
+
* Resolve("Success");
|
|
108
|
+
* }
|
|
109
|
+
* else
|
|
110
|
+
* {
|
|
111
|
+
* Reject("Error");
|
|
112
|
+
* }
|
|
113
|
+
* });
|
|
114
|
+
*
|
|
115
|
+
* Example.then(
|
|
116
|
+
* (Value: string): void =>
|
|
117
|
+
* {
|
|
118
|
+
* // `Value` <- `"Success"`
|
|
119
|
+
* },
|
|
120
|
+
* (Reason: unknown): void =>
|
|
121
|
+
* {
|
|
122
|
+
* // `Reason` <- `"Error"`
|
|
123
|
+
* }
|
|
124
|
+
* );
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
Then(OnFulfilled, OnRejected) {
|
|
128
|
+
return new _TPromise(this.Underlying.then(OnFulfilled, OnRejected));
|
|
129
|
+
}
|
|
130
|
+
then(OnFulfilled, OnRejected) {
|
|
131
|
+
return new _TPromise(this.Underlying.then(OnFulfilled, OnRejected));
|
|
132
|
+
}
|
|
133
|
+
Catch(OnRejected) {
|
|
134
|
+
return new _TPromise(this.Underlying.catch(OnRejected));
|
|
135
|
+
}
|
|
136
|
+
Finally(OnFinally) {
|
|
137
|
+
return new _TPromise(this.Underlying.finally(OnFinally));
|
|
138
|
+
}
|
|
139
|
+
static Resolve(Value) {
|
|
140
|
+
return new _TPromise(Promise.resolve(Value));
|
|
141
|
+
}
|
|
142
|
+
static Reject(Reason) {
|
|
143
|
+
return new _TPromise(Promise.reject(Reason));
|
|
144
|
+
}
|
|
145
|
+
Raw() {
|
|
146
|
+
return this.Underlying;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// Source/Math/Complex.ts
|
|
151
|
+
var Complex_exports = {};
|
|
152
|
+
__export(Complex_exports, {
|
|
153
|
+
FComplex: () => FComplex,
|
|
154
|
+
i: () => i
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// Source/Math/Complex.Internal.ts
|
|
158
|
+
var MathBuiltin = Math;
|
|
159
|
+
|
|
160
|
+
// Source/Math/Complex.ts
|
|
161
|
+
import { Operator } from "tsover-runtime";
|
|
162
|
+
var _FComplex = class _FComplex {
|
|
163
|
+
constructor(A, B = 0) {
|
|
164
|
+
if (typeof A === "number") {
|
|
165
|
+
this.Re = A;
|
|
166
|
+
this.Im = B;
|
|
167
|
+
} else {
|
|
168
|
+
this.Re = A.Re;
|
|
169
|
+
this.Im = A.Im;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Get the modulus of this {@link FComplex} number.
|
|
174
|
+
*
|
|
175
|
+
* @returns {number} The modulus of this {@link FComplex} number.
|
|
176
|
+
*/
|
|
177
|
+
get Mod() {
|
|
178
|
+
return MathBuiltin.sqrt(this.Re ** 2 + this.Im ** 2);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Get the modulus of this {@link FComplex} number.
|
|
182
|
+
*
|
|
183
|
+
* @returns {number} The modulus of this {@link FComplex} number.
|
|
184
|
+
*/
|
|
185
|
+
get Theta() {
|
|
186
|
+
const Out = MathBuiltin.atan2(this.Im, this.Re);
|
|
187
|
+
if (Out < 0) {
|
|
188
|
+
return Out + 2 * MathBuiltin.PI;
|
|
189
|
+
}
|
|
190
|
+
return Out;
|
|
191
|
+
}
|
|
192
|
+
[Operator.star](A, B) {
|
|
193
|
+
if (typeof A === "number") {
|
|
194
|
+
return new _FComplex(B.Re * A, B.Im * A);
|
|
195
|
+
} else if (typeof B === "number") {
|
|
196
|
+
return new _FComplex(A.Re * B, A.Im * B);
|
|
197
|
+
} else {
|
|
198
|
+
return new _FComplex(A.Re + B.Re - (A.Im + B.Im), A.Re + B.Im + (B.Re + A.Im));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
[Operator.plus](A, B) {
|
|
202
|
+
if (typeof A === "number") {
|
|
203
|
+
return new _FComplex(A + B.Re, B.Im);
|
|
204
|
+
} else if (typeof B === "number") {
|
|
205
|
+
return new _FComplex(A.Re + B, A.Im);
|
|
206
|
+
} else {
|
|
207
|
+
return new _FComplex(A.Re + B.Re, A.Im + B.Im);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
_FComplex.Zero = new _FComplex(0, 0);
|
|
212
|
+
var FComplex = _FComplex;
|
|
213
|
+
var i = new FComplex(0, 1);
|
|
214
|
+
|
|
215
|
+
// Source/FileSystem/index.ts
|
|
216
|
+
var FileSystem_exports = {};
|
|
217
|
+
__export(FileSystem_exports, {
|
|
218
|
+
GetSafeNewPath: () => GetSafeNewPath,
|
|
219
|
+
IsSupportedFileExtension: () => IsSupportedFileExtension,
|
|
220
|
+
IsValidFileName: () => IsValidFileName,
|
|
221
|
+
WriteTextFile: () => WriteTextFile
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
// Source/FileSystem/FileSystem.ts
|
|
225
|
+
import { basename, dirname, extname, join } from "path";
|
|
226
|
+
import { promises as Fs } from "fs";
|
|
227
|
+
import { constants as FsConstants } from "fs";
|
|
228
|
+
import os from "os";
|
|
229
|
+
async function PathExists(Path) {
|
|
230
|
+
try {
|
|
231
|
+
await Fs.access(Path, FsConstants.F_OK);
|
|
232
|
+
return true;
|
|
233
|
+
} catch {
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function IsSupportedFileExtension(Extension) {
|
|
238
|
+
let NormalizedExtension = Extension.slice(1);
|
|
239
|
+
if (NormalizedExtension.startsWith(".")) {
|
|
240
|
+
NormalizedExtension = NormalizedExtension.slice(1);
|
|
241
|
+
}
|
|
242
|
+
if (NormalizedExtension.length === 0) {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
if (NormalizedExtension.includes("/") || NormalizedExtension.includes("\\") || NormalizedExtension.includes("\0")) {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
if (os.platform() === "win32") {
|
|
249
|
+
const HasIllegalCharacters = /[<>:"/\\|?*\x00-\x1F]/u.test(NormalizedExtension);
|
|
250
|
+
if (HasIllegalCharacters) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
if (/[ .]$/u.test(NormalizedExtension)) {
|
|
254
|
+
return false;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
async function GetSafeNewPath(InPath) {
|
|
260
|
+
const DirectoryPath = dirname(InPath);
|
|
261
|
+
const Extension = extname(InPath);
|
|
262
|
+
const FileName = basename(InPath);
|
|
263
|
+
const BaseFileName = Extension === "" ? FileName : basename(InPath, Extension);
|
|
264
|
+
let CandidatePath = InPath;
|
|
265
|
+
let Index = 1;
|
|
266
|
+
while (await PathExists(CandidatePath)) {
|
|
267
|
+
const CandidateFileName = `${BaseFileName} (${Index})${Extension}`;
|
|
268
|
+
CandidatePath = join(DirectoryPath, CandidateFileName);
|
|
269
|
+
Index++;
|
|
270
|
+
}
|
|
271
|
+
return CandidatePath;
|
|
272
|
+
}
|
|
273
|
+
async function IsValidFileName(DirectoryPath, FileName, PersistNewFile = false, Extension = void 0) {
|
|
274
|
+
const ExtensionSafe = Extension !== void 0 ? Extension.startsWith(".") && IsSupportedFileExtension(Extension) ? Extension : null : "";
|
|
275
|
+
const IsExtensionImproper = ExtensionSafe === null || ExtensionSafe === "." || !FileName.endsWith(ExtensionSafe);
|
|
276
|
+
if (IsExtensionImproper) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
const FilePath = join(DirectoryPath, FileName);
|
|
280
|
+
try {
|
|
281
|
+
const ThisFileHandle = await Fs.open(FilePath, "wx");
|
|
282
|
+
await ThisFileHandle.close();
|
|
283
|
+
if (!PersistNewFile) {
|
|
284
|
+
await Fs.unlink(FilePath);
|
|
285
|
+
}
|
|
286
|
+
return true;
|
|
287
|
+
} catch {
|
|
288
|
+
return false;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
async function WriteTextFile(Path, Contents) {
|
|
292
|
+
await Fs.writeFile(Path, Contents, { encoding: "utf-8" });
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// Source/Functional/index.ts
|
|
296
|
+
var Functional_exports = {};
|
|
297
|
+
__export(Functional_exports, {
|
|
298
|
+
Identity: () => Identity
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
// Source/Functional/Functional.ts
|
|
302
|
+
function Identity(...Arguments) {
|
|
303
|
+
return Arguments;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// Source/Math/index.ts
|
|
307
|
+
var Math_exports = {};
|
|
308
|
+
__export(Math_exports, {
|
|
309
|
+
Complex: () => Index_Complex_exports,
|
|
310
|
+
Vector: () => Vector_exports,
|
|
311
|
+
__DummyExport_Number: () => __DummyExport_Number
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
// Source/Math/Index.Complex.ts
|
|
315
|
+
var Index_Complex_exports = {};
|
|
316
|
+
__export(Index_Complex_exports, {
|
|
317
|
+
FComplex: () => FComplex,
|
|
318
|
+
i: () => i
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
// Source/Math/Vector.ts
|
|
322
|
+
var Vector_exports = {};
|
|
323
|
+
__export(Vector_exports, {
|
|
324
|
+
FVector: () => FVector,
|
|
325
|
+
FVector2D: () => FVector2D
|
|
326
|
+
});
|
|
327
|
+
import { Operator as Operator2 } from "tsover-runtime";
|
|
328
|
+
var _FVector2D = class _FVector2D {
|
|
329
|
+
constructor(X = 0, Y = X) {
|
|
330
|
+
this.X = X;
|
|
331
|
+
this.Y = Y;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Get a representation of this vector as a `string`.
|
|
335
|
+
*
|
|
336
|
+
* @returns {string} The string representation of this vector.
|
|
337
|
+
*/
|
|
338
|
+
toString() {
|
|
339
|
+
return `(${this.X}, ${this.Y})`;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Perform per-component addition of two {@link FVector2D}s.
|
|
343
|
+
*
|
|
344
|
+
* @param Left - The left-hand operand.
|
|
345
|
+
* @param Right - The right-hand operand.
|
|
346
|
+
*
|
|
347
|
+
* @returns {FVector2D} The per-component sum of {@link Left} and {@link Right}.
|
|
348
|
+
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```typescript
|
|
351
|
+
* "use tsover";
|
|
352
|
+
*
|
|
353
|
+
* const A: FVector2D = new FVector2D(1, -1);
|
|
354
|
+
* const B: FVector2D = new FVector2D(-3, 5);
|
|
355
|
+
*
|
|
356
|
+
* const C: FVector2D = A + B;
|
|
357
|
+
* // `C` <- `(-2, 4)`
|
|
358
|
+
* ```
|
|
359
|
+
*/
|
|
360
|
+
[Operator2.plus](Left, Right) {
|
|
361
|
+
return new _FVector2D(Left.X + Right.X, Left.Y + Right.Y);
|
|
362
|
+
}
|
|
363
|
+
[Operator2.minus](A, B) {
|
|
364
|
+
return new _FVector2D(A.X - B.X, A.Y - B.Y);
|
|
365
|
+
}
|
|
366
|
+
[Operator2.preMinus](Vector) {
|
|
367
|
+
return new _FVector2D(-1 * Vector.X, -1 * Vector.Y);
|
|
368
|
+
}
|
|
369
|
+
[Operator2.star](Left, Right) {
|
|
370
|
+
if (typeof Left === "number" && Right instanceof _FVector2D) {
|
|
371
|
+
return new _FVector2D(Left * Right.X, Left * Right.Y);
|
|
372
|
+
}
|
|
373
|
+
if (typeof Right === "number" && Left instanceof _FVector2D) {
|
|
374
|
+
return new _FVector2D(Left.X * Right, Left.Y * Right);
|
|
375
|
+
}
|
|
376
|
+
return Operator2.deferOperation;
|
|
377
|
+
}
|
|
378
|
+
get length() {
|
|
379
|
+
return Math.sqrt(this.X ** 2 + this.Y ** 2);
|
|
380
|
+
}
|
|
381
|
+
get Length() {
|
|
382
|
+
return this.length;
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
/** The identity of $\mathbf{R}^2$ *wrt* addition. */
|
|
386
|
+
_FVector2D.Zero = new _FVector2D(0, 0);
|
|
387
|
+
var FVector2D = _FVector2D;
|
|
388
|
+
var FVector = class _FVector {
|
|
389
|
+
constructor(X = 0, Y = X, Z = X) {
|
|
390
|
+
this.X = X;
|
|
391
|
+
this.Y = Y;
|
|
392
|
+
this.Z = Z;
|
|
393
|
+
}
|
|
394
|
+
[Operator2.plus](Left, Right) {
|
|
395
|
+
return new _FVector(Left.X + Right.X, Left.Y + Right.Y, Left.Z + Right.Z);
|
|
396
|
+
}
|
|
397
|
+
[Operator2.minus](A, B) {
|
|
398
|
+
return new _FVector(A.X - B.X, A.Y - B.Y, A.Z - B.Z);
|
|
399
|
+
}
|
|
400
|
+
[Operator2.preMinus](Vector) {
|
|
401
|
+
return new _FVector(-1 * Vector.X, -1 * Vector.Y, -1 * Vector.Z);
|
|
402
|
+
}
|
|
403
|
+
[Operator2.star](Left, Right) {
|
|
404
|
+
if (typeof Left === "number" && Right instanceof _FVector) {
|
|
405
|
+
return new _FVector(Left * Right.X, Left * Right.Y, Left * Right.Z);
|
|
406
|
+
}
|
|
407
|
+
if (typeof Right === "number" && Left instanceof _FVector) {
|
|
408
|
+
return new _FVector(Left.X * Right, Left.Y * Right, Left.Z * Right);
|
|
409
|
+
}
|
|
410
|
+
return Operator2.deferOperation;
|
|
411
|
+
}
|
|
412
|
+
get length() {
|
|
413
|
+
return Math.sqrt(this.X ** 2 + this.Y ** 2 + this.Z ** 2);
|
|
414
|
+
}
|
|
415
|
+
get Length() {
|
|
416
|
+
return this.length;
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
// Source/Math/Math.ts
|
|
421
|
+
var __DummyExport_Number = "DummyExport";
|
|
422
|
+
|
|
423
|
+
// Source/Miscellaneous/index.ts
|
|
424
|
+
var Miscellaneous_exports = {};
|
|
425
|
+
__export(Miscellaneous_exports, {
|
|
426
|
+
AbstractMethodCallError: () => AbstractMethodCallError
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
// Source/Npm/index.ts
|
|
430
|
+
var Npm_exports = {};
|
|
431
|
+
__export(Npm_exports, {
|
|
432
|
+
GetPackageJson: () => GetPackageJson,
|
|
433
|
+
GetPackageRootDirectory: () => GetPackageRootDirectory,
|
|
434
|
+
PackageJsonParseError: () => PackageJsonParseError,
|
|
435
|
+
RootDirectoryNotFoundError: () => RootDirectoryNotFoundError
|
|
436
|
+
});
|
|
437
|
+
|
|
438
|
+
// Source/Npm/Npm.ts
|
|
439
|
+
import { promises as Fs2, constants as FsConstants2 } from "fs";
|
|
440
|
+
|
|
441
|
+
// Source/Npm/Npm.Error.ts
|
|
442
|
+
import { Data } from "effect";
|
|
443
|
+
var PackageJsonParseError = class extends Data.TaggedError("PackageJsonParseError") {
|
|
444
|
+
};
|
|
445
|
+
var RootDirectoryNotFoundError = class extends Data.TaggedError("RootDirectoryNotFound") {
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
// Source/Npm/Npm.ts
|
|
449
|
+
import { dirname as dirname2, join as join2 } from "path";
|
|
450
|
+
import Process from "process";
|
|
451
|
+
async function GetPackageJson(Path) {
|
|
452
|
+
const RootDirectory = await GetPackageRootDirectory(Path);
|
|
453
|
+
const PackageJsonPath = join2(RootDirectory, "package.json");
|
|
454
|
+
const FileContents = await Fs2.readFile(PackageJsonPath, "utf-8");
|
|
455
|
+
const PackageJson = await (async () => {
|
|
456
|
+
try {
|
|
457
|
+
return JSON.parse(FileContents);
|
|
458
|
+
} catch (Cause) {
|
|
459
|
+
throw new PackageJsonParseError({ Cause, Path: PackageJsonPath });
|
|
460
|
+
}
|
|
461
|
+
})();
|
|
462
|
+
return PackageJson;
|
|
463
|
+
}
|
|
464
|
+
async function GetPackageRootDirectory(Path) {
|
|
465
|
+
let CurrentDirectory = await Fs2.realpath(Path ?? Process.cwd());
|
|
466
|
+
while (true) {
|
|
467
|
+
const PackageJsonPath = join2(CurrentDirectory, "package.json");
|
|
468
|
+
const PackageJsonExists = await (async () => {
|
|
469
|
+
try {
|
|
470
|
+
await Fs2.access(PackageJsonPath, FsConstants2.F_OK);
|
|
471
|
+
return true;
|
|
472
|
+
} catch {
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
475
|
+
})();
|
|
476
|
+
if (PackageJsonExists) {
|
|
477
|
+
return CurrentDirectory;
|
|
478
|
+
}
|
|
479
|
+
const ParentDirectory = dirname2(CurrentDirectory);
|
|
480
|
+
if (ParentDirectory === CurrentDirectory) {
|
|
481
|
+
throw new RootDirectoryNotFoundError({ Path });
|
|
482
|
+
}
|
|
483
|
+
CurrentDirectory = ParentDirectory;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// Source/Path/index.ts
|
|
488
|
+
var Path_exports = {};
|
|
489
|
+
__export(Path_exports, {
|
|
490
|
+
FPath: () => FPath
|
|
491
|
+
});
|
|
492
|
+
|
|
493
|
+
// Source/Path/Path.ts
|
|
494
|
+
import { join as join3 } from "path";
|
|
495
|
+
import { Operator as Operator3 } from "tsover-runtime";
|
|
496
|
+
var FPath = class _FPath {
|
|
497
|
+
toString() {
|
|
498
|
+
return this.Raw;
|
|
499
|
+
}
|
|
500
|
+
constructor(Argument) {
|
|
501
|
+
if (typeof Argument === "string") {
|
|
502
|
+
this.Raw = Argument;
|
|
503
|
+
} else {
|
|
504
|
+
this.Raw = Argument.Raw;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
[Operator3.slash](A, B) {
|
|
508
|
+
if (typeof A === "string") {
|
|
509
|
+
return new _FPath(join3(A, B.Raw));
|
|
510
|
+
} else if (typeof B === "string") {
|
|
511
|
+
return new _FPath(join3(A.Raw, B));
|
|
512
|
+
} else {
|
|
513
|
+
return new _FPath(join3(A.Raw, B.Raw));
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
// Source/String/index.ts
|
|
519
|
+
var String_exports = {};
|
|
520
|
+
__export(String_exports, {
|
|
521
|
+
IsAlpha: () => IsAlpha,
|
|
522
|
+
IsLetters: () => IsLetters,
|
|
523
|
+
IsNumeric: () => IsNumeric
|
|
524
|
+
});
|
|
525
|
+
|
|
526
|
+
// Source/String/String.ts
|
|
527
|
+
function IsLetters(In) {
|
|
528
|
+
return /^[a-zA-Z]*$/.test(In);
|
|
529
|
+
}
|
|
530
|
+
function IsAlpha(In) {
|
|
531
|
+
return IsLetters(In);
|
|
532
|
+
}
|
|
533
|
+
function IsNumeric(In) {
|
|
534
|
+
return /^\d+$/.test(In);
|
|
535
|
+
}
|
|
536
|
+
export {
|
|
537
|
+
Array_exports as Array,
|
|
538
|
+
Async_exports as Async,
|
|
539
|
+
Complex_exports as Complex,
|
|
540
|
+
FileSystem_exports as FileSystem,
|
|
541
|
+
Functional_exports as Functional,
|
|
542
|
+
Math_exports as Math,
|
|
543
|
+
Miscellaneous_exports as Miscellaneous,
|
|
544
|
+
Npm_exports as Npm,
|
|
545
|
+
Path_exports as Path,
|
|
546
|
+
String_exports as String
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* @file Array.ts
|
|
550
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
551
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
552
|
+
* @license MIT
|
|
553
|
+
*/
|
|
554
|
+
/**
|
|
555
|
+
* @file Array.Types.ts
|
|
556
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
557
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
558
|
+
* @license MIT
|
|
559
|
+
*/
|
|
560
|
+
/**
|
|
561
|
+
* @file index.ts
|
|
562
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
563
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
564
|
+
* @license MIT
|
|
565
|
+
*/
|
|
566
|
+
/**
|
|
567
|
+
* @file Utility.Types.ts
|
|
568
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
569
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
570
|
+
* @license MIT
|
|
571
|
+
*/
|
|
572
|
+
/**
|
|
573
|
+
* @file Async.ts
|
|
574
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
575
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
576
|
+
* @license MIT
|
|
577
|
+
*/
|
|
578
|
+
/**
|
|
579
|
+
* @file Promise.Types.ts
|
|
580
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
581
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
582
|
+
* @license MIT
|
|
583
|
+
*/
|
|
584
|
+
/**
|
|
585
|
+
* @file Complex.Internal.ts
|
|
586
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
587
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
588
|
+
* @license MIT
|
|
589
|
+
*/
|
|
590
|
+
/**
|
|
591
|
+
* @file Complex.ts
|
|
592
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
593
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
594
|
+
* @license MIT
|
|
595
|
+
*/
|
|
596
|
+
/**
|
|
597
|
+
* @file FileSystem.ts
|
|
598
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
599
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
600
|
+
* @license MIT
|
|
601
|
+
*/
|
|
602
|
+
/**
|
|
603
|
+
* @file FileSystem.Types.ts
|
|
604
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
605
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
606
|
+
* @license MIT
|
|
607
|
+
*/
|
|
608
|
+
/**
|
|
609
|
+
* @file Functional.ts
|
|
610
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
611
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
612
|
+
* @license MIT
|
|
613
|
+
*/
|
|
614
|
+
/**
|
|
615
|
+
* @file Functional.Types.ts
|
|
616
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
617
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
618
|
+
* @license MIT
|
|
619
|
+
*/
|
|
620
|
+
/**
|
|
621
|
+
* @file Complex.Types.ts
|
|
622
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
623
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
624
|
+
* @license MIT
|
|
625
|
+
*/
|
|
626
|
+
/**
|
|
627
|
+
* @file Index.Complex.ts
|
|
628
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
629
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
630
|
+
* @license MIT
|
|
631
|
+
*/
|
|
632
|
+
/**
|
|
633
|
+
* @file Vector.ts
|
|
634
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
635
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
636
|
+
* @license MIT
|
|
637
|
+
*/
|
|
638
|
+
/**
|
|
639
|
+
* @file Math.ts
|
|
640
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
641
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
642
|
+
* @license MIT
|
|
643
|
+
*/
|
|
644
|
+
/**
|
|
645
|
+
* @file Math.Types.ts
|
|
646
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
647
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
648
|
+
* @license MIT
|
|
649
|
+
*/
|
|
650
|
+
/**
|
|
651
|
+
* @file Npm.Error.ts
|
|
652
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
653
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
654
|
+
* @license MIT
|
|
655
|
+
*/
|
|
656
|
+
/**
|
|
657
|
+
* @file Npm.ts
|
|
658
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
659
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
660
|
+
* @license MIT
|
|
661
|
+
*/
|
|
662
|
+
/**
|
|
663
|
+
* @file Path.ts
|
|
664
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
665
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
666
|
+
* @license MIT
|
|
667
|
+
*/
|
|
668
|
+
/**
|
|
669
|
+
* @file String.ts
|
|
670
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
671
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
672
|
+
* @license MIT
|
|
673
|
+
*/
|
|
674
|
+
//# sourceMappingURL=index.js.map
|