Comparing version 1.1.3 to 1.1.4
@@ -7,4 +7,7 @@ ####################################################################### | ||
ver 1.1.4 | ||
* Bugfix: require.text不支持UTF-8。 | ||
ver 1.1.3 | ||
* 改进:土豆插件支持多层相对路径。 | ||
* 改进:支持多层相对路径。 | ||
@@ -11,0 +14,0 @@ ver 1.1.2 |
{ | ||
"name": "tpm", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Static Package Manager", | ||
@@ -5,0 +5,0 @@ "author": "Longhao Luo <lhluo@tudou.com>", |
11
util.js
@@ -375,12 +375,3 @@ | ||
} | ||
var s = ''; | ||
try { | ||
s = Fs.readFileSync(f, { | ||
encoding: 'utf-8' | ||
}); | ||
} catch(e) { | ||
console.error(e); | ||
s = e.toString(); | ||
} | ||
var s = readFileSync(f, 'utf-8'); | ||
s = s.replace(/^\uFEFF/, ''); | ||
@@ -387,0 +378,0 @@ s = s.replace(/(\r\n|\r|\n)\s*/g, ' '); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1670427
38704