binhend 2.1.33 → 2.1.34

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": "binhend",
3
- "version": "2.1.33",
3
+ "version": "2.1.34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "Nguyen Duc Binh",
@@ -40,7 +40,7 @@ function generate(sourceRootPath, outputRootPath, callbackDone) {
40
40
  var fileContent = readFileSync(fileSourcePath, { encoding: 'utf8', flag: 'r' });
41
41
  var formatCode = mapConfigValues(fileContent.trim()); // for .c.js files, not build code but still bind config values
42
42
 
43
- if (!isExceptedJS(file)) {
43
+ if (!isExceptedJS(filename)) {
44
44
  // except for .c.js files, build code and bind config values for other JS files (.js, .cjs, .mjs)
45
45
  formatCode = PREFIX_CODE + formatCode + '\r\n\r\n;binh.final(module);';
46
46
  }