falkordb 6.2.2 → 6.2.3

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/src/graph.js CHANGED
@@ -19,6 +19,7 @@ var GraphValueTypes;
19
19
  GraphValueTypes[GraphValueTypes["PATH"] = 9] = "PATH";
20
20
  GraphValueTypes[GraphValueTypes["MAP"] = 10] = "MAP";
21
21
  GraphValueTypes[GraphValueTypes["POINT"] = 11] = "POINT";
22
+ GraphValueTypes[GraphValueTypes["VECTORF32"] = 12] = "VECTORF32";
22
23
  })(GraphValueTypes || (GraphValueTypes = {}));
23
24
  // export type GraphConnection = SingleGraphConnection | ClusterGraphConnection;
24
25
  class Graph {
@@ -145,6 +146,8 @@ class Graph {
145
146
  latitude: parseFloat(value[0]),
146
147
  longitude: parseFloat(value[1])
147
148
  };
149
+ case GraphValueTypes.VECTORF32:
150
+ return value.map(x => Number(x));
148
151
  default:
149
152
  throw new Error(`unknown scalar type: ${valueType}`);
150
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "falkordb",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "A FalkorDB javascript library",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -34,14 +34,16 @@
34
34
  ],
35
35
  "devDependencies": {
36
36
  "@tsconfig/node14": "^14.1.0",
37
- "@types/jest": "^29.5.12",
37
+ "@types/jest": "^29.5.13",
38
38
  "@types/lodash": "^4.17.7",
39
39
  "@types/node": "^22.0.0",
40
40
  "@typescript-eslint/eslint-plugin": "^7.16.0",
41
41
  "@typescript-eslint/parser": "^7.18.0",
42
42
  "eslint": "^8.57.0",
43
43
  "gh-pages": "^6.0.0",
44
+ "jest": "^29.7.0",
44
45
  "release-it": "^17.6.0",
46
+ "ts-jest": "^29.2.5",
45
47
  "typescript": "^5.4.2"
46
48
  },
47
49
  "dependencies": {