@alextheman/utility 5.28.0 → 5.28.2
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/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/internal/index.d.cts +7 -7
- package/dist/internal/index.d.ts +7 -7
- package/dist/node/index.d.cts +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/v6/index.d.cts +2 -2
- package/dist/v6/index.d.ts +2 -2
- package/package.json +18 -18
package/dist/index.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import z, { ZodCoercedDate, ZodCoercedNumber, ZodError, ZodType, z as z$1 } from "zod";
|
|
2
2
|
import { DotenvParseOutput } from "dotenv";
|
|
3
3
|
//#region src/root/constants/FILE_PATH_REGEX.d.ts
|
|
4
|
-
declare const FILE_PATH_REGEX_PATTERN: string;
|
|
4
|
+
export declare const FILE_PATH_REGEX_PATTERN: string;
|
|
5
5
|
declare const FILE_PATH_REGEX: RegExp;
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.d.ts
|
|
8
8
|
declare const ONE_DAY_IN_MILLISECONDS: number;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/root/constants/UUID_REGEX.d.ts
|
|
11
|
-
declare const UUID_REGEX_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
11
|
+
export declare const UUID_REGEX_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
12
12
|
declare const UUID_REGEX: RegExp;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/root/constants/VERSION_NUMBER_REGEX.d.ts
|
|
15
|
-
declare const VERSION_NUMBER_REGEX_PATTERN: string;
|
|
15
|
+
export declare const VERSION_NUMBER_REGEX_PATTERN: string;
|
|
16
16
|
declare const VERSION_NUMBER_REGEX: RegExp;
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/root/deprecated/APIError.d.ts
|
|
19
19
|
type HTTPErrorCode = 400 | 401 | 403 | 404 | 418 | 500;
|
|
20
|
-
declare const httpErrorCodeLookup: Record<HTTPErrorCode, string>;
|
|
20
|
+
export declare const httpErrorCodeLookup: Record<HTTPErrorCode, string>;
|
|
21
21
|
/**
|
|
22
22
|
* Represents common errors you may get from a HTTP API request.
|
|
23
23
|
*
|
|
@@ -494,11 +494,11 @@ declare function sayHello(): string;
|
|
|
494
494
|
type CreateEnumType<ObjectType extends Record<PropertyKey, unknown>> = ObjectType[keyof ObjectType];
|
|
495
495
|
//#endregion
|
|
496
496
|
//#region src/root/types/SortDirection.d.ts
|
|
497
|
-
declare const SortDirection: {
|
|
497
|
+
export declare const SortDirection: {
|
|
498
498
|
readonly DESC: "desc";
|
|
499
499
|
readonly ASC: "asc";
|
|
500
500
|
};
|
|
501
|
-
type SortDirection = CreateEnumType<typeof SortDirection>;
|
|
501
|
+
export type SortDirection = CreateEnumType<typeof SortDirection>;
|
|
502
502
|
//#endregion
|
|
503
503
|
//#region src/root/types/VersionNumber.d.ts
|
|
504
504
|
/**
|
|
@@ -597,7 +597,7 @@ declare class VersionNumber {
|
|
|
597
597
|
*/
|
|
598
598
|
toString(): string;
|
|
599
599
|
}
|
|
600
|
-
declare const zodVersionNumber: z.ZodType<VersionNumber>;
|
|
600
|
+
export declare const zodVersionNumber: z.ZodType<VersionNumber>;
|
|
601
601
|
//#endregion
|
|
602
602
|
//#region src/root/types/ArrayElement.d.ts
|
|
603
603
|
/**
|
|
@@ -823,12 +823,12 @@ declare function parseBoolean(inputString: string): boolean;
|
|
|
823
823
|
*
|
|
824
824
|
* @category Types
|
|
825
825
|
*/
|
|
826
|
-
declare const Env: {
|
|
826
|
+
export declare const Env: {
|
|
827
827
|
readonly TEST: "test";
|
|
828
828
|
readonly DEVELOPMENT: "development";
|
|
829
829
|
readonly PRODUCTION: "production";
|
|
830
830
|
};
|
|
831
|
-
type Env = CreateEnumType<typeof Env>;
|
|
831
|
+
export type Env = CreateEnumType<typeof Env>;
|
|
832
832
|
/**
|
|
833
833
|
* Parses the input and verifies it matches one of the environments allowed by the Env types ("test" | "development" | "production").
|
|
834
834
|
*
|
|
@@ -898,12 +898,12 @@ declare function parseUUID(input: unknown): string;
|
|
|
898
898
|
*
|
|
899
899
|
* @category Types
|
|
900
900
|
*/
|
|
901
|
-
declare const VersionType: {
|
|
901
|
+
export declare const VersionType: {
|
|
902
902
|
readonly MAJOR: "major";
|
|
903
903
|
readonly MINOR: "minor";
|
|
904
904
|
readonly PATCH: "patch";
|
|
905
905
|
};
|
|
906
|
-
type VersionType = CreateEnumType<typeof VersionType>;
|
|
906
|
+
export type VersionType = CreateEnumType<typeof VersionType>;
|
|
907
907
|
/**
|
|
908
908
|
* Parses the input and verifies it is a valid software version type (i.e. `"major" | "minor" | "patch"`)
|
|
909
909
|
*
|
|
@@ -1234,7 +1234,7 @@ declare function normaliseIndents(strings: TemplateStringsArray, ...interpolatio
|
|
|
1234
1234
|
*
|
|
1235
1235
|
* @returns An additional function to invoke, or a new string with the strings and interpolations from the template applied, and extraneous indents removed.
|
|
1236
1236
|
*/
|
|
1237
|
-
declare const normalizeIndents: typeof normaliseIndents;
|
|
1237
|
+
export declare const normalizeIndents: typeof normaliseIndents;
|
|
1238
1238
|
//#endregion
|
|
1239
1239
|
//#region src/root/functions/typeAssertions/assertNotNull.d.ts
|
|
1240
1240
|
/**
|
|
@@ -1532,4 +1532,4 @@ interface ZodParsingErrorData {
|
|
|
1532
1532
|
issues: Array<z.core.$ZodIssue>;
|
|
1533
1533
|
}
|
|
1534
1534
|
//#endregion
|
|
1535
|
-
export { APIError, type ArrayElement, type AzParsingErrorHandler, type CallReturnType, type CamelToKebabOptions, type CreateEnumType, type CreateFormDataOptions, type CreateFormDataOptionsNullableResolution, type CreateFormDataOptionsUndefinedOrNullResolution, DataError, type DisallowUndefined,
|
|
1535
|
+
export { APIError, type ArrayElement, type AzParsingErrorHandler, type CallReturnType, type CamelToKebabOptions, type CreateEnumType, type CreateFormDataOptions, type CreateFormDataOptionsNullableResolution, type CreateFormDataOptionsUndefinedOrNullResolution, DataError, type DisallowUndefined, FILE_PATH_PATTERN, FILE_PATH_REGEX, type FormDataArrayResolutionStrategy, type FormDataNullableResolutionStrategy, type HTTPErrorCode, type IgnoreCase, type IsTypeArgumentString, type KebabToCamelOptions, type NonNull, type NonUndefined, type NormaliseIndentsFunction, type NormaliseIndentsOptions, type NormalizeIndentsFunction, type NormalizeIndentsOptions, type NullableOnCondition, ONE_DAY_IN_MILLISECONDS, type OptionalOnCondition, type ParallelTuple, type RecordKey, type RemoveUndefined, type StringListToArrayOptions, type ToTitleCaseOptions, UUID_PATTERN, UUID_REGEX, VERSION_NUMBER_PATTERN, VERSION_NUMBER_REGEX, VersionNumber, type FormatOptionsBase as VersionNumberToStringOptions, type ZodParsingErrorData, addDaysToDate, appendSemicolon, assertNotNull, assertNotNullable, assertNotUndefined, az, calculateMonthlyDifference, camelToKebab, containsKeys, convertFileToBase64, createFormData, createTemplateStringsArray, deepCopy, deepFreeze, escapeHTML, escapeRegexPattern, fillArray, formatDateAndTime, getRandomNumber, getRecordKeys, getStringsAndInterpolations, identity, interpolate, interpolateObjects, isAnniversary, isLeapYear, isMonthlyMultiple, isNonNullableObject, isOrdered, isSameDate, isTemplateStringsArray, kebabToCamel, memoizeAsync, minutesToMs, normaliseIndents, objectContainsKeys, omitProperties, paralleliseArrays, parseBoolean, parseEnv, parseFormData, parseIntStrict, parseUUID, parseVersionType, parseZodSchema, parseZodSchemaAsync, pickProperties, randomiseArray, range, removeDuplicates, removeUndefinedFromObject, sayHello, secondsToMs, sortBy, stringListToArray, stringifyDotenv, toTitleCase, truncate, wait };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import z, { ZodCoercedDate, ZodCoercedNumber, ZodError, ZodType, z as z$1 } from "zod";
|
|
2
2
|
import { DotenvParseOutput } from "dotenv";
|
|
3
3
|
//#region src/root/constants/FILE_PATH_REGEX.d.ts
|
|
4
|
-
declare const FILE_PATH_REGEX_PATTERN: string;
|
|
4
|
+
export declare const FILE_PATH_REGEX_PATTERN: string;
|
|
5
5
|
declare const FILE_PATH_REGEX: RegExp;
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/root/constants/ONE_DAY_IN_MILLISECONDS.d.ts
|
|
8
8
|
declare const ONE_DAY_IN_MILLISECONDS: number;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/root/constants/UUID_REGEX.d.ts
|
|
11
|
-
declare const UUID_REGEX_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
11
|
+
export declare const UUID_REGEX_PATTERN = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
|
12
12
|
declare const UUID_REGEX: RegExp;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/root/constants/VERSION_NUMBER_REGEX.d.ts
|
|
15
|
-
declare const VERSION_NUMBER_REGEX_PATTERN: string;
|
|
15
|
+
export declare const VERSION_NUMBER_REGEX_PATTERN: string;
|
|
16
16
|
declare const VERSION_NUMBER_REGEX: RegExp;
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/root/deprecated/APIError.d.ts
|
|
19
19
|
type HTTPErrorCode = 400 | 401 | 403 | 404 | 418 | 500;
|
|
20
|
-
declare const httpErrorCodeLookup: Record<HTTPErrorCode, string>;
|
|
20
|
+
export declare const httpErrorCodeLookup: Record<HTTPErrorCode, string>;
|
|
21
21
|
/**
|
|
22
22
|
* Represents common errors you may get from a HTTP API request.
|
|
23
23
|
*
|
|
@@ -494,11 +494,11 @@ declare function sayHello(): string;
|
|
|
494
494
|
type CreateEnumType<ObjectType extends Record<PropertyKey, unknown>> = ObjectType[keyof ObjectType];
|
|
495
495
|
//#endregion
|
|
496
496
|
//#region src/root/types/SortDirection.d.ts
|
|
497
|
-
declare const SortDirection: {
|
|
497
|
+
export declare const SortDirection: {
|
|
498
498
|
readonly DESC: "desc";
|
|
499
499
|
readonly ASC: "asc";
|
|
500
500
|
};
|
|
501
|
-
type SortDirection = CreateEnumType<typeof SortDirection>;
|
|
501
|
+
export type SortDirection = CreateEnumType<typeof SortDirection>;
|
|
502
502
|
//#endregion
|
|
503
503
|
//#region src/root/types/VersionNumber.d.ts
|
|
504
504
|
/**
|
|
@@ -597,7 +597,7 @@ declare class VersionNumber {
|
|
|
597
597
|
*/
|
|
598
598
|
toString(): string;
|
|
599
599
|
}
|
|
600
|
-
declare const zodVersionNumber: z.ZodType<VersionNumber>;
|
|
600
|
+
export declare const zodVersionNumber: z.ZodType<VersionNumber>;
|
|
601
601
|
//#endregion
|
|
602
602
|
//#region src/root/types/ArrayElement.d.ts
|
|
603
603
|
/**
|
|
@@ -823,12 +823,12 @@ declare function parseBoolean(inputString: string): boolean;
|
|
|
823
823
|
*
|
|
824
824
|
* @category Types
|
|
825
825
|
*/
|
|
826
|
-
declare const Env: {
|
|
826
|
+
export declare const Env: {
|
|
827
827
|
readonly TEST: "test";
|
|
828
828
|
readonly DEVELOPMENT: "development";
|
|
829
829
|
readonly PRODUCTION: "production";
|
|
830
830
|
};
|
|
831
|
-
type Env = CreateEnumType<typeof Env>;
|
|
831
|
+
export type Env = CreateEnumType<typeof Env>;
|
|
832
832
|
/**
|
|
833
833
|
* Parses the input and verifies it matches one of the environments allowed by the Env types ("test" | "development" | "production").
|
|
834
834
|
*
|
|
@@ -898,12 +898,12 @@ declare function parseUUID(input: unknown): string;
|
|
|
898
898
|
*
|
|
899
899
|
* @category Types
|
|
900
900
|
*/
|
|
901
|
-
declare const VersionType: {
|
|
901
|
+
export declare const VersionType: {
|
|
902
902
|
readonly MAJOR: "major";
|
|
903
903
|
readonly MINOR: "minor";
|
|
904
904
|
readonly PATCH: "patch";
|
|
905
905
|
};
|
|
906
|
-
type VersionType = CreateEnumType<typeof VersionType>;
|
|
906
|
+
export type VersionType = CreateEnumType<typeof VersionType>;
|
|
907
907
|
/**
|
|
908
908
|
* Parses the input and verifies it is a valid software version type (i.e. `"major" | "minor" | "patch"`)
|
|
909
909
|
*
|
|
@@ -1234,7 +1234,7 @@ declare function normaliseIndents(strings: TemplateStringsArray, ...interpolatio
|
|
|
1234
1234
|
*
|
|
1235
1235
|
* @returns An additional function to invoke, or a new string with the strings and interpolations from the template applied, and extraneous indents removed.
|
|
1236
1236
|
*/
|
|
1237
|
-
declare const normalizeIndents: typeof normaliseIndents;
|
|
1237
|
+
export declare const normalizeIndents: typeof normaliseIndents;
|
|
1238
1238
|
//#endregion
|
|
1239
1239
|
//#region src/root/functions/typeAssertions/assertNotNull.d.ts
|
|
1240
1240
|
/**
|
|
@@ -1532,4 +1532,4 @@ interface ZodParsingErrorData {
|
|
|
1532
1532
|
issues: Array<z.core.$ZodIssue>;
|
|
1533
1533
|
}
|
|
1534
1534
|
//#endregion
|
|
1535
|
-
export { APIError, type ArrayElement, type AzParsingErrorHandler, type CallReturnType, type CamelToKebabOptions, type CreateEnumType, type CreateFormDataOptions, type CreateFormDataOptionsNullableResolution, type CreateFormDataOptionsUndefinedOrNullResolution, DataError, type DisallowUndefined,
|
|
1535
|
+
export { APIError, type ArrayElement, type AzParsingErrorHandler, type CallReturnType, type CamelToKebabOptions, type CreateEnumType, type CreateFormDataOptions, type CreateFormDataOptionsNullableResolution, type CreateFormDataOptionsUndefinedOrNullResolution, DataError, type DisallowUndefined, FILE_PATH_PATTERN, FILE_PATH_REGEX, type FormDataArrayResolutionStrategy, type FormDataNullableResolutionStrategy, type HTTPErrorCode, type IgnoreCase, type IsTypeArgumentString, type KebabToCamelOptions, type NonNull, type NonUndefined, type NormaliseIndentsFunction, type NormaliseIndentsOptions, type NormalizeIndentsFunction, type NormalizeIndentsOptions, type NullableOnCondition, ONE_DAY_IN_MILLISECONDS, type OptionalOnCondition, type ParallelTuple, type RecordKey, type RemoveUndefined, type StringListToArrayOptions, type ToTitleCaseOptions, UUID_PATTERN, UUID_REGEX, VERSION_NUMBER_PATTERN, VERSION_NUMBER_REGEX, VersionNumber, type FormatOptionsBase as VersionNumberToStringOptions, type ZodParsingErrorData, addDaysToDate, appendSemicolon, assertNotNull, assertNotNullable, assertNotUndefined, az, calculateMonthlyDifference, camelToKebab, containsKeys, convertFileToBase64, createFormData, createTemplateStringsArray, deepCopy, deepFreeze, escapeHTML, escapeRegexPattern, fillArray, formatDateAndTime, getRandomNumber, getRecordKeys, getStringsAndInterpolations, identity, interpolate, interpolateObjects, isAnniversary, isLeapYear, isMonthlyMultiple, isNonNullableObject, isOrdered, isSameDate, isTemplateStringsArray, kebabToCamel, memoizeAsync, minutesToMs, normaliseIndents, objectContainsKeys, omitProperties, paralleliseArrays, parseBoolean, parseEnv, parseFormData, parseIntStrict, parseUUID, parseVersionType, parseZodSchema, parseZodSchemaAsync, pickProperties, randomiseArray, range, removeDuplicates, removeUndefinedFromObject, sayHello, secondsToMs, sortBy, stringListToArray, stringifyDotenv, toTitleCase, truncate, wait };
|
|
@@ -170,11 +170,11 @@ declare class DataError<DataType extends object = Record<PropertyKey, unknown>,
|
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region src/internal/DependencyGroup.d.ts
|
|
173
|
-
declare const DependencyGroup: {
|
|
173
|
+
export declare const DependencyGroup: {
|
|
174
174
|
readonly DEPENDENCIES: "dependencies";
|
|
175
175
|
readonly DEV_DEPENDENCIES: "devDependencies";
|
|
176
176
|
};
|
|
177
|
-
type DependencyGroup = CreateEnumType<typeof DependencyGroup>;
|
|
177
|
+
export type DependencyGroup = CreateEnumType<typeof DependencyGroup>;
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region src/internal/getDependenciesFromGroup.d.ts
|
|
180
180
|
/**
|
|
@@ -202,12 +202,12 @@ declare function getPackageJsonContents<Strict extends boolean = true>(directory
|
|
|
202
202
|
declare function getPackageJsonPath(directory: string): string;
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/internal/ModuleType.d.ts
|
|
205
|
-
declare const ModuleType: {
|
|
205
|
+
export declare const ModuleType: {
|
|
206
206
|
readonly COMMON_JS: "commonjs";
|
|
207
207
|
readonly ES_MODULES: "module";
|
|
208
208
|
readonly TYPESCRIPT: "typescript";
|
|
209
209
|
};
|
|
210
|
-
type ModuleType = CreateEnumType<typeof ModuleType>;
|
|
210
|
+
export type ModuleType = CreateEnumType<typeof ModuleType>;
|
|
211
211
|
//#endregion
|
|
212
212
|
//#region src/internal/packageJsonNotFoundError.d.ts
|
|
213
213
|
interface PackageJsonNotFoundErrorPayload {
|
|
@@ -216,11 +216,11 @@ interface PackageJsonNotFoundErrorPayload {
|
|
|
216
216
|
declare function packageJsonNotFoundError(packagePath: string): DataError<PackageJsonNotFoundErrorPayload, "PACKAGE_JSON_NOT_FOUND">;
|
|
217
217
|
//#endregion
|
|
218
218
|
//#region src/internal/PackageManager.d.ts
|
|
219
|
-
declare const PackageManager: {
|
|
219
|
+
export declare const PackageManager: {
|
|
220
220
|
readonly NPM: "npm";
|
|
221
221
|
readonly PNPM: "pnpm";
|
|
222
222
|
};
|
|
223
|
-
type PackageManager = CreateEnumType<typeof PackageManager>;
|
|
223
|
+
export type PackageManager = CreateEnumType<typeof PackageManager>;
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region src/internal/parseJsonFromStdout.d.ts
|
|
226
226
|
declare function parseJsonFromStdout(stdout: string): Record<string, unknown>;
|
|
@@ -244,4 +244,4 @@ declare function setupPackageEndToEnd(temporaryPath: string, packageManager: Pac
|
|
|
244
244
|
cwd: string;
|
|
245
245
|
}>>;
|
|
246
246
|
//#endregion
|
|
247
|
-
export {
|
|
247
|
+
export { type IsTypeArgumentString, type PackageJsonNotFoundErrorPayload, getDependenciesFromGroup, getExpectedTgzName, getPackageJsonContents, getPackageJsonPath, packageJsonNotFoundError, parseJsonFromStdout, sayHello, setupPackageEndToEnd };
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -170,11 +170,11 @@ declare class DataError<DataType extends object = Record<PropertyKey, unknown>,
|
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region src/internal/DependencyGroup.d.ts
|
|
173
|
-
declare const DependencyGroup: {
|
|
173
|
+
export declare const DependencyGroup: {
|
|
174
174
|
readonly DEPENDENCIES: "dependencies";
|
|
175
175
|
readonly DEV_DEPENDENCIES: "devDependencies";
|
|
176
176
|
};
|
|
177
|
-
type DependencyGroup = CreateEnumType<typeof DependencyGroup>;
|
|
177
|
+
export type DependencyGroup = CreateEnumType<typeof DependencyGroup>;
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region src/internal/getDependenciesFromGroup.d.ts
|
|
180
180
|
/**
|
|
@@ -202,12 +202,12 @@ declare function getPackageJsonContents<Strict extends boolean = true>(directory
|
|
|
202
202
|
declare function getPackageJsonPath(directory: string): string;
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/internal/ModuleType.d.ts
|
|
205
|
-
declare const ModuleType: {
|
|
205
|
+
export declare const ModuleType: {
|
|
206
206
|
readonly COMMON_JS: "commonjs";
|
|
207
207
|
readonly ES_MODULES: "module";
|
|
208
208
|
readonly TYPESCRIPT: "typescript";
|
|
209
209
|
};
|
|
210
|
-
type ModuleType = CreateEnumType<typeof ModuleType>;
|
|
210
|
+
export type ModuleType = CreateEnumType<typeof ModuleType>;
|
|
211
211
|
//#endregion
|
|
212
212
|
//#region src/internal/packageJsonNotFoundError.d.ts
|
|
213
213
|
interface PackageJsonNotFoundErrorPayload {
|
|
@@ -216,11 +216,11 @@ interface PackageJsonNotFoundErrorPayload {
|
|
|
216
216
|
declare function packageJsonNotFoundError(packagePath: string): DataError<PackageJsonNotFoundErrorPayload, "PACKAGE_JSON_NOT_FOUND">;
|
|
217
217
|
//#endregion
|
|
218
218
|
//#region src/internal/PackageManager.d.ts
|
|
219
|
-
declare const PackageManager: {
|
|
219
|
+
export declare const PackageManager: {
|
|
220
220
|
readonly NPM: "npm";
|
|
221
221
|
readonly PNPM: "pnpm";
|
|
222
222
|
};
|
|
223
|
-
type PackageManager = CreateEnumType<typeof PackageManager>;
|
|
223
|
+
export type PackageManager = CreateEnumType<typeof PackageManager>;
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region src/internal/parseJsonFromStdout.d.ts
|
|
226
226
|
declare function parseJsonFromStdout(stdout: string): Record<string, unknown>;
|
|
@@ -244,4 +244,4 @@ declare function setupPackageEndToEnd(temporaryPath: string, packageManager: Pac
|
|
|
244
244
|
cwd: string;
|
|
245
245
|
}>>;
|
|
246
246
|
//#endregion
|
|
247
|
-
export {
|
|
247
|
+
export { type IsTypeArgumentString, type PackageJsonNotFoundErrorPayload, getDependenciesFromGroup, getExpectedTgzName, getPackageJsonContents, getPackageJsonPath, packageJsonNotFoundError, parseJsonFromStdout, sayHello, setupPackageEndToEnd };
|
package/dist/node/index.d.cts
CHANGED
|
@@ -30,7 +30,7 @@ declare function normalizeImportPath(importPath: string): string;
|
|
|
30
30
|
*
|
|
31
31
|
* @returns The import path normalised.
|
|
32
32
|
*/
|
|
33
|
-
declare const normaliseImportPath: typeof normalizeImportPath;
|
|
33
|
+
export declare const normaliseImportPath: typeof normalizeImportPath;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/node/functions/parseFilePath.d.ts
|
|
36
36
|
interface FilePathData {
|
|
@@ -67,4 +67,4 @@ declare function sayHello(): string;
|
|
|
67
67
|
//#region src/root/types/IsTypeArgumentString.d.ts
|
|
68
68
|
type IsTypeArgumentString<Argument extends string> = Argument;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { type IsTypeArgumentString,
|
|
70
|
+
export { type IsTypeArgumentString, normalizeImportPath, parseFilePath, sayHello };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare function normalizeImportPath(importPath: string): string;
|
|
|
30
30
|
*
|
|
31
31
|
* @returns The import path normalised.
|
|
32
32
|
*/
|
|
33
|
-
declare const normaliseImportPath: typeof normalizeImportPath;
|
|
33
|
+
export declare const normaliseImportPath: typeof normalizeImportPath;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/node/functions/parseFilePath.d.ts
|
|
36
36
|
interface FilePathData {
|
|
@@ -67,4 +67,4 @@ declare function sayHello(): string;
|
|
|
67
67
|
//#region src/root/types/IsTypeArgumentString.d.ts
|
|
68
68
|
type IsTypeArgumentString<Argument extends string> = Argument;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { type IsTypeArgumentString,
|
|
70
|
+
export { type IsTypeArgumentString, normalizeImportPath, parseFilePath, sayHello };
|
package/dist/v6/index.d.cts
CHANGED
|
@@ -87,7 +87,7 @@ declare class CodeError<ErrorCode extends string = string> extends Error {
|
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/v6/APIError.d.ts
|
|
90
|
-
declare const httpErrorCodeLookup: {
|
|
90
|
+
export declare const httpErrorCodeLookup: {
|
|
91
91
|
readonly 400: "BAD_REQUEST";
|
|
92
92
|
readonly 401: "UNAUTHORISED";
|
|
93
93
|
readonly 403: "FORBIDDEN";
|
|
@@ -261,4 +261,4 @@ declare class DataError<DataType extends object = Record<PropertyKey, unknown>,
|
|
|
261
261
|
*/
|
|
262
262
|
declare function sayHello(): string;
|
|
263
263
|
//#endregion
|
|
264
|
-
export { APIError, type APIErrorCode, CodeError, DataError, type ExpectErrorOptions, type HTTPErrorCode, type IsTypeArgumentString,
|
|
264
|
+
export { APIError, type APIErrorCode, CodeError, DataError, type ExpectErrorOptions, type HTTPErrorCode, type IsTypeArgumentString, sayHello };
|
package/dist/v6/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ declare class CodeError<ErrorCode extends string = string> extends Error {
|
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/v6/APIError.d.ts
|
|
90
|
-
declare const httpErrorCodeLookup: {
|
|
90
|
+
export declare const httpErrorCodeLookup: {
|
|
91
91
|
readonly 400: "BAD_REQUEST";
|
|
92
92
|
readonly 401: "UNAUTHORISED";
|
|
93
93
|
readonly 403: "FORBIDDEN";
|
|
@@ -261,4 +261,4 @@ declare class DataError<DataType extends object = Record<PropertyKey, unknown>,
|
|
|
261
261
|
*/
|
|
262
262
|
declare function sayHello(): string;
|
|
263
263
|
//#endregion
|
|
264
|
-
export { APIError, type APIErrorCode, CodeError, DataError, type ExpectErrorOptions, type HTTPErrorCode, type IsTypeArgumentString,
|
|
264
|
+
export { APIError, type APIErrorCode, CodeError, DataError, type ExpectErrorOptions, type HTTPErrorCode, type IsTypeArgumentString, sayHello };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/utility",
|
|
3
|
-
"version": "5.28.
|
|
3
|
+
"version": "5.28.2",
|
|
4
4
|
"description": "Helpful utility functions.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,32 +41,32 @@
|
|
|
41
41
|
"dist"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"dotenv": "
|
|
44
|
+
"dotenv": "18.0.3",
|
|
45
45
|
"execa": "10.0.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@alextheman/eslint-plugin": "5.18.
|
|
49
|
-
"@types/node": "26.2
|
|
50
|
-
"alex-c-line": "2.13.
|
|
48
|
+
"@alextheman/eslint-plugin": "5.18.3",
|
|
49
|
+
"@types/node": "26.6.2",
|
|
50
|
+
"alex-c-line": "2.13.2",
|
|
51
51
|
"cross-env": "10.1.0",
|
|
52
52
|
"dotenv-cli": "11.0.0",
|
|
53
|
-
"eslint": "10.
|
|
54
|
-
"globals": "17.
|
|
53
|
+
"eslint": "10.11.0",
|
|
54
|
+
"globals": "17.12.0",
|
|
55
55
|
"husky": "9.1.7",
|
|
56
|
-
"jsdom": "30.
|
|
57
|
-
"markdownlint-cli2": "0.23.
|
|
58
|
-
"prettier": "3.9.
|
|
56
|
+
"jsdom": "30.1.1",
|
|
57
|
+
"markdownlint-cli2": "0.23.3",
|
|
58
|
+
"prettier": "3.9.9",
|
|
59
59
|
"tempy": "3.2.0",
|
|
60
|
-
"tsdown": "0.
|
|
61
|
-
"tsx": "4.23.
|
|
60
|
+
"tsdown": "0.23.0",
|
|
61
|
+
"tsx": "4.23.15",
|
|
62
62
|
"typedoc": "0.28.20",
|
|
63
|
-
"typedoc-plugin-markdown": "4.
|
|
63
|
+
"typedoc-plugin-markdown": "4.13.1",
|
|
64
64
|
"typedoc-rhineai-theme": "1.2.0",
|
|
65
|
-
"typescript": "
|
|
66
|
-
"typescript-eslint": "8.
|
|
67
|
-
"vite": "8.
|
|
68
|
-
"vitest": "
|
|
69
|
-
"zod": "4.
|
|
65
|
+
"typescript": "7.0.2",
|
|
66
|
+
"typescript-eslint": "8.70.1",
|
|
67
|
+
"vite": "8.3.1",
|
|
68
|
+
"vitest": "5.0.1",
|
|
69
|
+
"zod": "4.6.5"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=22.3.0"
|