crabatool 1.0.832 → 1.0.834

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.834",
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
  }