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

pegjs

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pegjs - npm Package Compare versions

Comparing version 0.11.0-master.85dbe5a to 0.11.0-master.9360abb

2

bin/options.js

@@ -22,3 +22,3 @@ "use strict";

"plugins": [],
"trace": false
"trace": false,
};

@@ -25,0 +25,0 @@

@@ -18,2 +18,3 @@ "use strict";

// eslint-disable-next-line no-use-before-define
this._alwaysConsumesOnSuccess = new AlwaysConsumesOnSuccess( this );

@@ -20,0 +21,0 @@

@@ -38,3 +38,3 @@ "use strict";

transform: {
removeProxyRules: removeProxyRules
removeProxyRules: removeProxyRules,
},

@@ -45,4 +45,4 @@ generate: {

generateBytecode: generateBytecode,
generateJS: generateJS
}
generateJS: generateJS,
},
},

@@ -67,3 +67,3 @@

output: "parser",
trace: false
trace: false,
} );

@@ -97,3 +97,3 @@

}
},

@@ -100,0 +100,0 @@ };

@@ -56,3 +56,3 @@ "use strict";

EXPECT_NS_BEGIN: 38, // EXPECT_NS_BEGIN
EXPECT_NS_END: 39 // EXPECT_NS_END invert
EXPECT_NS_END: 39, // EXPECT_NS_END invert

@@ -59,0 +59,0 @@ };

@@ -54,3 +54,3 @@ "use strict";

}
},
} );

@@ -57,0 +57,0 @@

@@ -222,3 +222,3 @@ "use strict";

inverted: node.inverted,
ignoreCase: node.ignoreCase
ignoreCase: node.ignoreCase,
};

@@ -286,3 +286,3 @@ const pattern = JSON.stringify( cls );

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} ),

@@ -351,3 +351,3 @@ [ op.EXPECT_NS_END, negative ? 1 : 0 ],

action: null, // action nodes pass themselves to children here
reportFailures: node.reportFailures // if `false`, suppress generation of EXPECT opcodes
reportFailures: node.reportFailures, // if `false`, suppress generation of EXPECT opcodes
} );

@@ -367,3 +367,3 @@

action: context.action,
reportFailures: false
reportFailures: false,
} );

@@ -390,3 +390,3 @@

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} ),

@@ -421,3 +421,3 @@ alternatives.length < 2

action: node,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} );

@@ -464,3 +464,3 @@ const match = node.expression.match|0;

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} ),

@@ -475,3 +475,3 @@ buildCondition(

action: context.action,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} ),

@@ -522,3 +522,3 @@ buildSequence(

action: context.action,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} )

@@ -550,3 +550,3 @@ );

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} );

@@ -564,3 +564,3 @@

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} ),

@@ -596,3 +596,3 @@ buildCondition(

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} ),

@@ -616,3 +616,3 @@ buildCondition(

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} );

@@ -635,3 +635,3 @@

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} );

@@ -658,3 +658,3 @@

action: null,
reportFailures: context.reportFailures
reportFailures: context.reportFailures,
} );

@@ -695,3 +695,3 @@

value: node.value,
ignoreCase: node.ignoreCase
ignoreCase: node.ignoreCase,
} ) : null;

@@ -731,3 +731,3 @@

inverted: node.inverted,
ignoreCase: node.ignoreCase
ignoreCase: node.ignoreCase,
} ) : null;

@@ -764,3 +764,3 @@

}
},
} );

@@ -767,0 +767,0 @@

@@ -162,3 +162,3 @@ "use strict";

// |any| not match on empty input
any: sometimesMatch
any: sometimesMatch,
} );

@@ -165,0 +165,0 @@

@@ -18,3 +18,3 @@ "use strict";

}
},

@@ -21,0 +21,0 @@ } );

@@ -63,3 +63,3 @@ "use strict";

one_or_more: checkExpressionWithClonedEnv,
group: checkExpressionWithClonedEnv
group: checkExpressionWithClonedEnv,
} );

@@ -66,0 +66,0 @@

@@ -28,3 +28,3 @@ "use strict";

}
},
} );

@@ -31,0 +31,0 @@

@@ -54,3 +54,3 @@ "use strict";

}
},
} );

@@ -57,0 +57,0 @@

@@ -32,3 +32,3 @@ "use strict";

}
},
} );

@@ -35,0 +35,0 @@

@@ -18,3 +18,3 @@ "use strict";

}
},
} );

@@ -21,0 +21,0 @@

@@ -31,3 +31,3 @@ "use strict";

const session = new compiler.Session( {
passes: util.convertPasses( compiler.passes )
passes: util.convertPasses( compiler.passes ),
} );

@@ -51,5 +51,5 @@

}
},
};
module.exports = peg;

@@ -39,5 +39,6 @@ "use strict";

return sourceEscape( s
.replace( /\\/g, "\\\\" ) // backslash
.replace( /"/g, "\\\"" ) // closing double quote
return sourceEscape(
s
.replace( /\\/g, "\\\\" ) // backslash
.replace( /"/g, "\\\"" ) // closing double quote
);

@@ -54,8 +55,9 @@

return sourceEscape( s
.replace( /\\/g, "\\\\" ) // backslash
.replace( /\//g, "\\/" ) // closing slash
.replace( /]/g, "\\]" ) // closing bracket
.replace( /\^/g, "\\^" ) // caret
.replace( /-/g, "\\-" ) // dash
return sourceEscape(
s
.replace( /\\/g, "\\\\" ) // backslash
.replace( /\//g, "\\/" ) // closing slash
.replace( /]/g, "\\]" ) // closing bracket
.replace( /\^/g, "\\^" ) // caret
.replace( /-/g, "\\-" ) // dash
);

@@ -62,0 +64,0 @@

{
"name": "pegjs",
"version": "0.11.0-master.85dbe5a",
"version": "0.11.0-master.9360abb",
"description": "Parser generator for JavaScript",

@@ -25,4 +25,4 @@ "keywords": [

"engines": {
"node": ">= 6"
"node": ">= 8"
}
}

@@ -59,3 +59,3 @@ export = generatedparser;

buildMessage( expected: T, found?: string ): string;
buildMessage( expected: T, found?: string, location?: SourceLocation ): string;

@@ -62,0 +62,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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