Comparing version 2.7.1 to 2.7.2
#!/usr/bin/env node | ||
var rr = require('railroad-diagrams'); | ||
try { | ||
var rr = require('railroad-diagrams'); | ||
} catch(e) { | ||
// optional dependency not fullfilled | ||
console.log('Error: When you installed nearley, the dependency "railroad-diagrams" failed to install. Try running "npm install -g nearley" to re-install nearley. If that doesn\'t fix the problem, please file an issue on the nearley GitHub repository.') | ||
process.exit(1) | ||
} | ||
var fs = require('fs'); | ||
@@ -8,3 +15,2 @@ var path = require('path'); | ||
var opts = nomnom | ||
@@ -42,3 +48,3 @@ .script('nearley-railroad') | ||
}); | ||
ret = '<style type="text/css">\n'; | ||
@@ -45,0 +51,0 @@ ret += fs.readFileSync( |
{ | ||
"name": "nearley", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"description": "Simple, fast, powerful parser toolkit for JavaScript.", | ||
@@ -9,5 +9,7 @@ "main": "lib/nearley.js", | ||
"nomnom": "~1.6.2", | ||
"railroad-diagrams": "git://github.com/tabatkins/railroad-diagrams.git#c36d1a7d0cf5ee2fdd33fcdc849d91f99ee459b9", | ||
"randexp": "^0.4.2" | ||
}, | ||
"optionalDependencies": { | ||
"railroad-diagrams": "git://github.com/tabatkins/railroad-diagrams.git#c36d1a7d0cf5ee2fdd33fcdc849d91f99ee459b9" | ||
}, | ||
"bin": { | ||
@@ -14,0 +16,0 @@ "nearleyc": "bin/nearleyc.js", |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
558383
77
4460
0