@fideus-labs/ngff-zarr 0.2.1 → 0.2.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"itkwasm-node.d.ts","sourceRoot":"","sources":["../../src/methods/itkwasm-node.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA2fnD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,EACjD,SAAS,EAAE,UAAU,GAAG,YAAY,GAAG,aAAa,GACnD,OAAO,CAAC,SAAS,EAAE,CAAC,CAsHtB"}
1
+ {"version":3,"file":"itkwasm-node.d.ts","sourceRoot":"","sources":["../../src/methods/itkwasm-node.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA2fnD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,EACjD,SAAS,EAAE,UAAU,GAAG,YAAY,GAAG,aAAa,GACnD,OAAO,CAAC,SAAS,EAAE,CAAC,CAsHtB"}
@@ -3,6 +3,11 @@
3
3
  /**
4
4
  * Node-compatible ITK-Wasm downsampling support
5
5
  * Uses native WASM implementations from @itk-wasm/downsample
6
+ *
7
+ * Note: Imports Node-specific functions that are available when the
8
+ * "node" condition is active in package.json exports resolution.
9
+ * The @itk-wasm/downsample package uses conditional exports to provide
10
+ * different implementations for browser vs Node environments.
6
11
  */
7
12
  import { downsampleBinShrinkNode as downsampleBinShrink, downsampleLabelImageNode as downsampleLabelImage, downsampleNode as downsample, } from "@itk-wasm/downsample";
8
13
  import * as zarr from "zarrita";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fideus-labs/ngff-zarr",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "TypeScript implementation of ngff-zarr for reading and writing OME-Zarr files",
5
5
  "keywords": [
6
6
  "ome-zarr",
@@ -28,6 +28,7 @@
28
28
  ".": {
29
29
  "types": "./esm/mod.d.ts",
30
30
  "browser": "./esm/browser-mod.js",
31
+ "node": "./esm/mod.js",
31
32
  "import": "./esm/mod.js",
32
33
  "require": "./script/mod.js",
33
34
  "default": "./esm/mod.js"
@@ -52,6 +53,8 @@
52
53
  }
53
54
  },
54
55
  "browser": {
56
+ "./esm/methods/itkwasm.js": "./esm/methods/itkwasm-browser.js",
57
+ "./script/methods/itkwasm.js": "./script/methods/itkwasm-browser.js",
55
58
  "./esm/methods/itkwasm-node.js": "./esm/methods/itkwasm-browser.js",
56
59
  "./script/methods/itkwasm-node.js": "./script/methods/itkwasm-browser.js"
57
60
  },
@@ -1 +1 @@
1
- {"version":3,"file":"itkwasm-node.d.ts","sourceRoot":"","sources":["../../src/methods/itkwasm-node.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA2fnD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,EACjD,SAAS,EAAE,UAAU,GAAG,YAAY,GAAG,aAAa,GACnD,OAAO,CAAC,SAAS,EAAE,CAAC,CAsHtB"}
1
+ {"version":3,"file":"itkwasm-node.d.ts","sourceRoot":"","sources":["../../src/methods/itkwasm-node.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA2fnD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,EACjD,SAAS,EAAE,UAAU,GAAG,YAAY,GAAG,aAAa,GACnD,OAAO,CAAC,SAAS,EAAE,CAAC,CAsHtB"}
@@ -29,6 +29,11 @@ exports.downsampleItkWasm = downsampleItkWasm;
29
29
  /**
30
30
  * Node-compatible ITK-Wasm downsampling support
31
31
  * Uses native WASM implementations from @itk-wasm/downsample
32
+ *
33
+ * Note: Imports Node-specific functions that are available when the
34
+ * "node" condition is active in package.json exports resolution.
35
+ * The @itk-wasm/downsample package uses conditional exports to provide
36
+ * different implementations for browser vs Node environments.
32
37
  */
33
38
  const downsample_1 = require("@itk-wasm/downsample");
34
39
  const zarr = __importStar(require("zarrita"));