Comparing version 2.0.4 to 2.0.5
@@ -0,5 +1,16 @@ | ||
2.0.5 - May 5 2014 | ||
================== | ||
### Bug Fixes | ||
* Fix loop iteration leak, by [sebmck](https://github.com/sebmck) ([#12](https://github.com/BinaryMuse/toml-node/pull/12)) | ||
### Development | ||
* Tests now run JSHint on `lib/compiler.js` | ||
2.0.4 - Mar 9 2014 | ||
================== | ||
### Bug Fiex | ||
### Bug Fixes | ||
@@ -6,0 +17,0 @@ * Fix failure on duplicate table name inside table array ([#11](https://github.com/BinaryMuse/toml-node/issues/11)) |
@@ -12,3 +12,3 @@ function compile(nodes) { | ||
var node; | ||
for (i in nodes) { | ||
for (var i in nodes) { | ||
node = nodes[i]; | ||
@@ -50,3 +50,3 @@ switch (node.type) { | ||
if (value.type == 'Array') | ||
context[key] = reduceArrayWithTypeChecking(value.value) | ||
context[key] = reduceArrayWithTypeChecking(value.value); | ||
else | ||
@@ -106,3 +106,3 @@ context[key] = value.value; | ||
for (i in keys) { | ||
for (var i in keys) { | ||
key = keys[i]; | ||
@@ -128,5 +128,5 @@ if (typeof ctx[key] === 'undefined') { | ||
var firstType = null; | ||
for(i in array) { | ||
for(var i in array) { | ||
var node = array[i]; | ||
if (firstType == null) { | ||
if (firstType === null) { | ||
firstType = node.type; | ||
@@ -153,7 +153,7 @@ } else { | ||
if (path[0] === '.') | ||
genError("Cannot start a table key with '.'.", line, column) | ||
genError("Cannot start a table key with '.'.", line, column); | ||
else if (path[path.length - 1] === '.') | ||
genError("Cannot end a table key with '.'.", line, column) | ||
genError("Cannot end a table key with '.'.", line, column); | ||
} | ||
}; | ||
} | ||
@@ -160,0 +160,0 @@ module.exports = { |
{ | ||
"name": "toml", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "TOML parser for Node.js", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "nodeunit test/test_*.js" | ||
"test": "jshint lib/compiler.js && nodeunit test/test_*.js" | ||
}, | ||
@@ -17,2 +17,3 @@ "repository": "git://github.com/BinaryMuse/toml-node.git", | ||
"devDependencies": { | ||
"jshint": "*", | ||
"nodeunit": "~0.8.6", | ||
@@ -19,0 +20,0 @@ "pegjs": "~0.8.0" |
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
86241
3