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 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
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koonjs",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Browser-impersonating HTTP client with TLS/HTTP2 fingerprint spoofing",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
Binary file
Binary file