@salesforcedevs/docs-components 1.3.300-async-fix-alpha2 → 1.3.300-async-fix-alpha3

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": "@salesforcedevs/docs-components",
3
- "version": "1.3.300-async-fix-alpha2",
3
+ "version": "1.3.300-async-fix-alpha3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -17,8 +17,7 @@
17
17
  "lodash.orderby": "^4.6.0",
18
18
  "lodash.uniqby": "^4.7.0",
19
19
  "query-string": "^7.1.3",
20
- "sentence-case": "^3.0.4",
21
- "yieldable-json": "^2.0.1"
20
+ "sentence-case": "^3.0.4"
22
21
  },
23
22
  "devDependencies": {
24
23
  "@types/classnames": "^2.2.10",
@@ -143,9 +143,11 @@ function clone(value: any): Promise<any> {
143
143
  worker.postMessage(jsonObj);
144
144
  } catch (err) {
145
145
  reject(err);
146
+ worker.terminate();
146
147
  }
147
148
 
148
149
  worker.onmessage = function (e) {
150
+ worker.terminate();
149
151
  if (e.data.success) {
150
152
  resolve(e.data.data);
151
153
  } else {
@@ -154,6 +156,7 @@ function clone(value: any): Promise<any> {
154
156
  };
155
157
 
156
158
  worker.onerror = function (e) {
159
+ worker.terminate();
157
160
  reject(new Error(e.message));
158
161
  };
159
162
  } else {