@graphty/graph-io 0.3.26 → 0.3.28

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 (150) hide show
  1. package/dist/chunks/{choose-BbJI55dx.js → choose-DrXtu_96.js} +2 -2
  2. package/dist/chunks/{choose-BbJI55dx.js.map → choose-DrXtu_96.js.map} +1 -1
  3. package/dist/chunks/{constants-BCsFsMj4.js → constants-ikG85dT8.js} +2 -2
  4. package/dist/chunks/{constants-BCsFsMj4.js.map → constants-ikG85dT8.js.map} +1 -1
  5. package/dist/chunks/{escape-D0g6NNUy.js → escape-D1HPTUrP.js} +10 -9
  6. package/dist/chunks/escape-D1HPTUrP.js.map +1 -0
  7. package/dist/chunks/{export-BTI4yQgy.js → export-CHd4tQE2.js} +4 -4
  8. package/dist/chunks/export-CHd4tQE2.js.map +1 -0
  9. package/dist/chunks/{exporter-Dxh231ZF.js → exporter-Cl021ZIE.js} +72 -48
  10. package/dist/chunks/exporter-Cl021ZIE.js.map +1 -0
  11. package/dist/chunks/{exporter-Cra2GYcN.js → exporter-D23CKNqF.js} +5 -5
  12. package/dist/chunks/exporter-D23CKNqF.js.map +1 -0
  13. package/dist/chunks/{exporter-tne475KK.js → exporter-DfWTgrti.js} +5 -5
  14. package/dist/chunks/exporter-DfWTgrti.js.map +1 -0
  15. package/dist/chunks/{exporter-BMqk5oxW.js → exporter-DhtW6FxK.js} +3 -3
  16. package/dist/chunks/{exporter-BMqk5oxW.js.map → exporter-DhtW6FxK.js.map} +1 -1
  17. package/dist/chunks/{importer-Bcl1d4xH.js → importer-B2W_58pz.js} +5 -5
  18. package/dist/chunks/importer-B2W_58pz.js.map +1 -0
  19. package/dist/chunks/{importer-90YWhJoF.js → importer-BSALvkui.js} +9 -9
  20. package/dist/chunks/importer-BSALvkui.js.map +1 -0
  21. package/dist/chunks/{importer-DfVu6j59.js → importer-BVRE--Un.js} +4 -4
  22. package/dist/chunks/importer-BVRE--Un.js.map +1 -0
  23. package/dist/chunks/{importer-BfIsp1f9.js → importer-BZB7iP9r.js} +35 -9
  24. package/dist/chunks/importer-BZB7iP9r.js.map +1 -0
  25. package/dist/chunks/{importer-DCjOvO7U.js → importer-CIAzt-wo.js} +6 -6
  26. package/dist/chunks/importer-CIAzt-wo.js.map +1 -0
  27. package/dist/chunks/{importer-Dku_VAIY.js → importer-DpEW5zeG.js} +4 -4
  28. package/dist/chunks/{importer-Dku_VAIY.js.map → importer-DpEW5zeG.js.map} +1 -1
  29. package/dist/chunks/{importer-C_TEA1zJ.js → importer-z_FL4VMb.js} +9 -9
  30. package/dist/chunks/importer-z_FL4VMb.js.map +1 -0
  31. package/dist/chunks/{json-elements-3tnyt5uZ.js → json-elements-BAmNBZok.js} +4 -4
  32. package/dist/chunks/json-elements-BAmNBZok.js.map +1 -0
  33. package/dist/chunks/{ontology-export-B9Tcf37D.js → ontology-export-Bab4eUA8.js} +2 -2
  34. package/dist/chunks/{ontology-export-B9Tcf37D.js.map → ontology-export-Bab4eUA8.js.map} +1 -1
  35. package/dist/chunks/{records-CQXT__mY.js → records-CdlvL4RO.js} +2 -2
  36. package/dist/chunks/{records-CQXT__mY.js.map → records-CdlvL4RO.js.map} +1 -1
  37. package/dist/chunks/{text-DmcUs5_Q.js → text-DzXjAiTl.js} +2 -2
  38. package/dist/chunks/{text-DmcUs5_Q.js.map → text-DzXjAiTl.js.map} +1 -1
  39. package/dist/csv.js +16 -6
  40. package/dist/csv.js.map +1 -1
  41. package/dist/cx.js +1 -1
  42. package/dist/cx2.js +2 -2
  43. package/dist/cys.js +1 -1
  44. package/dist/dot.js +1 -1
  45. package/dist/gexf.js +2 -2
  46. package/dist/gml.js +20 -11
  47. package/dist/gml.js.map +1 -1
  48. package/dist/graph-io.js +26 -26
  49. package/dist/graph-io.js.map +1 -1
  50. package/dist/graphml.js +2 -2
  51. package/dist/json.js +1 -1
  52. package/dist/neo4j.js +4 -4
  53. package/dist/neo4j.js.map +1 -1
  54. package/dist/obo.js +1 -1
  55. package/dist/pajek.js +1 -1
  56. package/dist/src/common/declared-types.d.ts.map +1 -1
  57. package/dist/src/common/declared-types.js +2 -2
  58. package/dist/src/common/declared-types.js.map +1 -1
  59. package/dist/src/common/escape.d.ts.map +1 -1
  60. package/dist/src/common/escape.js +6 -5
  61. package/dist/src/common/escape.js.map +1 -1
  62. package/dist/src/common/input.js.map +1 -1
  63. package/dist/src/common/json-elements.js +1 -1
  64. package/dist/src/common/json-elements.js.map +1 -1
  65. package/dist/src/common/lists.js +1 -1
  66. package/dist/src/common/lists.js.map +1 -1
  67. package/dist/src/common/xml.js +2 -2
  68. package/dist/src/common/xml.js.map +1 -1
  69. package/dist/src/common/zip.js.map +1 -1
  70. package/dist/src/formats/csv/exporter.js +1 -1
  71. package/dist/src/formats/csv/exporter.js.map +1 -1
  72. package/dist/src/formats/csv/importer.d.ts.map +1 -1
  73. package/dist/src/formats/csv/importer.js +20 -2
  74. package/dist/src/formats/csv/importer.js.map +1 -1
  75. package/dist/src/formats/cx/importer.js +2 -2
  76. package/dist/src/formats/cx/importer.js.map +1 -1
  77. package/dist/src/formats/cx2/exporter.d.ts.map +1 -1
  78. package/dist/src/formats/cx2/exporter.js +84 -33
  79. package/dist/src/formats/cx2/exporter.js.map +1 -1
  80. package/dist/src/formats/cx2/importer.js +1 -1
  81. package/dist/src/formats/cx2/importer.js.map +1 -1
  82. package/dist/src/formats/cys/session.js +3 -3
  83. package/dist/src/formats/cys/session.js.map +1 -1
  84. package/dist/src/formats/dot/exporter.js +30 -4
  85. package/dist/src/formats/dot/exporter.js.map +1 -1
  86. package/dist/src/formats/dot/importer.js.map +1 -1
  87. package/dist/src/formats/gml/exporter.d.ts.map +1 -1
  88. package/dist/src/formats/gml/exporter.js +23 -6
  89. package/dist/src/formats/gml/exporter.js.map +1 -1
  90. package/dist/src/formats/gml/syntax.js +2 -2
  91. package/dist/src/formats/gml/syntax.js.map +1 -1
  92. package/dist/src/formats/json/dialect.js.map +1 -1
  93. package/dist/src/formats/neo4j/exporter.js +1 -1
  94. package/dist/src/formats/neo4j/exporter.js.map +1 -1
  95. package/dist/src/formats/pajek/exporter.js +1 -1
  96. package/dist/src/formats/pajek/exporter.js.map +1 -1
  97. package/dist/src/formats/pajek/importer.js.map +1 -1
  98. package/dist/src/formats/pajek/syntax.js +3 -3
  99. package/dist/src/formats/pajek/syntax.js.map +1 -1
  100. package/dist/src/formats/xgmml/exporter.js +1 -1
  101. package/dist/src/formats/xgmml/exporter.js.map +1 -1
  102. package/dist/src/formats/xgmml/values.js +1 -1
  103. package/dist/src/formats/xgmml/values.js.map +1 -1
  104. package/dist/src/registry.d.ts.map +1 -1
  105. package/dist/src/registry.js.map +1 -1
  106. package/dist/src/sniff.d.ts.map +1 -1
  107. package/dist/src/sniff.js.map +1 -1
  108. package/dist/src/types.d.ts.map +1 -1
  109. package/dist/src/types.js.map +1 -1
  110. package/dist/xgmml.js +2 -2
  111. package/package.json +2 -2
  112. package/src/common/declared-types.ts +3 -12
  113. package/src/common/escape.ts +6 -5
  114. package/src/common/input.ts +2 -2
  115. package/src/common/json-elements.ts +1 -1
  116. package/src/common/lists.ts +1 -1
  117. package/src/common/xml.ts +2 -2
  118. package/src/common/zip.ts +1 -1
  119. package/src/formats/csv/exporter.ts +1 -1
  120. package/src/formats/csv/importer.ts +21 -2
  121. package/src/formats/cx/importer.ts +2 -2
  122. package/src/formats/cx2/exporter.ts +124 -50
  123. package/src/formats/cx2/importer.ts +1 -1
  124. package/src/formats/cys/session.ts +3 -3
  125. package/src/formats/dot/exporter.ts +37 -4
  126. package/src/formats/dot/importer.ts +1 -1
  127. package/src/formats/gml/exporter.ts +24 -6
  128. package/src/formats/gml/syntax.ts +2 -2
  129. package/src/formats/json/dialect.ts +1 -1
  130. package/src/formats/neo4j/exporter.ts +2 -2
  131. package/src/formats/pajek/exporter.ts +1 -1
  132. package/src/formats/pajek/importer.ts +1 -1
  133. package/src/formats/pajek/syntax.ts +3 -3
  134. package/src/formats/xgmml/exporter.ts +1 -1
  135. package/src/formats/xgmml/values.ts +1 -1
  136. package/src/registry.ts +9 -10
  137. package/src/sniff.ts +2 -21
  138. package/src/types.ts +1 -7
  139. package/dist/chunks/escape-D0g6NNUy.js.map +0 -1
  140. package/dist/chunks/export-BTI4yQgy.js.map +0 -1
  141. package/dist/chunks/exporter-Cra2GYcN.js.map +0 -1
  142. package/dist/chunks/exporter-Dxh231ZF.js.map +0 -1
  143. package/dist/chunks/exporter-tne475KK.js.map +0 -1
  144. package/dist/chunks/importer-90YWhJoF.js.map +0 -1
  145. package/dist/chunks/importer-Bcl1d4xH.js.map +0 -1
  146. package/dist/chunks/importer-BfIsp1f9.js.map +0 -1
  147. package/dist/chunks/importer-C_TEA1zJ.js.map +0 -1
  148. package/dist/chunks/importer-DCjOvO7U.js.map +0 -1
  149. package/dist/chunks/importer-DfVu6j59.js.map +0 -1
  150. package/dist/chunks/json-elements-3tnyt5uZ.js.map +0 -1
