Socket
Socket
Sign inDemoInstall

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 0.2.0 to 0.3.0

2

package.json
{
"name": "toml",
"version": "0.2.0",
"version": "0.3.0",
"description": "TOML parser for Node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -39,4 +39,3 @@ var toml = require('../');

test.ifError(err);
var results = toml.parse(str);
test.deepEqual(results, expected);
test.deepEqual(toml.parse(str), expected);
test.done();

@@ -46,2 +45,10 @@ });

exports.testSupportsTrailingCommasInArrays = function(test) {
var str = 'arr = [1, 2, 3,]';
var expected = { arr: [1, 2, 3] };
var results = toml.parse(str);
test.deepEqual(results, expected);
test.done();
};
exports.testErrorOnKeyOverride = function(test) {

@@ -48,0 +55,0 @@ test.throws(function() {

@@ -7,3 +7,3 @@ /* parser generated by jison 0.4.2 */

terminals_: {2:"error",9:"EOF",10:"COMMENT",12:"EQUALS",14:"IDENTIFIER",15:"[",17:"]",18:".",25:"STR",26:"DATETIME",27:"INTEGER",28:"-",29:"FLOAT",36:",",37:"TRUE",38:"FALSE"},
productions_: [0,[3,1],[4,1],[4,2],[5,1],[5,1],[5,1],[5,2],[6,1],[8,3],[11,1],[7,3],[16,1],[16,3],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,1],[23,1],[21,1],[21,2],[20,1],[20,2],[24,3],[24,3],[24,3],[24,3],[24,3],[24,3],[30,1],[30,3],[31,1],[31,3],[32,1],[32,3],[33,1],[33,3],[34,1],[34,3],[35,1],[35,3],[22,1],[22,1]],
productions_: [0,[3,1],[4,1],[4,2],[5,1],[5,1],[5,1],[5,2],[6,1],[8,3],[11,1],[7,3],[16,1],[16,3],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,1],[23,1],[21,1],[21,2],[20,1],[20,2],[24,3],[24,3],[24,3],[24,3],[24,3],[24,3],[30,1],[30,3],[30,2],[31,1],[31,3],[31,2],[32,1],[32,3],[32,2],[33,1],[33,3],[33,2],[34,1],[34,3],[34,2],[35,1],[35,3],[35,2],[22,1],[22,1]],
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {

@@ -13,3 +13,3 @@

switch (yystate) {
case 1: return parser.toml.data;
case 1: var data = parser.toml.data; parser.toml.data = {}; parser.toml.currentGroup = null; return data;
break;

@@ -66,10 +66,6 @@ case 2: this.$ = $$[$0]

break;
case 34: this.$ = [$$[$0]]
case 35: this.$ = [$$[$0]]
break;
case 35: $$[$0-2].push($$[$0])
case 36: $$[$0-2].push($$[$0])
break;
case 36: this.$ = [$$[$0]]
break;
case 37: $$[$0-2].push($$[$0])
break;
case 38: this.$ = [$$[$0]]

@@ -79,17 +75,21 @@ break;

break;
case 40: this.$ = [$$[$0]]
case 41: this.$ = [$$[$0]]
break;
case 41: $$[$0-2].push($$[$0])
case 42: $$[$0-2].push($$[$0])
break;
case 42: this.$ = [$$[$0]]
case 44: this.$ = [$$[$0]]
break;
case 43: $$[$0-2].push($$[$0])
case 45: $$[$0-2].push($$[$0])
break;
case 44: this.$ = true;
case 47: this.$ = [$$[$0]]
break;
case 45: this.$ = false;
case 48: $$[$0-2].push($$[$0])
break;
case 50: this.$ = true;
break;
case 51: this.$ = false;
break;
}
},
table: [{3:1,4:2,5:3,6:4,7:5,8:6,10:[1,7],11:9,14:[1,10],15:[1,8]},{1:[3]},{1:[2,1],5:11,6:4,7:5,8:6,10:[1,7],11:9,14:[1,10],15:[1,8]},{1:[2,2],9:[1,12],10:[2,2],14:[2,2],15:[2,2]},{1:[2,4],9:[2,4],10:[2,4],14:[2,4],15:[2,4]},{1:[2,5],9:[2,5],10:[2,5],14:[2,5],15:[2,5]},{1:[2,6],9:[2,6],10:[2,6],14:[2,6],15:[2,6]},{1:[2,8],9:[2,8],10:[2,8],14:[2,8],15:[2,8]},{11:14,14:[1,10],16:13},{12:[1,15]},{12:[2,10],17:[2,10],18:[2,10]},{1:[2,3],9:[1,12],10:[2,3],14:[2,3],15:[2,3]},{1:[2,7],9:[2,7],10:[2,7],14:[2,7],15:[2,7]},{17:[1,16],18:[1,17]},{17:[2,12],18:[2,12]},{13:18,15:[1,32],19:19,20:20,21:21,22:22,23:23,24:24,25:[1,25],26:[1,31],27:[1,28],28:[1,27],29:[1,26],37:[1,29],38:[1,30]},{1:[2,11],9:[2,11],10:[2,11],14:[2,11],15:[2,11]},{11:33,14:[1,10]},{1:[2,9],9:[2,9],10:[2,9],14:[2,9],15:[2,9]},{1:[2,14],9:[2,14],10:[2,14],14:[2,14],15:[2,14]},{1:[2,15],9:[2,15],10:[2,15],14:[2,15],15:[2,15]},{1:[2,16],9:[2,16],10:[2,16],14:[2,16],15:[2,16]},{1:[2,17],9:[2,17],10:[2,17],14:[2,17],15:[2,17]},{1:[2,18],9:[2,18],10:[2,18],14:[2,18],15:[2,18]},{1:[2,19],9:[2,19],10:[2,19],14:[2,19],15:[2,19]},{1:[2,20],9:[2,20],10:[2,20],14:[2,20],15:[2,20],17:[2,20],36:[2,20]},{1:[2,24],9:[2,24],10:[2,24],14:[2,24],15:[2,24],17:[2,24],36:[2,24]},{20:34,21:35,27:[1,28],28:[1,27],29:[1,26]},{1:[2,22],9:[2,22],10:[2,22],14:[2,22],15:[2,22],17:[2,22],36:[2,22]},{1:[2,44],9:[2,44],10:[2,44],14:[2,44],15:[2,44],17:[2,44],36:[2,44]},{1:[2,45],9:[2,45],10:[2,45],14:[2,45],15:[2,45],17:[2,45],36:[2,45]},{1:[2,21],9:[2,21],10:[2,21],14:[2,21],15:[2,21],17:[2,21],36:[2,21]},{15:[1,32],19:42,20:43,21:44,22:45,23:46,24:47,25:[1,25],26:[1,31],27:[1,28],28:[1,27],29:[1,26],30:36,31:37,32:38,33:39,34:40,35:41,37:[1,29],38:[1,30]},{17:[2,13],18:[2,13]},{1:[2,25],9:[2,25],10:[2,25],14:[2,25],15:[2,25],17:[2,25],36:[2,25]},{1:[2,23],9:[2,23],10:[2,23],14:[2,23],15:[2,23],17:[2,23],36:[2,23]},{17:[1,48],36:[1,49]},{17:[1,50],36:[1,51]},{17:[1,52],36:[1,53]},{17:[1,54],36:[1,55]},{17:[1,56],36:[1,57]},{17:[1,58],36:[1,59]},{17:[2,32],36:[2,32]},{17:[2,34],36:[2,34]},{17:[2,36],36:[2,36]},{17:[2,38],36:[2,38]},{17:[2,40],36:[2,40]},{17:[2,42],36:[2,42]},{1:[2,26],9:[2,26],10:[2,26],14:[2,26],15:[2,26],17:[2,26],36:[2,26]},{19:60,25:[1,25]},{1:[2,27],9:[2,27],10:[2,27],14:[2,27],15:[2,27],17:[2,27],36:[2,27]},{20:61,28:[1,62],29:[1,26]},{1:[2,28],9:[2,28],10:[2,28],14:[2,28],15:[2,28],17:[2,28],36:[2,28]},{21:63,27:[1,28],28:[1,64]},{1:[2,29],9:[2,29],10:[2,29],14:[2,29],15:[2,29],17:[2,29],36:[2,29]},{22:65,37:[1,29],38:[1,30]},{1:[2,30],9:[2,30],10:[2,30],14:[2,30],15:[2,30],17:[2,30],36:[2,30]},{23:66,26:[1,31]},{1:[2,31],9:[2,31],10:[2,31],14:[2,31],15:[2,31],17:[2,31],36:[2,31]},{15:[1,32],24:67},{17:[2,33],36:[2,33]},{17:[2,35],36:[2,35]},{20:34,28:[1,62],29:[1,26]},{17:[2,37],36:[2,37]},{21:35,27:[1,28],28:[1,64]},{17:[2,39],36:[2,39]},{17:[2,41],36:[2,41]},{17:[2,43],36:[2,43]}],
table: [{3:1,4:2,5:3,6:4,7:5,8:6,10:[1,7],11:9,14:[1,10],15:[1,8]},{1:[3]},{1:[2,1],5:11,6:4,7:5,8:6,10:[1,7],11:9,14:[1,10],15:[1,8]},{1:[2,2],9:[1,12],10:[2,2],14:[2,2],15:[2,2]},{1:[2,4],9:[2,4],10:[2,4],14:[2,4],15:[2,4]},{1:[2,5],9:[2,5],10:[2,5],14:[2,5],15:[2,5]},{1:[2,6],9:[2,6],10:[2,6],14:[2,6],15:[2,6]},{1:[2,8],9:[2,8],10:[2,8],14:[2,8],15:[2,8]},{11:14,14:[1,10],16:13},{12:[1,15]},{12:[2,10],17:[2,10],18:[2,10]},{1:[2,3],9:[1,12],10:[2,3],14:[2,3],15:[2,3]},{1:[2,7],9:[2,7],10:[2,7],14:[2,7],15:[2,7]},{17:[1,16],18:[1,17]},{17:[2,12],18:[2,12]},{13:18,15:[1,32],19:19,20:20,21:21,22:22,23:23,24:24,25:[1,25],26:[1,31],27:[1,28],28:[1,27],29:[1,26],37:[1,29],38:[1,30]},{1:[2,11],9:[2,11],10:[2,11],14:[2,11],15:[2,11]},{11:33,14:[1,10]},{1:[2,9],9:[2,9],10:[2,9],14:[2,9],15:[2,9]},{1:[2,14],9:[2,14],10:[2,14],14:[2,14],15:[2,14]},{1:[2,15],9:[2,15],10:[2,15],14:[2,15],15:[2,15]},{1:[2,16],9:[2,16],10:[2,16],14:[2,16],15:[2,16]},{1:[2,17],9:[2,17],10:[2,17],14:[2,17],15:[2,17]},{1:[2,18],9:[2,18],10:[2,18],14:[2,18],15:[2,18]},{1:[2,19],9:[2,19],10:[2,19],14:[2,19],15:[2,19]},{1:[2,20],9:[2,20],10:[2,20],14:[2,20],15:[2,20],17:[2,20],36:[2,20]},{1:[2,24],9:[2,24],10:[2,24],14:[2,24],15:[2,24],17:[2,24],36:[2,24]},{20:34,21:35,27:[1,28],28:[1,27],29:[1,26]},{1:[2,22],9:[2,22],10:[2,22],14:[2,22],15:[2,22],17:[2,22],36:[2,22]},{1:[2,50],9:[2,50],10:[2,50],14:[2,50],15:[2,50],17:[2,50],36:[2,50]},{1:[2,51],9:[2,51],10:[2,51],14:[2,51],15:[2,51],17:[2,51],36:[2,51]},{1:[2,21],9:[2,21],10:[2,21],14:[2,21],15:[2,21],17:[2,21],36:[2,21]},{15:[1,32],19:42,20:43,21:44,22:45,23:46,24:47,25:[1,25],26:[1,31],27:[1,28],28:[1,27],29:[1,26],30:36,31:37,32:38,33:39,34:40,35:41,37:[1,29],38:[1,30]},{17:[2,13],18:[2,13]},{1:[2,25],9:[2,25],10:[2,25],14:[2,25],15:[2,25],17:[2,25],36:[2,25]},{1:[2,23],9:[2,23],10:[2,23],14:[2,23],15:[2,23],17:[2,23],36:[2,23]},{17:[1,48],36:[1,49]},{17:[1,50],36:[1,51]},{17:[1,52],36:[1,53]},{17:[1,54],36:[1,55]},{17:[1,56],36:[1,57]},{17:[1,58],36:[1,59]},{17:[2,32],36:[2,32]},{17:[2,35],36:[2,35]},{17:[2,38],36:[2,38]},{17:[2,41],36:[2,41]},{17:[2,44],36:[2,44]},{17:[2,47],36:[2,47]},{1:[2,26],9:[2,26],10:[2,26],14:[2,26],15:[2,26],17:[2,26],36:[2,26]},{17:[2,34],19:60,25:[1,25],36:[2,34]},{1:[2,27],9:[2,27],10:[2,27],14:[2,27],15:[2,27],17:[2,27],36:[2,27]},{17:[2,37],20:61,28:[1,62],29:[1,26],36:[2,37]},{1:[2,28],9:[2,28],10:[2,28],14:[2,28],15:[2,28],17:[2,28],36:[2,28]},{17:[2,40],21:63,27:[1,28],28:[1,64],36:[2,40]},{1:[2,29],9:[2,29],10:[2,29],14:[2,29],15:[2,29],17:[2,29],36:[2,29]},{17:[2,43],22:65,36:[2,43],37:[1,29],38:[1,30]},{1:[2,30],9:[2,30],10:[2,30],14:[2,30],15:[2,30],17:[2,30],36:[2,30]},{17:[2,46],23:66,26:[1,31],36:[2,46]},{1:[2,31],9:[2,31],10:[2,31],14:[2,31],15:[2,31],17:[2,31],36:[2,31]},{15:[1,32],17:[2,49],24:67,36:[2,49]},{17:[2,33],36:[2,33]},{17:[2,36],36:[2,36]},{20:34,28:[1,62],29:[1,26]},{17:[2,39],36:[2,39]},{21:35,27:[1,28],28:[1,64]},{17:[2,42],36:[2,42]},{17:[2,45],36:[2,45]},{17:[2,48],36:[2,48]}],
defaultActions: {},

@@ -96,0 +96,0 @@ parseError: function parseError(str, hash) {

Sorry, the diff of this file is not supported yet

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