@utilix-tech/sdk 0.3.0 → 0.4.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +44 -32
  3. package/SECURITY.md +16 -0
  4. package/dist/{chunk-UC656APA.js → chunk-DNCOIO5N.js} +64 -1
  5. package/dist/{chunk-OKSWDVOM.js → chunk-GX7H6TAX.js} +1 -1
  6. package/dist/{chunk-W4UBLYFU.js → chunk-HFRTZE7T.js} +2 -2
  7. package/dist/{chunk-ROTPLW7T.js → chunk-IPR7FSX4.js} +2 -2
  8. package/dist/{chunk-T3JTY2M5.js → chunk-N7C52YGL.js} +1 -1
  9. package/dist/{chunk-XST6X3HT.js → chunk-QJE743LY.js} +10 -10
  10. package/dist/{chunk-3BAHSW4C.js → chunk-V5JKVDBA.js} +60 -1
  11. package/dist/{chunk-NSOARQCM.js → chunk-V5S6OJ4A.js} +14 -14
  12. package/dist/{data-rMjWNiOJ.d.cts → data-CakDxAcT.d.cts} +36 -2
  13. package/dist/{data-rMjWNiOJ.d.ts → data-CakDxAcT.d.ts} +36 -2
  14. package/dist/index.cjs +152 -30
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.js +8 -8
  18. package/dist/{network-CNtmrDeN.d.cts → network-DwyAjwJS.d.cts} +39 -2
  19. package/dist/{network-CNtmrDeN.d.ts → network-DwyAjwJS.d.ts} +39 -2
  20. package/dist/tools/api.cjs +2 -2
  21. package/dist/tools/api.js +1 -1
  22. package/dist/tools/code.cjs +14 -14
  23. package/dist/tools/code.js +1 -1
  24. package/dist/tools/data.cjs +63 -0
  25. package/dist/tools/data.d.cts +1 -1
  26. package/dist/tools/data.d.ts +1 -1
  27. package/dist/tools/data.js +1 -1
  28. package/dist/tools/encoding.cjs +2 -2
  29. package/dist/tools/encoding.js +1 -1
  30. package/dist/tools/media.cjs +1 -1
  31. package/dist/tools/media.js +1 -1
  32. package/dist/tools/misc.cjs +1 -1
  33. package/dist/tools/misc.js +1 -1
  34. package/dist/tools/network.cjs +59 -0
  35. package/dist/tools/network.d.cts +1 -1
  36. package/dist/tools/network.d.ts +1 -1
  37. package/dist/tools/network.js +1 -1
  38. package/dist/tools/units.cjs +10 -10
  39. package/dist/tools/units.js +1 -1
  40. package/package.json +18 -4
@@ -10,6 +10,7 @@
10
10
  * - csv-viewer : detectDelimiter, parseCsv, csvToJson, toCsvString
11
11
  * - ini-parser : parseIni, stringifyIni, iniToJson, jsonToIni, getSection, getSectionNames, validateIni
12
12
  * - env-parser : parseEnv, envToJson, envToExport, validateEnvKey
13
+ * - ndjson-formatter: validateNdjson, minifyNdjson, formatNdjson, ndjsonToJsonArray, jsonArrayToNdjson
13
14
  */
