wgt-node-utils 1.2.11 → 1.2.13

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": "wgt-node-utils",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -272,8 +272,10 @@ class wgtNodeUtils {
272
272
  this.fileContents[file] = fs.readFileSync(filePath, 'utf8');
273
273
  }
274
274
  });
275
- // 增加react依赖
276
- fileContents['preact.min.js'] = fs.readFileSync(path.join(__dirname, `../${name}/dist/preact.min.js`),'utf8');
275
+
276
+ // 增加preact依赖
277
+ this.fileContents['preact.min.js'] = fs.readFileSync(path.join(dirname, `../${buildName}/dist/preact.min.js`),'utf8');
278
+
277
279
  console.log('静态资源列表:');
278
280
 
279
281
  const f2eFileLoadStatus = Object.keys(this.fileContents).every((item) => {
@@ -431,6 +433,7 @@ class wgtNodeUtils {
431
433
  return list.map((item = {}) => {
432
434
  return {
433
435
  id: item.game_id,
436
+ game_category: item.game_category,
434
437
  icon: item.base_icon,
435
438
  path: item.game_path,
436
439
  name: item.game_name,
@@ -653,7 +656,7 @@ class wgtNodeUtils {
653
656
  let f2eFiles = {
654
657
  jsStr: this.fileContents[jsName],
655
658
  cssStr: this.fileContents[cssName],
656
- preactStr: fileContents['preact.min.js']
659
+ preactStr: this.fileContents['preact.min.js']
657
660
  };
658
661
 
659
662
  // 每次启动服务后仅对第一次失败进行验证