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

@malloydata/malloy

Package Overview
Dependencies
Maintainers
3
Versions
1190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@malloydata/malloy - npm Package Compare versions

Comparing version 0.0.12-dev221202180754 to 0.0.12-dev221204204332

25

dist/lang/parse-malloy.js

@@ -52,2 +52,14 @@ "use strict";

const reference_list_1 = require("./reference-list");
/**
* This ignores a -> popMode when the mode stack is empty, which is a hack,
* but it let's us parse }%
*/
class HandlesOverpoppingLexer extends MalloyLexer_1.MalloyLexer {
popMode() {
if (this._modeStack.isEmpty) {
return this._mode;
}
return super.popMode();
}
}
class MalloyParserErrorHandler {

@@ -109,3 +121,12 @@ constructor(translator, messages) {

this.sourceInfo = this.getSourceInfo(source);
const parse = this.runParser(source, that);
let parse;
try {
parse = this.runParser(source, that);
}
catch (parseException) {
that.root.logger.log({
message: `Malloy internal parser exception [${parseException.message}]`,
});
parse = undefined;
}
if (that.root.logger.hasErrors()) {

@@ -159,3 +180,3 @@ this.response = {

const inputStream = antlr4ts_1.CharStreams.fromString(source);
const lexer = new MalloyLexer_1.MalloyLexer(inputStream);
const lexer = new HandlesOverpoppingLexer(inputStream);
const tokenStream = new antlr4ts_1.CommonTokenStream(lexer);

@@ -162,0 +183,0 @@ const malloyParser = new MalloyParser_1.MalloyParser(tokenStream);

2

package.json
{
"name": "@malloydata/malloy",
"version": "0.0.12-dev221202180754",
"version": "0.0.12-dev221204204332",
"license": "GPL-2.0",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

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