assets-expander
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -0,1 +1,7 @@ | ||
0.4.0 / 2012-08-06 | ||
================== | ||
* Added full windows support with tests. | ||
* Patched yaml.js to support CRLF line endings. | ||
0.3.1 / 2012-08-02 | ||
@@ -2,0 +8,0 @@ ================== |
@@ -10,3 +10,3 @@ var fs = require('fs'), | ||
try { | ||
this.yamlSource = yaml.eval(fs.readFileSync(pathToYaml).toString()); | ||
this.yamlSource = yaml.eval(fs.readFileSync(pathToYaml, 'utf-8')); | ||
} catch (e) { | ||
@@ -13,0 +13,0 @@ throw new AssetsExpander.YamlSyntaxError(e.toString()); |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"main": "index.js", | ||
@@ -14,0 +14,0 @@ "devDependencies": { |
@@ -12,2 +12,4 @@ | ||
var isWindows = process.platform == 'win32'; | ||
/** | ||
@@ -26,3 +28,3 @@ * Return 'near "context"' where context | ||
.slice(0, 25) | ||
.replace(/\n/g, '\\n') | ||
.replace(isWindows ? /\r\n/g : /\n/g, '\\n') | ||
.replace(/"/g, '\\\"') | ||
@@ -40,5 +42,5 @@ return 'near "' + str + '"' | ||
['comment', /^#[^\n]*/], | ||
['indent', /^\n( *)/], | ||
['indent', isWindows ? /^\r\n( *)/ : /^\n( *)/], | ||
['space', /^ +/], | ||
['empty', /^\n$/], | ||
['empty', isWindows ? /^\r\n$/ : /^\n$/], | ||
['true', /^(enabled|true|yes|on)/], | ||
@@ -45,0 +47,0 @@ ['false', /^(disabled|false|no|off)/], |
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
27433
24
732