@nshiab/simple-data-analysis-core 0.1.1 → 0.1.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"convertForJS.d.ts","sourceRoot":"","sources":["../../src/helpers/convertForJS.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,IAAI,EAAE;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;CACxD,EAAE,EAAE,KAAK,EAAE;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,QAkCA"}
1
+ {"version":3,"file":"convertForJS.d.ts","sourceRoot":"","sources":["../../src/helpers/convertForJS.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,IAAI,EAAE;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;CACxD,EAAE,EAAE,KAAK,EAAE;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,QAoCA"}
@@ -26,7 +26,9 @@ export default function convertForJS(rows, types) {
26
26
  }
27
27
  else if (types[key].toLowerCase().includes("geometry")) {
28
28
  for (const row of rows) {
29
- row[key] = row[key] === null ? null : "<Geometry>";
29
+ row[key] = row[key] === null
30
+ ? null
31
+ : `GEOM(${types[key].replace("GEOMETRY('", "").replace("')", "")})`;
30
32
  }
31
33
  }
32
34
  else if (types[key].includes("FLOAT[")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nshiab/simple-data-analysis-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The core functionalities of the simple-data-analysis library, with only one dependency: DuckDB.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +1 @@
1
- {"version":3,"file":"convertForJS.d.ts","sourceRoot":"","sources":["../../src/helpers/convertForJS.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,IAAI,EAAE;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;CACxD,EAAE,EAAE,KAAK,EAAE;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,QAkCA"}
1
+ {"version":3,"file":"convertForJS.d.ts","sourceRoot":"","sources":["../../src/helpers/convertForJS.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,IAAI,EAAE;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;CACxD,EAAE,EAAE,KAAK,EAAE;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,QAoCA"}
@@ -29,7 +29,9 @@ function convertForJS(rows, types) {
29
29
  }
30
30
  else if (types[key].toLowerCase().includes("geometry")) {
31
31
  for (const row of rows) {
32
- row[key] = row[key] === null ? null : "<Geometry>";
32
+ row[key] = row[key] === null
33
+ ? null
34
+ : `GEOM(${types[key].replace("GEOMETRY('", "").replace("')", "")})`;
33
35
  }
34
36
  }
35
37
  else if (types[key].includes("FLOAT[")) {