package/dist/graph-io.js CHANGED
@@ -1,42 +1,42 @@
1
1
  import { INVALID_INDEX, GraphFormatError, GraphBuilder } from "@graphty/graph-format";
2
2
  import { GraphBuilder as GraphBuilder2, GraphFormatError as GraphFormatError2, INVALID_INDEX as INVALID_INDEX2 } from "@graphty/graph-format";
3
- import { al as resolveImportOptions, a8 as ImportReportBuilder, ao as reportSinkOptions, an as reportUnusedOptions, ar as IdCoercer, aq as DirectionResolver, az as LineReader, am as throwIfAborted, aL as parseWeightText, aM as isAbortError, aN as BAD_LINE_CODE, aO as messageOf, aP as describe, b as plural, aQ as UNKNOWN_OPTION_CODE, a7 as chooseGraph, aR as normalizeInput, aS as foreignKind, E as EMPTY_INPUT_CODE, aT as ImportError, aU as FETCH_CODE, $ as agree, aV as EDGES_MERGED_CODE, aW as SELF_LOOPS_DROPPED_CODE, O as OPTION_IGNORED_CODE, aX as WEIGHT_NOT_FOUND_CODE, aY as lockReader, aZ as abortable } from "./chunks/export-BTI4yQgy.js";
4
- import { ae, Y, V, B, a_, a3, at, a$, C, b0, A, b1, k, j, i, b2, b3, b4, D, d, o, b5, m, u, n, F, b6, v, x, b7, b8, aB, af, H, I, b9, J, G, ba, y, z, bb, a2, L, s, t, M, l, W, T, bc, bd, aA, be, bf, N, bg, bh, Q, ai, bi, P, aD, ay, au, K, R, bj, ag, S, Z, _, bk, f, ah, ak, bl, bm, bn, ad, aC, U, g, w, q, bo, h, bp, bq, aj, ax, X, aH, c, a, br, aI, bs, a1, bt, bu, e, bv, aF, aa, ab, bw, aG, ap, bx, by, bz, bA, aK, bB, p, bC, bD, r, aE, a4 } from "./chunks/export-BTI4yQgy.js";
5
- import { T as TextCellWriter } from "./chunks/text-DmcUs5_Q.js";
6
- import { W as W2, i as i2, a as a5, p as p2 } from "./chunks/text-DmcUs5_Q.js";
3
+ import { al as resolveImportOptions, a8 as ImportReportBuilder, ao as reportSinkOptions, an as reportUnusedOptions, ar as IdCoercer, aq as DirectionResolver, az as LineReader, am as throwIfAborted, aL as parseWeightText, aM as isAbortError, aN as BAD_LINE_CODE, aO as messageOf, aP as describe, b as plural, aQ as UNKNOWN_OPTION_CODE, a7 as chooseGraph, aR as normalizeInput, aS as foreignKind, E as EMPTY_INPUT_CODE, aT as ImportError, aU as FETCH_CODE, $ as agree, aV as EDGES_MERGED_CODE, aW as SELF_LOOPS_DROPPED_CODE, O as OPTION_IGNORED_CODE, aX as WEIGHT_NOT_FOUND_CODE, aY as lockReader, aZ as abortable } from "./chunks/export-CHd4tQE2.js";
4
+ import { ae, Y, V, B, a_, a3, at, a$, C, b0, A, b1, k, j, i, b2, b3, b4, D, d, o, b5, m, u, n, F, b6, v, x, b7, b8, aB, af, H, I, b9, J, G, ba, y, z, bb, a2, L, s, t, M, l, W, T, bc, bd, aA, be, bf, N, bg, bh, Q, ai, bi, P, aD, ay, au, K, R, bj, ag, S, Z, _, bk, f, ah, ak, bl, bm, bn, ad, aC, U, g, w, q, bo, h, bp, bq, aj, ax, X, aH, c, a, br, aI, bs, a1, bt, bu, e, bv, aF, aa, ab, bw, aG, ap, bx, by, bz, bA, aK, bB, p, bC, bD, r, aE, a4 } from "./chunks/export-CHd4tQE2.js";
5
+ import { T as TextCellWriter } from "./chunks/text-DzXjAiTl.js";
6
+ import { W as W2, i as i2, a as a5, p as p2 } from "./chunks/text-DzXjAiTl.js";
7
7
  import { C as C2, c as c2, a as a6 } from "./chunks/children-CL3Cy0ez.js";
