pear-runtime-updater 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -85,7 +85,7 @@ module.exports = class PearRuntimeUpdater extends ReadyResource {
85
85
  await this.drive.close()
86
86
  if (this.checkout !== null) await this.checkout.close()
87
87
  await this.store.close()
88
- await this.swarm.destroy()
88
+ if (this.swarm) await this.swarm.destroy()
89
89
  }
90
90
 
91
91
  async applyUpdate() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pear-runtime-updater",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Listens for OTA Pear App updates",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Holepunch Inc",