@sorrell/utilities 1.2.4 → 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/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/Miscellaneous/Utility.Internal.d.cts +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.cts.map +1 -1
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.mts.map +1 -1
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts +1 -0
- package/Distribution/Types/Miscellaneous/Utility.Internal.d.ts.map +1 -1
- package/package.json +12 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Dependency.Internal.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
export declare const DefaultTruthyValues: ReadonlyArray<string>;
|
|
8
|
+
export declare function Code(Message: string): void;
|
|
9
|
+
//# sourceMappingURL=Dependency.Internal.d.cts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Dependency.Internal.d.cts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Dependency/Dependency.Internal.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAIH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,MAAM,CAOxC,CAAC;AAEf,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAG1C"
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Dependency.Internal.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
export declare const DefaultTruthyValues: ReadonlyArray<string>;
|
|
8
|
+
export declare function Code(Message: string): void;
|
|
9
|
+
//# sourceMappingURL=Dependency.Internal.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Dependency.Internal.d.mts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Dependency/Dependency.Internal.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAIH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,MAAM,CAOxC,CAAC;AAEf,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAG1C"
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Dependency.Internal.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
export declare const DefaultTruthyValues: ReadonlyArray<string>;
|
|
8
|
+
export declare function Code(Message: string): void;
|
|
9
|
+
//# sourceMappingURL=Dependency.Internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dependency.Internal.d.ts","sourceRoot":"","sources":["../../../Source/Dependency/Dependency.Internal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,MAAM,CAOxC,CAAC;AAEf,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAG1C"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Dependency.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import { Layer } from "effect";
|
|
8
|
+
/**
|
|
9
|
+
* Guess whether the current session is in *production mode* by,
|
|
10
|
+
*
|
|
11
|
+
* 1. If a {@link DebugEnvironmentVariable} is given, then {@link process.env}
|
|
12
|
+
* is checked for the existence of a property having this key.
|
|
13
|
+
* - If the property exists and is in {@link TruthyValues}, then this function returns `true`.
|
|
14
|
+
* - If the property exists but is in {@link TruthyValues}, then this returns `false`.
|
|
15
|
+
* 2. If the function did not already return in Step 1, then {@link process.env} is checked for
|
|
16
|
+
* a property with key `"NODE_ENV"`.
|
|
17
|
+
* - If there exists a property with this key, and if `process.env["NODE_ENV"] === "production"`
|
|
18
|
+
* (or similar; see below), then this returns `true`.
|
|
19
|
+
* 3. If the function did not already return in Step 2, then {@link UncertainValue} is returned.
|
|
20
|
+
* By default, this is `true`, but any value of any type can be used.
|
|
21
|
+
*
|
|
22
|
+
* @note If Step 2 is executed, then this returns `true` when `process.env["NODE_ENV"].toLowerCase()`
|
|
23
|
+
* is any one of,
|
|
24
|
+
* - `"production"`
|
|
25
|
+
* - `"prod"`
|
|
26
|
+
*
|
|
27
|
+
* @param DebugEnvironmentVariable - If specified, then this environment variable will be checked for,
|
|
28
|
+
* in addition to the other checks performed by this function to guess whether the current session is
|
|
29
|
+
* in *production mode*.
|
|
30
|
+
*
|
|
31
|
+
* @param TruthyValues - If {@link DebugEnvironmentVariable} is specified, and if {@link process.env}
|
|
32
|
+
* has a property with key {@link DebugEnvironmentVariable}, then this will return based on whether
|
|
33
|
+
* ```
|
|
34
|
+
* TruthyValues.map(TruthyWord => TruthyWord.toLowerCase()).includes(DebugEnvironmentVariable.toLowerCase());
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param UncertainValue - The value that is returned in Step 3—that is, if this function is uncertain whether
|
|
38
|
+
* the current session is in *production mode.* By default, this is `true`.
|
|
39
|
+
*
|
|
40
|
+
* @returns {boolean | typeof UncertainValue} Whether the current session is likely in *production mode*, or,
|
|
41
|
+
* if unsure, the given {@link UncertainValue} is returned (by default, this is `true`).
|
|
42
|
+
*/
|
|
43
|
+
export declare function IsRuntimeModeProduction(DebugEnvironmentVariable?: string | undefined, TruthyValues?: ReadonlyArray<string>, UncertainValue?: unknown): boolean | typeof UncertainValue;
|
|
44
|
+
/**
|
|
45
|
+
* This patches the default logger so that the statements that are logged by your dependency package
|
|
46
|
+
* do not overwhelm or annoy the consuming developer.
|
|
47
|
+
*
|
|
48
|
+
* {@link IsDependentModeProduction} is used to determine whether to return a no-op
|
|
49
|
+
* (iff `true`), or a function that wraps {@link Console} (iff `false`).
|
|
50
|
+
*
|
|
51
|
+
* @param PackageName - The name of your package. It is strongly recommended, but not *enforced*,
|
|
52
|
+
* that this is exactly the `name` in your `package.json`. Statements logged under this
|
|
53
|
+
* {@link Layer.Layer | Layer} are prefixed with `[${ PackageName }]`.
|
|
54
|
+
*
|
|
55
|
+
* @param SuppressLoggerFrequency - When {@link SuppressLoggerFrequency} statements have been logged,
|
|
56
|
+
* a short message is *also* logged, explaining how to suppress output from your package.
|
|
57
|
+
*
|
|
58
|
+
* @param SuppressLogEnvironmentVariable - If specified, this is the environment variable name passed to
|
|
59
|
+
* {@link IsDependentModeProduction} to determine whether the logger will be a no-op.
|
|
60
|
+
*
|
|
61
|
+
* @returns {Layer.Layer} A {@link Layer.Layer | Layer} that provides the {@link DependencyLogger}
|
|
62
|
+
* with the {@link PackageName}.
|
|
63
|
+
*/
|
|
64
|
+
export declare function CreateDependencyLoggerLayer(PackageName: string, SuppressLoggerFrequency?: number, SuppressLogEnvironmentVariable?: string | undefined): Layer.Layer<never, never, never>;
|
|
65
|
+
//# sourceMappingURL=Dependency.d.cts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Dependency.d.cts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Dependency/Dependency.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAIH,OAAO,EAAE,KAAK,EAAU,MAAM,QAAQ,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,uBAAuB,CACnC,wBAAwB,GAAE,MAAM,GAAG,SAAqB,EACxD,YAAY,GAAE,aAAa,CAAC,MAAM,CAAuB,EACzD,cAAc,GAAE,OAAc,GAC/B,OAAO,GAAG,OAAO,cAAc,CAsBjC;AAcD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,MAAM,EACnB,uBAAuB,GAAE,MAAW,EACpC,8BAA8B,GAAE,MAAM,GAAG,SAAqB,GAC/D,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAyClC"
|
|
10
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Dependency.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import { Layer } from "effect";
|
|
8
|
+
/**
|
|
9
|
+
* Guess whether the current session is in *production mode* by,
|
|
10
|
+
*
|
|
11
|
+
* 1. If a {@link DebugEnvironmentVariable} is given, then {@link process.env}
|
|
12
|
+
* is checked for the existence of a property having this key.
|
|
13
|
+
* - If the property exists and is in {@link TruthyValues}, then this function returns `true`.
|
|
14
|
+
* - If the property exists but is in {@link TruthyValues}, then this returns `false`.
|
|
15
|
+
* 2. If the function did not already return in Step 1, then {@link process.env} is checked for
|
|
16
|
+
* a property with key `"NODE_ENV"`.
|
|
17
|
+
* - If there exists a property with this key, and if `process.env["NODE_ENV"] === "production"`
|
|
18
|
+
* (or similar; see below), then this returns `true`.
|
|
19
|
+
* 3. If the function did not already return in Step 2, then {@link UncertainValue} is returned.
|
|
20
|
+
* By default, this is `true`, but any value of any type can be used.
|
|
21
|
+
*
|
|
22
|
+
* @note If Step 2 is executed, then this returns `true` when `process.env["NODE_ENV"].toLowerCase()`
|
|
23
|
+
* is any one of,
|
|
24
|
+
* - `"production"`
|
|
25
|
+
* - `"prod"`
|
|
26
|
+
*
|
|
27
|
+
* @param DebugEnvironmentVariable - If specified, then this environment variable will be checked for,
|
|
28
|
+
* in addition to the other checks performed by this function to guess whether the current session is
|
|
29
|
+
* in *production mode*.
|
|
30
|
+
*
|
|
31
|
+
* @param TruthyValues - If {@link DebugEnvironmentVariable} is specified, and if {@link process.env}
|
|
32
|
+
* has a property with key {@link DebugEnvironmentVariable}, then this will return based on whether
|
|
33
|
+
* ```
|
|
34
|
+
* TruthyValues.map(TruthyWord => TruthyWord.toLowerCase()).includes(DebugEnvironmentVariable.toLowerCase());
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param UncertainValue - The value that is returned in Step 3—that is, if this function is uncertain whether
|
|
38
|
+
* the current session is in *production mode.* By default, this is `true`.
|
|
39
|
+
*
|
|
40
|
+
* @returns {boolean | typeof UncertainValue} Whether the current session is likely in *production mode*, or,
|
|
41
|
+
* if unsure, the given {@link UncertainValue} is returned (by default, this is `true`).
|
|
42
|
+
*/
|
|
43
|
+
export declare function IsRuntimeModeProduction(DebugEnvironmentVariable?: string | undefined, TruthyValues?: ReadonlyArray<string>, UncertainValue?: unknown): boolean | typeof UncertainValue;
|
|
44
|
+
/**
|
|
45
|
+
* This patches the default logger so that the statements that are logged by your dependency package
|
|
46
|
+
* do not overwhelm or annoy the consuming developer.
|
|
47
|
+
*
|
|
48
|
+
* {@link IsDependentModeProduction} is used to determine whether to return a no-op
|
|
49
|
+
* (iff `true`), or a function that wraps {@link Console} (iff `false`).
|
|
50
|
+
*
|
|
51
|
+
* @param PackageName - The name of your package. It is strongly recommended, but not *enforced*,
|
|
52
|
+
* that this is exactly the `name` in your `package.json`. Statements logged under this
|
|
53
|
+
* {@link Layer.Layer | Layer} are prefixed with `[${ PackageName }]`.
|
|
54
|
+
*
|
|
55
|
+
* @param SuppressLoggerFrequency - When {@link SuppressLoggerFrequency} statements have been logged,
|
|
56
|
+
* a short message is *also* logged, explaining how to suppress output from your package.
|
|
57
|
+
*
|
|
58
|
+
* @param SuppressLogEnvironmentVariable - If specified, this is the environment variable name passed to
|
|
59
|
+
* {@link IsDependentModeProduction} to determine whether the logger will be a no-op.
|
|
60
|
+
*
|
|
61
|
+
* @returns {Layer.Layer} A {@link Layer.Layer | Layer} that provides the {@link DependencyLogger}
|
|
62
|
+
* with the {@link PackageName}.
|
|
63
|
+
*/
|
|
64
|
+
export declare function CreateDependencyLoggerLayer(PackageName: string, SuppressLoggerFrequency?: number, SuppressLogEnvironmentVariable?: string | undefined): Layer.Layer<never, never, never>;
|
|
65
|
+
//# sourceMappingURL=Dependency.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "Dependency.d.mts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../../../Source/Dependency/Dependency.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAIH,OAAO,EAAE,KAAK,EAAU,MAAM,QAAQ,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,uBAAuB,CACnC,wBAAwB,GAAE,MAAM,GAAG,SAAqB,EACxD,YAAY,GAAE,aAAa,CAAC,MAAM,CAAuB,EACzD,cAAc,GAAE,OAAc,GAC/B,OAAO,GAAG,OAAO,cAAc,CAsBjC;AAcD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,MAAM,EACnB,uBAAuB,GAAE,MAAW,EACpC,8BAA8B,GAAE,MAAM,GAAG,SAAqB,GAC/D,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAyClC"
|
|
10
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Dependency.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import { Layer } from "effect";
|
|
8
|
+
/**
|
|
9
|
+
* Guess whether the current session is in *production mode* by,
|
|
10
|
+
*
|
|
11
|
+
* 1. If a {@link DebugEnvironmentVariable} is given, then {@link process.env}
|
|
12
|
+
* is checked for the existence of a property having this key.
|
|
13
|
+
* - If the property exists and is in {@link TruthyValues}, then this function returns `true`.
|
|
14
|
+
* - If the property exists but is in {@link TruthyValues}, then this returns `false`.
|
|
15
|
+
* 2. If the function did not already return in Step 1, then {@link process.env} is checked for
|
|
16
|
+
* a property with key `"NODE_ENV"`.
|
|
17
|
+
* - If there exists a property with this key, and if `process.env["NODE_ENV"] === "production"`
|
|
18
|
+
* (or similar; see below), then this returns `true`.
|
|
19
|
+
* 3. If the function did not already return in Step 2, then {@link UncertainValue} is returned.
|
|
20
|
+
* By default, this is `true`, but any value of any type can be used.
|
|
21
|
+
*
|
|
22
|
+
* @note If Step 2 is executed, then this returns `true` when `process.env["NODE_ENV"].toLowerCase()`
|
|
23
|
+
* is any one of,
|
|
24
|
+
* - `"production"`
|
|
25
|
+
* - `"prod"`
|
|
26
|
+
*
|
|
27
|
+
* @param DebugEnvironmentVariable - If specified, then this environment variable will be checked for,
|
|
28
|
+
* in addition to the other checks performed by this function to guess whether the current session is
|
|
29
|
+
* in *production mode*.
|
|
30
|
+
*
|
|
31
|
+
* @param TruthyValues - If {@link DebugEnvironmentVariable} is specified, and if {@link process.env}
|
|
32
|
+
* has a property with key {@link DebugEnvironmentVariable}, then this will return based on whether
|
|
33
|
+
* ```
|
|
34
|
+
* TruthyValues.map(TruthyWord => TruthyWord.toLowerCase()).includes(DebugEnvironmentVariable.toLowerCase());
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param UncertainValue - The value that is returned in Step 3—that is, if this function is uncertain whether
|
|
38
|
+
* the current session is in *production mode.* By default, this is `true`.
|
|
39
|
+
*
|
|
40
|
+
* @returns {boolean | typeof UncertainValue} Whether the current session is likely in *production mode*, or,
|
|
41
|
+
* if unsure, the given {@link UncertainValue} is returned (by default, this is `true`).
|
|
42
|
+
*/
|
|
43
|
+
export declare function IsRuntimeModeProduction(DebugEnvironmentVariable?: string | undefined, TruthyValues?: ReadonlyArray<string>, UncertainValue?: unknown): boolean | typeof UncertainValue;
|
|
44
|
+
/**
|
|
45
|
+
* This patches the default logger so that the statements that are logged by your dependency package
|
|
46
|
+
* do not overwhelm or annoy the consuming developer.
|
|
47
|
+
*
|
|
48
|
+
* {@link IsDependentModeProduction} is used to determine whether to return a no-op
|
|
49
|
+
* (iff `true`), or a function that wraps {@link Console} (iff `false`).
|
|
50
|
+
*
|
|
51
|
+
* @param PackageName - The name of your package. It is strongly recommended, but not *enforced*,
|
|
52
|
+
* that this is exactly the `name` in your `package.json`. Statements logged under this
|
|
53
|
+
* {@link Layer.Layer | Layer} are prefixed with `[${ PackageName }]`.
|
|
54
|
+
*
|
|
55
|
+
* @param SuppressLoggerFrequency - When {@link SuppressLoggerFrequency} statements have been logged,
|
|
56
|
+
* a short message is *also* logged, explaining how to suppress output from your package.
|
|
57
|
+
*
|
|
58
|
+
* @param SuppressLogEnvironmentVariable - If specified, this is the environment variable name passed to
|
|
59
|
+
* {@link IsDependentModeProduction} to determine whether the logger will be a no-op.
|
|
60
|
+
*
|
|
61
|
+
* @returns {Layer.Layer} A {@link Layer.Layer | Layer} that provides the {@link DependencyLogger}
|
|
62
|
+
* with the {@link PackageName}.
|
|
63
|
+
*/
|
|
64
|
+
export declare function CreateDependencyLoggerLayer(PackageName: string, SuppressLoggerFrequency?: number, SuppressLogEnvironmentVariable?: string | undefined): Layer.Layer<never, never, never>;
|
|
65
|
+
//# sourceMappingURL=Dependency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dependency.d.ts","sourceRoot":"","sources":["../../../Source/Dependency/Dependency.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,KAAK,EAAU,MAAM,QAAQ,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,uBAAuB,CACnC,wBAAwB,GAAE,MAAM,GAAG,SAAqB,EACxD,YAAY,GAAE,aAAa,CAAC,MAAM,CAAuB,EACzD,cAAc,GAAE,OAAc,GAC/B,OAAO,GAAG,OAAO,cAAc,CAsBjC;AAcD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,2BAA2B,CACvC,WAAW,EAAE,MAAM,EACnB,uBAAuB,GAAE,MAAW,EACpC,8BAA8B,GAAE,MAAM,GAAG,SAAqB,GAC/D,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAyClC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 Dependency
|
|
9
|
+
* Functionality for packages that are intended to be used
|
|
10
|
+
* as dependencies of other packages.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./Dependency.cjs";
|
|
13
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
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 Dependency
|
|
9
|
+
* Functionality for packages that are intended to be used
|
|
10
|
+
* as dependencies of other packages.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./Dependency.mjs";
|
|
13
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
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 Dependency
|
|
9
|
+
* Functionality for packages that are intended to be used
|
|
10
|
+
* as dependencies of other packages.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./Dependency.ts";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Source/Dependency/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AAEH,cAAc,iBAAiB,CAAC"}
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
"../../../Source/Miscellaneous/Utility.Internal.ts"
|
|
7
7
|
],
|
|
8
8
|
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAKH,eAGA,MAAM,SAAS,EAAE,OAAO,MAA4B,CAAC;AAErD,eAGA,MAAM,mBAAmB,EAAE,aAAa,CAAC,MAAM,CAOjC,CAAC"
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
"../../../Source/Miscellaneous/Utility.Internal.ts"
|
|
7
7
|
],
|
|
8
8
|
"names": [],
|
|
9
|
-
"mappings": "AAAA;;;;;GAKG;
|
|
9
|
+
"mappings": "AAAA;;;;;GAKG;AAKH,eAGA,MAAM,SAAS,EAAE,OAAO,MAA4B,CAAC;AAErD,eAGA,MAAM,mBAAmB,EAAE,aAAa,CAAC,MAAM,CAOjC,CAAC"
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utility.Internal.d.ts","sourceRoot":"","sources":["../../../Source/Miscellaneous/Utility.Internal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"Utility.Internal.d.ts","sourceRoot":"","sources":["../../../Source/Miscellaneous/Utility.Internal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,eAGA,MAAM,SAAS,EAAE,OAAO,MAA4B,CAAC;AAErD,eAGA,MAAM,mBAAmB,EAAE,aAAa,CAAC,MAAM,CAOjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sorrell/utilities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Various TypeScript utilities.",
|
|
6
6
|
"keywords": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"ts"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://utilities.sorrell.sh",
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/GageSorrell/SorrellWm/issues"
|
|
15
15
|
},
|
|
@@ -101,6 +101,16 @@
|
|
|
101
101
|
"default": "./Distribution/functional.cjs"
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
+
"./dependency": {
|
|
105
|
+
"import": {
|
|
106
|
+
"types": "./Distribution/Types/Dependency/index.d.mts",
|
|
107
|
+
"default": "./Distribution/dependency.js"
|
|
108
|
+
},
|
|
109
|
+
"require": {
|
|
110
|
+
"types": "./Distribution/Types/Dependency/index.d.cts",
|
|
111
|
+
"default": "./Distribution/dependency.cjs"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
104
114
|
"./misc": {
|
|
105
115
|
"import": {
|
|
106
116
|
"types": "./Distribution/Types/Miscellaneous/index.d.mts",
|
|
@@ -175,7 +185,6 @@
|
|
|
175
185
|
},
|
|
176
186
|
"types": "./Distribution/Types/index.d.ts",
|
|
177
187
|
"scripts": {
|
|
178
|
-
"prepack": "npm run build",
|
|
179
188
|
"build:js": "node esbuild.config.mts",
|
|
180
189
|
"prebuild:types": "tsc -p ./tsconfig.script.json",
|
|
181
190
|
"build:types": "tsc -p ./tsconfig.types.json && node ./Intermediate/Script/CreateTypeDeclarations.js",
|