textbrowser 0.54.3 → 0.54.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textbrowser",
3
- "version": "0.54.3",
3
+ "version": "0.54.5",
4
4
  "description": "Multilinear text browser",
5
5
  "type": "module",
6
6
  "main": "dist/index-es.min.js",
@@ -16,6 +16,7 @@
16
16
  },
17
17
  "scripts": {
18
18
  "tsc": "tsc",
19
+ "prepublishOnly": "npm run rollup",
19
20
  "server": "./server/main.js --allowPlugins --namespace=test",
20
21
  "start": "static -p 8081",
21
22
  "rollup": "rollup -c",
@@ -125,7 +125,7 @@ export const respondToState = async ({
125
125
  // We use this promise for rejecting (inside a listener)
126
126
  // to a common catch and to prevent continuation by
127
127
  // failing to return
128
- return new Promise(async () => { // eslint-disable-line no-async-promise-executor -- See above
128
+ return new Promise(async (resolve) => { // eslint-disable-line no-async-promise-executor -- See above
129
129
  navigator.serviceWorker.addEventListener('message', ({data}) => {
130
130
  const {message, type, name, errorType} = data;
131
131
  console.log('msg1', message, r);
@@ -170,7 +170,7 @@ export const respondToState = async ({
170
170
  // location.replace(location); // Avoids adding to browser history)
171
171
 
172
172
  // This will cause jankiness and unnecessarily show languages selection
173
- // resolve();
173
+ resolve(undefined);
174
174
  return;
175
175
  case 'error':
176
176
  logger.addLogEntry({
@@ -235,6 +235,8 @@ any indication it is installing.
235
235
  }
236
236
  resolve();
237
237
  */
238
+ } else {
239
+ resolve(undefined);
238
240
  }
239
241
  });
240
242
  };