tsondb 0.5.4 → 0.5.5

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/lib/bin/tsondb.js CHANGED
@@ -11,6 +11,7 @@ import Debug from "debug";
11
11
  import { access, constants } from "node:fs/promises";
12
12
  import { join } from "node:path";
13
13
  import { cwd } from "node:process";
14
+ import { pathToFileURL } from "node:url";
14
15
  import { parseArguments } from "simple-cli-args";
15
16
  import { format, generateOutputs, serve, validate } from "../node/index.js";
16
17
  const debug = Debug("tsondb:cli");
@@ -47,7 +48,7 @@ const config = await (async () => {
47
48
  debug(`could not use config file ${fullPath}, not found`);
48
49
  continue;
49
50
  }
50
- const foundConfigModule = (await import(__rewriteRelativeImportExtension(fullPath)));
51
+ const foundConfigModule = (await import(__rewriteRelativeImportExtension(pathToFileURL(fullPath).toString())));
51
52
  if ("default" in foundConfigModule) {
52
53
  debug(`config file ${fullPath} found with config`);
53
54
  return foundConfigModule.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsondb",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Lukas Obermann",