crabatool 1.0.832 → 1.0.836

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/lib/server.js CHANGED
@@ -171,7 +171,7 @@ function createServer(app, options) {
171
171
  res.setHeader('Content-Type', 'text/html; charset=utf-8'); // 当做文本输出,才能显示到iframe中
172
172
  }
173
173
  var name = path.basename(pathname);
174
- if (name == 'index.html' || name == 'login.html') {
174
+ if (name == 'index.html' || name == 'login.html') { // 入口文件:首页和登录页面不能被缓存
175
175
  res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
176
176
  res.setHeader('Pragma', 'no-cache');
177
177
  res.setHeader('Expires', '0');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.832",
3
+ "version": "1.0.836",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/tool/checkjs.js CHANGED
@@ -212,7 +212,7 @@ module.exports.start = async function() {
212
212
 
213
213
  var branchName = getBranchName();
214
214
  var modName = getModName();
215
- var id = modName + '_' + new Date().getTime();
215
+ var id = modName + '_' + branchName + '_' + new Date().getTime();
216
216
  var webhookList = [];
217
217
  var info = [];
218
218
  var localVersion = upgrade.getLocalVersion();
@@ -502,8 +502,8 @@ module.exports.start = async function() {
502
502
  detail.push("");
503
503
  detail.push("| Label特性 | 优化建议 |");
504
504
  detail.push("| ----- | ------ |");
505
- ids.forEach((id) => {
506
- detail.push(`| ${id} | 去掉ReadOnly |`);
505
+ ids.forEach((sid) => {
506
+ detail.push(`| ${sid} | 去掉ReadOnly |`);
507
507
  });
508
508
  });
509
509
  }
@@ -539,6 +539,8 @@ module.exports.start = async function() {
539
539
  // 推送报告到钉钉和文档服务器端
540
540
  var reportUrl = getReportUrl(id);
541
541
  var content = info.concat(detail).join(' \r\n');
542
+ console.log(id);
543
+
542
544
  postReport(id, reportUrl, content, sonar);
543
545
 
544
546
  postReportData(reportData); // 推送汇总报告
@@ -800,8 +802,9 @@ function postBaseData(data0, gspxData) {
800
802
  if (!config.checkCustomControl) {
801
803
  return;
802
804
  }
803
- console.log('3.保存业务组件清单到基础数据平台');
805
+ console.log('3. 保存业务组件清单到基础数据平台');
804
806
 
807
+ console.log('bizList:', data0.projectName, data0.branchName, Object.keys(gspxData.bizList).length, Object.keys(gspxData.customs1).length);
805
808
  try {
806
809
  axios({
807
810
  method: 'post',