@graphty/graph-io 0.3.27 → 0.3.29

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 (109) hide show
  1. package/dist/chunks/{choose-DrXtu_96.js → choose-DT5da6OC.js} +2 -2
  2. package/dist/chunks/{choose-DrXtu_96.js.map → choose-DT5da6OC.js.map} +1 -1
  3. package/dist/chunks/{constants-ikG85dT8.js → constants-DowRD9ai.js} +2 -2
  4. package/dist/chunks/{constants-ikG85dT8.js.map → constants-DowRD9ai.js.map} +1 -1
  5. package/dist/chunks/{escape-D1HPTUrP.js → escape-DQC5HWqF.js} +2 -2
  6. package/dist/chunks/{escape-D1HPTUrP.js.map → escape-DQC5HWqF.js.map} +1 -1
  7. package/dist/chunks/{export-CHd4tQE2.js → export-CVi12U7J.js} +81 -60
  8. package/dist/chunks/export-CVi12U7J.js.map +1 -0
  9. package/dist/chunks/{exporter-D23CKNqF.js → exporter-C3Pa2PSd.js} +5 -5
  10. package/dist/chunks/exporter-C3Pa2PSd.js.map +1 -0
  11. package/dist/chunks/{exporter-DfWTgrti.js → exporter-CgsO2nSl.js} +4 -4
  12. package/dist/chunks/{exporter-DfWTgrti.js.map → exporter-CgsO2nSl.js.map} +1 -1
  13. package/dist/chunks/{exporter-IHv4nkCm.js → exporter-Cy_1da4c.js} +72 -48
  14. package/dist/chunks/exporter-Cy_1da4c.js.map +1 -0
  15. package/dist/chunks/{exporter-DhtW6FxK.js → exporter-JubAlNWi.js} +34 -34
  16. package/dist/chunks/exporter-JubAlNWi.js.map +1 -0
  17. package/dist/chunks/{importer-CIAzt-wo.js → importer-BA_hZKo7.js} +4 -4
  18. package/dist/chunks/{importer-CIAzt-wo.js.map → importer-BA_hZKo7.js.map} +1 -1
  19. package/dist/chunks/{importer-B1wmPQjr.js → importer-CDXlxXlS.js} +35 -9
  20. package/dist/chunks/importer-CDXlxXlS.js.map +1 -0
  21. package/dist/chunks/{importer-BVRE--Un.js → importer-DLz2Vb4q.js} +3 -3
  22. package/dist/chunks/{importer-BVRE--Un.js.map → importer-DLz2Vb4q.js.map} +1 -1
  23. package/dist/chunks/{importer-B2W_58pz.js → importer-DVxzzibh.js} +4 -4
  24. package/dist/chunks/{importer-B2W_58pz.js.map → importer-DVxzzibh.js.map} +1 -1
  25. package/dist/chunks/{importer-BSALvkui.js → importer-Dej72hIF.js} +6 -6
  26. package/dist/chunks/importer-Dej72hIF.js.map +1 -0
  27. package/dist/chunks/{importer-z_FL4VMb.js → importer-lLH9gQF_.js} +5 -5
  28. package/dist/chunks/{importer-z_FL4VMb.js.map → importer-lLH9gQF_.js.map} +1 -1
  29. package/dist/chunks/{importer-DpEW5zeG.js → importer-q-R-Q98w.js} +4 -4
  30. package/dist/chunks/{importer-DpEW5zeG.js.map → importer-q-R-Q98w.js.map} +1 -1
  31. package/dist/chunks/{json-elements-BAmNBZok.js → json-elements-1IUzkRNy.js} +3 -3
  32. package/dist/chunks/{json-elements-BAmNBZok.js.map → json-elements-1IUzkRNy.js.map} +1 -1
  33. package/dist/chunks/{ontology-export-Bab4eUA8.js → ontology-export-b0GLNIj-.js} +2 -2
  34. package/dist/chunks/{ontology-export-Bab4eUA8.js.map → ontology-export-b0GLNIj-.js.map} +1 -1
  35. package/dist/chunks/{records-CdlvL4RO.js → records-CdyqwXeY.js} +2 -2
  36. package/dist/chunks/{records-CdlvL4RO.js.map → records-CdyqwXeY.js.map} +1 -1
  37. package/dist/chunks/{text-DzXjAiTl.js → text-CDgjbkLC.js} +2 -2
  38. package/dist/chunks/{text-DzXjAiTl.js.map → text-CDgjbkLC.js.map} +1 -1
  39. package/dist/csv.js +33 -16
  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 +18 -9
  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 +3 -3
  53. package/dist/obo.js +1 -1
  54. package/dist/pajek.js +1 -1
  55. package/dist/src/common/declared-types.d.ts.map +1 -1
  56. package/dist/src/common/declared-types.js.map +1 -1
  57. package/dist/src/common/export.d.ts +6 -0
  58. package/dist/src/common/export.d.ts.map +1 -1
  59. package/dist/src/common/export.js +62 -28
  60. package/dist/src/common/export.js.map +1 -1
  61. package/dist/src/common/zip.js.map +1 -1
  62. package/dist/src/formats/csv/exporter.d.ts.map +1 -1
  63. package/dist/src/formats/csv/exporter.js +18 -7
  64. package/dist/src/formats/csv/exporter.js.map +1 -1
  65. package/dist/src/formats/csv/importer.d.ts.map +1 -1
  66. package/dist/src/formats/csv/importer.js +20 -2
  67. package/dist/src/formats/csv/importer.js.map +1 -1
  68. package/dist/src/formats/cx2/exporter.d.ts.map +1 -1
  69. package/dist/src/formats/cx2/exporter.js +84 -33
  70. package/dist/src/formats/cx2/exporter.js.map +1 -1
  71. package/dist/src/formats/dot/exporter.js +30 -4
  72. package/dist/src/formats/dot/exporter.js.map +1 -1
  73. package/dist/src/formats/dot/importer.js.map +1 -1
  74. package/dist/src/formats/gml/exporter.d.ts.map +1 -1
  75. package/dist/src/formats/gml/exporter.js +23 -6
  76. package/dist/src/formats/gml/exporter.js.map +1 -1
  77. package/dist/src/formats/obo/syntax.d.ts +4 -0
  78. package/dist/src/formats/obo/syntax.d.ts.map +1 -1
  79. package/dist/src/formats/obo/syntax.js +35 -31
  80. package/dist/src/formats/obo/syntax.js.map +1 -1
  81. package/dist/src/formats/pajek/importer.js.map +1 -1
  82. package/dist/src/registry.d.ts.map +1 -1
  83. package/dist/src/registry.js.map +1 -1
  84. package/dist/src/sniff.d.ts.map +1 -1
  85. package/dist/src/sniff.js.map +1 -1
  86. package/dist/src/types.d.ts +6 -0
  87. package/dist/src/types.d.ts.map +1 -1
  88. package/dist/xgmml.js +2 -2
  89. package/package.json +2 -2
  90. package/src/common/declared-types.ts +1 -10
  91. package/src/common/export.ts +105 -62
  92. package/src/common/zip.ts +1 -1
  93. package/src/formats/csv/exporter.ts +19 -15
  94. package/src/formats/csv/importer.ts +21 -2
  95. package/src/formats/cx2/exporter.ts +123 -49
  96. package/src/formats/dot/exporter.ts +37 -4
  97. package/src/formats/dot/importer.ts +1 -1
  98. package/src/formats/gml/exporter.ts +24 -6
  99. package/src/formats/obo/syntax.ts +35 -31
  100. package/src/formats/pajek/importer.ts +1 -1
  101. package/src/registry.ts +9 -10
  102. package/src/sniff.ts +2 -21
  103. package/src/types.ts +7 -7
  104. package/dist/chunks/export-CHd4tQE2.js.map +0 -1
  105. package/dist/chunks/exporter-D23CKNqF.js.map +0 -1
  106. package/dist/chunks/exporter-DhtW6FxK.js.map +0 -1
  107. package/dist/chunks/exporter-IHv4nkCm.js.map +0 -1
  108. package/dist/chunks/importer-B1wmPQjr.js.map +0 -1
  109. package/dist/chunks/importer-BSALvkui.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-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";
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-CVi12U7J.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-CVi12U7J.js";
5
+ import { T as TextCellWriter } from "./chunks/text-CDgjbkLC.js";
6
+ import { W as W2, i as i2, a as a5, p as p2 } from "./chunks/text-CDgjbkLC.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-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-IHv4nkCm.js";
15
- import { C as C4, a as a8 } from "./chunks/exporter-IHv4nkCm.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-B1wmPQjr.js";
21
- import { D as D3, a as a10 } from "./chunks/importer-B1wmPQjr.js";
12
+ import { d as cxImporter, c as cxExporter } from "./chunks/importer-BA_hZKo7.js";
13
+ import { C as C3, a as a7, b } from "./chunks/importer-BA_hZKo7.js";
14
+ import { c as cx2Exporter } from "./chunks/exporter-Cy_1da4c.js";
15
+ import { C as C4, a as a8 } from "./chunks/exporter-Cy_1da4c.js";
16
+ import { c as cx2Importer } from "./chunks/importer-DLz2Vb4q.js";
17
+ import { C as C5 } from "./chunks/importer-DLz2Vb4q.js";
18
+ import { d as cysImporter, c as cysExporter } from "./chunks/importer-Dej72hIF.js";
19
+ import { C as C6, a as a9, b as b10 } from "./chunks/importer-Dej72hIF.js";
20
+ import { b as dotImporter, d as dotExporter } from "./chunks/importer-CDXlxXlS.js";
21
+ import { D as D3, a as a10 } from "./chunks/importer-CDXlxXlS.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-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";
26
+ import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-q-R-Q98w.js";
27
+ import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-C3Pa2PSd.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-C3Pa2PSd.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-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";
31
+ import { c as oboImporter, o as oboExporter } from "./chunks/exporter-JubAlNWi.js";
32
+ import { O, a as a12, b as b12 } from "./chunks/exporter-JubAlNWi.js";
33
+ import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-lLH9gQF_.js";
34
+ import { P as P2, a as a13 } from "./chunks/importer-lLH9gQF_.js";
35
+ import { x as xgmmlExporter } from "./chunks/exporter-CgsO2nSl.js";
36
+ import { x as xgmmlImporter } from "./chunks/importer-DVxzzibh.js";
37
+ import { X as X2, a as a14 } from "./chunks/importer-DVxzzibh.js";
38
+ import { G as G3, a as a15 } from "./chunks/constants-DowRD9ai.js";
39
+ import { X as X3, b as b13, h as h3, t as t3, x as x2 } from "./chunks/escape-DQC5HWqF.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;