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

@stordata/grammars

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stordata/grammars - npm Package Compare versions

Comparing version 1.0.20230421161607 to 1.0.20230422113614

dist/index.cjs

65

generated/src/grammars/CustomMetricLexer.js

@@ -6,36 +6,37 @@ // Generated from src/grammars/CustomMetric.g4 by ANTLR 4.12.0

const serializedATN = [4,0,21,110,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,
const serializedATN = [4,0,21,113,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,
4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,
12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,
2,20,7,20,1,0,4,0,45,8,0,11,0,12,0,46,1,0,1,0,4,0,51,8,0,11,0,12,0,52,3,
0,55,8,0,1,1,1,1,4,1,59,8,1,11,1,12,1,60,1,1,1,1,1,2,1,2,1,2,1,2,4,2,69,
8,2,11,2,12,2,70,1,2,1,2,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,8,1,8,
1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,1,15,1,15,1,16,
1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,60,0,21,1,1,3,2,5,3,7,4,9,
5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,
18,37,19,39,20,41,21,1,0,4,1,0,48,57,1,0,9,9,1,0,13,13,1,0,10,10,117,0,1,
1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,
1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,
0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,
0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,1,44,1,0,0,0,3,56,1,0,0,0,5,
68,1,0,0,0,7,74,1,0,0,0,9,76,1,0,0,0,11,78,1,0,0,0,13,80,1,0,0,0,15,82,1,
0,0,0,17,84,1,0,0,0,19,86,1,0,0,0,21,88,1,0,0,0,23,90,1,0,0,0,25,92,1,0,
0,0,27,94,1,0,0,0,29,96,1,0,0,0,31,98,1,0,0,0,33,100,1,0,0,0,35,102,1,0,
0,0,37,104,1,0,0,0,39,106,1,0,0,0,41,108,1,0,0,0,43,45,3,15,7,0,44,43,1,
0,0,0,45,46,1,0,0,0,46,44,1,0,0,0,46,47,1,0,0,0,47,54,1,0,0,0,48,50,3,17,
8,0,49,51,3,15,7,0,50,49,1,0,0,0,51,52,1,0,0,0,52,50,1,0,0,0,52,53,1,0,0,
0,53,55,1,0,0,0,54,48,1,0,0,0,54,55,1,0,0,0,55,2,1,0,0,0,56,58,3,31,15,0,
57,59,3,41,20,0,58,57,1,0,0,0,59,60,1,0,0,0,60,61,1,0,0,0,60,58,1,0,0,0,
61,62,1,0,0,0,62,63,3,31,15,0,63,4,1,0,0,0,64,69,3,33,16,0,65,69,3,35,17,
0,66,69,3,37,18,0,67,69,3,39,19,0,68,64,1,0,0,0,68,65,1,0,0,0,68,66,1,0,
0,0,68,67,1,0,0,0,69,70,1,0,0,0,70,68,1,0,0,0,70,71,1,0,0,0,71,72,1,0,0,
0,72,73,6,2,0,0,73,6,1,0,0,0,74,75,3,23,11,0,75,8,1,0,0,0,76,77,3,25,12,
0,77,10,1,0,0,0,78,79,3,27,13,0,79,12,1,0,0,0,80,81,3,29,14,0,81,14,1,0,
0,0,82,83,7,0,0,0,83,16,1,0,0,0,84,85,5,46,0,0,85,18,1,0,0,0,86,87,5,40,
0,0,87,20,1,0,0,0,88,89,5,41,0,0,89,22,1,0,0,0,90,91,5,43,0,0,91,24,1,0,
0,0,92,93,5,45,0,0,93,26,1,0,0,0,94,95,5,42,0,0,95,28,1,0,0,0,96,97,5,47,
0,0,97,30,1,0,0,0,98,99,5,34,0,0,99,32,1,0,0,0,100,101,5,32,0,0,101,34,1,
0,0,0,102,103,7,1,0,0,103,36,1,0,0,0,104,105,7,2,0,0,105,38,1,0,0,0,106,
107,7,3,0,0,107,40,1,0,0,0,108,109,9,0,0,0,109,42,1,0,0,0,7,0,46,52,54,60,
68,70,1,6,0,0];
2,20,7,20,1,0,3,0,45,8,0,1,0,4,0,48,8,0,11,0,12,0,49,1,0,1,0,4,0,54,8,0,
11,0,12,0,55,3,0,58,8,0,1,1,1,1,4,1,62,8,1,11,1,12,1,63,1,1,1,1,1,2,1,2,
1,2,1,2,4,2,72,8,2,11,2,12,2,73,1,2,1,2,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,
1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,
1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,63,0,21,1,
1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,
31,16,33,17,35,18,37,19,39,20,41,21,1,0,4,1,0,48,57,1,0,9,9,1,0,13,13,1,
0,10,10,121,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,
0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,
0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,
33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,1,44,1,0,
0,0,3,59,1,0,0,0,5,71,1,0,0,0,7,77,1,0,0,0,9,79,1,0,0,0,11,81,1,0,0,0,13,
83,1,0,0,0,15,85,1,0,0,0,17,87,1,0,0,0,19,89,1,0,0,0,21,91,1,0,0,0,23,93,
1,0,0,0,25,95,1,0,0,0,27,97,1,0,0,0,29,99,1,0,0,0,31,101,1,0,0,0,33,103,
1,0,0,0,35,105,1,0,0,0,37,107,1,0,0,0,39,109,1,0,0,0,41,111,1,0,0,0,43,45,
3,25,12,0,44,43,1,0,0,0,44,45,1,0,0,0,45,47,1,0,0,0,46,48,3,15,7,0,47,46,
1,0,0,0,48,49,1,0,0,0,49,47,1,0,0,0,49,50,1,0,0,0,50,57,1,0,0,0,51,53,3,
17,8,0,52,54,3,15,7,0,53,52,1,0,0,0,54,55,1,0,0,0,55,53,1,0,0,0,55,56,1,
0,0,0,56,58,1,0,0,0,57,51,1,0,0,0,57,58,1,0,0,0,58,2,1,0,0,0,59,61,3,31,
15,0,60,62,3,41,20,0,61,60,1,0,0,0,62,63,1,0,0,0,63,64,1,0,0,0,63,61,1,0,
0,0,64,65,1,0,0,0,65,66,3,31,15,0,66,4,1,0,0,0,67,72,3,33,16,0,68,72,3,35,
17,0,69,72,3,37,18,0,70,72,3,39,19,0,71,67,1,0,0,0,71,68,1,0,0,0,71,69,1,
0,0,0,71,70,1,0,0,0,72,73,1,0,0,0,73,71,1,0,0,0,73,74,1,0,0,0,74,75,1,0,
0,0,75,76,6,2,0,0,76,6,1,0,0,0,77,78,3,23,11,0,78,8,1,0,0,0,79,80,3,25,12,
0,80,10,1,0,0,0,81,82,3,27,13,0,82,12,1,0,0,0,83,84,3,29,14,0,84,14,1,0,
0,0,85,86,7,0,0,0,86,16,1,0,0,0,87,88,5,46,0,0,88,18,1,0,0,0,89,90,5,40,
0,0,90,20,1,0,0,0,91,92,5,41,0,0,92,22,1,0,0,0,93,94,5,43,0,0,94,24,1,0,
0,0,95,96,5,45,0,0,96,26,1,0,0,0,97,98,5,42,0,0,98,28,1,0,0,0,99,100,5,47,
0,0,100,30,1,0,0,0,101,102,5,34,0,0,102,32,1,0,0,0,103,104,5,32,0,0,104,
34,1,0,0,0,105,106,7,1,0,0,106,36,1,0,0,0,107,108,7,2,0,0,108,38,1,0,0,0,
109,110,7,3,0,0,110,40,1,0,0,0,111,112,9,0,0,0,112,42,1,0,0,0,8,0,44,49,
55,57,63,71,73,1,6,0,0];

