New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bnf-parser

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bnf-parser - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

bin/preload.d.ts

8

bin/index.d.ts

@@ -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 };

14

bin/index.js
"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",

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