@stackone/utils 0.22.0 → 0.24.0
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/edge/index.d.mts +12 -1
- package/dist/edge/index.mjs +2 -2
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.d.cts +12 -1
- package/dist/node/index.d.mts +12 -1
- package/dist/node/index.mjs +2 -2
- package/package.json +1 -1
package/dist/node/index.d.cts
CHANGED
|
@@ -89,6 +89,17 @@ declare const getDocumentFileFormatFromExtension: (fileExtension: unknown) => st
|
|
|
89
89
|
//#region src/shared/exponentialBackoff.d.ts
|
|
90
90
|
declare const exponentialBackoffInMS: (retryCount: number, baseRetryDelayInMS?: number, jitterFactor?: number) => number;
|
|
91
91
|
//#endregion
|
|
92
|
+
//#region src/shared/extractSchema.d.ts
|
|
93
|
+
type SchemaToken = 'null' | 'undefined' | 'string' | 'number' | 'boolean' | 'bigint' | 'symbol' | 'function' | '{}' | '...';
|
|
94
|
+
type ExtractedSchema = SchemaToken | {
|
|
95
|
+
type: 'array';
|
|
96
|
+
items: number;
|
|
97
|
+
schema: ExtractedSchema | null;
|
|
98
|
+
} | {
|
|
99
|
+
[key: string]: ExtractedSchema;
|
|
100
|
+
};
|
|
101
|
+
declare const extractSchema: (value: unknown, depth?: number) => ExtractedSchema;
|
|
102
|
+
//#endregion
|
|
92
103
|
//#region src/shared/getByDotPath.d.ts
|
|
93
104
|
declare function getByDotPath(obj: unknown, path: string): unknown;
|
|
94
105
|
//#endregion
|
|
@@ -216,4 +227,4 @@ declare const generateRequestId: (randomUUIDGenerator?: typeof randomUUID) => st
|
|
|
216
227
|
declare const generateActionRunId: (randomUUIDGenerator?: typeof randomUUID) => string;
|
|
217
228
|
declare const generateEventId: (randomUUIDGenerator?: typeof randomUUID) => string;
|
|
218
229
|
//#endregion
|
|
219
|
-
export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, ZodType, calculateNextAnniversary, calculateSize, calculateYearsElapsed, camelToSnake, convertKeysToCamelCase, convertKeysToSnakeCase, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exceedsSize, exponentialBackoffInMS, generateActionRunId, generateEventId, generateRequestId, generateSamlAssertion, getByDotPath, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, snakeToCamel, z, zStrictObject };
|
|
230
|
+
export { ExtractedSchema, NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, SchemaToken, ZodType, calculateNextAnniversary, calculateSize, calculateYearsElapsed, camelToSnake, convertKeysToCamelCase, convertKeysToSnakeCase, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exceedsSize, exponentialBackoffInMS, extractSchema, generateActionRunId, generateEventId, generateRequestId, generateSamlAssertion, getByDotPath, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, snakeToCamel, z, zStrictObject };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -88,6 +88,17 @@ declare const getDocumentFileFormatFromExtension: (fileExtension: unknown) => st
|
|
|
88
88
|
//#region src/shared/exponentialBackoff.d.ts
|
|
89
89
|
declare const exponentialBackoffInMS: (retryCount: number, baseRetryDelayInMS?: number, jitterFactor?: number) => number;
|
|
90
90
|
//#endregion
|
|
91
|
+
//#region src/shared/extractSchema.d.ts
|
|
92
|
+
type SchemaToken = 'null' | 'undefined' | 'string' | 'number' | 'boolean' | 'bigint' | 'symbol' | 'function' | '{}' | '...';
|
|
93
|
+
type ExtractedSchema = SchemaToken | {
|
|
94
|
+
type: 'array';
|
|
95
|
+
items: number;
|
|
96
|
+
schema: ExtractedSchema | null;
|
|
97
|
+
} | {
|
|
98
|
+
[key: string]: ExtractedSchema;
|
|
99
|
+
};
|
|
100
|
+
declare const extractSchema: (value: unknown, depth?: number) => ExtractedSchema;
|
|
101
|
+
//#endregion
|
|
91
102
|
//#region src/shared/getByDotPath.d.ts
|
|
92
103
|
declare function getByDotPath(obj: unknown, path: string): unknown;
|
|
93
104
|
//#endregion
|
|
@@ -215,4 +226,4 @@ declare const generateRequestId: (randomUUIDGenerator?: typeof randomUUID) => st
|
|
|
215
226
|
declare const generateActionRunId: (randomUUIDGenerator?: typeof randomUUID) => string;
|
|
216
227
|
declare const generateEventId: (randomUUIDGenerator?: typeof randomUUID) => string;
|
|
217
228
|
//#endregion
|
|
218
|
-
export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, type ZodType, calculateNextAnniversary, calculateSize, calculateYearsElapsed, camelToSnake, convertKeysToCamelCase, convertKeysToSnakeCase, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exceedsSize, exponentialBackoffInMS, generateActionRunId, generateEventId, generateRequestId, generateSamlAssertion, getByDotPath, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, snakeToCamel, z, zStrictObject };
|
|
229
|
+
export { type ExtractedSchema, NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, type SchemaToken, type ZodType, calculateNextAnniversary, calculateSize, calculateYearsElapsed, camelToSnake, convertKeysToCamelCase, convertKeysToSnakeCase, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exceedsSize, exponentialBackoffInMS, extractSchema, generateActionRunId, generateEventId, generateRequestId, generateSamlAssertion, getByDotPath, getContentHash, getCountryAlpha2CodeByAlpha2Code, getCountryAlpha2CodeByAlpha3Code, getCountryAlpha2CodeByCitizenship, getCountryAlpha2CodeByCountryCode, getCountryAlpha2CodeByCountryName, getCountryAlpha3CodeByAlpha2Code, getCountryAlpha3CodeByAlpha3Code, getCountryAlpha3CodeByCountryCode, getCountryAlpha3CodeByCountryName, getCountryCodeByAlpha2Code, getCountryCodeByAlpha3Code, getCountryCodeByCountryCode, getCountryCodeByCountryName, getCountryNameByAlpha2Code, getCountryNameByAlpha3Code, getCountryNameByCountryCode, getCountryNameByCountryName, getCountrySubDivisionByAlpha2CodeAndName, getCountrySubDivisionCodeBySubDivisionName, getCountrySubDivisionNameBySubDivisionCode, getCountrySubDivisionsByAlpha2Code, getDocumentFileFormatFromExtension, isBoolean, isDate, isFunction, isFutureUnixTimestamp, isIpInRange, isIpInRanges, isMissing, isNumber, isObject, isString, isValidIp, isValidIpRange, isValidIpRanges, isValidUUID, notMissing, safeParseToBoolean, safeParseToDateTime, safeParseToDateTimeString, safeParseToNumber, safeParseToString, snakeToCamel, z, zStrictObject };
|