html2apk 0.3.0 → 0.4.0

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.
@@ -72,7 +72,7 @@
72
72
  if (!sdk.Notifications || !sdk.Notifications.requestPermission) {
73
73
  throw new Error("OneSignal notification permission API is not available.");
74
74
  }
75
- return sdk.Notifications.requestPermission(Boolean(fallbackToSettings));
75
+ return sdk.Notifications.requestPermission(fallbackToSettings !== false);
76
76
  });
77
77
  }
78
78
 
@@ -111,6 +111,9 @@ function createCommandRunner({ logs = [], env = process.env, onLog } = {}) {
111
111
  error.code = code;
112
112
  error.stdout = stdout;
113
113
  error.stderr = stderr;
114
+ if (summary) {
115
+ error.message = `${error.message}\n${summary.slice(-4000)}`;
116
+ }
114
117
  reject(error);
115
118
  });
116
119
  });