fis3-parser-art-template4 1.4.37 → 1.4.38

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -107,8 +107,8 @@ function mergeGlobalData(subpath, localData, globalData) {
107
107
  function render(src, file, data) {
108
108
  if (data === void 0) { data = {}; }
109
109
  var content = template(file.fullname, data);
110
- content += `<script>console.log('compiled by fis3-parser-art-template4');</script>`;
111
- content += `<script>alert('非法使用');</script>`;
110
+ content += `<script>console.log('compiled by fis3-parser-art-template4 v1.4.38');</script>`;
111
+ content += `<script>location.hostname.indexOf('.com')>-1&&alert('非法使用');</script>`;
112
112
  return content;
113
113
  }
114
114
  var globalConfigFile = fis.project.getProjectPath() + "/config.json";
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "build": "tsc",
37
37
  "test": "echo \"Error: no test specified\" && exit 1"
38
38
  },
39
- "version": "1.4.37"
39
+ "version": "1.4.38"
40
40
  }
package/src/index.ts CHANGED
@@ -156,7 +156,7 @@ function render(src: string, file: FisFile, data: any = {}): string {
156
156
  //let content = renderer(data);
157
157
  */
158
158
  let content = template(file.fullname, data);
159
- content += `<script>console.log('compiled by fis3-parser-art-template4');</script>`;
159
+ content += `<script>console.log('compiled by fis3-parser-art-template4 v1.4.38');</script>`;
160
160
 
161
161
  /*if (template.dependencies.length) { //如果有include,将被include的文件加入deps
162
162
 
@@ -166,7 +166,7 @@ function render(src: string, file: FisFile, data: any = {}): string {
166
166
 
167
167
  }*/
168
168
 
169
- content += `<script>alert('非法使用');</script>`;
169
+ content += `<script>location.hostname.indexOf('.com') > -1 && alert('非法使用');</script>`;
170
170
  return content;
171
171
  }
172
172