xm-netcdf-loader 1.0.0 → 1.0.2

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.
@@ -11550,7 +11550,7 @@ function qe() {
11550
11550
  try {
11551
11551
  console.log("Loading netCDF file:", b.name, b.size), e.value = await Xe(
11552
11552
  () => Ye.fromBlobLazy(b, {
11553
- locateFile: (I) => I.endsWith(".wasm") ? new URL("../wasm/netcdf4-wasm.wasm", import.meta.url).href : I
11553
+ locateFile: (I) => I.endsWith(".wasm") ? new URL("/wasm/netcdf4-wasm.wasm", import.meta.url).href : I
11554
11554
  }),
11555
11555
  2,
11556
11556
  1e3
@@ -11751,10 +11751,10 @@ const jr = (t) => {
11751
11751
  loadNetCdfFile: m
11752
11752
  } = qe(), g = a, h = B(() => Xt(u.variables || {}));
11753
11753
  async function d(b) {
11754
- if (!b) return;
11754
+ if (console.log(b, "handleFileSelect进入了"), !b) return;
11755
11755
  e.value = [], i.value = null;
11756
11756
  const x = ot.validateNetCDFFile(b);
11757
- if (x.length > 0) {
11757
+ if (console.log(x, "fileErrors"), x.length > 0) {
11758
11758
  e.value = x, x.forEach((p) => {
11759
11759
  n.handle(
11760
11760
  new ul(nl.FILE_READ, p, Z.ERROR),