@graphty/graph-io 0.3.37 → 0.3.39
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-CsO24U-5.js → choose-CS3fvGT1.js} +2 -2
- package/dist/chunks/{choose-CsO24U-5.js.map → choose-CS3fvGT1.js.map} +1 -1
- package/dist/chunks/{constants-BPRiVyBu.js → constants-DqKZT6cH.js} +2 -2
- package/dist/chunks/{constants-BPRiVyBu.js.map → constants-DqKZT6cH.js.map} +1 -1
- package/dist/chunks/{escape-BRcyzD77.js → escape-BpYMQZVa.js} +2 -2
- package/dist/chunks/{escape-BRcyzD77.js.map → escape-BpYMQZVa.js.map} +1 -1
- package/dist/chunks/{export-CTUlibzr.js → export-B-aVCwyG.js} +103 -92
- package/dist/chunks/export-B-aVCwyG.js.map +1 -0
- package/dist/chunks/{exporter-flsHFoER.js → exporter-BqKs1Q12.js} +5 -5
- package/dist/chunks/exporter-BqKs1Q12.js.map +1 -0
- package/dist/chunks/{exporter-B_YFZ4ix.js → exporter-CNJZF_BN.js} +7 -7
- package/dist/chunks/exporter-CNJZF_BN.js.map +1 -0
- package/dist/chunks/{exporter-Bn4jdYfd.js → exporter-DXqCPNrI.js} +4 -4
- package/dist/chunks/exporter-DXqCPNrI.js.map +1 -0
- package/dist/chunks/{exporter-2UNIxzcu.js → exporter-SFYkDzD0.js} +6 -5
- package/dist/chunks/exporter-SFYkDzD0.js.map +1 -0
- package/dist/chunks/{importer-oIUx9u_g.js → importer--tQQsY4W.js} +40 -18
- package/dist/chunks/importer--tQQsY4W.js.map +1 -0
- package/dist/chunks/{importer-yWUPR_nU.js → importer-B7Ir269L.js} +4 -4
- package/dist/chunks/{importer-yWUPR_nU.js.map → importer-B7Ir269L.js.map} +1 -1
- package/dist/chunks/{importer-Dwqepe_B.js → importer-BfJ1jnNr.js} +10 -4
- package/dist/chunks/importer-BfJ1jnNr.js.map +1 -0
- package/dist/chunks/{importer-CEuUmyPe.js → importer-CSt-gaYE.js} +6 -6
- package/dist/chunks/{importer-CEuUmyPe.js.map → importer-CSt-gaYE.js.map} +1 -1
- package/dist/chunks/{importer-Bgb9sgZZ.js → importer-CqgYq4Ld.js} +6 -8
- package/dist/chunks/importer-CqgYq4Ld.js.map +1 -0
- package/dist/chunks/{importer-BD3mi2QH.js → importer-DvFznt5-.js} +5 -5
- package/dist/chunks/importer-DvFznt5-.js.map +1 -0
- package/dist/chunks/{importer-DqMtyYLX.js → importer-PVXkeoaS.js} +6 -8
- package/dist/chunks/importer-PVXkeoaS.js.map +1 -0
- package/dist/chunks/{json-elements-AkglPS3m.js → json-elements-CXs4z1iL.js} +3 -3
- package/dist/chunks/{json-elements-AkglPS3m.js.map → json-elements-CXs4z1iL.js.map} +1 -1
- package/dist/chunks/{ontology-export-DDoG3egY.js → ontology-export-50L9DOV4.js} +2 -2
- package/dist/chunks/{ontology-export-DDoG3egY.js.map → ontology-export-50L9DOV4.js.map} +1 -1
- package/dist/chunks/{records-ChmWZGuz.js → records-C9jd7yLD.js} +2 -2
- package/dist/chunks/{records-ChmWZGuz.js.map → records-C9jd7yLD.js.map} +1 -1
- package/dist/chunks/{text-Btw3sBe_.js → text-Bjfa1xYL.js} +2 -2
- package/dist/chunks/{text-Btw3sBe_.js.map → text-Bjfa1xYL.js.map} +1 -1
- package/dist/csv.js +4 -4
- package/dist/csv.js.map +1 -1
- 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 +2 -2
- package/dist/gml.js +9 -7
- package/dist/gml.js.map +1 -1
- package/dist/graph-io.js +26 -26
- package/dist/graphml.js +2 -2
- package/dist/json.js +1 -1
- package/dist/neo4j.js +5 -5
- package/dist/neo4j.js.map +1 -1
- package/dist/obo.js +1 -1
- package/dist/pajek.js +1 -1
- package/dist/src/common/cx-export.d.ts +5 -2
- package/dist/src/common/cx-export.d.ts.map +1 -1
- package/dist/src/common/cx-export.js +11 -2
- package/dist/src/common/cx-export.js.map +1 -1
- package/dist/src/common/direction.js +1 -1
- package/dist/src/common/direction.js.map +1 -1
- package/dist/src/common/export.d.ts.map +1 -1
- package/dist/src/common/export.js +136 -71
- package/dist/src/common/export.js.map +1 -1
- package/dist/src/common/input.js +1 -1
- package/dist/src/common/input.js.map +1 -1
- package/dist/src/formats/cx/exporter.js +1 -1
- package/dist/src/formats/cx/exporter.js.map +1 -1
- package/dist/src/formats/cx2/exporter.js +1 -1
- package/dist/src/formats/cx2/exporter.js.map +1 -1
- package/dist/src/formats/dot/importer.d.ts +6 -0
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +11 -6
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/dot/names.d.ts +5 -0
- package/dist/src/formats/dot/names.d.ts.map +1 -1
- package/dist/src/formats/dot/names.js +5 -0
- package/dist/src/formats/dot/names.js.map +1 -1
- package/dist/src/formats/dot/tokenizer.js +9 -9
- package/dist/src/formats/dot/tokenizer.js.map +1 -1
- package/dist/src/formats/gml/importer.d.ts +6 -0
- package/dist/src/formats/gml/importer.d.ts.map +1 -1
- package/dist/src/formats/gml/importer.js +6 -3
- package/dist/src/formats/gml/importer.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/importer.d.ts.map +1 -1
- package/dist/src/formats/graphml/importer.js +2 -4
- package/dist/src/formats/graphml/importer.js.map +1 -1
- package/dist/src/formats/json/dialect.js +1 -1
- package/dist/src/formats/json/dialect.js.map +1 -1
- package/dist/src/formats/neo4j/exporter.d.ts.map +1 -1
- package/dist/src/formats/neo4j/exporter.js +1 -4
- package/dist/src/formats/neo4j/exporter.js.map +1 -1
- package/dist/src/formats/neo4j/header.js +2 -2
- package/dist/src/formats/neo4j/header.js.map +1 -1
- package/dist/src/formats/obo/importer.d.ts.map +1 -1
- package/dist/src/formats/obo/importer.js +2 -1
- package/dist/src/formats/obo/importer.js.map +1 -1
- package/dist/src/formats/obo/syntax.js +1 -1
- package/dist/src/formats/obo/syntax.js.map +1 -1
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +4 -5
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
- package/dist/src/formats/xgmml/exporter.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/cx-export.ts +11 -2
- package/src/common/direction.ts +1 -1
- package/src/common/export.ts +190 -97
- package/src/common/input.ts +1 -1
- package/src/formats/csv/importer.ts +1 -1
- package/src/formats/cx/exporter.ts +1 -1
- package/src/formats/cx2/exporter.ts +1 -1
- package/src/formats/dot/importer.ts +36 -5
- package/src/formats/dot/names.ts +6 -0
- package/src/formats/dot/tokenizer.ts +9 -9
- package/src/formats/gml/importer.ts +15 -4
- package/src/formats/gml/syntax.ts +1 -1
- package/src/formats/graphml/importer.ts +2 -4
- package/src/formats/json/dialect.ts +1 -1
- package/src/formats/neo4j/exporter.ts +1 -4
- package/src/formats/neo4j/header.ts +2 -2
- package/src/formats/obo/importer.ts +2 -1
- package/src/formats/obo/syntax.ts +1 -1
- package/src/formats/pajek/exporter.ts +6 -4
- package/src/formats/pajek/importer.ts +1 -1
- package/src/formats/xgmml/exporter.ts +4 -1
- package/src/sniff.ts +1 -1
- package/dist/chunks/export-CTUlibzr.js.map +0 -1
- package/dist/chunks/exporter-2UNIxzcu.js.map +0 -1
- package/dist/chunks/exporter-B_YFZ4ix.js.map +0 -1
- package/dist/chunks/exporter-Bn4jdYfd.js.map +0 -1
- package/dist/chunks/exporter-flsHFoER.js.map +0 -1
- package/dist/chunks/importer-BD3mi2QH.js.map +0 -1
- package/dist/chunks/importer-Bgb9sgZZ.js.map +0 -1
- package/dist/chunks/importer-DqMtyYLX.js.map +0 -1
- package/dist/chunks/importer-Dwqepe_B.js.map +0 -1
- package/dist/chunks/importer-oIUx9u_g.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-B-aVCwyG.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-B-aVCwyG.js";
|
|
5
|
+
import { T as TextCellWriter } from "./chunks/text-Bjfa1xYL.js";
|
|
6
|
+
import { W as W2, i as i2, a as a5, p as p2 } from "./chunks/text-Bjfa1xYL.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-DvFznt5-.js";
|
|
13
|
+
import { C as C3, a as a7, b } from "./chunks/importer-DvFznt5-.js";
|
|
14
|
+
import { c as cx2Exporter } from "./chunks/exporter-BqKs1Q12.js";
|
|
15
|
+
import { C as C4, a as a8 } from "./chunks/exporter-BqKs1Q12.js";
|
|
16
|
+
import { c as cx2Importer } from "./chunks/importer-BfJ1jnNr.js";
|
|
17
|
+
import { C as C5 } from "./chunks/importer-BfJ1jnNr.js";
|
|
18
|
+
import { d as cysImporter, c as cysExporter } from "./chunks/importer-CSt-gaYE.js";
|
|
19
|
+
import { C as C6, a as a9, b as b10 } from "./chunks/importer-CSt-gaYE.js";
|
|
20
|
+
import { b as dotImporter, d as dotExporter } from "./chunks/importer--tQQsY4W.js";
|
|
21
|
+
import { D as D3, a as a10 } from "./chunks/importer--tQQsY4W.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-PVXkeoaS.js";
|
|
27
|
+
import { r as rankFormats, S as SNIFF_HEAD_BYTES, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-CNJZF_BN.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-CNJZF_BN.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-SFYkDzD0.js";
|
|
32
|
+
import { O, a as a12, b as b12 } from "./chunks/exporter-SFYkDzD0.js";
|
|
33
|
+
import { b as pajekImporter, p as pajekExporter } from "./chunks/importer-CqgYq4Ld.js";
|
|
34
|
+
import { P as P2, a as a13 } from "./chunks/importer-CqgYq4Ld.js";
|
|
35
|
+
import { x as xgmmlExporter } from "./chunks/exporter-DXqCPNrI.js";
|
|
36
|
+
import { x as xgmmlImporter } from "./chunks/importer-B7Ir269L.js";
|
|
37
|
+
import { X as X2, a as a14 } from "./chunks/importer-B7Ir269L.js";
|
|
38
|
+
import { G as G3, a as a15 } from "./chunks/constants-DqKZT6cH.js";
|
|
39
|
+
import { X as X3, b as b13, h as h3, t as t3, x as x2 } from "./chunks/escape-BpYMQZVa.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;
|
package/dist/graphml.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G, a } from "./chunks/constants-
|
|
2
|
-
import { g, a as a2 } from "./chunks/importer-
|
|
1
|
+
import { G, a } from "./chunks/constants-DqKZT6cH.js";
|
|
2
|
+
import { g, a as a2 } from "./chunks/importer-PVXkeoaS.js";
|
|
3
3
|
export {
|
|
4
4
|
G as GRAPHML_ISSUE,
|
|
5
5
|
a as GRAPHML_LOSS,
|
package/dist/json.js
CHANGED
package/dist/neo4j.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as DANGLING_REFERENCE_CODE$1, R as ROLE_TAKEN_CODE$1, I as ID_MERGED_CODE$1, n as DUPLICATE_NODE_CODE$1, s as MISSING_ENDPOINT_CODE$1, t as MISSING_ID_CODE$1, al as resolveImportOptions, a8 as ImportReportBuilder, ao as reportSinkOptions, an as reportUnusedOptions, am as throwIfAborted, ar as IdCoercer, aq as DirectionResolver, b as plural, $ as agree, aS as ImportError, bH as declareAttribute, bX as declareOn, a0 as uniqueColumnName, ay as RENAMED_CODE, aK as parseWeightText, bJ as parseDeclaredTemporal, bK as parseDeclaredValue, bL as losesPrecision, br as declareCompanion, P as PRECISION_CODE, bN as splitListText, by as isImportInput, bW as takenIn, bw as inputLength, bY as parseTemporal, bZ as withArticle, c as capabilities, b8 as ID_TEXT_COLLISION_CODE, J as ID_TEXT_TYPE_CODE, r as resolveExportOptions, a as checkCapabilities, p as pairFolding, L as LOSS, bR as mapDeclaredType, e as explicitWeights, bx as isCanonicalIntegerText, bT as formatTemporal, ab as formatF64, aa as formatF32, aG as formatInteger, S as SINK_OPTION_CODE, O as OPTION_IGNORED_CODE, C as COLUMN_RENAMED_CODE, U as UNKNOWN_ATTR_TYPE_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, y as INVALID_ENCODING_CODE, z as INVALID_UTF8_CODE, A as COLUMN_TYPE_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, bp as WEIGHT_KEY_CLASH_CODE, K as ROLE_DROPPED_CODE, bc as MUTUAL_EXPANDED_CODE } from "./chunks/export-
|
|
2
|
-
import { c as checkRecordSyntax, R as RecordReader, B as BAD_QUOTE_CODE, U as UNCLOSED_QUOTE_CODE } from "./chunks/records-
|
|
1
|
+
import { i as DANGLING_REFERENCE_CODE$1, R as ROLE_TAKEN_CODE$1, I as ID_MERGED_CODE$1, n as DUPLICATE_NODE_CODE$1, s as MISSING_ENDPOINT_CODE$1, t as MISSING_ID_CODE$1, al as resolveImportOptions, a8 as ImportReportBuilder, ao as reportSinkOptions, an as reportUnusedOptions, am as throwIfAborted, ar as IdCoercer, aq as DirectionResolver, b as plural, $ as agree, aS as ImportError, bH as declareAttribute, bX as declareOn, a0 as uniqueColumnName, ay as RENAMED_CODE, aK as parseWeightText, bJ as parseDeclaredTemporal, bK as parseDeclaredValue, bL as losesPrecision, br as declareCompanion, P as PRECISION_CODE, bN as splitListText, by as isImportInput, bW as takenIn, bw as inputLength, bY as parseTemporal, bZ as withArticle, c as capabilities, b8 as ID_TEXT_COLLISION_CODE, J as ID_TEXT_TYPE_CODE, r as resolveExportOptions, a as checkCapabilities, p as pairFolding, L as LOSS, bR as mapDeclaredType, e as explicitWeights, bx as isCanonicalIntegerText, bT as formatTemporal, ab as formatF64, aa as formatF32, aG as formatInteger, S as SINK_OPTION_CODE, O as OPTION_IGNORED_CODE, C as COLUMN_RENAMED_CODE, U as UNKNOWN_ATTR_TYPE_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, y as INVALID_ENCODING_CODE, z as INVALID_UTF8_CODE, A as COLUMN_TYPE_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, bp as WEIGHT_KEY_CLASH_CODE, K as ROLE_DROPPED_CODE, bc as MUTUAL_EXPANDED_CODE } from "./chunks/export-B-aVCwyG.js";
|
|
2
|
+
import { c as checkRecordSyntax, R as RecordReader, B as BAD_QUOTE_CODE, U as UNCLOSED_QUOTE_CODE } from "./chunks/records-C9jd7yLD.js";
|
|
3
3
|
import { GraphFormatError, INVALID_INDEX } from "@graphty/graph-format";
|
|
4
|
-
import { o as quoteCsvCell } from "./chunks/escape-
|
|
4
|
+
import { o as quoteCsvCell } from "./chunks/escape-BpYMQZVa.js";
|
|
5
5
|
import { j as joinText, e as encodeChunks } from "./chunks/writer-DxjgHwSe.js";
|
|
6
6
|
const STRUCTURAL = /* @__PURE__ */ new Set(["ID", "LABEL", "START_ID", "END_ID", "TYPE", "IGNORE"]);
|
|
7
7
|
const SPACE_KINDS = /* @__PURE__ */ new Set(["ID", "START_ID", "END_ID"]);
|
|
@@ -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.
|
|
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(
|
|
2217
|
+
return labels.sliceOf(index).map(String).join(this.options.arrayDelimiter);
|
|
2218
2218
|
}
|
|
2219
2219
|
return textOf(labels, index);
|
|
2220
2220
|
}
|