@thepassle/app-tools 0.7.0 → 0.7.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/pwa/index.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thepassle/app-tools",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -12,13 +12,13 @@
12
12
  "./state.js": "./state.js",
13
13
  "./pwa.js": "./pwa.js",
14
14
  "./dialog.js": "./dialog.js",
15
- "./pwa/*.js": "./pwa/*.js",
15
+ "./pwa/*": "./pwa/*",
16
16
  "./api.js": "./api.js",
17
17
  "./router.js": "./router.js",
18
- "./router/plugins/*.js": "./router/plugins/*.js",
19
- "./api/plugins/*.js": "./api/plugins/*.js",
18
+ "./router/plugins/*": "./router/plugins/*",
19
+ "./api/plugins/*": "./api/plugins/*",
20
20
  "./utils.js": "./utils.js",
21
- "./utils/*.js": "./utils/*.js",
21
+ "./utils/*": "./utils/*",
22
22
  "./env.js": {
23
23
  "development": "./env/env-dev.js",
24
24
  "default": "./env/env-prod.js"
package/pwa/index.js CHANGED
@@ -29,8 +29,7 @@ class Pwa extends EventTarget {
29
29
  installPrompt;
30
30
  /** @type {ServiceWorker | undefined} */
31
31
  __waitingServiceWorker;
32
- /** @type {boolean} */
33
- isInstalled = media.STANDALONE();
32
+ isInstalled = /** @type {boolean} */ (media.STANDALONE());
34
33
 
35
34
  /** Triggers the install prompt, when it's available. You can call this method when the `'installable'` event has fired. */
36
35
  triggerPrompt = async () => {
@@ -58,7 +57,7 @@ class Pwa extends EventTarget {
58
57
 
59
58
  /**
60
59
  * @param {string} swPath
61
- * @param {RegistrationOptions} opts
60
+ * @param {RegistrationOptions} [opts]
62
61
  * @returns {Promise<ServiceWorkerRegistration> | Promise<void>}
63
62
  */
64
63
  register(swPath, opts) {