fyn 1.1.2 → 1.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/bin/bundle.js CHANGED
@@ -6,7 +6,16 @@ if (maj >= 8) {
6
6
  try {
7
7
  require("../dist/v8-compile-cache");
8
8
  } catch (err) {
9
- //
9
+ if (
10
+ // is error caused by module not found?
11
+ (err.code &&
12
+ err.code !== "MODULE_NOT_FOUND" &&
13
+ err.message.indexOf("Cannot find module") < 0) ||
14
+ // is the not found module the one we are trying to require?
15
+ err.message.indexOf("v8-compile-cache") < 0
16
+ ) {
17
+ console.log(`Failed loading v8-compile-cache`, err);
18
+ }
10
19
  }
11
20
  module.exports = "../dist/fyn.js";
12
21
  } else {
package/bin/fyn.js CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  require(require("./bundle"))
4
4
  .run()
5
+ .then(() => {
6
+ process.exit(0);
7
+ })
5
8
  .catch(err => {
9
+ console.log(err);
6
10
  process.exit(1);
7
11
  });