pear-mobile 4.2.0 → 4.2.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/bare.js +4 -0
- package/package.json +1 -1
package/bare.js
CHANGED
|
@@ -26,6 +26,8 @@ module.exports = class PearRuntime extends ReadyResource {
|
|
|
26
26
|
if (!fs.existsSync(appPath)) fs.mkdirSync(appPath, { recursive: true, force: true })
|
|
27
27
|
this.updater = new PearRuntimeUpdater({ ...opts, app: appPath })
|
|
28
28
|
this.updater.on('error', (err) => this.emit('error', err))
|
|
29
|
+
|
|
30
|
+
this.ready().catch(noop)
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
async _open() {
|
|
@@ -47,3 +49,5 @@ module.exports = class PearRuntime extends ReadyResource {
|
|
|
47
49
|
if (this.opts.store) await this.store.close()
|
|
48
50
|
}
|
|
49
51
|
}
|
|
52
|
+
|
|
53
|
+
function noop() {}
|