falkordb 6.9.0 → 6.9.1

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { default as Graph } from './src/graph';
1
+ export { Graph } from './src/graph';
2
2
  export { ConstraintType, EntityType } from './src/enums';
3
- export { default as FalkorDB } from './src/falkordb';
3
+ export { FalkorDB } from './src/falkordb';
4
4
  export type { FalkorDBOptions } from './src/types';
5
5
  export type { QueryParam, QueryParams, QueryOptions, QueryOptionsBackwardCompatible } from './src/types';
package/dist/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.FalkorDB = exports.EntityType = exports.ConstraintType = exports.Graph = void 0;
4
+ // Named re-exports, not `default as`: with esModuleInterop (always on since
5
+ // TypeScript 6) a default re-export compiles to `__importDefault(m).default`,
6
+ // which Node's CommonJS export detection cannot see, so ESM callers could not
7
+ // `import { FalkorDB } from 'falkordb'`.
7
8
  var graph_1 = require("./src/graph");
8
- Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return __importDefault(graph_1).default; } });
9
+ Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return graph_1.Graph; } });
9
10
  var enums_1 = require("./src/enums");
10
11
  Object.defineProperty(exports, "ConstraintType", { enumerable: true, get: function () { return enums_1.ConstraintType; } });
11
12
  Object.defineProperty(exports, "EntityType", { enumerable: true, get: function () { return enums_1.EntityType; } });
12
13
  var falkordb_1 = require("./src/falkordb");
13
- Object.defineProperty(exports, "FalkorDB", { enumerable: true, get: function () { return __importDefault(falkordb_1).default; } });
14
+ Object.defineProperty(exports, "FalkorDB", { enumerable: true, get: function () { return falkordb_1.FalkorDB; } });
@@ -39,3 +39,4 @@ export default class FalkorDB extends EventEmitter {
39
39
  */
40
40
  close(): Promise<void>;
41
41
  }
42
+ export { FalkorDB };
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FalkorDB = void 0;
6
7
  const events_1 = require("events");
7
8
  const redis_1 = require("redis");
8
9
  const graph_1 = __importDefault(require("./graph"));
@@ -227,3 +228,4 @@ class FalkorDB extends events_1.EventEmitter {
227
228
  }
228
229
  }
229
230
  exports.default = FalkorDB;
231
+ exports.FalkorDB = FalkorDB;
@@ -53,3 +53,4 @@ export default class Graph {
53
53
  dropEdgeFulltextIndex(label: string, attribute: string): Promise<QueryReply>;
54
54
  dropEdgeVectorIndex(label: string, attribute: string): Promise<QueryReply>;
55
55
  }
56
+ export { Graph };
package/dist/src/graph.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntityType = exports.ConstraintType = void 0;
3
+ exports.Graph = exports.EntityType = exports.ConstraintType = void 0;
4
4
  const polyfill_1 = require("@js-temporal/polyfill");
5
5
  const enums_1 = require("./enums");
6
6
  Object.defineProperty(exports, "ConstraintType", { enumerable: true, get: function () { return enums_1.ConstraintType; } });
@@ -333,3 +333,4 @@ class Graph {
333
333
  }
334
334
  }
335
335
  exports.default = Graph;
336
+ exports.Graph = Graph;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "falkordb",
3
- "version": "6.9.0",
3
+ "version": "6.9.1",
4
4
  "description": "A FalkorDB javascript library",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",