occt-gltf-addon 0.1.2 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "occt-gltf-addon",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "STEP (.step/.stp) to glTF (GLB) converter using OpenCascade (OCCT) via a Node.js N-API addon",
5
5
  "type": "commonjs",
6
6
  "main": "index.js",
@@ -63,7 +63,7 @@
63
63
  "docker:image:linux-amd64:nocache": "docker buildx build --no-cache --platform linux/amd64 -f docker/Dockerfile.linux-amd64 -t occt-addon-build:linux-amd64 ../.."
64
64
  },
65
65
  "optionalDependencies": {
66
- "occt-gltf-addon-linux-x64": "0.1.2"
66
+ "occt-gltf-addon-linux-x64": "0.1.3"
67
67
  },
68
68
  "dependencies": {
69
69
  "cmake-js": "^7.3.1",
@@ -46,6 +46,14 @@ function main() {
46
46
  // Prebuilt missing or not loadable (e.g. GLIBC mismatch).
47
47
  // On Linux, the default expectation is to use the prebuilt package (no system OCCT required).
48
48
  // Only fall back to local build when the user explicitly opts in.
49
+ const detail = String(e && (e.stack || e.message || e));
50
+ if (e && e.code === 'MODULE_NOT_FOUND') {
51
+ note(`Prebuilt package ${prebuiltName} is not installed (MODULE_NOT_FOUND).`);
52
+ note('This usually means optional dependencies were skipped, or the prebuilt package was not published for this version yet.');
53
+ } else {
54
+ note(`Prebuilt package ${prebuiltName} failed to load.`);
55
+ note(detail);
56
+ }
49
57
  const canBuildFromSource =
50
58
  process.env.OCCT_GLTF_ADDON_FORCE_BUILD === '1' || !!process.env.OCCT_ROOT;
51
59
  if (!canBuildFromSource) {