@zohodesk/react-cli 1.1.23 → 1.1.24

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -44,6 +44,10 @@ Now to run app
44
44
 
45
45
  # Change Logs
46
46
 
47
+ # 1.1.24 (29-06-2024)
48
+
49
+ - Worker loading logic fixes.
50
+
47
51
  # 1.1.23 (28-06-2024)
48
52
 
49
53
  **Features**
@@ -112,10 +112,9 @@ function pitch(request) {
112
112
  }
113
113
 
114
114
  function workerCode() {
115
- if (this.workerInstance) {
116
- return this.workerInstance;
117
- }
118
-
115
+ // if (this.workerInstance) {
116
+ // return this.workerInstance;
117
+ // }
119
118
  let blob;
120
119
 
121
120
  try {
@@ -127,9 +126,11 @@ function pitch(request) {
127
126
  }
128
127
 
129
128
  const url = window.URL || window.webkitURL;
130
- const blobUrl = url.createObjectURL(blob);
131
- this.workerInstance = new Worker(blobUrl);
132
- return this.workerInstance;
129
+ const blobUrl = url.createObjectURL(blob); // this.workerInstance = new Worker(blobUrl);
130
+ // return this.workerInstance;
131
+
132
+ let worker = new Worker(blobUrl);
133
+ return worker;
133
134
  }
134
135
 
135
136
  return cb(null, `const workerObj ={\n
@@ -137,7 +138,6 @@ function pitch(request) {
137
138
  workerUrl: __webpack_public_path__ + ${JSON.stringify(entry)}, \n
138
139
  getInstance: ${workerCode} \n
139
140
  };\n
140
- workerObj.getInstance();
141
141
  ${options.esModule ? 'export default' : 'module.exports ='} workerObj;
142
142
  `); // return cb(
143
143
  // null,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/react-cli",
9
- "version": "1.1.23",
9
+ "version": "1.1.24",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@babel/cli": "7.10.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "A CLI tool for build modern web application and libraries",
5
5
  "scripts": {
6
6
  "init": "node ./lib/utils/init.js",