8
8
  import { c as collectBytes } from "./chunks/writer-DxjgHwSe.js";
9
9
  import { D as D2, d as d2, e as e2, j as j2, t as t2 } from "./chunks/writer-DxjgHwSe.js";
10
10
  import { csvImporter, csvExporter } from "./csv.js";
11
11
  import { CSV_CAPABILITIES, CSV_ISSUE, CSV_LOSS } from "./csv.js";
12
- import { d as cxImporter, c as cxExporter } from "./chunks/importer-DCjOvO7U.js";
13
- import { C as C3, a as a7, b } from "./chunks/importer-DCjOvO7U.js";
14
- import { c as cx2Exporter } from "./chunks/exporter-Dxh231ZF.js";
15
- import { C as C4, a as a8 } from "./chunks/exporter-Dxh231ZF.js";
16
- import { c as cx2Importer } from "./chunks/importer-DfVu6j59.js";
17
- import { C as C5 } from "./chunks/importer-DfVu6j59.js";
18
- import { d as cysImporter, c as cysExporter } from "./chunks/importer-90YWhJoF.js";
19
- import { C as C6, a as a9, b as b10 } from "./chunks/importer-90YWhJoF.js";
20
- import { b as dotImporter, d as dotExporter } from "./chunks/importer-BfIsp1f9.js";
21
- import { D as D3, a as a10 } from "./chunks/importer-BfIsp1f9.js";
12
+ import { d as cxImporter, c as cxExporter } from "./chunks/importer-CIAzt-wo.js";
13
+ import { C as C3, a as a7, b } from "./chunks/importer-CIAzt-wo.js";
14
+ import { c as cx2Exporter } from "./chunks/exporter-Cl021ZIE.js";
15
+ import { C as C4, a as a8 } from "./chunks/exporter-Cl021ZIE.js";
16
+ import { c as cx2Importer } from "./chunks/importer-BVRE--Un.js";
17
+ import { C as C5 } from "./chunks/importer-BVRE--Un.js";
18
+ import { d as cysImporter, c as cysExporter } from "./chunks/importer-BSALvkui.js";
19
+ import { C as C6, a as a9, b as b10 } from "./chunks/importer-BSALvkui.js";
20
+ import { b as dotImporter, d as dotExporter } from "./chunks/importer-BZB7iP9r.js";
21
+ import { D as D3, a as a10 } from "./chunks/importer-BZB7iP9r.js";
22
22
  import { gexfImporter, gexfExporter } from "./gexf.js";
