Comparing version 2.19.5 to 2.19.6
@@ -23,2 +23,5 @@ #!/usr/bin/env node | ||
if (!opts.args[0]) { | ||
throw new Error('Please supply a grammer.js file path as a command-line argument'); | ||
} | ||
var filename = require('path').resolve(opts.args[0]); | ||
@@ -25,0 +28,0 @@ var grammar = nearley.Grammar.fromCompiled(require(filename)); |
@@ -20,2 +20,5 @@ #!/usr/bin/env node | ||
if (!opts.args[0]) { | ||
throw new Error('Please supply a grammer.js file path as a command-line argument'); | ||
} | ||
var grammar = new require(require('path').resolve(opts.args[0])); | ||
@@ -22,0 +25,0 @@ |
{ | ||
"name": "nearley", | ||
"version": "2.19.5", | ||
"version": "2.19.6", | ||
"description": "Simple, fast, powerful parser toolkit for JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "lib/nearley.js", |
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
75640
1501