@graphty/graph-io 0.3.37 → 0.3.38

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 (64) hide show
  1. package/dist/chunks/{exporter-flsHFoER.js → exporter-Bf5tZA0X.js} +3 -3
  2. package/dist/chunks/exporter-Bf5tZA0X.js.map +1 -0
  3. package/dist/chunks/exporter-Bn4jdYfd.js.map +1 -1
  4. package/dist/chunks/{exporter-B_YFZ4ix.js → exporter-D-qQuRcG.js} +2 -2
  5. package/dist/chunks/exporter-D-qQuRcG.js.map +1 -0
  6. package/dist/chunks/{exporter-2UNIxzcu.js → exporter-F0vT919P.js} +2 -2
  7. package/dist/chunks/exporter-F0vT919P.js.map +1 -0
  8. package/dist/chunks/importer-Bgb9sgZZ.js.map +1 -1
  9. package/dist/chunks/{importer-Dwqepe_B.js → importer-BuzbaFFY.js} +8 -2
  10. package/dist/chunks/importer-BuzbaFFY.js.map +1 -0
  11. package/dist/chunks/{importer-BD3mi2QH.js → importer-CNMQnHDd.js} +3 -3
  12. package/dist/chunks/importer-CNMQnHDd.js.map +1 -0
  13. package/dist/chunks/importer-oIUx9u_g.js.map +1 -1
  14. package/dist/csv.js.map +1 -1
  15. package/dist/cx.js +1 -1
  16. package/dist/cx2.js +2 -2
  17. package/dist/gml.js +1 -1
  18. package/dist/gml.js.map +1 -1
  19. package/dist/graph-io.js +10 -10
  20. package/dist/json.js +1 -1
  21. package/dist/neo4j.js +2 -2
  22. package/dist/neo4j.js.map +1 -1
  23. package/dist/obo.js +1 -1
  24. package/dist/src/common/cx-export.d.ts +5 -2
  25. package/dist/src/common/cx-export.d.ts.map +1 -1
  26. package/dist/src/common/cx-export.js +11 -2
  27. package/dist/src/common/cx-export.js.map +1 -1
  28. package/dist/src/formats/cx/exporter.js +1 -1
  29. package/dist/src/formats/cx/exporter.js.map +1 -1
  30. package/dist/src/formats/cx2/exporter.js +1 -1
  31. package/dist/src/formats/cx2/exporter.js.map +1 -1
  32. package/dist/src/formats/gml/importer.js.map +1 -1
  33. package/dist/src/formats/gml/syntax.js +1 -1
  34. package/dist/src/formats/gml/syntax.js.map +1 -1
  35. package/dist/src/formats/json/dialect.js +1 -1
  36. package/dist/src/formats/json/dialect.js.map +1 -1
  37. package/dist/src/formats/neo4j/exporter.d.ts.map +1 -1
  38. package/dist/src/formats/neo4j/exporter.js +1 -4
  39. package/dist/src/formats/neo4j/exporter.js.map +1 -1
  40. package/dist/src/formats/neo4j/header.js +2 -2
  41. package/dist/src/formats/neo4j/header.js.map +1 -1
  42. package/dist/src/formats/obo/syntax.js +1 -1
  43. package/dist/src/formats/obo/syntax.js.map +1 -1
  44. package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
  45. package/dist/src/formats/xgmml/exporter.js.map +1 -1
  46. package/package.json +2 -2
  47. package/src/common/cx-export.ts +11 -2
  48. package/src/formats/csv/importer.ts +1 -1
  49. package/src/formats/cx/exporter.ts +1 -1
  50. package/src/formats/cx2/exporter.ts +1 -1
  51. package/src/formats/dot/importer.ts +1 -1
  52. package/src/formats/gml/importer.ts +1 -1
  53. package/src/formats/gml/syntax.ts +1 -1
  54. package/src/formats/json/dialect.ts +1 -1
  55. package/src/formats/neo4j/exporter.ts +1 -4
  56. package/src/formats/neo4j/header.ts +2 -2
  57. package/src/formats/obo/syntax.ts +1 -1
  58. package/src/formats/pajek/importer.ts +1 -1
  59. package/src/formats/xgmml/exporter.ts +4 -1
  60. package/dist/chunks/exporter-2UNIxzcu.js.map +0 -1
  61. package/dist/chunks/exporter-B_YFZ4ix.js.map +0 -1
  62. package/dist/chunks/exporter-flsHFoER.js.map +0 -1
  63. package/dist/chunks/importer-BD3mi2QH.js.map +0 -1
  64. package/dist/chunks/importer-Dwqepe_B.js.map +0 -1
