bnf-parser
Advanced tools
Comparing version 3.1.4 to 3.1.5
@@ -5,2 +5,8 @@ import { SyntaxNode, ParseError, Reference, ReferenceRange } from "./syntax"; | ||
declare const BNF: Parser; | ||
export { BNF, Parser, Compile, SyntaxNode, ParseError, Reference, ReferenceRange, }; | ||
import { PromiseQueue } from "./lib/promise-queue"; | ||
import { StreamCache } from "./lib/cache"; | ||
declare const experimental: { | ||
StreamCache: typeof StreamCache; | ||
PromiseQueue: typeof PromiseQueue; | ||
}; | ||
export { BNF, Parser, Compile, SyntaxNode, ParseError, Reference, ReferenceRange, experimental }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ReferenceRange = exports.Reference = exports.ParseError = exports.SyntaxNode = exports.Compile = exports.Parser = exports.BNF = void 0; | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
exports.experimental = exports.ReferenceRange = exports.Reference = exports.ParseError = exports.SyntaxNode = exports.Compile = exports.Parser = exports.BNF = void 0; | ||
const syntax_1 = require("./syntax"); | ||
@@ -15,3 +13,11 @@ Object.defineProperty(exports, "SyntaxNode", { enumerable: true, get: function () { return syntax_1.SyntaxNode; } }); | ||
Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return parser_1.Parser; } }); | ||
const BNF = new parser_1.Parser(JSON.parse(fs.readFileSync(path.join(__dirname, '../bnf.json'), 'utf8'))); | ||
const preload_1 = require("./preload"); | ||
const BNF = new parser_1.Parser(preload_1.bnf_json); | ||
exports.BNF = BNF; | ||
const promise_queue_1 = require("./lib/promise-queue"); | ||
const cache_1 = require("./lib/cache"); | ||
const experimental = { | ||
StreamCache: cache_1.StreamCache, | ||
PromiseQueue: promise_queue_1.PromiseQueue | ||
}; | ||
exports.experimental = experimental; |
# Changelog | ||
## Version 3.1.5 | ||
### Tweaks: | ||
- [x] Better webpack support | ||
No reliance on `fs` for deployment. | ||
Now generates a javascript file containing all start up requirements. | ||
## Version 3.1.4 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "bnf-parser", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "Deterministic BNF compiler/parser", | ||
@@ -10,3 +10,4 @@ "main": "./bin/index.js", | ||
"build:ts": "tsc", | ||
"build:syntax": "node ./bin/build.js --verbose" | ||
"build:syntax": "ts-node ./tools/build-syntax", | ||
"build:preload": "ts-node ./tools/post-build.ts" | ||
}, | ||
@@ -22,3 +23,4 @@ "repository": { | ||
"parse", | ||
"typescript" | ||
"typescript", | ||
"webpack ready" | ||
], | ||
@@ -29,3 +31,2 @@ "author": "Ajani Bilby", | ||
"@types/node": "^18.11.10", | ||
"getopts": "^2.3.0", | ||
"npm-run-all": "^4.1.5", | ||
@@ -32,0 +33,0 @@ "ts-node": "^10.9.1", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
47156
4
894
0
13