Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

meriyah

Package Overview
Dependencies
Maintainers
1
Versions
917
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meriyah - npm Package Compare versions

Comparing version 0.1.3-dev.20190512 to 0.1.3-dev.20190513

2

dist/common.d.ts

@@ -49,3 +49,3 @@ import { Token } from './token';

Literal = 2048,
PrivatField = 4096,
PrivateField = 4096,
GetSet = 768

@@ -52,0 +52,0 @@ }

@@ -18,2 +18,4 @@ interface _Node<T extends string> {

ClassBody: ClassBody;
FieldDefinition: FieldDefinition;
PrivateName: PrivateName;
Decorator: Decorator;

@@ -34,3 +36,3 @@ MethodDefinition: MethodDefinition;

}
export declare type Node = Program | SwitchCase | CatchClause | Statement | Expression | Property | AssignmentProperty | Super | SpreadElement | TemplateElement | ClassBody | Decorator | MethodDefinition | ModuleDeclaration | ModuleSpecifier | Pattern | VariableDeclarator | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXText | JSXOpeningElement | JSXClosingElement | JSXAttribute | JSXSpreadAttribute;
export declare type Node = Program | SwitchCase | CatchClause | Statement | Expression | Property | AssignmentProperty | Super | SpreadElement | TemplateElement | ClassBody | FieldDefinition | PrivateName | Decorator | MethodDefinition | ModuleDeclaration | ModuleSpecifier | Pattern | VariableDeclarator | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXText | JSXOpeningElement | JSXClosingElement | JSXAttribute | JSXSpreadAttribute;
interface _Statement<T extends string> extends _Node<T> {

@@ -87,3 +89,3 @@ }

}
export declare type Expression = Identifier | Literal | RegExpLiteral | ThisExpression | ArrayExpression | ObjectExpression | FunctionExpression | UnaryExpression | UpdateExpression | BinaryExpression | AssignmentExpression | LogicalExpression | MemberExpression | ConditionalExpression | CallExpression | NewExpression | SequenceExpression | ArrowFunctionExpression | YieldExpression | TemplateLiteral | TaggedTemplateExpression | ClassExpression | MetaProperty | AwaitExpression | JSXElement;
export declare type Expression = Identifier | Literal | RegExpLiteral | ThisExpression | ArrayExpression | ObjectExpression | FunctionExpression | UnaryExpression | UpdateExpression | BinaryExpression | AssignmentExpression | LogicalExpression | MemberExpression | PrivateName | ConditionalExpression | CallExpression | NewExpression | SequenceExpression | ArrowFunctionExpression | YieldExpression | TemplateLiteral | TaggedTemplateExpression | ClassExpression | MetaProperty | AwaitExpression | JSXElement;
interface _Pattern<T extends string> extends _Node<T> {

@@ -197,4 +199,15 @@ }

