Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

toml

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toml - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

13

CHANGELOG.md

@@ -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))

16

lib/compiler.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc