@happyvertical/utils 0.80.0 → 0.80.1

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/browser.js CHANGED
@@ -1,59 +1,8 @@
1
- import { A, B, D, E, F, N, P, T, V, a, c, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, C, G, H, I, J, K, L, M, O, Q, R, S, U, W, X, Y } from "./chunks/universal-BeseWxvS.js";
2
- import { isCuid } from "@paralleldrive/cuid2";
3
- const PACKAGE_VERSION_INITIALIZED = true;
4
- export {
5
- A as ApiError,
6
- B as BaseError,
7
- D as DatabaseError,
8
- E as ErrorCode,
9
- F as FileError,
10
- N as NetworkError,
11
- PACKAGE_VERSION_INITIALIZED,
12
- P as ParsingError,
13
- T as TimeoutError,
14
- V as ValidationError,
15
- a as addInterval,
16
- c as camelCase,
17
- b as convertType,
18
- d as createId,
19
- e as dateInString,
20
- f as disableLogging,
21
- g as domainToCamel,
22
- h as enableLogging,
23
- i as extractAllCodeBlocks,
24
- j as extractCodeBlock,
25
- k as extractFunctionDefinition,
26
- l as extractJSON,
27
- m as formatDate,
28
- n as getLogger,
29
- o as getTempDirectory,
30
- p as isArray,
31
- isCuid,
32
- q as isPlainObject,
33
- r as isPlural,
34
- s as isSafeCode,
35
- t as isSingular,
36
- u as isUrl,
37
- v as isValidDate,
38
- w as keysToCamel,
39
- x as keysToSnake,
40
- y as loadEnvConfig,
41
- z as logTicker,
42
- C as makeId,
43
- G as makeSlug,
44
- H as parseAmazonDateString,
45
- I as parseDate,
46
- J as pluralizeWord,
47
- K as prettyDate,
48
- L as setLogger,
49
- M as singularize,
50
- O as sleep,
51
- Q as snakeCase,
52
- R as toCamelCase,
53
- S as toScreamingSnakeCase,
54
- U as urlFilename,
55
- W as urlPath,
56
- X as validateCode,
57
- Y as waitFor
58
- };
59
- //# sourceMappingURL=browser.js.map
1
+ import { A as ApiError, B as enableLogging, C as prettyDate, D as urlFilename, E as snakeCase, F as NetworkError, G as extractAllCodeBlocks, H as setLogger, I as ParsingError, J as extractJSON, K as extractCodeBlock, L as TimeoutError, M as DatabaseError, N as ErrorCode, O as urlPath, P as FileError, Q as toScreamingSnakeCase, R as ValidationError, S as pluralizeWord, T as sleep, U as isSafeCode, V as getLogger, W as validateCode, X as loadEnvConfig, Y as convertType, Z as toCamelCase, _ as logTicker, a as domainToCamel, b as parseAmazonDateString, c as isArray, d as isPlural, f as isSingular, g as keysToSnake, h as keysToCamel, i as dateInString, j as BaseError, k as waitFor, l as isCuid, m as isValidDate, n as camelCase, o as formatDate, p as isUrl, q as extractFunctionDefinition, r as createId, s as getTempDirectory, t as addInterval, u as isPlainObject, v as makeId, w as singularize, x as parseDate, y as makeSlug, z as disableLogging } from "./chunks/universal-DOIuUel_.js";
2
+ //#region src/browser.ts
3
+ /** @internal */
4
+ var PACKAGE_VERSION_INITIALIZED = true;
5
+ //#endregion
6
+ export { ApiError, BaseError, DatabaseError, ErrorCode, FileError, NetworkError, PACKAGE_VERSION_INITIALIZED, ParsingError, TimeoutError, ValidationError, addInterval, camelCase, convertType, createId, dateInString, disableLogging, domainToCamel, enableLogging, extractAllCodeBlocks, extractCodeBlock, extractFunctionDefinition, extractJSON, formatDate, getLogger, getTempDirectory, isArray, isCuid, isPlainObject, isPlural, isSafeCode, isSingular, isUrl, isValidDate, keysToCamel, keysToSnake, loadEnvConfig, logTicker, makeId, makeSlug, parseAmazonDateString, parseDate, pluralizeWord, prettyDate, setLogger, singularize, sleep, snakeCase, toCamelCase, toScreamingSnakeCase, urlFilename, urlPath, validateCode, waitFor };
7
+
8
+ //# sourceMappingURL=browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser.js","sources":["../src/browser.ts"],"sourcesContent":["/**\n * Browser-safe utilities\n *\n * This entry point only exports utilities that work in browser environments.\n * It excludes Node.js-specific code like:\n * - cli/parse-args (uses node:path, node:util)\n * - shared/code/sandbox (uses node:vm)\n * - web.ts hash functions (uses node:crypto)\n *\n * For Node.js environments, use the main entry point instead.\n */\n\n// Export config utilities (browser-safe)\nexport * from './config/env-config';\n// Export code utilities that don't require Node.js\nexport {\n extractAllCodeBlocks,\n extractCodeBlock,\n extractFunctionDefinition,\n extractJSON,\n} from './shared/code/extraction';\nexport {\n isSafeCode,\n type ValidationOptions,\n type ValidationResult,\n validateCode,\n} from './shared/code/validation';\n// Export logger utilities (browser-safe)\nexport * from './shared/logger';\n// Export types (browser-safe)\nexport * from './shared/types';\n// Export all universal utilities (browser-safe)\nexport * from './shared/universal';\n\n/** @internal */\nexport const PACKAGE_VERSION_INITIALIZED = true;\n"],"names":[],"mappings":";;AAmCO,MAAM,8BAA8B;"}
1
+ {"version":3,"file":"browser.js","names":[],"sources":["../src/browser.ts"],"sourcesContent":["/**\n * Browser-safe utilities\n *\n * This entry point only exports utilities that work in browser environments.\n * It excludes Node.js-specific code like:\n * - cli/parse-args (uses node:path, node:util)\n * - shared/code/sandbox (uses node:vm)\n * - web.ts hash functions (uses node:crypto)\n *\n * For Node.js environments, use the main entry point instead.\n */\n\n// Export config utilities (browser-safe)\nexport * from './config/env-config';\n// Export code utilities that don't require Node.js\nexport {\n extractAllCodeBlocks,\n extractCodeBlock,\n extractFunctionDefinition,\n extractJSON,\n} from './shared/code/extraction';\nexport {\n isSafeCode,\n type ValidationOptions,\n type ValidationResult,\n validateCode,\n} from './shared/code/validation';\n// Export logger utilities (browser-safe)\nexport * from './shared/logger';\n// Export types (browser-safe)\nexport * from './shared/types';\n// Export all universal utilities (browser-safe)\nexport * from './shared/universal';\n\n/** @internal */\nexport const PACKAGE_VERSION_INITIALIZED = true;\n"],"mappings":";;;AAmCA,IAAa,8BAA8B"}