@flowblade/sqlduck 0.23.0 → 0.24.0

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.
@@ -80,6 +80,13 @@ var FileSystemUtils = class {
80
80
  return false;
81
81
  }
82
82
  };
83
+ /**
84
+ * Check whether two paths (file, directory...) are identical by comparing their real paths.
85
+ * Returns false if either path doesn't exist.
86
+ */
87
+ isSamePath = (path1, path2) => {
88
+ return fs.existsSync(path1) && fs.existsSync(path2) && fs.realpathSync(path1) === fs.realpathSync(path2);
89
+ };
83
90
  };
84
91
  //#endregion
85
92
  export { sqlduckDefaultLogtapeLogger as n, flowbladeLogtapeSqlduckConfig as r, FileSystemUtils as t };
@@ -29,6 +29,11 @@ declare class FileSystemUtils {
29
29
  filename: string;
30
30
  };
31
31
  removeFileIfExists: (path: string) => boolean;
32
+ /**
33
+ * Check whether two paths (file, directory...) are identical by comparing their real paths.
34
+ * Returns false if either path doesn't exist.
35
+ */
36
+ isSamePath: (path1: string, path2: string) => boolean;
32
37
  }
33
38
  //#endregion
34
39
  export { FileSystemUtils };
@@ -1,2 +1,2 @@
1
- import { t as FileSystemUtils } from "../file-system-utils-JhZ8_Dh7.mjs";
1
+ import { t as FileSystemUtils } from "../file-system-utils-DdgNpyGk.mjs";
2
2
  export { FileSystemUtils };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as sqlduckDefaultLogtapeLogger, r as flowbladeLogtapeSqlduckConfig, t as FileSystemUtils } from "./file-system-utils-JhZ8_Dh7.mjs";
1
+ import { n as sqlduckDefaultLogtapeLogger, r as flowbladeLogtapeSqlduckConfig, t as FileSystemUtils } from "./file-system-utils-DdgNpyGk.mjs";
2
2
  import { t as duckReservedKeywords } from "./duck-reserved-keywords-D_yi_PVW.mjs";
3
3
  import { c as duckValidatorsZod, r as assertValidAliasName, s as duckConnectionParamsZodSchema } from "./zod-uQPzaK64.mjs";
4
4
  import { BIGINT, BOOLEAN, DOUBLE, DuckDBDataChunk, DuckDBInstanceCache, DuckDBTimestampMillisecondsValue, DuckDBTypeId, ENUM, FLOAT, HUGEINT, INTEGER, SMALLINT, TIMESTAMP, TIMESTAMP_MS, TINYINT, UBIGINT, UHUGEINT, UINTEGER, USMALLINT, UTINYINT, UUID, VARCHAR } from "@duckdb/node-api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowblade/sqlduck",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -41,6 +41,7 @@
41
41
  "docgen-typedoc": "rimraf ./docs/api && typedoc --plugin typedoc-plugin-markdown --out ./docs/api",
42
42
  "bench": "vitest bench --run",
43
43
  "bench-bun": "bun --bun run vitest bench --run",
44
+ "bench-deno": "deno run -A npm:vitest bench --run",
44
45
  "bench-mitata": "node --experimental-strip-types --expose-gc bench/run_mitata.ts",
45
46
  "bench-mitata-bun": "bun --expose-gc bench/run_mitata.ts",
46
47
  "bench-codspeed": "cross-env CODSPEED=1 vitest bench --run",