package/dist/graph-io.js CHANGED
@@ -9,12 +9,12 @@ 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-BD3mi2QH.js";
13
- import { C as C3, a as a7, b } from "./chunks/importer-BD3mi2QH.js";
14
- import { c as cx2Exporter } from "./chunks/exporter-flsHFoER.js";
15
- import { C as C4, a as a8 } from "./chunks/exporter-flsHFoER.js";
16
- import { c as cx2Importer } from "./chunks/importer-Dwqepe_B.js";
17
- import { C as C5 } from "./chunks/importer-Dwqepe_B.js";
12
+ import { d as cxImporter, c as cxExporter } from "./chunks/importer-CNMQnHDd.js";
13
+ import { C as C3, a as a7, b } from "./chunks/importer-CNMQnHDd.js";
14
+ import { c as cx2Exporter } from "./chunks/exporter-Bf5tZA0X.js";
15
+ import { C as C4, a as a8 } from "./chunks/exporter-Bf5tZA0X.js";
16
+ import { c as cx2Importer } from "./chunks/importer-BuzbaFFY.js";
17
+ import { C as C5 } from "./chunks/importer-BuzbaFFY.js";
18
18
  import { d as cysImporter, c as cysExporter } from "./chunks/importer-CEuUmyPe.js";
19
19
  import { C as C6, a as a9, b as b10 } from "./chunks/importer-CEuUmyPe.js";
20
20
  import { b as dotImporter, d as dotExporter } from "./chunks/importer-oIUx9u_g.js";
@@ -24,12 +24,12 @@ 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
26
  import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-DqMtyYLX.js";
27
- import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-B_YFZ4ix.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-B_YFZ4ix.js";
27
+ import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-D-qQuRcG.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-D-qQuRcG.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-2UNIxzcu.js";
32
- import { O, a as a12, b as b12 } from "./chunks/exporter-2UNIxzcu.js";
31
+ import { c as oboImporter, o as oboExporter } from "./chunks/exporter-F0vT919P.js";
32
+ import { O, a as a12, b as b12 } from "./chunks/exporter-F0vT919P.js";
33
33
  import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-Bgb9sgZZ.js";
34
34
  import { P as P2, a as a13 } from "./chunks/importer-Bgb9sgZZ.js";
35
35
  import { x as xgmmlExporter } from "./chunks/exporter-Bn4jdYfd.js";
package/dist/json.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J, a, b, d, j, c, e, f } from "./chunks/exporter-B_YFZ4ix.js";
1
+ import { J, a, b, d, j, c, e, f } from "./chunks/exporter-D-qQuRcG.js";
2
2
  export {
3
3
  J as JSON_DIALECTS,
4
4
  a as JSON_ISSUE,
package/dist/neo4j.js CHANGED
@@ -11,7 +11,7 @@ function isHeaderRecord(cells, count, quoted) {
11
11
  let quotedMarker = false;
12
12
  for (let i = 0; i < count; i++) {
13
13
  const cell = cells[i];
14
- if (cell.indexOf(":") >= 0 && HEADER_MARKER.test(cell.trim())) {
14
+ if (cell.includes(":") && HEADER_MARKER.test(cell.trim())) {
15
15
  if (quoted?.[i] !== true) {
16
16
  return true;
17
17
  }
@@ -2214,7 +2214,7 @@ class ExportPlan {
2214
2214
  return null;
2215
2215
  }
2216
2216
  if (labels.dtype === "list") {
2217
- return labels.sliceOf(index).map((item) => String(item)).join(this.options.arrayDelimiter);
2217
+ return labels.sliceOf(index).map(String).join(this.options.arrayDelimiter);
2218
2218
  }
2219
2219
  return textOf(labels, index);
2220
2220
  }