@kernocal/validate-store 0.1.2 → 0.1.4

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.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import "wxt";
2
2
  import { defineWxtModule } from "wxt/modules";
3
3
  import { resolve } from "node:path";
4
+ import { pathToFileURL } from "node:url";
4
5
  import { access, mkdir, writeFile } from "node:fs/promises";
5
6
  import defu from "defu";
6
7
  import sharp from "sharp";
@@ -105,7 +106,7 @@ var src_default = defineWxtModule({
105
106
  storeExportsDir: resolve(wxt.config.root, "store/exports")
106
107
  });
107
108
  if (!parsedOptions.enabled) return wxt.logger.warn("`[validate-store]` module disabled");
108
- const { storeData } = await import(parsedOptions.storeDataSrc);
109
+ const { storeData } = await import(pathToFileURL(parsedOptions.storeDataSrc).href);
109
110
  wxt.hook("build:manifestGenerated", async (_wxt, manifest) => {
110
111
  if (_wxt.config.mode === "development") return;
111
112
  const issues = [];
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "wxt-module"
11
11
  ],
12
12
  "license": "MIT",
13
- "version": "0.1.2",
13
+ "version": "0.1.4",
14
14
  "type": "module",
15
15
  "module": "./dist/index.js",
16
16
  "types": "./dist/index.d.ts",
File without changes