Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "apg-js", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "JavaScript APG, an ABNF Parser Generator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -57,3 +57,3 @@ /* ************************************************************************************* | ||
"use strict"; | ||
let id = require("apg-lib").ids; | ||
let id = require("../apg-lib/node-exports.js").ids; | ||
let { ruleAttributes, showAttributes, showAttributeErrors } = require("./rule-attributes.js"); | ||
@@ -60,0 +60,0 @@ let { ruleDependencies, showRuleDependencies } = require("./rule-dependencies.js"); |
@@ -16,3 +16,3 @@ /* ************************************************************************************* | ||
let thisFileName = "parser.js: "; | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let id = apglib.ids; | ||
@@ -19,0 +19,0 @@ let syn = new (require("./syntax-callbacks.js"))(); |
@@ -9,3 +9,3 @@ /* ************************************************************************************* | ||
"use strict"; | ||
let id = require("apg-lib").ids; | ||
let id = require("../apg-lib/node-exports.js").ids; | ||
let thisFile = "rule-attributes.js"; | ||
@@ -12,0 +12,0 @@ let state = null; |
@@ -17,3 +17,3 @@ /* ************************************************************************************* | ||
let util = require("util"); | ||
let id = require("apg-lib").ids; | ||
let id = require("../apg-lib/node-exports.js").ids; | ||
let state = null; /* keep a global reference to the state for the show functions */ | ||
@@ -20,0 +20,0 @@ |
@@ -9,3 +9,3 @@ /* ************************************************************************************* | ||
"use strict"; | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let id = apglib.ids; | ||
@@ -12,0 +12,0 @@ function semLine(state, chars, phraseIndex, phraseCount, data) { |
@@ -20,3 +20,3 @@ /* ************************************************************************************* | ||
let thisFileName = "scanner.js: "; | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let grammar = new (require("./scanner-grammar.js"))(); | ||
@@ -23,0 +23,0 @@ let callbacks = require("./scanner-callbacks").callbacks; |
@@ -13,3 +13,3 @@ /* ************************************************************************************* | ||
"use strict"; | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let id = apglib.ids; | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* ************************************************************************************* | ||
let thisFileName = "syntax-callbacks.js: "; | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let id = apglib.ids; | ||
@@ -16,0 +16,0 @@ let topAlt; |
@@ -18,3 +18,3 @@ /* ************************************************************************************* | ||
let errorName = thisFileName; | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let execFuncs = require("./exec.js"); | ||
@@ -21,0 +21,0 @@ let replaceFuncs = require("./replace.js"); |
@@ -61,3 +61,3 @@ /* ************************************************************************************* | ||
let grammar = new (require("./replace-grammar.js"))(); | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let parser = new apglib.parser(); | ||
@@ -64,0 +64,0 @@ let data = { |
@@ -9,3 +9,3 @@ /* ************************************************************************************* | ||
"use strict;"; | ||
let apglib = require("apg-lib"); | ||
let apglib = require("../apg-lib/node-exports.js"); | ||
let utils = apglib.utils; | ||
@@ -12,0 +12,0 @@ let style = apglib.style; |
@@ -9,3 +9,3 @@ /* ************************************************************************************* | ||
//```` | ||
// let apglib = require("apg-lib"); | ||
// let apglib = require("../apg-lib/node-exports.js"); | ||
// let my-parser = new apglib.parser(); | ||
@@ -12,0 +12,0 @@ //```` |
@@ -12,3 +12,3 @@ /* ************************************************************************************* | ||
let style = require("./style.js"); | ||
let converter = require("apg-conv-api").converter; | ||
let converter = require("../apg-conv-api/converter.js"); | ||
let _this = this; | ||
@@ -15,0 +15,0 @@ /* translate (implied) phrase beginning character and length to actual first and last character indexes */ |
@@ -59,3 +59,3 @@ /* ************************************************************************************* | ||
let path = require("path"); | ||
let converter = require("apg-conv-api").converter; | ||
let converter = require("../apg-conv-api/converter.js"); | ||
let STRICTL = "--strict"; | ||
@@ -62,0 +62,0 @@ let STRICTS = "-s"; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
3
16
3
1417505
15542