@@ -42,0 +43,0 @@

@@ -5,2 +5,4 @@ // Generated from src/grammars/CustomMetric.g4 by ANTLR 4.12.0

import CustomMetricListener from './CustomMetricListener.js';
import CustomMetricVisitor from './CustomMetricVisitor.js';
const serializedATN = [4,1,21,34,2,0,7,0,2,1,7,1,1,0,1,0,1,0,1,1,1,1,1,1,

@@ -294,3 +296,11 @@ 1,1,1,1,1,1,1,1,3,1,15,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitAll(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -359,3 +369,11 @@

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitAddition(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -401,3 +419,11 @@

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitMultiplication(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -443,3 +469,11 @@

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitSubtraction(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -472,3 +506,11 @@

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitNumber(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -509,3 +551,11 @@

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitWrappedExpression(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -551,3 +601,11 @@

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitDivision(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -580,3 +638,11 @@

accept(visitor) {
if ( visitor instanceof CustomMetricVisitor ) {
return visitor.visitString(this);
} else {
return visitor.visitChildren(this);
}
}
}

@@ -583,0 +649,0 @@

{
"name": "@stordata/grammars",
"version":"1.0.20230421161607",
"version":"1.0.20230422113614",
"type": "module",
"main": "dist/main.cjs",
"main": "dist/index.cjs",
"exports": [
{
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
],
"repository": {

@@ -22,8 +28,22 @@ "type": "git",

"scripts": {
"build": "webpack",
"build": "tsup",
"test": "mocha src/**/*.spec.js",
"lint": "eslint webpack.config.js src/**/*.js",
"antlr": "antlr4 -Dlanguage=JavaScript -o generated src/grammars/CustomMetric.g4",
"lint": "eslint src/**/*.js",
"antlr": "antlr4 -Dlanguage=JavaScript -visitor -o generated src/grammars/CustomMetric.g4",
"clean": "rm dist/ -fR; rm generated/ -fR"
},
"tsup": {
"entry": [
"src/index.js"
],
"format": [
"cjs",
"esm"
],
"shims": true,
"sourcemap": true,
"noExternal": [
"antlr4"
]
},
"engines": {

@@ -40,5 +60,4 @@ "node": ">= 18"

"mocha": "10.2.0",
"webpack": "5.80.0",
"webpack-cli": "5.0.1"
"tsup": "6.7.0"
}
}
import CustomMetricListener from '../generated/src/grammars/CustomMetricListener.js';
import CustomMetricParser from '../generated/src/grammars/CustomMetricParser.js';
import CustomMetricLexer from '../generated/src/grammars/CustomMetricLexer.js';
import CustomMetricVisitor from '../generated/src/grammars/CustomMetricVisitor.js';

@@ -18,4 +19,5 @@ import GrammarSyntaxError from './GrammarSyntaxError.js';

CustomMetricListener,
CustomMetricVisitor,
// Helpers
GrammarSyntaxError
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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