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.5.1 to 0.5.2-dev.20190624

1

dist/common.d.ts

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

};
sourceFile: string | void;
assignable: AssignmentKind | DestructuringKind;

@@ -124,0 +125,0 @@ destructible: AssignmentKind | DestructuringKind;

26

dist/estree.d.ts

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

sourceType: 'script' | 'module';
body: Array<Statement | ModuleDeclaration>;
comments?: Array<Comment>;
body: (Statement | ModuleDeclaration)[];
comments?: Comment[];
}

@@ -102,4 +102,4 @@ export declare type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;

export interface BlockStatement extends _Node<'BlockStatement'> {
body: Array<Statement>;
innerComments?: Array<Comment>;
body: Statement[];
innerComments?: Comment[];
}

@@ -131,3 +131,3 @@ export interface ExpressionStatement extends _Node<'ExpressionStatement'> {

discriminant: Expression;
cases: Array<SwitchCase>;
cases: SwitchCase[];
}

@@ -233,6 +233,6 @@ export interface ReturnStatement extends _Node<'ReturnStatement'> {

export interface ArrayExpression extends _Expression<'ArrayExpression'> {
elements: Array<Expression | SpreadElement>;
elements: (Expression | SpreadElement)[];
}
export interface ObjectExpression extends _Expression<'ObjectExpression'> {
properties: Array<Property>;
properties: Property[];
}

@@ -255,3 +255,3 @@ export interface Property extends _Node<'Property'> {

export interface SequenceExpression extends _Expression<'SequenceExpression'> {
expressions: Array<Expression>;
expressions: Expression[];
}

@@ -365,4 +365,4 @@ export interface UnaryExpression extends _Expression<'UnaryExpression'> {

export interface TemplateLiteral extends _Expression<'TemplateLiteral'> {
quasis: Array<TemplateElement>;
expressions: Array<Expression>;
quasis: TemplateElement[];
expressions: Expression[];
}

@@ -386,6 +386,6 @@ export interface TaggedTemplateExpression extends _Expression<'TaggedTemplateExpression'> {

export interface ObjectPattern extends _Pattern<'ObjectPattern'> {
properties: Array<AssignmentProperty>;
properties: AssignmentProperty[];
}
export interface ArrayPattern extends _Pattern<'ArrayPattern'> {
elements: Array<Pattern>;
elements: Pattern[];
}

@@ -400,3 +400,3 @@ export interface RestElement extends _Pattern<'RestElement'> {

export interface ClassBody extends _Node<'ClassBody'> {
body: Array<MethodDefinition>;
body: MethodDefinition[];
decorators?: Decorator[] | null;

@@ -403,0 +403,0 @@ }

@@ -6,3 +6,3 @@ import { Options } from './parser';

export declare function parse(source: string, options: Options | void): ESTree.Program;
export declare const version = "0.4.2";
export declare const version = "0.5.2";
//# sourceMappingURL=meriyah.d.ts.map

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

import { Context, ParserState, PropertyKind, BindingOrigin, Flags, FunctionStatement, BindingType, HoistedClassFlags, HoistedFunctionFlags } from './common';
export declare function create(source: string): ParserState;
export declare function create(source: string, sourceFile: string | void): ParserState;
export interface Options {

@@ -19,2 +19,3 @@ module?: boolean;

lexical?: boolean;
source?: string;
}

@@ -21,0 +22,0 @@ export declare function parseSource(source: string, options: Options | void, context: Context): ESTree.Program;

@@ -0,0 +0,0 @@ ISC License

{
"name": "meriyah",
"version": "0.5.1",
"version": "0.5.2-dev.20190624",
"description": "A 100% compliant, self-hosted javascript parser with high focus on both performance and stability",

@@ -92,2 +92,2 @@ "main": "dist/meriyah.umd.js",

}
}
}

@@ -120,3 +120,3 @@ # Meriyah

| `ranges` | Append start and end offsets to each node |
| `sourceFile` | Adds a source attribute in every node’s loc object when the locations option is `true`.|
| `source` | Adds a source attribute in every node’s loc object when the locations option is `true`.|
| `webcompat` | Enable [web compability](https://tc39.github.io/ecma262/#sec-additional-ecmascript-features-for-web-browsers) |

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

export function finishNode<T extends Node>(

@@ -382,0 +381,0 @@ parser: ParserState,

@@ -123,8 +123,8 @@ interface _Node<T extends string> {

sourceType: 'script' | 'module';
body: Array<Statement | ModuleDeclaration>;
comments?: Array<Comment>;
body: (Statement | ModuleDeclaration)[];
comments?: Comment[];
}
interface BaseFunction extends _Node<'Function'> {
params: Array<Pattern>;
params: Pattern[];
generator?: boolean;

@@ -190,4 +190,4 @@ async?: boolean;

export interface BlockStatement extends _Node<'BlockStatement'> {
body: Array<Statement>;
innerComments?: Array<Comment>;
body: Statement[];
innerComments?: Comment[];
}

@@ -226,3 +226,3 @@

discriminant: Expression;
cases: Array<SwitchCase>;
cases: SwitchCase[];
}

@@ -373,7 +373,7 @@

export interface ArrayExpression extends _Expression<'ArrayExpression'> {
elements: Array<Expression | SpreadElement>;
elements: (Expression | SpreadElement)[];
}
export interface ObjectExpression extends _Expression<'ObjectExpression'> {
properties: Array<Property>;
properties: Property[];
}

@@ -398,3 +398,3 @@

export interface SequenceExpression extends _Expression<'SequenceExpression'> {
expressions: Array<Expression>;
expressions: Expression[];
}

@@ -563,4 +563,4 @@

export interface TemplateLiteral extends _Expression<'TemplateLiteral'> {
quasis: Array<TemplateElement>;
expressions: Array<Expression>;
quasis: TemplateElement[];
expressions: Expression[];
}

@@ -585,7 +585,7 @@

export interface ObjectPattern extends _Pattern<'ObjectPattern'> {
properties: Array<AssignmentProperty>;
properties: AssignmentProperty[];
}
export interface ArrayPattern extends _Pattern<'ArrayPattern'> {
elements: Array<Pattern>;
elements: Pattern[];
}

@@ -603,3 +603,3 @@

export interface ClassBody extends _Node<'ClassBody'> {
body: Array<MethodDefinition>;
body: MethodDefinition[];
decorators?: Decorator[] | null;

@@ -606,0 +606,0 @@ }

@@ -26,2 +26,2 @@ import { Context } from './common';

export const version = '0.4.2';
export const version = '0.5.2';

@@ -82,3 +82,3 @@ import { report, Errors } from './errors';

let hashed = '$' + name;
const hashed = '$' + name;

@@ -118,6 +118,6 @@ if (bindingType & BindingType.Variable) {

} else {
let lex = scope.lexicals;
const lex = scope.lexicals;
if (dupeChecks) {
let lexParent = scope.lexicals['$'];
const lexParent = scope.lexicals['$'];

@@ -216,3 +216,3 @@ if (lexParent && lexParent.type & (ScopeType.ArgList | ScopeType.Catch) && lexParent[hashed]) {

): boolean {
for (let key in scope.lexicals) {
for (const key in scope.lexicals) {
if (key[0] === '$' && key.length > 1) {

@@ -250,3 +250,3 @@ if (scope.lexicals[key] > 1) report(parser, Errors.DuplicateBinding, key);

export function verifyArguments(parser: ParserState, lex: any): void {
for (let key in lex) {
for (const key in lex) {
if (key[0] === '$' && key.length > 1 && lex[key] > 1) {

@@ -253,0 +253,0 @@ report(parser, Errors.DuplicateBinding, key.slice(1));

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