Comparing version 2.2.0 to 2.2.1
@@ -0,1 +1,6 @@ | ||
2.2.1 - March 17 2015 | ||
===================== | ||
* Parse dates generated by Date#toISOString() ([#20](https://github.com/BinaryMuse/toml-node/issues/20)) | ||
2.2.0 - Feb 26 2015 | ||
@@ -2,0 +7,0 @@ =================== |
{ | ||
"name": "toml", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "TOML parser for Node.js (parses TOML spec v0.4.0)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,2 +22,4 @@ TOML Parser for Node.js | ||
toml-node also works with browser module bundlers like Browserify and webpack. | ||
Usage | ||
@@ -78,6 +80,6 @@ ----- | ||
npm install | ||
./generate.sh | ||
npm run build | ||
npm test | ||
Any changes to `src/toml.peg` requires a regeneration of the parser with `./generate.sh`. | ||
Any changes to `src/toml.peg` requires a regeneration of the parser with `npm run build`. | ||
@@ -84,0 +86,0 @@ toml-node is tested on Travis CI and is tested against: |
@@ -299,2 +299,14 @@ var toml = require('../'); | ||
exports.testDateFromIsoString = function(test) { | ||
// https://github.com/BinaryMuse/toml-node/issues/20 | ||
var date = new Date(), | ||
dateStr = date.toISOString(), | ||
tomlStr = "a = " + dateStr; | ||
test.deepEqual(toml.parse(tomlStr), { | ||
a: date | ||
}); | ||
test.done(); | ||
}; | ||
exports.testInlineTables = function(test) { | ||
@@ -301,0 +313,0 @@ var str = fs.readFileSync(__dirname + "/inline_tables.toml", 'utf8'), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
130160
3776
94