@graphty/graph-io 0.3.35 → 0.3.37
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/chunks/{choose-494CpuXQ.js → choose-CsO24U-5.js} +2 -2
- package/dist/chunks/{choose-494CpuXQ.js.map → choose-CsO24U-5.js.map} +1 -1
- package/dist/chunks/{constants-BBK4rsQZ.js → constants-BPRiVyBu.js} +2 -2
- package/dist/chunks/{constants-BBK4rsQZ.js.map → constants-BPRiVyBu.js.map} +1 -1
- package/dist/chunks/{escape-wVIEtLv6.js → escape-BRcyzD77.js} +4 -4
- package/dist/chunks/{escape-wVIEtLv6.js.map → escape-BRcyzD77.js.map} +1 -1
- package/dist/chunks/{export-Cbt4h_0n.js → export-CTUlibzr.js} +4 -4
- package/dist/chunks/export-CTUlibzr.js.map +1 -0
- package/dist/chunks/{exporter-CkPnJCXU.js → exporter-2UNIxzcu.js} +3 -3
- package/dist/chunks/{exporter-CkPnJCXU.js.map → exporter-2UNIxzcu.js.map} +1 -1
- package/dist/chunks/{exporter-LZTIAzkS.js → exporter-B_YFZ4ix.js} +8 -8
- package/dist/chunks/exporter-B_YFZ4ix.js.map +1 -0
- package/dist/chunks/{exporter-CqnmKk-f.js → exporter-Bn4jdYfd.js} +5 -5
- package/dist/chunks/{exporter-CqnmKk-f.js.map → exporter-Bn4jdYfd.js.map} +1 -1
- package/dist/chunks/{exporter-DMxRy-0l.js → exporter-flsHFoER.js} +4 -4
- package/dist/chunks/{exporter-DMxRy-0l.js.map → exporter-flsHFoER.js.map} +1 -1
- package/dist/chunks/{importer-C1VMuEBQ.js → importer-BD3mi2QH.js} +10 -10
- package/dist/chunks/importer-BD3mi2QH.js.map +1 -0
- package/dist/chunks/{importer-DvPvd4Yy.js → importer-Bgb9sgZZ.js} +9 -9
- package/dist/chunks/importer-Bgb9sgZZ.js.map +1 -0
- package/dist/chunks/{importer-CSmH218L.js → importer-CEuUmyPe.js} +10 -10
- package/dist/chunks/importer-CEuUmyPe.js.map +1 -0
- package/dist/chunks/{importer-DMgcD1wI.js → importer-DqMtyYLX.js} +11 -11
- package/dist/chunks/importer-DqMtyYLX.js.map +1 -0
- package/dist/chunks/{importer-BTSvNJUB.js → importer-Dwqepe_B.js} +3 -3
- package/dist/chunks/{importer-BTSvNJUB.js.map → importer-Dwqepe_B.js.map} +1 -1
- package/dist/chunks/{importer-BTbjwN10.js → importer-oIUx9u_g.js} +9 -9
- package/dist/chunks/importer-oIUx9u_g.js.map +1 -0
- package/dist/chunks/{importer-DtKPzhVp.js → importer-yWUPR_nU.js} +13 -13
- package/dist/chunks/importer-yWUPR_nU.js.map +1 -0
- package/dist/chunks/{json-elements-CxJF-Szz.js → json-elements-AkglPS3m.js} +4 -4
- package/dist/chunks/json-elements-AkglPS3m.js.map +1 -0
- package/dist/chunks/{ontology-export-p1PsPenq.js → ontology-export-DDoG3egY.js} +2 -2
- package/dist/chunks/{ontology-export-p1PsPenq.js.map → ontology-export-DDoG3egY.js.map} +1 -1
- package/dist/chunks/{records-BrfHycmg.js → records-ChmWZGuz.js} +2 -2
- package/dist/chunks/{records-BrfHycmg.js.map → records-ChmWZGuz.js.map} +1 -1
- package/dist/chunks/{text-BD-TzLNm.js → text-Btw3sBe_.js} +2 -2
- package/dist/chunks/{text-BD-TzLNm.js.map → text-Btw3sBe_.js.map} +1 -1
- package/dist/csv.js +4 -4
- package/dist/cx.js +1 -1
- package/dist/cx2.js +2 -2
- package/dist/cys.js +1 -1
- package/dist/dot.js +1 -1
- package/dist/gexf.js +30 -30
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +8 -8
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +28 -28
- package/dist/graph-io.js.map +1 -1
- package/dist/graphml.js +2 -2
- package/dist/json.js +1 -1
- package/dist/neo4j.js +6 -6
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.js +1 -1
- package/dist/pajek.js +1 -1
- package/dist/src/common/attributes.d.ts +1 -2
- package/dist/src/common/attributes.d.ts.map +1 -1
- package/dist/src/common/attributes.js +2 -2
- package/dist/src/common/attributes.js.map +1 -1
- package/dist/src/common/direction.d.ts +1 -2
- package/dist/src/common/direction.d.ts.map +1 -1
- package/dist/src/common/direction.js +2 -2
- package/dist/src/common/direction.js.map +1 -1
- package/dist/src/common/escape.js +1 -1
- package/dist/src/common/escape.js.map +1 -1
- package/dist/src/common/export.js +1 -1
- package/dist/src/common/export.js.map +1 -1
- package/dist/src/common/ids.d.ts +1 -2
- package/dist/src/common/ids.d.ts.map +1 -1
- package/dist/src/common/ids.js +1 -2
- package/dist/src/common/ids.js.map +1 -1
- package/dist/src/common/input.d.ts +1 -2
- package/dist/src/common/input.d.ts.map +1 -1
- package/dist/src/common/input.js +2 -2
- package/dist/src/common/input.js.map +1 -1
- package/dist/src/common/json-elements.js +1 -1
- package/dist/src/common/json-elements.js.map +1 -1
- package/dist/src/common/options.d.ts +1 -2
- package/dist/src/common/options.d.ts.map +1 -1
- package/dist/src/common/options.js +1 -1
- package/dist/src/common/options.js.map +1 -1
- package/dist/src/common/xml.js +1 -1
- package/dist/src/common/xml.js.map +1 -1
- package/dist/src/formats/cx/importer.js +6 -6
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cys/importer.js +3 -3
- package/dist/src/formats/cys/importer.js.map +1 -1
- package/dist/src/formats/cys/tables.js +1 -1
- package/dist/src/formats/cys/tables.js.map +1 -1
- package/dist/src/formats/dot/exporter.js +3 -3
- package/dist/src/formats/dot/exporter.js.map +1 -1
- package/dist/src/formats/dot/importer.js +1 -1
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/gexf/exporter.d.ts.map +1 -1
- package/dist/src/formats/gexf/exporter.js +24 -27
- package/dist/src/formats/gexf/exporter.js.map +1 -1
- package/dist/src/formats/gexf/importer.d.ts +1 -2
- package/dist/src/formats/gexf/importer.d.ts.map +1 -1
- package/dist/src/formats/gexf/importer.js +5 -5
- package/dist/src/formats/gexf/importer.js.map +1 -1
- package/dist/src/formats/gml/exporter.js +4 -4
- package/dist/src/formats/gml/exporter.js.map +1 -1
- package/dist/src/formats/gml/syntax.js +1 -1
- package/dist/src/formats/gml/syntax.js.map +1 -1
- package/dist/src/formats/graphml/exporter.js +3 -3
- package/dist/src/formats/graphml/exporter.js.map +1 -1
- package/dist/src/formats/graphml/importer.js +2 -2
- package/dist/src/formats/graphml/importer.js.map +1 -1
- package/dist/src/formats/graphml/tree.js +2 -2
- package/dist/src/formats/graphml/tree.js.map +1 -1
- package/dist/src/formats/json/exporter.js +1 -1
- package/dist/src/formats/json/exporter.js.map +1 -1
- package/dist/src/formats/json/importer.js +1 -1
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/neo4j/exporter.js +3 -3
- package/dist/src/formats/neo4j/exporter.js.map +1 -1
- package/dist/src/formats/pajek/exporter.js +4 -4
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/xgmml/document.js +6 -6
- package/dist/src/formats/xgmml/document.js.map +1 -1
- package/dist/src/formats/xgmml/emit.js +2 -2
- package/dist/src/formats/xgmml/emit.js.map +1 -1
- package/dist/src/formats/xgmml/exporter.js +1 -1
- package/dist/src/formats/xgmml/exporter.js.map +1 -1
- package/dist/src/formats/xgmml/importer.js +1 -1
- package/dist/src/formats/xgmml/importer.js.map +1 -1
- package/dist/src/registry.js +2 -2
- package/dist/src/registry.js.map +1 -1
- package/dist/src/sniff.js +1 -1
- package/dist/src/sniff.js.map +1 -1
- package/dist/xgmml.js +2 -2
- package/package.json +2 -2
- package/src/common/attributes.ts +1 -2
- package/src/common/direction.ts +2 -2
- package/src/common/escape.ts +1 -1
- package/src/common/export.ts +1 -1
- package/src/common/ids.ts +1 -3
- package/src/common/input.ts +2 -2
- package/src/common/json-elements.ts +1 -1
- package/src/common/options.ts +1 -1
- package/src/common/xml.ts +1 -1
- package/src/formats/cx/importer.ts +6 -6
- package/src/formats/cys/importer.ts +3 -3
- package/src/formats/cys/tables.ts +1 -1
- package/src/formats/dot/exporter.ts +3 -3
- package/src/formats/dot/importer.ts +1 -1
- package/src/formats/gexf/exporter.ts +24 -28
- package/src/formats/gexf/importer.ts +5 -5
- package/src/formats/gml/exporter.ts +4 -4
- package/src/formats/gml/syntax.ts +1 -1
- package/src/formats/graphml/exporter.ts +3 -3
- package/src/formats/graphml/importer.ts +2 -2
- package/src/formats/graphml/tree.ts +2 -2
- package/src/formats/json/exporter.ts +1 -1
- package/src/formats/json/importer.ts +1 -1
- package/src/formats/neo4j/exporter.ts +3 -3
- package/src/formats/pajek/exporter.ts +4 -4
- package/src/formats/xgmml/document.ts +6 -6
- package/src/formats/xgmml/emit.ts +2 -2
- package/src/formats/xgmml/exporter.ts +1 -1
- package/src/formats/xgmml/importer.ts +1 -1
- package/src/registry.ts +2 -2
- package/src/sniff.ts +1 -1
- package/dist/chunks/export-Cbt4h_0n.js.map +0 -1
- package/dist/chunks/exporter-LZTIAzkS.js.map +0 -1
- package/dist/chunks/importer-BTbjwN10.js.map +0 -1
- package/dist/chunks/importer-C1VMuEBQ.js.map +0 -1
- package/dist/chunks/importer-CSmH218L.js.map +0 -1
- package/dist/chunks/importer-DMgcD1wI.js.map +0 -1
- package/dist/chunks/importer-DtKPzhVp.js.map +0 -1
- package/dist/chunks/importer-DvPvd4Yy.js.map +0 -1
- package/dist/chunks/json-elements-CxJF-Szz.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, aK as parseWeightText, aL as isAbortError, aM as BAD_LINE_CODE, aN as messageOf, aO as describe, b as plural, aP as UNKNOWN_OPTION_CODE, a7 as chooseGraph, aQ as normalizeInput, aR as foreignKind, E as EMPTY_INPUT_CODE, aS as ImportError, aT as FETCH_CODE, $ as agree, aU as EDGES_MERGED_CODE, aV as SELF_LOOPS_DROPPED_CODE, O as OPTION_IGNORED_CODE, aW as WEIGHT_NOT_FOUND_CODE, aX as lockReader, aY as abortable } from "./chunks/export-
|
|
4
|
-
import { ae, Y, V, B, aZ, a3, at, a_, C, a$, A, b0, k, j, i, b1, b2, b3, D, d, o, b4, m, u, n, F, b5, v, x, b6, b7, aB, af, H, I, b8, J, G, b9, y, z, ba, a2, L, s, t, M, l, W, T, bb, bc, aA, bd, be, N, bf, bg, Q, ai, bh, P, aD, ay, au, K, R, bi, ag, S, Z, _, bj, f, ah, ak, bk, bl, bm, ad, aC, U, g, w, q, bn, h, bo, bp, aj, ax, X, aH, c, a, bq, aI, br, a1, bs, bt, e, bu, aF, aa, ab, bv, aG, ap, bw, bx, by, bz, aJ, bA, p, bB, bC, r, aE, a4 } from "./chunks/export-
|
|
5
|
-
import { T as TextCellWriter } from "./chunks/text-
|
|
6
|
-
import { W as W2, i as i2, a as a5, p as p2 } from "./chunks/text-
|
|
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, aK as parseWeightText, aL as isAbortError, aM as BAD_LINE_CODE, aN as messageOf, aO as describe, b as plural, aP as UNKNOWN_OPTION_CODE, a7 as chooseGraph, aQ as normalizeInput, aR as foreignKind, E as EMPTY_INPUT_CODE, aS as ImportError, aT as FETCH_CODE, $ as agree, aU as EDGES_MERGED_CODE, aV as SELF_LOOPS_DROPPED_CODE, O as OPTION_IGNORED_CODE, aW as WEIGHT_NOT_FOUND_CODE, aX as lockReader, aY as abortable } from "./chunks/export-CTUlibzr.js";
|
|
4
|
+
import { ae, Y, V, B, aZ, a3, at, a_, C, a$, A, b0, k, j, i, b1, b2, b3, D, d, o, b4, m, u, n, F, b5, v, x, b6, b7, aB, af, H, I, b8, J, G, b9, y, z, ba, a2, L, s, t, M, l, W, T, bb, bc, aA, bd, be, N, bf, bg, Q, ai, bh, P, aD, ay, au, K, R, bi, ag, S, Z, _, bj, f, ah, ak, bk, bl, bm, ad, aC, U, g, w, q, bn, h, bo, bp, aj, ax, X, aH, c, a, bq, aI, br, a1, bs, bt, e, bu, aF, aa, ab, bv, aG, ap, bw, bx, by, bz, aJ, bA, p, bB, bC, r, aE, a4 } from "./chunks/export-CTUlibzr.js";
|
|
5
|
+
import { T as TextCellWriter } from "./chunks/text-Btw3sBe_.js";
|
|
6
|
+
import { W as W2, i as i2, a as a5, p as p2 } from "./chunks/text-Btw3sBe_.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-
|
|
13
|
-
import { C as C3, a as a7, b } from "./chunks/importer-
|
|
14
|
-
import { c as cx2Exporter } from "./chunks/exporter-
|
|
15
|
-
import { C as C4, a as a8 } from "./chunks/exporter-
|
|
16
|
-
import { c as cx2Importer } from "./chunks/importer-
|
|
17
|
-
import { C as C5 } from "./chunks/importer-
|
|
18
|
-
import { d as cysImporter, c as cysExporter } from "./chunks/importer-
|
|
19
|
-
import { C as C6, a as a9, b as b10 } from "./chunks/importer-
|
|
20
|
-
import { b as dotImporter, d as dotExporter } from "./chunks/importer-
|
|
21
|
-
import { D as D3, a as a10 } from "./chunks/importer-
|
|
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";
|
|
18
|
+
import { d as cysImporter, c as cysExporter } from "./chunks/importer-CEuUmyPe.js";
|
|
19
|
+
import { C as C6, a as a9, b as b10 } from "./chunks/importer-CEuUmyPe.js";
|
|
20
|
+
import { b as dotImporter, d as dotExporter } from "./chunks/importer-oIUx9u_g.js";
|
|
21
|
+
import { D as D3, a as a10 } from "./chunks/importer-oIUx9u_g.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-
|
|
27
|
-
import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-
|
|
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-
|
|
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";
|
|
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-
|
|
32
|
-
import { O, a as a12, b as b12 } from "./chunks/exporter-
|
|
33
|
-
import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-
|
|
34
|
-
import { P as P2, a as a13 } from "./chunks/importer-
|
|
35
|
-
import { x as xgmmlExporter } from "./chunks/exporter-
|
|
36
|
-
import { x as xgmmlImporter } from "./chunks/importer-
|
|
37
|
-
import { X as X2, a as a14 } from "./chunks/importer-
|
|
38
|
-
import { G as G3, a as a15 } from "./chunks/constants-
|
|
39
|
-
import { X as X3, b as b13, h as h3, t as t3, x as x2 } from "./chunks/escape-
|
|
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";
|
|
33
|
+
import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-Bgb9sgZZ.js";
|
|
34
|
+
import { P as P2, a as a13 } from "./chunks/importer-Bgb9sgZZ.js";
|
|
35
|
+
import { x as xgmmlExporter } from "./chunks/exporter-Bn4jdYfd.js";
|
|
36
|
+
import { x as xgmmlImporter } from "./chunks/importer-yWUPR_nU.js";
|
|
37
|
+
import { X as X2, a as a14 } from "./chunks/importer-yWUPR_nU.js";
|
|
38
|
+
import { G as G3, a as a15 } from "./chunks/constants-BPRiVyBu.js";
|
|
39
|
+
import { X as X3, b as b13, h as h3, t as t3, x as x2 } from "./chunks/escape-BRcyzD77.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;
|
|
@@ -1319,7 +1319,7 @@ async function peekHead(input, bytes, signal) {
|
|
|
1319
1319
|
let size = 0;
|
|
1320
1320
|
let finished = false;
|
|
1321
1321
|
while (size < bytes) {
|
|
1322
|
-
if (signal
|
|
1322
|
+
if (signal?.aborted) {
|
|
1323
1323
|
await source.return?.();
|
|
1324
1324
|
throwIfAborted(signal);
|
|
1325
1325
|
}
|
|
@@ -1331,7 +1331,7 @@ async function peekHead(input, bytes, signal) {
|
|
|
1331
1331
|
buffered.push(next.value);
|
|
1332
1332
|
size += typeof next.value === "string" ? next.value.length : next.value.byteLength;
|
|
1333
1333
|
}
|
|
1334
|
-
if (!finished && signal
|
|
1334
|
+
if (!finished && signal?.aborted) {
|
|
1335
1335
|
await source.return?.();
|
|
1336
1336
|
throwIfAborted(signal);
|
|
1337
1337
|
}
|