@stackone/utils 0.18.0 → 0.20.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 +6 -1
- package/dist/edge/index.mjs +3 -3
- package/dist/node/index.cjs +3 -3
- package/dist/node/index.d.cts +6 -1
- package/dist/node/index.d.mts +6 -1
- package/dist/node/index.mjs +3 -3
- package/package.json +1 -1
package/dist/edge/index.d.mts
CHANGED
|
@@ -89,6 +89,10 @@ declare const isValidIpRanges: (patterns: string[]) => boolean;
|
|
|
89
89
|
declare const isIpInRanges: (ip: string, patterns: string[]) => boolean;
|
|
90
90
|
declare const isIpInRange: (ip: string, pattern: string) => boolean;
|
|
91
91
|
//#endregion
|
|
92
|
+
//#region src/shared/objectSize.d.ts
|
|
93
|
+
declare function calculateSize(obj: unknown): number;
|
|
94
|
+
declare function exceedsSize(obj: unknown, maxSize: number): boolean;
|
|
95
|
+
//#endregion
|
|
92
96
|
//#region src/shared/parsers.d.ts
|
|
93
97
|
declare const safeParseToString: ({
|
|
94
98
|
value
|
|
@@ -166,6 +170,7 @@ declare enum RequestSourceType {
|
|
|
166
170
|
MONITORING = "MONITORING",
|
|
167
171
|
EXTERNAL_TRIGGER = "EXTERNAL_TRIGGER",
|
|
168
172
|
API_SESSION = "API_SESSION",
|
|
173
|
+
SESSION_TOKEN = "SESSION_TOKEN",
|
|
169
174
|
NATIVE_WEBHOOK_SETUP_WORKER = "NATIVE_WEBHOOK_SETUP_WORKER",
|
|
170
175
|
COOKIE_SESSION = "COOKIE_SESSION",
|
|
171
176
|
MCP_TOOL = "MCP_TOOL",
|
|
@@ -199,4 +204,4 @@ declare const getContentHash: (content: unknown) => string;
|
|
|
199
204
|
declare const isValidUUID: (uuid: string) => boolean;
|
|
200
205
|
declare const generateRequestId: (randomUUIDGenerator?: () => string) => string;
|
|
201
206
|
//#endregion
|
|
202
|
-
export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, type ZodType, calculateNextAnniversary, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exponentialBackoffInMS, generateRequestId, generateSamlAssertion, 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, z, zStrictObject };
|
|
207
|
+
export { NON_BACKGROUND_LOGS_SOURCE_TYPES, NormalizedKeyMap, RequestSourceType, type ZodType, calculateNextAnniversary, calculateSize, calculateYearsElapsed, dateHasPassed, decodeFromBase64, deepCopy, delay, encodeToBase64, exceedsSize, exponentialBackoffInMS, generateRequestId, generateSamlAssertion, 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, z, zStrictObject };
|