14
15
  interface ValidationResult {
15
16
  valid: boolean;
@@ -167,11 +168,39 @@ declare function envToJson(input: string): string | {
167
168
  };
168
169
  declare function envToExport(input: string): string;
169
170
  declare function validateEnvKey(key: string): boolean;
171
+ interface NdjsonLineResult {
172
+ line: number;
173
+ raw: string;
174
+ valid: boolean;
175
+ error?: string;
176
+ }
177
+ interface NdjsonValidateResult {
178
+ valid: boolean;
179
+ totalLines: number;
180
+ validLines: number;
181
+ invalidLines: number;
182
+ lines: NdjsonLineResult[];
183
+ }
184
+ declare function validateNdjson(input: string): NdjsonValidateResult;
185
+ declare function minifyNdjson(input: string): string | {
186
+ error: string;
187
+ };
188
+ declare function formatNdjson(input: string, indent?: number): string | {
189
+ error: string;
190
+ };
191
+ declare function ndjsonToJsonArray(input: string): string | {
192
+ error: string;
193
+ };
194
+ declare function jsonArrayToNdjson(input: string): string | {
195
+ error: string;
196
+ };
170
197
 
171
198
  type data_CsvParseResult = CsvParseResult;
172
199
  type data_EnvEntry = EnvEntry;
173
200
  type data_EnvParseResult = EnvParseResult;
174
201
  type data_IniSection = IniSection;
202
+ type data_NdjsonLineResult = NdjsonLineResult;
203
+ type data_NdjsonValidateResult = NdjsonValidateResult;
175
204
  type data_ParseOptions = ParseOptions;
176
205
  type data_ParsedIni = ParsedIni;
177
206
  type data_TomlFormatResult = TomlFormatResult;
@@ -182,6 +211,7 @@ declare const data_csvToJson: typeof csvToJson;
182
211
  declare const data_detectDelimiter: typeof detectDelimiter;
183
212
  declare const data_envToExport: typeof envToExport;
184
213
  declare const data_envToJson: typeof envToJson;
214
+ declare const data_formatNdjson: typeof formatNdjson;
185
215
  declare const data_formatToml: typeof formatToml;
186
216
  declare const data_formatXml: typeof formatXml;
187
217
  declare const data_getSection: typeof getSection;
@@ -190,11 +220,14 @@ declare const data_getTomlStats: typeof getTomlStats;
190
220
  declare const data_getXmlStats: typeof getXmlStats;
191
221
  declare const data_getYamlStats: typeof getYamlStats;
192
222
  declare const data_iniToJson: typeof iniToJson;
223
+ declare const data_jsonArrayToNdjson: typeof jsonArrayToNdjson;
193
224
  declare const data_jsonToIni: typeof jsonToIni;
194
225
  declare const data_jsonToToml: typeof jsonToToml;
195
226
  declare const data_jsonToXml: typeof jsonToXml;
227
+ declare const data_minifyNdjson: typeof minifyNdjson;
196
228
  declare const data_minifyToml: typeof minifyToml;
197
229
  declare const data_minifyXml: typeof minifyXml;
230
+ declare const data_ndjsonToJsonArray: typeof ndjsonToJsonArray;
198
231
  declare const data_parseCsv: typeof parseCsv;
199
232
  declare const data_parseEnv: typeof parseEnv;
200
233
  declare const data_parseIni: typeof parseIni;
@@ -204,12 +237,13 @@ declare const data_toCsvString: typeof toCsvString;
204
237
  declare const data_tomlToJson: typeof tomlToJson;
205
238
  declare const data_validateEnvKey: typeof validateEnvKey;
206
239
  declare const data_validateIni: typeof validateIni;
240
+ declare const data_validateNdjson: typeof validateNdjson;
207
241
  declare const data_validateToml: typeof validateToml;
208
242
  declare const data_validateXml: typeof validateXml;
209
243
  declare const data_validateYaml: typeof validateYaml;
210
244
  declare const data_xmlToJson: typeof xmlToJson;
211
245
  declare namespace data {
212
- export { type data_CsvParseResult as CsvParseResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_IniSection as IniSection, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, data_csvToJson as csvToJson, data_detectDelimiter as detectDelimiter, data_envToExport as envToExport, data_envToJson as envToJson, data_formatToml as formatToml, data_formatXml as formatXml, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseIni as parseIni, data_parseXmlToObject as parseXmlToObject, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
246
+ export { type data_CsvParseResult as CsvParseResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_IniSection as IniSection, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, data_csvToJson as csvToJson, data_detectDelimiter as detectDelimiter, data_envToExport as envToExport, data_envToJson as envToJson, data_formatNdjson as formatNdjson, data_formatToml as formatToml, data_formatXml as formatXml, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseIni as parseIni, data_parseXmlToObject as parseXmlToObject, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
213
247
  }
214
248
 
215
- export { toCsvString as A, tomlToJson as B, type CsvParseResult as C, validateEnvKey as D, type EnvEntry as E, validateIni as F, validateToml as G, validateXml as H, type IniSection as I, validateYaml as J, xmlToJson as K, type ParseOptions as P, type TomlFormatResult as T, type ValidationResult as V, type XmlFormatResult as X, type EnvParseResult as a, type ParsedIni as b, type XmlToJsonOptions as c, data as d, csvToJson as e, detectDelimiter as f, envToExport as g, envToJson as h, formatToml as i, formatXml as j, getSection as k, getSectionNames as l, getTomlStats as m, getXmlStats as n, getYamlStats as o, iniToJson as p, jsonToIni as q, jsonToToml as r, jsonToXml as s, minifyToml as t, minifyXml as u, parseCsv as v, parseEnv as w, parseIni as x, parseXmlToObject as y, stringifyIni as z };
249
+ export { parseCsv as A, parseEnv as B, type CsvParseResult as C, parseIni as D, type EnvEntry as E, parseXmlToObject as F, stringifyIni as G, toCsvString as H, type IniSection as I, tomlToJson as J, validateEnvKey as K, validateIni as L, validateNdjson as M, type NdjsonLineResult as N, validateToml as O, type ParseOptions as P, validateXml as Q, validateYaml as R, xmlToJson as S, type TomlFormatResult as T, type ValidationResult as V, type XmlFormatResult as X, type EnvParseResult as a, type NdjsonValidateResult as b, type ParsedIni as c, data as d, type XmlToJsonOptions as e, csvToJson as f, detectDelimiter as g, envToExport as h, envToJson as i, formatNdjson as j, formatToml as k, formatXml as l, getSection as m, getSectionNames as n, getTomlStats as o, getXmlStats as p, getYamlStats as q, iniToJson as r, jsonArrayToNdjson as s, jsonToIni as t, jsonToToml as u, jsonToXml as v, minifyNdjson as w, minifyToml as x, minifyXml as y, ndjsonToJsonArray as z };
@@ -10,6 +10,7 @@
10
10
  * - csv-viewer : detectDelimiter, parseCsv, csvToJson, toCsvString
11
11
  * - ini-parser : parseIni, stringifyIni, iniToJson, jsonToIni, getSection, getSectionNames, validateIni
12
12
  * - env-parser : parseEnv, envToJson, envToExport, validateEnvKey
13
+ * - ndjson-formatter: validateNdjson, minifyNdjson, formatNdjson, ndjsonToJsonArray, jsonArrayToNdjson
13
14
  */
14
15
  interface ValidationResult {
15
16
  valid: boolean;
@@ -167,11 +168,39 @@ declare function envToJson(input: string): string | {
167
168
  };
168
169
  declare function envToExport(input: string): string;
169
170
  declare function validateEnvKey(key: string): boolean;
171
+ interface NdjsonLineResult {
172
+ line: number;
173
+ raw: string;
174
+ valid: boolean;
175
+ error?: string;
176
+ }
177
+ interface NdjsonValidateResult {
178
+ valid: boolean;
179
+ totalLines: number;
180
+ validLines: number;
181
+ invalidLines: number;
182
+ lines: NdjsonLineResult[];
183
+ }
184
+ declare function validateNdjson(input: string): NdjsonValidateResult;
185
+ declare function minifyNdjson(input: string): string | {
186
+ error: string;
187
+ };
188
+ declare function formatNdjson(input: string, indent?: number): string | {
189
+ error: string;
190
+ };
191
+ declare function ndjsonToJsonArray(input: string): string | {
192
+ error: string;
193
+ };
194
+ declare function jsonArrayToNdjson(input: string): string | {
195
+ error: string;
196
+ };
170
197
 
171
198
  type data_CsvParseResult = CsvParseResult;
172
199
  type data_EnvEntry = EnvEntry;
173
200
  type data_EnvParseResult = EnvParseResult;
174
201
  type data_IniSection = IniSection;
202
+ type data_NdjsonLineResult = NdjsonLineResult;
203
+ type data_NdjsonValidateResult = NdjsonValidateResult;
175
204
  type data_ParseOptions = ParseOptions;
176
205
  type data_ParsedIni = ParsedIni;
177
206
  type data_TomlFormatResult = TomlFormatResult;
@@ -182,6 +211,7 @@ declare const data_csvToJson: typeof csvToJson;
182
211
  declare const data_detectDelimiter: typeof detectDelimiter;
183
212
  declare const data_envToExport: typeof envToExport;
184
213
  declare const data_envToJson: typeof envToJson;
214
+ declare const data_formatNdjson: typeof formatNdjson;
185
215
  declare const data_formatToml: typeof formatToml;
186
216
  declare const data_formatXml: typeof formatXml;
187
217
  declare const data_getSection: typeof getSection;
@@ -190,11 +220,14 @@ declare const data_getTomlStats: typeof getTomlStats;
190
220
  declare const data_getXmlStats: typeof getXmlStats;
191
221
  declare const data_getYamlStats: typeof getYamlStats;
192
222
  declare const data_iniToJson: typeof iniToJson;
223
+ declare const data_jsonArrayToNdjson: typeof jsonArrayToNdjson;
193
224
  declare const data_jsonToIni: typeof jsonToIni;
194
225
  declare const data_jsonToToml: typeof jsonToToml;
195
226
  declare const data_jsonToXml: typeof jsonToXml;
227
+ declare const data_minifyNdjson: typeof minifyNdjson;
196
228
  declare const data_minifyToml: typeof minifyToml;
197
229
  declare const data_minifyXml: typeof minifyXml;
230
+ declare const data_ndjsonToJsonArray: typeof ndjsonToJsonArray;
198
231
  declare const data_parseCsv: typeof parseCsv;
199
232
  declare const data_parseEnv: typeof parseEnv;
200
233
  declare const data_parseIni: typeof parseIni;
@@ -204,12 +237,13 @@ declare const data_toCsvString: typeof toCsvString;
204
237
  declare const data_tomlToJson: typeof tomlToJson;
205
238
  declare const data_validateEnvKey: typeof validateEnvKey;
206
239
  declare const data_validateIni: typeof validateIni;
240
+ declare const data_validateNdjson: typeof validateNdjson;
207
241
  declare const data_validateToml: typeof validateToml;
208
242
  declare const data_validateXml: typeof validateXml;
209
243
  declare const data_validateYaml: typeof validateYaml;
210
244
  declare const data_xmlToJson: typeof xmlToJson;
211
245
  declare namespace data {
212
- export { type data_CsvParseResult as CsvParseResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_IniSection as IniSection, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, data_csvToJson as csvToJson, data_detectDelimiter as detectDelimiter, data_envToExport as envToExport, data_envToJson as envToJson, data_formatToml as formatToml, data_formatXml as formatXml, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseIni as parseIni, data_parseXmlToObject as parseXmlToObject, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
246
+ export { type data_CsvParseResult as CsvParseResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_IniSection as IniSection, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, data_csvToJson as csvToJson, data_detectDelimiter as detectDelimiter, data_envToExport as envToExport, data_envToJson as envToJson, data_formatNdjson as formatNdjson, data_formatToml as formatToml, data_formatXml as formatXml, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseIni as parseIni, data_parseXmlToObject as parseXmlToObject, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
213
247
  }
214
248
 
215
- export { toCsvString as A, tomlToJson as B, type CsvParseResult as C, validateEnvKey as D, type EnvEntry as E, validateIni as F, validateToml as G, validateXml as H, type IniSection as I, validateYaml as J, xmlToJson as K, type ParseOptions as P, type TomlFormatResult as T, type ValidationResult as V, type XmlFormatResult as X, type EnvParseResult as a, type ParsedIni as b, type XmlToJsonOptions as c, data as d, csvToJson as e, detectDelimiter as f, envToExport as g, envToJson as h, formatToml as i, formatXml as j, getSection as k, getSectionNames as l, getTomlStats as m, getXmlStats as n, getYamlStats as o, iniToJson as p, jsonToIni as q, jsonToToml as r, jsonToXml as s, minifyToml as t, minifyXml as u, parseCsv as v, parseEnv as w, parseIni as x, parseXmlToObject as y, stringifyIni as z };
249
+ export { parseCsv as A, parseEnv as B, type CsvParseResult as C, parseIni as D, type EnvEntry as E, parseXmlToObject as F, stringifyIni as G, toCsvString as H, type IniSection as I, tomlToJson as J, validateEnvKey as K, validateIni as L, validateNdjson as M, type NdjsonLineResult as N, validateToml as O, type ParseOptions as P, validateXml as Q, validateYaml as R, xmlToJson as S, type TomlFormatResult as T, type ValidationResult as V, type XmlFormatResult as X, type EnvParseResult as a, type NdjsonValidateResult as b, type ParsedIni as c, data as d, type XmlToJsonOptions as e, csvToJson as f, detectDelimiter as g, envToExport as h, envToJson as i, formatNdjson as j, formatToml as k, formatXml as l, getSection as m, getSectionNames as n, getTomlStats as o, getXmlStats as p, getYamlStats as q, iniToJson as r, jsonArrayToNdjson as s, jsonToIni as t, jsonToToml as u, jsonToXml as v, minifyNdjson as w, minifyToml as x, minifyXml as y, ndjsonToJsonArray as z };
package/dist/index.cjs CHANGED
@@ -1333,7 +1333,7 @@ function decodeBase64(input, variant = "standard") {
1333
1333
  const output = bytes.toString("utf8");
1334
1334
  return { ok: true, output, outputBytes: bytes.length };
1335
1335
  } catch {
1336
- return { ok: false, error: "Invalid Base64 \u2014 check the input and variant setting" };
1336
+ return { ok: false, error: "Invalid Base64: check the input and variant setting" };
1337
1337
  }
1338
1338
  }
1339
1339
  function encodeUrl(input, mode = "component") {
@@ -1352,7 +1352,7 @@ function decodeUrl(input, mode = "component") {
1352
1352
  const output = mode === "component" ? decodeURIComponent(trimmed) : decodeURI(trimmed);
1353
1353
  return { ok: true, output, changed: output !== trimmed };
1354
1354
  } catch {
1355
- return { ok: false, error: "Invalid percent-encoding \u2014 check the input" };
1355
+ return { ok: false, error: "Invalid percent-encoding: check the input" };
1356
1356
  }
1357
1357
  }
1358
1358
  function diffSegments(original, encoded) {
@@ -4197,6 +4197,7 @@ __export(data_exports, {
4197
4197
  detectDelimiter: () => detectDelimiter2,
4198
4198
  envToExport: () => envToExport,
4199
4199
  envToJson: () => envToJson,
4200
+ formatNdjson: () => formatNdjson,
4200
4201
  formatToml: () => formatToml,
4201
4202
  formatXml: () => formatXml,
4202
4203
  getSection: () => getSection,
@@ -4205,11 +4206,14 @@ __export(data_exports, {
4205
4206
  getXmlStats: () => getXmlStats,
4206
4207
  getYamlStats: () => getYamlStats,
4207
4208
  iniToJson: () => iniToJson,
4209
+ jsonArrayToNdjson: () => jsonArrayToNdjson,
4208
4210
  jsonToIni: () => jsonToIni,
4209
4211
  jsonToToml: () => jsonToToml,
4210
4212
  jsonToXml: () => jsonToXml,
4213
+ minifyNdjson: () => minifyNdjson,
4211
4214
  minifyToml: () => minifyToml,
4212
4215
  minifyXml: () => minifyXml,
4216
+ ndjsonToJsonArray: () => ndjsonToJsonArray,
4213
4217
  parseCsv: () => parseCsv,
4214
4218
  parseEnv: () => parseEnv,
4215
4219
  parseIni: () => parseIni,
@@ -4219,6 +4223,7 @@ __export(data_exports, {
4219
4223
  tomlToJson: () => tomlToJson,
4220
4224
  validateEnvKey: () => validateEnvKey,
4221
4225
  validateIni: () => validateIni,
4226
+ validateNdjson: () => validateNdjson,
4222
4227
  validateToml: () => validateToml,
4223
4228
  validateXml: () => validateXml,
4224
4229
  validateYaml: () => validateYaml,
@@ -5264,6 +5269,64 @@ function envToExport(input) {
5264
5269
  function validateEnvKey(key) {
5265
5270
  return /^[A-Za-z_][A-Za-z0-9_]*$/.test(key);
5266
5271
  }
5272
+ function validateNdjson(input) {
5273
+ const rawLines = input.split("\n");
5274
+ const lines = [];
5275
+ let validCount = 0;
5276
+ rawLines.forEach((raw, idx) => {
5277
+ if (raw.trim() === "") return;
5278
+ const lineNum = idx + 1;
5279
+ try {
5280
+ JSON.parse(raw);
5281
+ lines.push({ line: lineNum, raw, valid: true });
5282
+ validCount++;
5283
+ } catch (e) {
5284
+ lines.push({
5285
+ line: lineNum,
5286
+ raw,
5287
+ valid: false,
5288
+ error: e instanceof Error ? e.message : String(e)
5289
+ });
5290
+ }
5291
+ });
5292
+ return {
5293
+ valid: lines.length > 0 && validCount === lines.length,
5294
+ totalLines: lines.length,
5295
+ validLines: validCount,
5296
+ invalidLines: lines.length - validCount,
5297
+ lines
5298
+ };
5299
+ }
5300
+ function _firstNdjsonError(result) {
5301
+ const firstError = result.lines.find((l) => !l.valid);
5302
+ return firstError ? `Line ${firstError.line}: ${firstError.error}` : "Invalid NDJSON";
5303
+ }
5304
+ function minifyNdjson(input) {
5305
+ const result = validateNdjson(input);
5306
+ if (!result.valid) return { error: _firstNdjsonError(result) };
5307
+ return result.lines.map((l) => JSON.stringify(JSON.parse(l.raw))).join("\n");
5308
+ }
5309
+ function formatNdjson(input, indent = 2) {
5310
+ const result = validateNdjson(input);
5311
+ if (!result.valid) return { error: _firstNdjsonError(result) };
5312
+ return result.lines.map((l) => JSON.stringify(JSON.parse(l.raw), null, indent)).join("\n");
5313
+ }
5314
+ function ndjsonToJsonArray(input) {
5315
+ const result = validateNdjson(input);
5316
+ if (!result.valid) return { error: _firstNdjsonError(result) };
5317
+ const values = result.lines.map((l) => JSON.parse(l.raw));
5318
+ return JSON.stringify(values, null, 2);
5319
+ }
5320
+ function jsonArrayToNdjson(input) {
5321
+ let parsed;
5322
+ try {
5323
+ parsed = JSON.parse(input);
5324
+ } catch (e) {
5325
+ return { error: `Invalid JSON: ${e instanceof Error ? e.message : String(e)}` };
5326
+ }
5327
+ if (!Array.isArray(parsed)) return { error: "Input must be a JSON array" };
5328
+ return parsed.map((item) => JSON.stringify(item)).join("\n");
5329
+ }
5267
5330
 
5268
5331
  // src/tools/generators.ts
5269
5332
  var generators_exports = {};
@@ -6544,16 +6607,16 @@ function formatValue(value, unit, decimals = 4) {
6544
6607
  return `${value.toFixed(decimals)}${unit}`;
6545
6608
  }
6546
6609
  var COMMON_SIZES = [
6547
- { px: 8, label: "8px \u2014 Extra small spacing / icon size" },
6548
- { px: 12, label: "12px \u2014 Small text / caption" },
6549
- { px: 14, label: "14px \u2014 Body small / secondary text" },
6550
- { px: 16, label: "16px \u2014 Base font size / body text" },
6551
- { px: 18, label: "18px \u2014 Body large / lead text" },
6552
- { px: 20, label: "20px \u2014 Subheading / large body" },
6553
- { px: 24, label: "24px \u2014 H4 / section title" },
6554
- { px: 32, label: "32px \u2014 H3 / card heading" },
6555
- { px: 48, label: "48px \u2014 H2 / page section heading" },
6556
- { px: 64, label: "64px \u2014 H1 / hero heading" }
6610
+ { px: 8, label: "8px: Extra small spacing / icon size" },
6611
+ { px: 12, label: "12px: Small text / caption" },
6612
+ { px: 14, label: "14px: Body small / secondary text" },
6613
+ { px: 16, label: "16px: Base font size / body text" },
6614
+ { px: 18, label: "18px: Body large / lead text" },
6615
+ { px: 20, label: "20px: Subheading / large body" },
6616
+ { px: 24, label: "24px: H4 / section title" },
6617
+ { px: 32, label: "32px: H3 / card heading" },
6618
+ { px: 48, label: "48px: H2 / page section heading" },
6619
+ { px: 64, label: "64px: H1 / hero heading" }
6557
6620
  ];
6558
6621
  function pxToViewport(px, viewportWidth = 1440, viewportHeight = 900) {
6559
6622
  const vw = parseFloat((px / viewportWidth * 100).toFixed(4));
@@ -7380,6 +7443,7 @@ __export(network_exports, {
7380
7443
  isValidIpv6: () => isValidIpv6,
7381
7444
  parseDnsResponse: () => parseDnsResponse,
7382
7445
  parseGeoResponse: () => parseGeoResponse,
7446
+ parseHar: () => parseHar,
7383
7447
  searchHeaders: () => searchHeaders,
7384
7448
  searchStatusCodes: () => searchStatusCodes,
7385
7449
  statusCodeToText: () => statusCodeToText,
@@ -8736,6 +8800,64 @@ function validateHeaderValue(name, value) {
8736
8800
  }
8737
8801
  return { valid: true };
8738
8802
  }
8803
+ function parseHar(input) {
8804
+ if (!input || !input.trim()) {
8805
+ return { error: "Input is empty" };
8806
+ }
8807
+ let data;
8808
+ try {
8809
+ data = JSON.parse(input);
8810
+ } catch (e) {
8811
+ return { error: `Invalid JSON: ${e instanceof Error ? e.message : String(e)}` };
8812
+ }
8813
+ if (typeof data !== "object" || data === null || !("log" in data)) {
8814
+ return { error: 'Not a valid HAR file: missing "log" property' };
8815
+ }
8816
+ const log = data.log;
8817
+ if (typeof log !== "object" || log === null || !Array.isArray(log.entries)) {
8818
+ return { error: 'Not a valid HAR file: "log.entries" must be an array' };
8819
+ }
8820
+ const logObj = log;
8821
+ const entries = [];
8822
+ const methods = {};
8823
+ const statusCodes = {};
8824
+ let totalSize = 0;
8825
+ let totalTime = 0;
8826
+ let failedRequests = 0;
8827
+ for (const raw of logObj.entries) {
8828
+ if (typeof raw !== "object" || raw === null) continue;
8829
+ const e = raw;
8830
+ const request = e.request ?? {};
8831
+ const response = e.response ?? {};
8832
+ const content = response.content ?? {};
8833
+ const method = typeof request.method === "string" ? request.method : "GET";
8834
+ const url = typeof request.url === "string" ? request.url : "";
8835
+ const status = typeof response.status === "number" ? response.status : 0;
8836
+ const statusText = typeof response.statusText === "string" ? response.statusText : "";
8837
+ const httpVersion = typeof response.httpVersion === "string" ? response.httpVersion : "";
8838
+ const mimeType = typeof content.mimeType === "string" ? content.mimeType : "";
8839
+ const size = typeof content.size === "number" && content.size > 0 ? content.size : 0;
8840
+ const time = typeof e.time === "number" ? e.time : 0;
8841
+ const startedDateTime = typeof e.startedDateTime === "string" ? e.startedDateTime : "";
8842
+ entries.push({ method, url, status, statusText, httpVersion, mimeType, size, time, startedDateTime });
8843
+ methods[method] = (methods[method] ?? 0) + 1;
8844
+ if (status > 0) statusCodes[String(status)] = (statusCodes[String(status)] ?? 0) + 1;
8845
+ totalSize += size;
8846
+ totalTime += time;
8847
+ if (status === 0 || status >= 400) failedRequests++;
8848
+ }
8849
+ const totalRequests = entries.length;
8850
+ const avgTime = totalRequests > 0 ? Math.round(totalTime / totalRequests * 100) / 100 : 0;
8851
+ return {
8852
+ version: typeof logObj.version === "string" ? logObj.version : "",
8853
+ creator: {
8854
+ name: typeof logObj.creator?.name === "string" ? logObj.creator.name : "",
8855
+ version: typeof logObj.creator?.version === "string" ? logObj.creator.version : ""
8856
+ },
8857
+ entries,
8858
+ summary: { totalRequests, totalSize, totalTime, avgTime, failedRequests, methods, statusCodes }
8859
+ };
8860
+ }
8739
8861
 
8740
8862
  // src/tools/api.ts
8741
8863
  var api_exports = {};
@@ -9187,13 +9309,13 @@ function decodeJwt(token) {
9187
9309
  try {
9188
9310
  header = decodeSegment(rawHeader);
9189
9311
  } catch {
9190
- return { ok: false, error: "Failed to decode header \u2014 not valid base64url JSON" };
9312
+ return { ok: false, error: "Failed to decode header: not valid base64url JSON" };
9191
9313
  }
9192
9314
  let payload;
9193
9315
  try {
9194
9316
  payload = decodeSegment(rawPayload);
9195
9317
  } catch {
9196
- return { ok: false, error: "Failed to decode payload \u2014 not valid base64url JSON" };
9318
+ return { ok: false, error: "Failed to decode payload: not valid base64url JSON" };
9197
9319
  }
9198
9320
  const algorithm = typeof header.alg === "string" ? header.alg : "unknown";
9199
9321
  const now = Math.floor(Date.now() / 1e3);
@@ -10085,24 +10207,24 @@ var CHEATSHEET = [
10085
10207
  { pattern: "{n}", description: "Matches exactly n repetitions", example: "\\d{3} matches exactly 3 digits", category: "Quantifiers" },
10086
10208
  { pattern: "{n,}", description: "Matches n or more repetitions", example: "\\d{2,} matches 2 or more digits", category: "Quantifiers" },
10087
10209
  { pattern: "{n,m}", description: "Matches between n and m repetitions", example: "\\d{2,4} matches 2 to 4 digits", category: "Quantifiers" },
10088
- { pattern: "*?", description: "Lazy match \u2014 matches as few characters as possible", example: "<.*?> matches the shortest possible HTML tag", category: "Quantifiers" },
10210
+ { pattern: "*?", description: "Lazy match: matches as few characters as possible", example: "<.*?> matches the shortest possible HTML tag", category: "Quantifiers" },
10089
10211
  { pattern: "+?", description: "Lazy version of +", example: "a+? matches as few 'a's as possible", category: "Quantifiers" },
10090
- { pattern: "(abc)", description: "Capturing group \u2014 captures the matched substring", example: "(\\d+) captures digit sequences", category: "Groups" },
10091
- { pattern: "(?:abc)", description: "Non-capturing group \u2014 groups without capturing", example: "(?:foo|bar)baz matches 'foobaz' or 'barbaz'", category: "Groups" },
10212
+ { pattern: "(abc)", description: "Capturing group: captures the matched substring", example: "(\\d+) captures digit sequences", category: "Groups" },
10213
+ { pattern: "(?:abc)", description: "Non-capturing group: groups without capturing", example: "(?:foo|bar)baz matches 'foobaz' or 'barbaz'", category: "Groups" },
10092
10214
  { pattern: "(?<name>abc)", description: "Named capturing group", example: "(?<year>\\d{4}) captures year by name", category: "Groups" },
10093
- { pattern: "a|b", description: "Alternation \u2014 matches either a or b", example: "cat|dog matches 'cat' or 'dog'", category: "Groups" },
10215
+ { pattern: "a|b", description: "Alternation: matches either a or b", example: "cat|dog matches 'cat' or 'dog'", category: "Groups" },
10094
10216
  { pattern: "\\1", description: "Backreference to the first capturing group", example: "(\\w+) \\1 matches repeated words like 'the the'", category: "Groups" },
10095
10217
  { pattern: "\\k<name>", description: "Backreference to a named capturing group", example: "(?<word>\\w+) \\k<word> matches repeated named group", category: "Groups" },
10096
- { pattern: "(?=abc)", description: "Positive lookahead \u2014 asserts what follows matches", example: "\\d+(?= dollars) matches digits followed by ' dollars'", category: "Lookahead/Lookbehind" },
10097
- { pattern: "(?!abc)", description: "Negative lookahead \u2014 asserts what follows does not match", example: "\\d+(?! dollars) matches digits not followed by ' dollars'", category: "Lookahead/Lookbehind" },
10098
- { pattern: "(?<=abc)", description: "Positive lookbehind \u2014 asserts what precedes matches", example: "(?<=\\$)\\d+ matches digits preceded by '$'", category: "Lookahead/Lookbehind" },
10099
- { pattern: "(?<!abc)", description: "Negative lookbehind \u2014 asserts what precedes does not match", example: "(?<!\\$)\\d+ matches digits not preceded by '$'", category: "Lookahead/Lookbehind" },
10100
- { pattern: "g", description: "Global flag \u2014 finds all matches rather than stopping at the first", example: "/\\d+/g finds all numbers in a string", category: "Flags" },
10101
- { pattern: "i", description: "Case-insensitive flag \u2014 ignores letter case", example: "/hello/i matches 'Hello', 'HELLO', 'hello'", category: "Flags" },
10102
- { pattern: "m", description: "Multiline flag \u2014 ^ and $ match start/end of each line", example: "/^\\w+/m matches the first word of each line", category: "Flags" },
10103
- { pattern: "s", description: "Dotall flag \u2014 makes . match newline characters too", example: "/a.b/s matches 'a\\nb'", category: "Flags" },
10104
- { pattern: "u", description: "Unicode flag \u2014 enables full Unicode matching", example: "/\\u{1F600}/u matches a Unicode emoji", category: "Flags" },
10105
- { pattern: "y", description: "Sticky flag \u2014 matches only from the lastIndex position", example: "/\\d+/y matches digits starting at the current position", category: "Flags" },
10218
+ { pattern: "(?=abc)", description: "Positive lookahead: asserts what follows matches", example: "\\d+(?= dollars) matches digits followed by ' dollars'", category: "Lookahead/Lookbehind" },
10219
+ { pattern: "(?!abc)", description: "Negative lookahead: asserts what follows does not match", example: "\\d+(?! dollars) matches digits not followed by ' dollars'", category: "Lookahead/Lookbehind" },
10220
+ { pattern: "(?<=abc)", description: "Positive lookbehind: asserts what precedes matches", example: "(?<=\\$)\\d+ matches digits preceded by '$'", category: "Lookahead/Lookbehind" },
10221
+ { pattern: "(?<!abc)", description: "Negative lookbehind: asserts what precedes does not match", example: "(?<!\\$)\\d+ matches digits not preceded by '$'", category: "Lookahead/Lookbehind" },
10222
+ { pattern: "g", description: "Global flag: finds all matches rather than stopping at the first", example: "/\\d+/g finds all numbers in a string", category: "Flags" },
10223
+ { pattern: "i", description: "Case-insensitive flag: ignores letter case", example: "/hello/i matches 'Hello', 'HELLO', 'hello'", category: "Flags" },
10224
+ { pattern: "m", description: "Multiline flag: ^ and $ match start/end of each line", example: "/^\\w+/m matches the first word of each line", category: "Flags" },
10225
+ { pattern: "s", description: "Dotall flag: makes . match newline characters too", example: "/a.b/s matches 'a\\nb'", category: "Flags" },
10226
+ { pattern: "u", description: "Unicode flag: enables full Unicode matching", example: "/\\u{1F600}/u matches a Unicode emoji", category: "Flags" },
10227
+ { pattern: "y", description: "Sticky flag: matches only from the lastIndex position", example: "/\\d+/y matches digits starting at the current position", category: "Flags" },
10106
10228
  { pattern: "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}", description: "Matches a basic email address", example: "user@example.com", category: "Common Patterns" },
10107
10229
  { pattern: "https?://[\\w\\-]+(\\.[\\w\\-]+)+([\\w.,@?^=%&:/~+#\\-]*[\\w@?^=%&/~+#\\-])?", description: "Matches an HTTP or HTTPS URL", example: "https://www.example.com/path?query=value", category: "Common Patterns" },
10108
10230
  { pattern: "^(?:\\+1)?[-.\\s]?\\(?\\d{3}\\)?[-.\\s]?\\d{3}[-.\\s]?\\d{4}$", description: "Matches a North American phone number in various formats", example: "(555) 123-4567 or 555-123-4567", category: "Common Patterns" },
@@ -15165,7 +15287,7 @@ function getConversionWarnings(from, to) {
15165
15287
  warnings.push("Transparency will be lost if the WebP image has an alpha channel");
15166
15288
  }
15167
15289
  if (to === "image/jpeg") {
15168
- warnings.push("JPEG uses lossy compression \u2014 some quality may be reduced");
15290
+ warnings.push("JPEG uses lossy compression: some quality may be reduced");
15169
15291
  }
15170
15292
  return warnings;
15171
15293
  }
@@ -16887,7 +17009,7 @@ function readImageInfo(bytes) {
16887
17009
  if (bytes[0] === 255 && bytes[1] === 216) {
16888
17010
  return readJpeg(bytes);
16889
17011
  }
16890
- return { error: "Unrecognized image format \u2014 supported: PNG, JPEG, GIF, WebP, BMP" };
17012
+ return { error: "Unrecognized image format. Supported formats: PNG, JPEG, GIF, WebP, BMP" };
16891
17013
  }
16892
17014
 
16893
17015
  // src/index.ts
package/dist/index.d.cts CHANGED
@@ -2,11 +2,11 @@ export { j as json } from './json-BjSoIS1h.cjs';
2
2
  export { e as encoding } from './encoding-7gmq-vkV.cjs';
3
3
  export { h as hashing } from './hashing-CnetQFD_.cjs';
4
4
  export { t as text } from './text-CI7JAl7F.cjs';
5
- export { d as data } from './data-rMjWNiOJ.cjs';
5
+ export { d as data } from './data-CakDxAcT.cjs';
6
6
  export { g as generators } from './generators-BGtRGpJZ.cjs';
7
7
  export { t as time } from './time-DbT8fjaF.cjs';
8
8
  export { u as units } from './units-6lwDYBvX.cjs';
9
- export { n as network } from './network-CNtmrDeN.cjs';
9
+ export { n as network } from './network-DwyAjwJS.cjs';
10
10
  export { a as api } from './api-8aZtWhSj.cjs';
11
11
  export { c as code } from './code-BUqyaofO.cjs';
12
12
  export { c as color } from './color-tPwZCr9H.cjs';
package/dist/index.d.ts CHANGED
@@ -2,11 +2,11 @@ export { j as json } from './json-BjSoIS1h.js';
2
2
  export { e as encoding } from './encoding-7gmq-vkV.js';
3
3
  export { h as hashing } from './hashing-CnetQFD_.js';
4
4
  export { t as text } from './text-CI7JAl7F.js';
5
- export { d as data } from './data-rMjWNiOJ.js';
5
+ export { d as data } from './data-CakDxAcT.js';
6
6
  export { g as generators } from './generators-BGtRGpJZ.js';
7
7
  export { t as time } from './time-DbT8fjaF.js';
8
8
  export { u as units } from './units-6lwDYBvX.js';
9
- export { n as network } from './network-CNtmrDeN.js';
9
+ export { n as network } from './network-DwyAjwJS.js';
10
10
  export { a as api } from './api-8aZtWhSj.js';
11
11
  export { c as code } from './code-BUqyaofO.js';
12
12
  export { c as color } from './color-tPwZCr9H.js';
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- export { media_exports as media } from './chunk-T3JTY2M5.js';
2
- export { units_exports as units } from './chunk-XST6X3HT.js';
3
- export { network_exports as network } from './chunk-3BAHSW4C.js';
4
- export { api_exports as api } from './chunk-W4UBLYFU.js';
5
- export { code_exports as code } from './chunk-NSOARQCM.js';
1
+ export { media_exports as media } from './chunk-N7C52YGL.js';
2
+ export { units_exports as units } from './chunk-QJE743LY.js';
3
+ export { network_exports as network } from './chunk-V5JKVDBA.js';
4
+ export { api_exports as api } from './chunk-HFRTZE7T.js';
5
+ export { code_exports as code } from './chunk-V5S6OJ4A.js';
6
6
  export { color_exports as color } from './chunk-BPVAB4P2.js';
7
7
  export { css_exports as css } from './chunk-6YPV2AB5.js';
8
- export { misc_exports as misc } from './chunk-OKSWDVOM.js';
8
+ export { misc_exports as misc } from './chunk-GX7H6TAX.js';
9
9
  export { ai_agent_exports as ai_agent } from './chunk-M35VJETW.js';
10
10
  export { json_exports as json } from './chunk-TSAGO3XP.js';
11
- export { encoding_exports as encoding } from './chunk-ROTPLW7T.js';
11
+ export { encoding_exports as encoding } from './chunk-IPR7FSX4.js';
12
12
  export { hashing_exports as hashing } from './chunk-FL53T24A.js';
13
13
  export { text_exports as text } from './chunk-YBBYFAOV.js';
14
- export { data_exports as data } from './chunk-UC656APA.js';
14
+ export { data_exports as data } from './chunk-DNCOIO5N.js';
15
15
  export { generators_exports as generators } from './chunk-2CJSLYWI.js';
16
16
  export { time_exports as time } from './chunk-ZPQZEIXP.js';
17
17
  import './chunk-MLKGABMK.js';
@@ -7,6 +7,7 @@
7
7
  * - ip-geolocation: IP address geolocation via ip-api.com
8
8
  * - http-status : HTTP status code lookup and search
9
9
  * - http-headers : HTTP header reference lookup and validation
10
+ * - har-viewer : parseHar
10
11
  */
11
12
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
12
13
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -124,6 +125,38 @@ declare function validateHeaderValue(name: string, value: string): {
124
125
  valid: boolean;
125
126
  warning?: string;
126
127
  };
128
+ interface HarEntry {
129
+ method: string;
130
+ url: string;
131
+ status: number;
132
+ statusText: string;
133
+ httpVersion: string;
134
+ mimeType: string;
135
+ size: number;
136
+ time: number;
137
+ startedDateTime: string;
138
+ }
139
+ interface HarSummary {
140
+ totalRequests: number;
141
+ totalSize: number;
142
+ totalTime: number;
143
+ avgTime: number;
144
+ failedRequests: number;
145
+ methods: Record<string, number>;
146
+ statusCodes: Record<string, number>;
147
+ }
148
+ interface HarParseResult {
149
+ version: string;
150
+ creator: {
151
+ name: string;
152
+ version: string;
153
+ };
154
+ entries: HarEntry[];
155
+ summary: HarSummary;
156
+ }
157
+ declare function parseHar(input: string): HarParseResult | {
158
+ error: string;
159
+ };
127
160
 
128
161
  declare const network_DNS_RECORD_TYPES: typeof DNS_RECORD_TYPES;
129
162
  type network_DnsRecord = DnsRecord;
@@ -131,6 +164,9 @@ type network_DnsRecordType = DnsRecordType;
131
164
  type network_DnsResponse = DnsResponse;
132
165
  type network_GeoResult = GeoResult;
133
166
  declare const network_HTTP_HEADERS: typeof HTTP_HEADERS;
167
+ type network_HarEntry = HarEntry;
168
+ type network_HarParseResult = HarParseResult;
169
+ type network_HarSummary = HarSummary;
134
170
  type network_HeaderCategory = HeaderCategory;
135
171
  type network_HttpHeader = HttpHeader;
136
172
  type network_ParsedDnsResult = ParsedDnsResult;
@@ -156,6 +192,7 @@ declare const network_isValidIpv4: typeof isValidIpv4;
156
192
  declare const network_isValidIpv6: typeof isValidIpv6;
157
193
  declare const network_parseDnsResponse: typeof parseDnsResponse;
158
194
  declare const network_parseGeoResponse: typeof parseGeoResponse;
195
+ declare const network_parseHar: typeof parseHar;
159
196
  declare const network_searchHeaders: typeof searchHeaders;
160
197
  declare const network_searchStatusCodes: typeof searchStatusCodes;
161
198
  declare const network_statusCodeToText: typeof statusCodeToText;
@@ -164,7 +201,7 @@ declare const network_validateDomain: typeof validateDomain;
164
201
  declare const network_validateHeaderName: typeof validateHeaderName;
165
202
  declare const network_validateHeaderValue: typeof validateHeaderValue;
166
203
  declare namespace network {
167
- export { network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, network_STATUS_CODES as STATUS_CODES, type network_StatusCode as StatusCode, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildMapUrl as buildMapUrl, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue };
204
+ export { network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, network_STATUS_CODES as STATUS_CODES, type network_StatusCode as StatusCode, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildMapUrl as buildMapUrl, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue };
168
205
  }
169
206
 
170
- export { parseGeoResponse as A, searchHeaders as B, searchStatusCodes as C, DNS_RECORD_TYPES as D, statusCodeToText as E, typeNumberToLabel as F, type GeoResult as G, HTTP_HEADERS as H, validateDomain as I, validateHeaderName as J, validateHeaderValue as K, type ParsedDnsResult as P, STATUS_CODES as S, type DnsRecord as a, type DnsRecordType as b, type DnsResponse as c, type HeaderCategory as d, type HttpHeader as e, type ParsedGeoResult as f, type StatusCode as g, buildDnsQueryUrl as h, buildGeoUrl as i, buildMapUrl as j, countryCodeToFlag as k, formatCoordinates as l, formatTtl as m, network as n, getByCategory as o, getHeader as p, getHeadersByCategory as q, getStatusByCategory as r, getStatusCode as s, isClientError as t, isServerError as u, isSuccess as v, isValidIp as w, isValidIpv4 as x, isValidIpv6 as y, parseDnsResponse as z };
207
+ export { isValidIpv4 as A, isValidIpv6 as B, parseDnsResponse as C, DNS_RECORD_TYPES as D, parseGeoResponse as E, parseHar as F, type GeoResult as G, HTTP_HEADERS as H, searchHeaders as I, searchStatusCodes as J, statusCodeToText as K, typeNumberToLabel as L, validateDomain as M, validateHeaderName as N, validateHeaderValue as O, type ParsedDnsResult as P, STATUS_CODES as S, type DnsRecord as a, type DnsRecordType as b, type DnsResponse as c, type HarEntry as d, type HarParseResult as e, type HarSummary as f, type HeaderCategory as g, type HttpHeader as h, type ParsedGeoResult as i, type StatusCode as j, buildDnsQueryUrl as k, buildGeoUrl as l, buildMapUrl as m, network as n, countryCodeToFlag as o, formatCoordinates as p, formatTtl as q, getByCategory as r, getHeader as s, getHeadersByCategory as t, getStatusByCategory as u, getStatusCode as v, isClientError as w, isServerError as x, isSuccess as y, isValidIp as z };