23
23
  import { GEXF_1_2_CAPABILITIES, GEXF_ISSUE, GEXF_LOSS } from "./gexf.js";
24
24
  import { gmlImporter, gmlExporter } from "./gml.js";
25
25
  import { GML_ISSUE, GML_LOSS } from "./gml.js";
26
- import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-Dku_VAIY.js";
27
- import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-Cra2GYcN.js";
28
- import { G as G2, J as J2, a as a11, b as b11, d as d3, g as g2, h as h2, j as j3, f as f2, n as n2, s as s2, i as i3 } from "./chunks/exporter-Cra2GYcN.js";
26
+ import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-DpEW5zeG.js";
27
+ import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-D23CKNqF.js";
28
+ import { G as G2, J as J2, a as a11, b as b11, d as d3, g as g2, h as h2, j as j3, f as f2, n as n2, s as s2, i as i3 } from "./chunks/exporter-D23CKNqF.js";
29
29
  import { neo4jImporter, neo4jExporter } from "./neo4j.js";
30
30
  import { ID_SPACE_COLUMN, LABELS_COLUMN, NEO4J_CAPABILITIES, NEO4J_ISSUE, NEO4J_LOSS, ORIGINAL_ID_COLUMN, TYPE_COLUMN, exportNeo4jFiles } from "./neo4j.js";
