koonjs 0.5.0 → 0.5.1
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/index.js +4 -2
- package/koon.linux-arm64-gnu.node +0 -0
- package/koon.linux-x64-gnu.node +0 -0
- package/koon.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
- package/koon.darwin-arm64.node +0 -0
- package/koon.darwin-x64.node +0 -0
package/index.js
CHANGED
|
@@ -22,9 +22,11 @@ let nativeModule;
|
|
|
22
22
|
try {
|
|
23
23
|
nativeModule = require(`./${binding}`);
|
|
24
24
|
} catch (e) {
|
|
25
|
+
const hint = platform === 'darwin'
|
|
26
|
+
? ` macOS binary may not be included in this version — try: npm install koonjs@0.5.0`
|
|
27
|
+
: ` Make sure you've built it with: cargo build --release -p koon-node`;
|
|
25
28
|
throw new Error(
|
|
26
|
-
`koon: failed to load native module ${binding}
|
|
27
|
-
`Make sure you've built it with: cargo build --release -p koon-node\n` +
|
|
29
|
+
`koon: failed to load native module ${binding}.${hint}\n` +
|
|
28
30
|
`Original error: ${e.message}`
|
|
29
31
|
);
|
|
30
32
|
}
|
|
Binary file
|
package/koon.linux-x64-gnu.node
CHANGED
|
Binary file
|
package/koon.win32-x64-msvc.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/koon.darwin-arm64.node
DELETED
|
Binary file
|
package/koon.darwin-x64.node
DELETED
|
Binary file
|