@sorrell/utilities 1.2.9 → 1.2.12
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 +30 -0
- package/Distribution/Types/Async/Async.Types.d.cts +1 -1
- package/Distribution/Types/Async/Async.Types.d.cts.map +1 -1
- package/Distribution/Types/Async/Async.Types.d.mts +1 -1
- package/Distribution/Types/Async/Async.Types.d.mts.map +1 -1
- package/Distribution/Types/Async/Async.Types.d.ts +1 -1
- package/Distribution/Types/Async/Async.Types.d.ts.map +1 -1
- package/Distribution/Types/Effect/Effect.Types.d.cts +29 -2
- package/Distribution/Types/Effect/Effect.Types.d.cts.map +1 -1
- package/Distribution/Types/Effect/Effect.Types.d.mts +29 -2
- package/Distribution/Types/Effect/Effect.Types.d.mts.map +1 -1
- package/Distribution/Types/Effect/Effect.Types.d.ts +29 -2
- package/Distribution/Types/Effect/Effect.Types.d.ts.map +1 -1
- package/Distribution/Types/Effect/index.d.cts +2 -1
- package/Distribution/Types/Effect/index.d.cts.map +1 -1
- package/Distribution/Types/Effect/index.d.mts +2 -1
- package/Distribution/Types/Effect/index.d.mts.map +1 -1
- package/Distribution/Types/Effect/index.d.ts +2 -1
- package/Distribution/Types/Effect/index.d.ts.map +1 -1
- package/Distribution/Types/FileSystem/FileSystem.d.cts +16 -0
- package/Distribution/Types/FileSystem/FileSystem.d.cts.map +1 -1
- package/Distribution/Types/FileSystem/FileSystem.d.mts +16 -0
- package/Distribution/Types/FileSystem/FileSystem.d.mts.map +1 -1
- package/Distribution/Types/FileSystem/FileSystem.d.ts +16 -0
- package/Distribution/Types/FileSystem/FileSystem.d.ts.map +1 -1
- package/Distribution/Types/Functional/Functional.Types.d.cts +3 -3
- package/Distribution/Types/Functional/Functional.Types.d.cts.map +1 -1
- package/Distribution/Types/Functional/Functional.Types.d.mts +3 -3
- package/Distribution/Types/Functional/Functional.Types.d.mts.map +1 -1
- package/Distribution/Types/Functional/Functional.Types.d.ts +3 -3
- package/Distribution/Types/Functional/Functional.Types.d.ts.map +1 -1
- package/Distribution/Types/Functional/Functional.d.cts +7 -1
- package/Distribution/Types/Functional/Functional.d.cts.map +1 -1
- package/Distribution/Types/Functional/Functional.d.mts +7 -1
- package/Distribution/Types/Functional/Functional.d.mts.map +1 -1
- package/Distribution/Types/Functional/Functional.d.ts +7 -1
- package/Distribution/Types/Functional/Functional.d.ts.map +1 -1
- package/Distribution/Types/HigherKind/HigherKind.Internal.Types.d.cts +30 -0
- package/Distribution/Types/HigherKind/HigherKind.Internal.Types.d.cts.map +10 -0
- package/Distribution/Types/HigherKind/HigherKind.Internal.Types.d.mts +30 -0
- package/Distribution/Types/HigherKind/HigherKind.Internal.Types.d.mts.map +10 -0
- package/Distribution/Types/HigherKind/HigherKind.Internal.Types.d.ts +30 -0
- package/Distribution/Types/HigherKind/HigherKind.Internal.Types.d.ts.map +1 -0
- package/Distribution/Types/HigherKind/HigherKind.Registrar.Types.d.cts +31 -0
- package/Distribution/Types/HigherKind/HigherKind.Registrar.Types.d.cts.map +10 -0
- package/Distribution/Types/HigherKind/HigherKind.Registrar.Types.d.mts +31 -0
- package/Distribution/Types/HigherKind/HigherKind.Registrar.Types.d.mts.map +10 -0
- package/Distribution/Types/HigherKind/HigherKind.Registrar.Types.d.ts +31 -0
- package/Distribution/Types/HigherKind/HigherKind.Registrar.Types.d.ts.map +1 -0
- package/Distribution/Types/HigherKind/HigherKind.Types.d.cts +85 -0
- package/Distribution/Types/HigherKind/HigherKind.Types.d.cts.map +10 -0
- package/Distribution/Types/HigherKind/HigherKind.Types.d.mts +85 -0
- package/Distribution/Types/HigherKind/HigherKind.Types.d.mts.map +10 -0
- package/Distribution/Types/HigherKind/HigherKind.Types.d.ts +85 -0
- package/Distribution/Types/HigherKind/HigherKind.Types.d.ts.map +1 -0
- package/Distribution/Types/{Effect/Effect.d.ts → HigherKind/index.d.cts} +3 -3
- package/Distribution/Types/HigherKind/index.d.cts.map +10 -0
- package/Distribution/Types/{Effect/Effect.d.cts → HigherKind/index.d.mts} +3 -3
- package/Distribution/Types/HigherKind/index.d.mts.map +10 -0
- package/Distribution/Types/{Effect/Effect.d.mts → HigherKind/index.d.ts} +3 -3
- package/Distribution/Types/HigherKind/index.d.ts.map +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts +12 -26
- package/Distribution/Types/Miscellaneous/Utility.Types.d.cts.map +1 -1
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts +12 -26
- package/Distribution/Types/Miscellaneous/Utility.Types.d.mts.map +1 -1
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts +12 -26
- package/Distribution/Types/Miscellaneous/Utility.Types.d.ts.map +1 -1
- package/Distribution/Types/TsConfig/TsConfig.Types.d.cts +32 -0
- package/Distribution/Types/TsConfig/TsConfig.Types.d.cts.map +10 -0
- package/Distribution/Types/TsConfig/TsConfig.Types.d.mts +32 -0
- package/Distribution/Types/TsConfig/TsConfig.Types.d.mts.map +10 -0
- package/Distribution/Types/TsConfig/TsConfig.Types.d.ts +32 -0
- package/Distribution/Types/TsConfig/TsConfig.Types.d.ts.map +1 -0
- package/Distribution/Types/TsConfig/index.d.cts +8 -0
- package/Distribution/Types/TsConfig/index.d.cts.map +10 -0
- package/Distribution/Types/TsConfig/index.d.mts +8 -0
- package/Distribution/Types/TsConfig/index.d.mts.map +10 -0
- package/Distribution/Types/TsConfig/index.d.ts +8 -0
- package/Distribution/Types/TsConfig/index.d.ts.map +1 -0
- package/Distribution/Types/index.d.cts +1 -0
- package/Distribution/Types/index.d.cts.map +1 -1
- package/Distribution/Types/index.d.mts +1 -0
- package/Distribution/Types/index.d.mts.map +1 -1
- package/Distribution/Types/index.d.ts +1 -0
- package/Distribution/Types/index.d.ts.map +1 -1
- package/Distribution/async.cjs.map +2 -2
- package/Distribution/async.js.map +2 -2
- package/Distribution/effect.cjs +4 -24
- package/Distribution/effect.cjs.map +3 -3
- package/Distribution/effect.js +5 -42
- package/Distribution/effect.js.map +3 -3
- package/Distribution/fs.cjs +94 -4
- package/Distribution/fs.cjs.map +3 -3
- package/Distribution/fs.js +94 -4
- package/Distribution/fs.js.map +3 -3
- package/Distribution/functional.cjs +2 -2
- package/Distribution/functional.cjs.map +2 -2
- package/Distribution/functional.js +2 -2
- package/Distribution/functional.js.map +2 -2
- package/Distribution/higher-kind.cjs +31 -0
- package/Distribution/higher-kind.cjs.map +7 -0
- package/Distribution/higher-kind.js +13 -0
- package/Distribution/higher-kind.js.map +7 -0
- package/Distribution/index.cjs +112 -12
- package/Distribution/index.cjs.map +4 -4
- package/Distribution/index.js +119 -19
- package/Distribution/index.js.map +4 -4
- package/Distribution/misc.cjs.map +2 -2
- package/Distribution/misc.js.map +2 -2
- package/Distribution/string.cjs +70 -0
- package/Distribution/string.cjs.map +7 -0
- package/Distribution/string.js +47 -0
- package/Distribution/string.js.map +7 -0
- package/Distribution/tsconfig.cjs +31 -0
- package/Distribution/tsconfig.cjs.map +7 -0
- package/Distribution/tsconfig.js +13 -0
- package/Distribution/tsconfig.js.map +7 -0
- package/package.json +45 -7
- package/Distribution/Types/Effect/Effect.d.cts.map +0 -10
- package/Distribution/Types/Effect/Effect.d.mts.map +0 -10
- package/Distribution/Types/Effect/Effect.d.ts.map +0 -1
- package/Distribution/Types/Effect/Index.Effect.d.cts +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.cts.map +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.mts +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.mts.map +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.ts +0 -10
- package/Distribution/Types/Effect/Index.Effect.d.ts.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// Source/String/index.ts
|
|
21
|
+
var String_exports = {};
|
|
22
|
+
__export(String_exports, {
|
|
23
|
+
Dedent: () => Dedent,
|
|
24
|
+
IsAlpha: () => IsAlpha,
|
|
25
|
+
IsLetters: () => IsLetters,
|
|
26
|
+
IsNumeric: () => IsNumeric
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(String_exports);
|
|
29
|
+
|
|
30
|
+
// Source/String/String.ts
|
|
31
|
+
function IsLetters(TestString) {
|
|
32
|
+
return /^[a-zA-Z]*$/.test(TestString);
|
|
33
|
+
}
|
|
34
|
+
function IsAlpha(TestString) {
|
|
35
|
+
return IsLetters(TestString);
|
|
36
|
+
}
|
|
37
|
+
function IsNumeric(TestString) {
|
|
38
|
+
return /^\d+$/.test(TestString);
|
|
39
|
+
}
|
|
40
|
+
function Dedent(Content, IndentLength) {
|
|
41
|
+
const WhitespaceSubstring = (() => {
|
|
42
|
+
if (IndentLength !== void 0) {
|
|
43
|
+
return "\n" + " ".repeat(IndentLength);
|
|
44
|
+
}
|
|
45
|
+
let WhitespaceSubstring2 = "\n";
|
|
46
|
+
while (true) {
|
|
47
|
+
const TestString = WhitespaceSubstring2 + " ";
|
|
48
|
+
if (Content.includes(TestString)) {
|
|
49
|
+
WhitespaceSubstring2 = TestString;
|
|
50
|
+
} else {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return WhitespaceSubstring2;
|
|
55
|
+
})();
|
|
56
|
+
return Content.replaceAll(WhitespaceSubstring, "");
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @file String.ts
|
|
60
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
61
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
62
|
+
* @license MIT
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* @file index.ts
|
|
66
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
67
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
68
|
+
* @license MIT
|
|
69
|
+
*/
|
|
70
|
+
//# sourceMappingURL=string.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../Source/String/index.ts", "../Source/String/String.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @file index.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport * from \"./String.ts\";\n", "/**\n * @file String.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\n/**\n * @module String\n * Functions for manipulating strings.\n */\n// @TODO TEMPORARY.\n/* eslint-disable jsdoc/require-example */\n/**\n * Does the given {@link TestString} contain only letters?\n * This is equivalent to Python's\n * {@link https://docs.python.org/3/library/stdtypes.html#str.isalpha | isalpha} function.\n *\n * @remarks This is an alias for {@link IsAlpha}.\n *\n * @param TestString - The string that you wish to test.\n *\n * @returns {boolean} Whether the given string contains *only* (Latin alphabet) letters.\n */\nexport function IsLetters(TestString: string): boolean {\n return /^[a-zA-Z]*$/.test(TestString);\n}\n/**\n * Does the given {@link TestString} contain only letters?\n * This is equivalent to Python's\n * {@link https://docs.python.org/3/library/stdtypes.html#str.isalpha | isalpha} function.\n *\n * @param TestString - The string that you wish to test.\n *\n * @returns {boolean} Whether the given string contains *only* (Latin alphabet) letters.\n */\nexport function IsAlpha(TestString: string): boolean {\n return IsLetters(TestString);\n}\n/**\n * Does the given {@link TestString} contain only digits?\n *\n * This is equivalent to Python's\n * {@link https://docs.python.org/3/library/stdtypes.html#str.isnumeric | isnumeric} function.\n *\n * @param TestString - The string that you wish to test.\n *\n * @returns {boolean} Whether the given string contains *only* numeric digits.\n */\nexport function IsNumeric(TestString: string): boolean {\n return /^\\d+$/.test(TestString);\n}\n/**\n * This function provides a convenient way to define long strings across multiple lines.\n * The linebreaks and leading indentation are removed from the final string.\n * Please see the example below for how this is to be done.\n *\n * @param Content - The given string to dedent.\n * @param IndentLength - The number of spaces for which this function will check. This\n * is necessary only if the number of spaces used in the {@link Content} is not a multiple\n * of two.\n *\n * @returns {string} The given {@link Content}, but with the spaces at the beginning\n * of each line (excluding the first line if no spaces exist in the first line) removed.\n *\n * @example\n * ```typescript\n * import { Dedent } from \"@sorrell/utilities/string\";\n *\n * const MyLongString: string = Dedent(`Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n * sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad\n * minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea\n * commodo consequat.`);\n *\n * // `MyLongString` <- `\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, \\\n * sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad \\\n * minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea \\\n * commodo consequat.\"`\n * ```\n */\nexport function Dedent(Content: string, IndentLength?: number): string {\n const WhitespaceSubstring: string = ((): string => {\n if (IndentLength !== undefined) {\n return \"\\n\" + \" \".repeat(IndentLength);\n }\n let WhitespaceSubstring: string = \"\\n\";\n while (true) {\n const TestString: string = WhitespaceSubstring + \" \";\n if (Content.includes(TestString)) {\n WhitespaceSubstring = TestString;\n }\n else {\n break;\n }\n }\n return WhitespaceSubstring;\n })();\n return Content.replaceAll(WhitespaceSubstring, \"\");\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACuBO,SAAS,UAAU,YAA6B;AACnD,SAAO,cAAc,KAAK,UAAU;AACxC;AAUO,SAAS,QAAQ,YAA6B;AACjD,SAAO,UAAU,UAAU;AAC/B;AAWO,SAAS,UAAU,YAA6B;AACnD,SAAO,QAAQ,KAAK,UAAU;AAClC;AA6BO,SAAS,OAAO,SAAiB,cAA+B;AACnE,QAAM,uBAA+B,MAAc;AAC/C,QAAI,iBAAiB,QAAW;AAC5B,aAAO,OAAO,IAAI,OAAO,YAAY;AAAA,IACzC;AACA,QAAIA,uBAA8B;AAClC,WAAO,MAAM;AACT,YAAM,aAAqBA,uBAAsB;AACjD,UAAI,QAAQ,SAAS,UAAU,GAAG;AAC9B,QAAAA,uBAAsB;AAAA,MAC1B,OACK;AACD;AAAA,MACJ;AAAA,IACJ;AACA,WAAOA;AAAA,EACX,GAAG;AACH,SAAO,QAAQ,WAAW,qBAAqB,EAAE;AACrD;",
|
|
6
|
+
"names": ["WhitespaceSubstring"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Source/String/String.ts
|
|
2
|
+
function IsLetters(TestString) {
|
|
3
|
+
return /^[a-zA-Z]*$/.test(TestString);
|
|
4
|
+
}
|
|
5
|
+
function IsAlpha(TestString) {
|
|
6
|
+
return IsLetters(TestString);
|
|
7
|
+
}
|
|
8
|
+
function IsNumeric(TestString) {
|
|
9
|
+
return /^\d+$/.test(TestString);
|
|
10
|
+
}
|
|
11
|
+
function Dedent(Content, IndentLength) {
|
|
12
|
+
const WhitespaceSubstring = (() => {
|
|
13
|
+
if (IndentLength !== void 0) {
|
|
14
|
+
return "\n" + " ".repeat(IndentLength);
|
|
15
|
+
}
|
|
16
|
+
let WhitespaceSubstring2 = "\n";
|
|
17
|
+
while (true) {
|
|
18
|
+
const TestString = WhitespaceSubstring2 + " ";
|
|
19
|
+
if (Content.includes(TestString)) {
|
|
20
|
+
WhitespaceSubstring2 = TestString;
|
|
21
|
+
} else {
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return WhitespaceSubstring2;
|
|
26
|
+
})();
|
|
27
|
+
return Content.replaceAll(WhitespaceSubstring, "");
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
Dedent,
|
|
31
|
+
IsAlpha,
|
|
32
|
+
IsLetters,
|
|
33
|
+
IsNumeric
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @file String.ts
|
|
37
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
38
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
39
|
+
* @license MIT
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* @file index.ts
|
|
43
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
44
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
45
|
+
* @license MIT
|
|
46
|
+
*/
|
|
47
|
+
//# sourceMappingURL=string.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../Source/String/String.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @file String.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\n/**\n * @module String\n * Functions for manipulating strings.\n */\n// @TODO TEMPORARY.\n/* eslint-disable jsdoc/require-example */\n/**\n * Does the given {@link TestString} contain only letters?\n * This is equivalent to Python's\n * {@link https://docs.python.org/3/library/stdtypes.html#str.isalpha | isalpha} function.\n *\n * @remarks This is an alias for {@link IsAlpha}.\n *\n * @param TestString - The string that you wish to test.\n *\n * @returns {boolean} Whether the given string contains *only* (Latin alphabet) letters.\n */\nexport function IsLetters(TestString: string): boolean {\n return /^[a-zA-Z]*$/.test(TestString);\n}\n/**\n * Does the given {@link TestString} contain only letters?\n * This is equivalent to Python's\n * {@link https://docs.python.org/3/library/stdtypes.html#str.isalpha | isalpha} function.\n *\n * @param TestString - The string that you wish to test.\n *\n * @returns {boolean} Whether the given string contains *only* (Latin alphabet) letters.\n */\nexport function IsAlpha(TestString: string): boolean {\n return IsLetters(TestString);\n}\n/**\n * Does the given {@link TestString} contain only digits?\n *\n * This is equivalent to Python's\n * {@link https://docs.python.org/3/library/stdtypes.html#str.isnumeric | isnumeric} function.\n *\n * @param TestString - The string that you wish to test.\n *\n * @returns {boolean} Whether the given string contains *only* numeric digits.\n */\nexport function IsNumeric(TestString: string): boolean {\n return /^\\d+$/.test(TestString);\n}\n/**\n * This function provides a convenient way to define long strings across multiple lines.\n * The linebreaks and leading indentation are removed from the final string.\n * Please see the example below for how this is to be done.\n *\n * @param Content - The given string to dedent.\n * @param IndentLength - The number of spaces for which this function will check. This\n * is necessary only if the number of spaces used in the {@link Content} is not a multiple\n * of two.\n *\n * @returns {string} The given {@link Content}, but with the spaces at the beginning\n * of each line (excluding the first line if no spaces exist in the first line) removed.\n *\n * @example\n * ```typescript\n * import { Dedent } from \"@sorrell/utilities/string\";\n *\n * const MyLongString: string = Dedent(`Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n * sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad\n * minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea\n * commodo consequat.`);\n *\n * // `MyLongString` <- `\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, \\\n * sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad \\\n * minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea \\\n * commodo consequat.\"`\n * ```\n */\nexport function Dedent(Content: string, IndentLength?: number): string {\n const WhitespaceSubstring: string = ((): string => {\n if (IndentLength !== undefined) {\n return \"\\n\" + \" \".repeat(IndentLength);\n }\n let WhitespaceSubstring: string = \"\\n\";\n while (true) {\n const TestString: string = WhitespaceSubstring + \" \";\n if (Content.includes(TestString)) {\n WhitespaceSubstring = TestString;\n }\n else {\n break;\n }\n }\n return WhitespaceSubstring;\n })();\n return Content.replaceAll(WhitespaceSubstring, \"\");\n}\n"],
|
|
5
|
+
"mappings": ";AAuBO,SAAS,UAAU,YAA6B;AACnD,SAAO,cAAc,KAAK,UAAU;AACxC;AAUO,SAAS,QAAQ,YAA6B;AACjD,SAAO,UAAU,UAAU;AAC/B;AAWO,SAAS,UAAU,YAA6B;AACnD,SAAO,QAAQ,KAAK,UAAU;AAClC;AA6BO,SAAS,OAAO,SAAiB,cAA+B;AACnE,QAAM,uBAA+B,MAAc;AAC/C,QAAI,iBAAiB,QAAW;AAC5B,aAAO,OAAO,IAAI,OAAO,YAAY;AAAA,IACzC;AACA,QAAIA,uBAA8B;AAClC,WAAO,MAAM;AACT,YAAM,aAAqBA,uBAAsB;AACjD,UAAI,QAAQ,SAAS,UAAU,GAAG;AAC9B,QAAAA,uBAAsB;AAAA,MAC1B,OACK;AACD;AAAA,MACJ;AAAA,IACJ;AACA,WAAOA;AAAA,EACX,GAAG;AACH,SAAO,QAAQ,WAAW,qBAAqB,EAAE;AACrD;",
|
|
6
|
+
"names": ["WhitespaceSubstring"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// Source/TsConfig/index.ts
|
|
17
|
+
var TsConfig_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(TsConfig_exports);
|
|
19
|
+
/**
|
|
20
|
+
* @file TsConfig.Types.ts
|
|
21
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
22
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
23
|
+
* @license MIT
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @file index.ts
|
|
27
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
28
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/
|
|
31
|
+
//# sourceMappingURL=tsconfig.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../Source/TsConfig/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @file index.ts\n * @author Gage Sorrell <gage@sorrell.sh>\n * @copyright (c) 2026 Gage Sorrell\n * @license MIT\n */\nexport * from \"./TsConfig.Types.ts\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file TsConfig.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @file index.ts
|
|
9
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
10
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
11
|
+
* @license MIT
|
|
12
|
+
*/
|
|
13
|
+
//# sourceMappingURL=tsconfig.js.map
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sorrell/utilities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Various TypeScript utilities.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"utility",
|
|
8
8
|
"utilities",
|
|
9
|
+
"effect",
|
|
9
10
|
"typescript",
|
|
10
|
-
"ts"
|
|
11
|
+
"ts",
|
|
12
|
+
"sorrell",
|
|
13
|
+
"git",
|
|
14
|
+
"file-system",
|
|
15
|
+
"fs",
|
|
16
|
+
"math"
|
|
11
17
|
],
|
|
12
18
|
"homepage": "https://utilities.sorrell.sh",
|
|
13
19
|
"bugs": {
|
|
@@ -26,9 +32,11 @@
|
|
|
26
32
|
},
|
|
27
33
|
"type": "module",
|
|
28
34
|
"files": [
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
35
|
+
"Distribution",
|
|
36
|
+
"Distribution/**/*",
|
|
37
|
+
"ReadMe.md",
|
|
38
|
+
"License.md",
|
|
39
|
+
"package.json"
|
|
32
40
|
],
|
|
33
41
|
"exports": {
|
|
34
42
|
".": {
|
|
@@ -101,6 +109,16 @@
|
|
|
101
109
|
"default": "./Distribution/functional.cjs"
|
|
102
110
|
}
|
|
103
111
|
},
|
|
112
|
+
"./higher-kind": {
|
|
113
|
+
"import": {
|
|
114
|
+
"types": "./Distribution/Types/HigherKind/index.d.mts",
|
|
115
|
+
"default": "./Distribution/higher-kind.js"
|
|
116
|
+
},
|
|
117
|
+
"require": {
|
|
118
|
+
"types": "./Distribution/Types/HigherKind/index.d.cts",
|
|
119
|
+
"default": "./Distribution/higher-kind.cjs"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
104
122
|
"./dependency": {
|
|
105
123
|
"import": {
|
|
106
124
|
"types": "./Distribution/Types/Dependency/index.d.mts",
|
|
@@ -180,6 +198,26 @@
|
|
|
180
198
|
"types": "./Distribution/Types/Record/index.d.cts",
|
|
181
199
|
"default": "./Distribution/record.cjs"
|
|
182
200
|
}
|
|
201
|
+
},
|
|
202
|
+
"./string": {
|
|
203
|
+
"import": {
|
|
204
|
+
"types": "./Distribution/Types/String/index.d.mts",
|
|
205
|
+
"default": "./Distribution/string.js"
|
|
206
|
+
},
|
|
207
|
+
"require": {
|
|
208
|
+
"types": "./Distribution/Types/String/index.d.cts",
|
|
209
|
+
"default": "./Distribution/string.cjs"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"./tsconfig": {
|
|
213
|
+
"import": {
|
|
214
|
+
"types": "./Distribution/Types/TsConfig/index.d.mts",
|
|
215
|
+
"default": "./Distribution/tsconfig.js"
|
|
216
|
+
},
|
|
217
|
+
"require": {
|
|
218
|
+
"types": "./Distribution/Types/TsConfig/index.d.cts",
|
|
219
|
+
"default": "./Distribution/tsconfig.cjs"
|
|
220
|
+
}
|
|
183
221
|
}
|
|
184
222
|
},
|
|
185
223
|
"overrides": {
|
|
@@ -208,7 +246,7 @@
|
|
|
208
246
|
"ts-node": "^10.9.2",
|
|
209
247
|
"tslib": "^2.8.1",
|
|
210
248
|
"tsover": "^6.0.0",
|
|
211
|
-
"tsover-runtime": "0.0.
|
|
249
|
+
"tsover-runtime": "0.0.7"
|
|
212
250
|
},
|
|
213
251
|
"dependencies": {
|
|
214
252
|
"chalk": "^5.6.2",
|
|
@@ -217,6 +255,6 @@
|
|
|
217
255
|
},
|
|
218
256
|
"peerDependencies": {
|
|
219
257
|
"tsover": "^6.0.0",
|
|
220
|
-
"tsover-runtime": "^0.0.
|
|
258
|
+
"tsover-runtime": "^0.0.7"
|
|
221
259
|
}
|
|
222
260
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Effect.d.ts","sourceRoot":"","sources":["../../../Source/Effect/Effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,SAAS,EAAE,MAAW,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Index.Effect.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
export * from "./Effect.cjs";
|
|
8
|
-
export * from "./Effect.Types.cjs";
|
|
9
|
-
export * from "effect";
|
|
10
|
-
//# sourceMappingURL=Index.Effect.d.cts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Index.Effect.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
export * from "./Effect.mjs";
|
|
8
|
-
export * from "./Effect.Types.mjs";
|
|
9
|
-
export * from "effect";
|
|
10
|
-
//# sourceMappingURL=Index.Effect.d.mts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Index.Effect.ts
|
|
3
|
-
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
-
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
export * from "./Effect.ts";
|
|
8
|
-
export * from "./Effect.Types.ts";
|
|
9
|
-
export * from "effect";
|
|
10
|
-
//# sourceMappingURL=Index.Effect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Index.Effect.d.ts","sourceRoot":"","sources":["../../../Source/Effect/Index.Effect.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC"}
|