csskit 0.0.39 → 0.0.40-canary.76ff45b523

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/addon.js CHANGED
@@ -24,16 +24,18 @@ function platformPackage() {
24
24
  function loadAddon() {
25
25
  const pkg = platformPackage();
26
26
  const candidates = pkg ? [`${pkg}/csskit.node`, './csskit.node'] : ['./csskit.node'];
27
+ let cause;
27
28
  for (const spec of candidates) {
28
29
  try {
29
30
  return requireFrom(spec);
30
- } catch {
31
- // try the next candidate
31
+ } catch (error) {
32
+ cause ??= error;
32
33
  }
33
34
  }
34
35
  throw new Error(
35
36
  `csskit: no native addon for ${process.platform}-${process.arch}. ` +
36
37
  `Install the '${pkg || 'csskit-<platform>'}' package, or use the WebAssembly build at 'csskit/bundle'.`,
38
+ { cause },
37
39
  );
38
40
  }
39
41
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "csskit",
3
- "version": "0.0.39",
3
+ "version": "0.0.40-canary.76ff45b523",
4
4
  "description": "Refreshing CSS",
5
5
  "keywords": [],
6
6
  "repository": "https://github.com/csskit/csskit",
@@ -48,11 +48,11 @@
48
48
  "test:wasm": "node --test tests/bundle.test.js"
49
49
  },
50
50
  "optionalDependencies": {
51
- "csskit-darwin-arm64": "0.0.39",
52
- "csskit-darwin-x64": "0.0.39",
53
- "csskit-linux-arm64": "0.0.39",
54
- "csskit-linux-x64": "0.0.39",
55
- "csskit-win32-arm64": "0.0.39",
56
- "csskit-win32-x64": "0.0.39"
51
+ "csskit-darwin-arm64": "0.0.40-canary.76ff45b523",
52
+ "csskit-darwin-x64": "0.0.40-canary.76ff45b523",
53
+ "csskit-linux-arm64": "0.0.40-canary.76ff45b523",
54
+ "csskit-linux-x64": "0.0.40-canary.76ff45b523",
55
+ "csskit-win32-arm64": "0.0.40-canary.76ff45b523",
56
+ "csskit-win32-x64": "0.0.40-canary.76ff45b523"
57
57
  }
58
58
  }