export interface ClassBody extends _Node<'ClassBody'> {
body: MethodDefinition[];
body: (FieldDefinition | MethodDefinition)[];
}
export interface PrivateMemberExpression extends _Node<'MemberExpression'> {
object: Expression;
property: PrivateName;
}
export interface FieldDefinition extends _Node<'FieldDefinition'> {
key: PrivateName | Expression;
value: any;
decorators?: Decorator[] | null;
computed: boolean;
static: boolean;
}
export interface ClassDeclaration extends _Declaration<'ClassDeclaration'> {

@@ -317,2 +330,5 @@ id: Identifier | null;

}
export interface PrivateName extends _Node<'PrivateName'> {
name: string;
}
export interface LogicalExpression extends _Expression<'LogicalExpression'> {

@@ -328,3 +344,3 @@ operator: LogicalOperator;

export interface MethodDefinition extends _Node<'MethodDefinition'> {
key: Expression | null;
key: Expression | PrivateName;
value: FunctionExpression | null;

@@ -331,0 +347,0 @@ kind: 'constructor' | 'method' | 'get' | 'set';

@@ -91,4 +91,4 @@ import { Token } from './token';

export declare function parseClassBody(parser: ParserState, context: Context, type: BindingType, origin: BindingOrigin, decorators: ESTree.Decorator[]): ESTree.ClassBody;
export declare function parseFieldDefinition(parser: ParserState, context: Context, key: any, state: PropertyKind, decorators: ESTree.Decorator[] | null): any;
export declare function parseFieldDefinition(parser: ParserState, context: Context, key: ESTree.PrivateName | ESTree.Expression | null, state: PropertyKind, decorators: ESTree.Decorator[] | null): ESTree.FieldDefinition;
export declare function parseBindingPattern(parser: ParserState, context: Context, type: BindingType): any;
//# sourceMappingURL=parser.d.ts.map
{
"name": "meriyah",
"version": "0.1.3-dev.20190512",
"version": "0.1.3-dev.20190513",
"description": "Fast and lightweight, standard-compliant javascript parser written in ECMAScript",

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

@@ -56,3 +56,3 @@ import { Token, KeywordDescTable } from './token';

Literal = 1 << 11,
PrivatField = 1 << 12,
PrivateField = 1 << 12,
GetSet = Getter | Setter

@@ -59,0 +59,0 @@ }

@@ -146,3 +146,6 @@ import { ParserState } from './common';

InvalidObjLitKeyStar,
DeletePrivateField
DeletePrivateField,
InvalidStaticClassFieldConstructor,
InvalidClassFieldConstructor,
InvalidClassFieldArgEval
}

@@ -304,3 +307,6 @@

[Errors.InvalidObjLitKeyStar]: 'Invalid object literal key character after generator star',
[Errors.DeletePrivateField]: 'Private fields can not be deleted'
[Errors.DeletePrivateField]: 'Private fields can not be deleted',
[Errors.InvalidClassFieldConstructor]: 'Classes may not have a field called constructor',
[Errors.InvalidStaticClassFieldConstructor]: 'Classes may not have a private element named constructor',
[Errors.InvalidClassFieldArgEval]: 'A class field initializer may not contain arguments'
};

@@ -307,0 +313,0 @@

@@ -27,2 +27,4 @@ // Note:

ClassBody: ClassBody;
FieldDefinition: FieldDefinition;
PrivateName: PrivateName;
Decorator: Decorator;

@@ -56,2 +58,4 @@ MethodDefinition: MethodDefinition;

| ClassBody
| FieldDefinition
| PrivateName
| Decorator

@@ -162,2 +166,3 @@ | MethodDefinition

| MemberExpression
| PrivateName
| ConditionalExpression

@@ -356,5 +361,18 @@ | CallExpression

export interface ClassBody extends _Node<'ClassBody'> {
body: MethodDefinition[];
body: (FieldDefinition | MethodDefinition)[];
}
export interface PrivateMemberExpression extends _Node<'MemberExpression'> {
object: Expression;
property: PrivateName;
}
export interface FieldDefinition extends _Node<'FieldDefinition'> {
key: PrivateName | Expression;
value: any;
decorators?: Decorator[] | null;
computed: boolean;
static: boolean;
}
export interface ClassDeclaration extends _Declaration<'ClassDeclaration'> {

@@ -501,2 +519,5 @@ id: Identifier | null;

export interface PrivateName extends _Node<'PrivateName'> {
name: string;
}
export interface LogicalExpression extends _Expression<'LogicalExpression'> {

@@ -514,3 +535,3 @@ operator: LogicalOperator;

export interface MethodDefinition extends _Node<'MethodDefinition'> {
key: Expression | null;
key: Expression | PrivateName;
value: FunctionExpression | null;

@@ -517,0 +538,0 @@ kind: 'constructor' | 'method' | 'get' | 'set';

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

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

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

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

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

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

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

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

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

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

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

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

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

Sorry, the diff of this file is not supported yet

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