31
- import { c as oboImporter, o as oboExporter } from "./chunks/exporter-BMqk5oxW.js";
32
- import { O, a as a12, b as b12 } from "./chunks/exporter-BMqk5oxW.js";
33
- import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-C_TEA1zJ.js";
34
- import { P as P2, a as a13 } from "./chunks/importer-C_TEA1zJ.js";
35
- import { x as xgmmlExporter } from "./chunks/exporter-tne475KK.js";
36
- import { x as xgmmlImporter } from "./chunks/importer-Bcl1d4xH.js";
37
- import { X as X2, a as a14 } from "./chunks/importer-Bcl1d4xH.js";
38
- import { G as G3, a as a15 } from "./chunks/constants-BCsFsMj4.js";
39
- import { X as X3, b as b13, h as h3, t as t3, x as x2 } from "./chunks/escape-D0g6NNUy.js";
31
+ import { c as oboImporter, o as oboExporter } from "./chunks/exporter-DhtW6FxK.js";
32
+ import { O, a as a12, b as b12 } from "./chunks/exporter-DhtW6FxK.js";
33
+ import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-z_FL4VMb.js";
34
+ import { P as P2, a as a13 } from "./chunks/importer-z_FL4VMb.js";
35
+ import { x as xgmmlExporter } from "./chunks/exporter-DfWTgrti.js";
36
+ import { x as xgmmlImporter } from "./chunks/importer-B2W_58pz.js";
37
+ import { X as X2, a as a14 } from "./chunks/importer-B2W_58pz.js";
38
+ import { G as G3, a as a15 } from "./chunks/constants-ikG85dT8.js";
39
+ import { X as X3, b as b13, h as h3, t as t3, x as x2 } from "./chunks/escape-D1HPTUrP.js";
40
40
  const USED = /* @__PURE__ */ new Set(["ids", "defaultDirected", "weightFrom", "addMissingNodes"]);
41
41
  function defineLineFormat(definition) {
42
42
  const { format, extensions, mimeTypes = [], directed = false, comment = "#", sniff: sniff2, parseLine } = definition;