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

escaya

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escaya - npm Package Compare versions

Comparing version 0.0.20 to 0.0.25

dist/ast/directive-node.d.ts

5

dist/ast/expressions/function-body.d.ts
import { Node } from '../node';
import { Directive } from '../directive-node';
import { Statement } from '../statements';
export interface FunctionBody extends Node {
readonly directives: string[];
readonly directives: Directive[];
readonly leafs: Statement[];
}
export declare function createFunctionBody(directives: string[], leafs: Statement[]): FunctionBody;
export declare function createFunctionBody(directives: Directive[], leafs: Statement[]): FunctionBody;
//# sourceMappingURL=function-body.d.ts.map

4

dist/ast/expressions/index.d.ts

@@ -63,6 +63,6 @@ import { IdentifierReference } from './identifierreference';

export declare type MethodName = IdentifierReference | StringLiteral | BigIntLiteral | NumericLiteral | IdentifierName;
export declare type Expression = LeftHandSideExpression;
export declare type LeftHandSideExpression = CommaOperator | IdentifierReference | IdentifierName | LabelIdentifier | AssignmentExpression | ConditionalExpression | MemberExpression | BinaryExpression | CallExpression | OptionalExpression | MemberChain | CallChain | UnaryExpression | PrefixUpdateExpression | PostfixUpdateExpression | NewExpression | NullLiteral | ThisExpression | BooleanLiteral | AssignmentElement | ArrayLiteral | ObjectLiteral | PropertyName | MethodDefinition | FunctionExpression | FunctionBody | ArrowFunction | ConciseBody | ParenthesizedExpression | BindingRestElement | ClassExpression | ClassElement | SuperCall | SuperProperty | Elison | CoverInitializedName | AwaitExpression | YieldExpression | TemplateExpression | TaggedTemplate | TemplateElement | TemplateLiteral | NewTarget | ImportCall | AssignmentRestElement | ComputedPropertyName | ImportMeta | Literals;
export declare type Expression = LeftHandSideExpression | CommaOperator | IdentifierReference | IdentifierName | NewExpression | NullLiteral | ThisExpression | BooleanLiteral | AssignmentElement | ArrayLiteral | ObjectLiteral | PropertyName | MethodDefinition | FunctionExpression | Elison | ArrowFunction | ConciseBody | AwaitExpression | YieldExpression | LabelIdentifier;
export declare type LeftHandSideExpression = AssignmentExpression | ConditionalExpression | MemberExpression | BinaryExpression | CallExpression | OptionalExpression | MemberChain | CallChain | UnaryExpression | PrefixUpdateExpression | PostfixUpdateExpression | FunctionBody | ParenthesizedExpression | BindingRestElement | ClassExpression | ClassElement | SuperCall | SuperProperty | CoverInitializedName | TemplateExpression | TemplateElement | TemplateLiteral | TaggedTemplate | NewTarget | ImportCall | AssignmentRestElement | ComputedPropertyName | ImportMeta | Literals;
export declare type Literals = NumericLiteral | BigIntLiteral | StringLiteral | RegularExpressionLiteral | TemplateLiteral;
export declare type PropertyKey = IdentifierName | NumericLiteral | BigIntLiteral | StringLiteral | ComputedPropertyName;
//# sourceMappingURL=index.d.ts.map
import { Node } from '../node';
import { MemberExpression } from './member-expr';
import { LeftHandSideExpression } from '.';
import { TemplateExpression } from './template-expression';
import { TemplateLiteral } from './template-literal';
export interface TaggedTemplate extends Node {
readonly member: MemberExpression;
readonly member: LeftHandSideExpression;
readonly literal: TemplateLiteral | TemplateExpression;
}
export declare function createTaggedTemplate(member: MemberExpression, literal: TemplateLiteral | TemplateExpression): TaggedTemplate;
export declare function createTaggedTemplate(member: LeftHandSideExpression, literal: TemplateLiteral | TemplateExpression): TaggedTemplate;
//# sourceMappingURL=tagged-template.d.ts.map
import { Node } from './node';
import { ImportExport } from './module';
import { Directive } from './directive-node';
export interface Module extends Node {
readonly directives: string[];
readonly directives: Directive[];
readonly leafs: ImportExport[];

@@ -9,3 +10,3 @@ readonly start: number;

}
export declare function createModuleNode(source: string, directives: string[], leafs: ImportExport[]): Module;
export declare function createModuleNode(source: string, directives: Directive[], leafs: ImportExport[]): Module;
//# sourceMappingURL=module-node.d.ts.map

@@ -10,5 +10,4 @@ import { Node } from '../node';

import { ClassDeclaration } from '../declarations/class-declaration';
export declare type ExportDeclarations = AssignmentExpression | VariableStatement | LexicalDeclaration | FunctionDeclaration | ClassDeclaration;
export interface ExportDeclaration extends Node {
readonly declaration: ExportDeclarations | null;
readonly declaration: AssignmentExpression | VariableStatement | LexicalDeclaration | FunctionDeclaration | ClassDeclaration | null;
readonly namedExports: ExportSpecifier[];

@@ -18,3 +17,3 @@ readonly namedBinding: IdentifierName | null;

}
export declare function createExportDeclaration(declaration: ExportDeclarations | null, namedExports: ExportSpecifier[], namedBinding: IdentifierName | null, fromClause: StringLiteral | null): ExportDeclaration;
export declare function createExportDeclaration(declaration: AssignmentExpression | VariableStatement | LexicalDeclaration | FunctionDeclaration | ClassDeclaration | null, namedExports: ExportSpecifier[], namedBinding: IdentifierName | null, fromClause: StringLiteral | null): ExportDeclaration;
//# sourceMappingURL=export-declaration.d.ts.map

@@ -243,4 +243,5 @@ export interface Node {

PropertyName = 227,
ImportMeta = 228
ImportMeta = 228,
Directive = 229
}
//# sourceMappingURL=node.d.ts.map

@@ -5,5 +5,6 @@ import { SyntaxKind, Node } from './node';

import { ImportExport } from './module';
import { Directive } from './directive-node';
export interface RootNode extends Node {
readonly kind: SyntaxKind.RootNode;
readonly directives: string[];
readonly directives: Directive[];
readonly leafs: ImportExport[];

@@ -23,3 +24,3 @@ readonly text: string;

}
export declare function createRootNode(directives: string[], leafs: ImportExport[], text: string, fileName: string, diagnostics: Diagnostic[]): RootNode;
export declare function createRootNode(directives: Directive[], leafs: ImportExport[], text: string, fileName: string, diagnostics: Diagnostic[]): RootNode;
//# sourceMappingURL=root-node.d.ts.map
import { Node } from './node';
import { Directive } from './directive-node';
import { Statement } from './statements';
export interface Script extends Node {
readonly directives: string[];
readonly directives: Directive[];
readonly leafs: Statement[];

@@ -9,3 +10,3 @@ readonly start: number;

}
export declare function createScriptNode(source: string, directives: string[], leafs: Statement[]): Script;
export declare function createScriptNode(source: string, directives: Directive[], leafs: Statement[]): Script;
//# sourceMappingURL=script-node.d.ts.map

@@ -11,3 +11,2 @@ import { SyntaxKind, Node } from './node';

IsLogical = 16,
Coalesc = 32,
IsStatementStart = 4096,

@@ -38,5 +37,5 @@ IsExpressionStart = 8192,

RegularExpression = 8197,
FalseKeyword = 16785414,
TrueKeyword = 16785415,
NullKeyword = 16785416,
FalseKeyword = 151003142,
TrueKeyword = 151003143,
NullKeyword = 151003144,
TemplateTail = 6299657,

@@ -57,3 +56,3 @@ TemplateCont = 6299658,

QuestionMark = 23,
Nullish = 262456,
Nullish = 262424,
QuestionMarkPeriod = 2097177,

@@ -60,0 +59,0 @@ SingleQuote = 26,

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

Return = 64,
InGlobal = 128,
Strict = 1024,

@@ -29,6 +30,10 @@ Module = 2048,

NewTarget = 67108864,
ImportMeta = 134217728
ImportMeta = 134217728,
InBlock = 268435456,
TopLevel = 536870912
}
export declare const enum Flags {
Empty = 0
Empty = 0,
NodeHasErrors = 1,
Octal = 2
}

@@ -64,3 +69,7 @@ export declare const enum ArrowKind {

CatchPattern = 256,
Literal = 512
Literal = 512,
FunctionLexical = 1024,
FunctionStatement = 2048,
Class = 4096,
Empty = 8192
}

@@ -106,4 +115,4 @@ export declare const enum Destructible {

}
export declare function canParseSemicolon(state: ParserState): boolean;
export declare function consumeSemicolon(state: ParserState, context: Context): boolean;
export declare function canConsumeSemicolon(state: ParserState): boolean;
export declare function expectSemicolon(state: ParserState, context: Context): boolean;
export declare function consume<T extends Token>(state: ParserState, context: Context, t: T): boolean;

@@ -118,2 +127,8 @@ export declare function consumeOpt<T extends Token>(state: ParserState, context: Context, t: T): boolean;

export declare function validateIdentifierReference(state: ParserState, context: Context): string;
export declare function parseStatementWithLabelSet(t: Token, label: string, labels: any, nestedLabels: any): any;
export declare function isIterationStatement(t: Token): boolean;
export declare function addLabel(state: ParserState, context: Context, label: string, labels: any, nestedLabels: any): any;
export declare function checkBreakStatement(state: ParserState, context: Context, labels: any, value: string): 0 | 1;
export declare function checkContinueStatement(labels: any, value: string): 0 | 1;
export declare function nextLiteralExactlyStrict(state: any, start: number): boolean;
//# sourceMappingURL=common.d.ts.map
export declare const enum Constants {
LetAsIdentifier = 135364608,
IsStartOfStatement = 537997312,
IsSourceElement = 537997312,
IsClauseRecovery = 605102080,
IsClauseNormal = 1681268736,
IsClauseNormal = 1681334272,
IsIdentifierOrKeywordNormal = 135331840,

@@ -11,2 +12,4 @@ IsIdentifierOrKeywordRecovery = 1114112,

IsPatternOrIdentifierRecovery = 1146880,
IsVarOrLexicalNormal = 1163264,
IsVarOrLexicalRecovery = 1146880,
IsLabelNormal = 135331840,

@@ -17,3 +20,4 @@ IsLabelRecovery = 1114112,

IsDelimitedListNormal = 704110592,
IsDelimitedListRecovery = 9543680,
IsArgumentListRecovery = 11640832,
IsFormalParamsRecovery = 9535488,
CanFollowAccessor = 152109056,

@@ -30,6 +34,10 @@ ClassListNormal = 695283712,

ObjAfterCommaRecovery = 1122304,
ImportExportSpecifier = 135340032,
ImportExportListNormal = 135340032,
ImportExportListRecovery = 940638208,
PrimaryExpr = 413696,
IsValidLabel = 1114112,
ClauseBlock = 806354944,
StrictOrNoWebCompat = 1028,
DecimalOrSeparator = 48
}
//# sourceMappingURL=constants.d.ts.map

@@ -15,7 +15,8 @@ import { Context } from './common';

}
export declare function parseRoot(source: string, context: Context, options?: Options, dictionary?: Dictionary): Script | Module;
export declare function parseRoot(source: string, context: Context, options?: Options): Script | Module;
export declare function parseSourceFile(text: string, filename: string, context: Context, nodeCursor?: NodeCursor): RootNode;
export declare function parseInNormalMode(source: string, context: Context, options?: Options, dictionary?: Dictionary): Script | Module;
export declare function parseInNormalMode(source: string, context: Context, options?: Options): Script | Module;
export declare function parseInCustomMode(source: string, context: Context, options?: Options, dictionary?: Dictionary): Script | Module;
export declare function parseInRecoveryMode(text: string, filename: string, context: Context, options?: Options): RootNode;
export declare function parseInIncrementalMode(text: string, filename: string, root: RootNode, textChangeRange: TextChangeRange): RootNode;
//# sourceMappingURL=core.d.ts.map

@@ -1,2 +0,2 @@

export declare enum DiagnosticCode {
export declare const enum DiagnosticCode {
Unexpected = 0,

@@ -18,3 +18,3 @@ UnexpectedKeyword = 1,

ExpectedParamDecl = 15,
ExpectedVarOrLexDecl = 16,
ExpectedLexical = 16,
ExpectedForDecl = 17,

@@ -119,5 +119,17 @@ StrictModeReserved = 18,

MultipleInDecl = 115,
AnnexBB32 = 116,
AnnexBB34 = 117
ExpectedVarDecl = 116,
RedeclareBlockScopVar = 117,
DuplicateIdentifier = 118,
LexicalShadowsClauce = 119,
NoCatchOrFinally = 120,
NotAGen = 121,
BoundClause = 122,
DupLexBind = 123,
DupBind = 124,
ShadowClause = 125,
UnknownLabel = 126,
UnterminatedDirective = 127,
AnnexBB32 = 128,
AnnexBB34 = 129
}
//# sourceMappingURL=diagnostic-code.d.ts.map
import { DiagnosticCode } from './diagnostic-code';
import { Context, ParserState } from '../common';
export declare enum DiagnosticKind {
export declare const enum DiagnosticKind {
Message = 0,

@@ -5,0 +5,0 @@ Warning = 1,

@@ -13,2 +13,3 @@ import { RootNode } from './ast/root-node';

export declare function update(text: string, fileName: string, root: RootNode, textChangeRange: TextChangeRange): RootNode;
export declare const version = "0.22";
//# sourceMappingURL=escaya.d.ts.map
import { Context, ParserState, BindingType } from '../common';
export declare function parseBlockElements(state: ParserState, context: Context, cb: any): any;
export declare function parseBindingElements(state: ParserState, context: Context, type: BindingType, cb: any): any;
export declare function parseBlockElements(state: ParserState, context: Context, scope: any, labels: any, nestedLabels: any, cb: any): any;
export declare function parseBindingElements(state: ParserState, context: Context, scope: any, type: BindingType, cb: any): any;
export declare function parseForElements(state: ParserState, context: Context, cb: any): any;

@@ -5,0 +5,0 @@ export declare function parseListElements(state: ParserState, context: Context, cb: any): any;

import { Token } from '../ast/token';
import { Context, ParserState } from '../common';
export declare function scanRegExpFlags(state: ParserState, context: Context): any;
export declare function scanRegExp(state: ParserState, context: Context): Token;
//# sourceMappingURL=regexp.d.ts.map

@@ -85,40 +85,40 @@ import { ImportCall } from './ast/expressions/import-call';

import { SwitchStatement } from './ast/statements/switch-stmt';
import { DiagnosticCode } from './diagnostic/diagnostic-code';
import { Token } from './ast/token';
import { NodeCursor } from './incremental/node-cursor';
import { ScopeState } from './scope';
import { Context, BindingType, ParserState, Destructible, PropertyKind, ArrowKind, DestuctionKind } from './common';
export interface StatementCallback {
(parser: ParserState, context: Context): Statement;
(state: ParserState, context: Context, scope: ScopeState, label: any, labelSet: any): Statement;
}
export interface PatternCallback {
(parser: ParserState, context: Context, type: BindingType): LexicalBinding | VariableDeclaration;
export interface LexicalCallback {
(state: ParserState, context: Context, scope: ScopeState, type: BindingType): LexicalBinding | VariableDeclaration;
}
export declare function create(source: string, nodeCursor?: NodeCursor): ParserState;
export declare function parseStatementList(state: ParserState, context: Context, cb: StatementCallback): Statement[];
export declare function parseStatementListItem(state: ParserState, context: Context): Statement;
export declare function parseStatement(state: ParserState, context: Context): Statement;
export declare function parseSwitchStatement(state: ParserState, context: Context): SwitchStatement;
export declare function parseCaseBlock(state: ParserState, context: Context): CaseBlock[];
export declare function parseCaseOrDefaultClause(state: ParserState, context: Context): CaseBlock;
export declare function parseWithStatement(state: ParserState, context: Context): WithStatement;
export declare function parseStatementList(state: ParserState, context: Context, scope: ScopeState, statementList: any[], cb: StatementCallback): Statement[];
export declare function parseStatementListItem(state: ParserState, context: Context, scope: ScopeState, labels: any, ownLabels: any[] | null): Statement;
export declare function parseStatement(state: ParserState, context: Context, scope: ScopeState, labels: any[], ownLabels: any[] | null): Statement;
export declare function parseSwitchStatement(state: ParserState, context: Context, scope: ScopeState, labels: any[], ownLabels: any[] | null): SwitchStatement;
export declare function parseCaseBlock(state: ParserState, context: Context, scope: ScopeState, labels: any[], ownLabels: any[] | null): CaseBlock[];
export declare function parseCaseOrDefaultClause(state: ParserState, context: Context, scope: ScopeState, labels: any[], ownLabels: any[] | null): CaseBlock;
export declare function parseWithStatement(state: ParserState, context: Context, scope: ScopeState, labels: any[], ownLabels: any[] | null): WithStatement;
export declare function parseThrowStatement(state: ParserState, context: Context): ThrowStatement;
export declare function parseTryStatement(state: ParserState, context: Context): TryStatement;
export declare function parseCatchClause(state: ParserState, context: Context): CatchClause;
export declare function parseIfStatement(state: ParserState, context: Context): IfStatement;
export declare function parseWhileStatement(state: ParserState, context: Context): WhileStatement;
export declare function parseDoWhileStatement(state: ParserState, context: Context): DoWhileStatement;
export declare function parseBlockStatement(state: ParserState, context: Context): BlockStatement;
export declare function parseTryStatement(state: ParserState, context: Context, scope: any, labels: any[]): TryStatement;
export declare function parseCatchClause(state: ParserState, context: Context, scope: ScopeState, labels: any[]): CatchClause;
export declare function parseIfStatement(state: ParserState, context: Context, scope: ScopeState, labels: any[]): IfStatement;
export declare function parseScopedStatement(state: ParserState, context: Context, scope: any, labels: any[]): Statement;
export declare function parseWhileStatement(state: ParserState, context: Context, scope: ScopeState, labels: any[], ownLabels: any[] | null): WhileStatement;
export declare function parseDoWhileStatement(state: ParserState, context: Context, scope: ScopeState, labels: any[], nestedLabel: any): DoWhileStatement;
export declare function parseBlockStatement(state: ParserState, context: Context, scope: ScopeState, isCatchScope: boolean, labels: any[], ownLabels: any[] | null): BlockStatement;
export declare function parseDebuggerStatement(state: ParserState, context: Context): DebuggerStatement;
export declare function parseBreakStatement(state: ParserState, context: Context): BreakStatement;
export declare function parseContinueStatement(state: ParserState, context: Context): ContinueStatement;
export declare function parseBreakStatement(state: ParserState, context: Context, labels: any[]): BreakStatement;
export declare function parseContinueStatement(state: ParserState, context: Context, labels: any[]): ContinueStatement;
export declare function parseEmptyStatement(state: ParserState, context: Context): EmptyStatement;
export declare function parseReturnStatement(state: ParserState, context: Context): ReturnStatement;
export declare function parseForStatement(state: ParserState, context: Context): ForStatement | ForAwaitStatement | ForOfStatement | ForInStatement;
export declare function parseForDeclaration(state: ParserState, context: Context, isConst: boolean, type: BindingType, cb: PatternCallback, start: number): ForDeclaration;
export declare function parseBindingList(state: ParserState, context: Context, type: BindingType, cb: PatternCallback): (LexicalBinding | VariableDeclaration)[];
export declare function parseForLexicalBinding(state: ParserState, context: Context, type: BindingType): LexicalBinding;
export declare function parseForVariableDeclaration(state: ParserState, context: Context, type: BindingType): VariableDeclaration;
export declare function parseExpressionOrLabelledStatement(state: ParserState, context: Context): LabelledStatement | ExpressionStatement;
export declare function parseLabelledStatement(state: ParserState, context: Context, _token: Token, value: string, start: number): ExpressionStatement;
export declare function parseAnnexBExceptions(state: ParserState, context: Context, code: DiagnosticCode): Statement;
export declare function parseForStatement(state: ParserState, context: Context, scope: ScopeState, labels: any[]): ForStatement | ForAwaitStatement | ForOfStatement | ForInStatement;
export declare function parseForDeclaration(state: ParserState, context: Context, isConst: boolean, scope: any, type: BindingType, cb: LexicalCallback, start: number): ForDeclaration;
export declare function parseForBindingList(state: ParserState, context: Context, scope: any, type: BindingType, cb: LexicalCallback): (LexicalBinding | VariableDeclaration)[];
export declare function parseForLexicalBinding(state: ParserState, context: Context, scope: any, type: BindingType): LexicalBinding;
export declare function parseForVariableDeclaration(state: ParserState, context: Context, scope: any, type: BindingType): VariableDeclaration;
export declare function parseExpressionOrLabelledStatement(state: ParserState, context: Context, scope: any, labels: any[], ownLabels: any[] | null): LabelledStatement | ExpressionStatement;
export declare function parseLabelledStatement(state: ParserState, context: Context, scope: any, _token: Token, value: string, labels: any[], ownLabels: any[] | null, start: number): ExpressionStatement;
export declare function parseExpressionStatement(state: ParserState, context: Context, expression: Expression, start: number): ExpressionStatement;

@@ -130,10 +130,11 @@ export declare function parseExpression(state: ParserState, context: Context): Expression;

export declare function parseIdentifierName(state: ParserState, context: Context): IdentifierName;
export declare function parseBindingIdentifier(state: ParserState, context: Context, type: BindingType): BindingIdentifier;
export declare function parseVariableStatement(state: ParserState, context: Context): VariableStatement;
export declare function parseVariableDeclaration(state: ParserState, context: Context, type: BindingType): VariableDeclaration;
export declare function parseLexicalDeclaration(state: ParserState, context: Context, type: BindingType): LexicalDeclaration | Statement;
export declare function parseLetAsIdentifierReference(state: ParserState, context: Context, start: number): Statement;
export declare function parseAsyncAsIdentifierReference(state: ParserState, context: Context): Statement;
export declare function parseLexicalBinding(state: ParserState, context: Context, type: BindingType): LexicalBinding;
export declare function parseBindingOrDeclarationList(state: ParserState, context: Context, type: BindingType, cb: PatternCallback): (LexicalBinding | VariableDeclaration)[];
export declare function parseBindingIdentifier(state: ParserState, context: Context, scope: any, type: BindingType): BindingIdentifier;
export declare function parseVariableStatement(state: ParserState, context: Context, scope: any): VariableStatement;
export declare function parseVariableDeclaration(state: ParserState, context: Context, scope: any, type: BindingType): VariableDeclaration;
export declare function parseVariableDeclarationList(state: ParserState, context: Context, scope: any): VariableDeclaration[];
export declare function parseLexicalDeclaration(state: ParserState, context: Context, scope: any, type: BindingType, labels: any[], ownLabels: any[] | null): LexicalDeclaration | Statement;
export declare function parseLetAsIdentifierReference(state: ParserState, context: Context, start: number, labels: any[], ownLabels: any[] | null): Statement;
export declare function parseAsyncAsIdentifierReference(state: ParserState, context: Context, scope: any): Statement;
export declare function parseLexicalBinding(state: ParserState, context: Context, scope: any, type: BindingType): LexicalBinding;
export declare function parseBindingList(state: ParserState, context: Context, scope: any, type: BindingType): (LexicalBinding | VariableDeclaration)[];
export declare function parseAssignmentExpression(state: ParserState, context: Context, left: Expression, start: number): AssignmentExpression | Expression;

@@ -162,3 +163,3 @@ export declare function parseConditionalExpression(state: ParserState, context: Context, left: Expression, start: number): Expression | ConditionalExpression;

export declare function parseTemplateLiteral(state: ParserState, context: Context): TemplateLiteral;
export declare function parseStringLiteral(state: ParserState, context: Context): StringLiteral;
export declare function parseStringLiteral(state: ParserState, context: Context, isDirective: boolean): StringLiteral;
export declare function parseNullLiteral(state: ParserState, context: Context): NullLiteral;

@@ -170,34 +171,34 @@ export declare function parseThisExpression(state: ParserState, context: Context): ThisExpression;

export declare function parseTemplateElement(state: ParserState, context: Context): TemplateElement;
export declare function parseObjectBindingPattern(state: ParserState, context: Context, type: BindingType): ObjectBindingPattern;
export declare function parseObjectBindingPattern(state: ParserState, context: Context, scope: any, type: BindingType): ObjectBindingPattern;
export declare function parseBindingRestProperty(state: ParserState, context: Context, type: BindingType): BindingRestProperty;
export declare function parseBindingProperty(state: ParserState, context: Context, type: BindingType): BindingElement | BindingIdentifier;
export declare function parseBindingElement(state: ParserState, context: Context, type: BindingType): BindingElement | BindingIdentifier;
export declare function parseBindingPattern(state: ParserState, context: Context, type: BindingType): BindingPattern;
export declare function parseBindingPatternOrIdentifier(state: ParserState, context: Context, type: BindingType): BindingPattern | BindingIdentifier;
export declare function parseArrayBindingPattern(state: ParserState, context: Context, type: BindingType): ArrayBindingPattern;
export declare function parseBindingRestElement(state: ParserState, context: Context, type: BindingType): BindingRestElement;
export declare function parseArrayLiteral(state: ParserState, context: Context, isRest: DestuctionKind, type: BindingType): ArrayLiteral | AssignmentElement;
export declare function parseElementList(state: ParserState, context: Context, type: BindingType): SpreadElement | Expression | AssignmentExpression;
export declare function parseSpreadElement(state: ParserState, context: Context, type: BindingType, start: number): SpreadElement;
export declare function parseSpreadProperty(state: ParserState, context: Context, type: BindingType, start: number): SpreadProperty;
export declare function parseAssignmentRestElement(state: ParserState, context: Context, type: BindingType, start: number): AssignmentRestElement;
export declare function parseSpreadOrPropertyArgument(state: ParserState, context: Context, closingToken: Token, isSpread: boolean, type: BindingType, start: number): Expression;
export declare function parseObjectLiteral(state: ParserState, context: Context, isRest: DestuctionKind, type: BindingType): ObjectLiteral | AssignmentElement;
export declare function parseBindingProperty(state: ParserState, context: Context, scope: any, type: BindingType): BindingElement | BindingIdentifier;
export declare function parseBindingElement(state: ParserState, context: Context, scope: any, type: BindingType): BindingElement | BindingIdentifier;
export declare function parseBindingPattern(state: ParserState, context: Context, scope: any, type: BindingType): BindingPattern;
export declare function parseBindingPatternOrIdentifier(state: ParserState, context: Context, scope: any, type: BindingType): BindingPattern | BindingIdentifier;
export declare function parseArrayBindingPattern(state: ParserState, context: Context, scope: any, type: BindingType): ArrayBindingPattern;
export declare function parseBindingRestElement(state: ParserState, context: Context, scope: any, type: BindingType): BindingRestElement;
export declare function parseArrayLiteral(state: ParserState, context: Context, scope: any, isRest: DestuctionKind, type: BindingType): ArrayLiteral | AssignmentElement;
export declare function parseElementList(state: ParserState, context: Context, scope: any, type: BindingType): SpreadElement | Expression | AssignmentExpression;
export declare function parseSpreadElement(state: ParserState, context: Context, scope: any, type: BindingType, start: number): SpreadElement;
export declare function parseSpreadProperty(state: ParserState, context: Context, scope: any, type: BindingType, start: number): SpreadProperty;
export declare function parseAssignmentRestElement(state: ParserState, context: Context, scope: any, type: BindingType, start: number): AssignmentRestElement;
export declare function parseSpreadOrPropertyArgument(state: ParserState, context: Context, closingToken: Token, isSpread: boolean, scope: any, type: BindingType, start: number): Expression;
export declare function parseObjectLiteral(state: ParserState, context: Context, scope: any, isRest: DestuctionKind, type: BindingType): ObjectLiteral | AssignmentElement;
export declare function parseAssignmentElement(state: ParserState, context: Context, destructible: Destructible, left: ArrayLiteral | ObjectLiteral, kind: DestuctionKind, start: number): AssignmentElement;
export declare function parsePropertyDefinition(state: ParserState, context: Context, type: BindingType): SpreadProperty | MethodDefinition;
export declare function parsePropertyDefinition(state: ParserState, context: Context, scope: any, type: BindingType): SpreadProperty | MethodDefinition;
export declare function parsePropertyName(state: ParserState, context: Context): any;
export declare function parseFormalParameters(state: ParserState, context: Context): Parameter[];
export declare function parseUniqueFormalParameters(state: ParserState, context: Context): Parameter[];
export declare function parseFunctionBody(state: ParserState, context: Context, isStatement: boolean): FunctionBody;
export declare function parseFormalParameters(state: ParserState, context: Context, scope: any): Parameter[];
export declare function parseUniqueFormalParameters(state: ParserState, context: Context, scope: any): Parameter[];
export declare function parseFunctionBody(state: ParserState, context: Context, scope: any, isStatement: boolean): FunctionBody;
export declare function parseMethodDefinition(state: ParserState, context: Context, key: MethodName, kind: PropertyKind): MethodDefinition;
export declare function parseFunctionExpression(state: ParserState, context: Context): FunctionExpression | IdentifierReference;
export declare function parseAsyncArrowExpression(state: ParserState, context: Context, start: number): any;
export declare function parseFunctionDeclaration(state: ParserState, context: Context): FunctionDeclaration | ExpressionStatement | ArrowFunction;
export declare function parseFunctionDeclaration(state: ParserState, context: Context, scope: any): FunctionDeclaration | ExpressionStatement | ArrowFunction;
export declare function parseAsyncArrowDeclaration(state: ParserState, context: Context, start: number): any;
export declare function parseArrowAfterIdentifier(state: ParserState, context: Context, params: any, kind: ArrowKind, start: number): any;
export declare function parseCoverCallExpressionAndAsyncArrowHead(state: ParserState, context: Context, expression: any, start: number): ArrowFunction | Expression;
export declare function parseArrowFunction(state: ParserState, context: Context, parameters: ArrowFormals[], isAsync: ArrowKind, start: number): ArrowFunction;
export declare function parseConciseOrFunctionBody(state: ParserState, context: Context): FunctionBody | ConciseBody;
export declare function parseCoverCallExpressionAndAsyncArrowHead(state: ParserState, context: Context, expr: any, start: number): ArrowFunction | Expression;
export declare function parseArrowFunction(state: ParserState, context: Context, scope: any, parameters: ArrowFormals[], isAsync: ArrowKind, start: number): ArrowFunction;
export declare function parseConciseOrFunctionBody(state: ParserState, context: Context, scope: any): FunctionBody | ConciseBody;
export declare function parseCoverParenthesizedExpressionAndArrowParameterList(state: ParserState, context: Context): Expression | ArrowFunction | ParenthesizedExpression;
export declare function parseClassDeclaration(state: ParserState, context: Context): ClassDeclaration;
export declare function parseClassDeclaration(state: ParserState, context: Context, scope: any): ClassDeclaration;
export declare function parseClassExpression(state: ParserState, context: Context): ClassExpression;

@@ -208,3 +209,3 @@ export declare function parseClassElementList(state: ParserState, context: Context, inheritedContext: Context): ClassElement[];

export declare function parseExpressionOrHigher(state: ParserState, context: Context, expr: Expression | CommaOperator | IdentifierReference | ArrowFunction, start: number): Expression;
export declare function parseModuleItem(state: ParserState, context: Context): ImportExport;
export declare function parseModuleItem(state: ParserState, context: Context, scope: any): ImportExport;
export declare function parseImportDeclaration(state: ParserState, context: Context, start: number): ImportDeclaration | ExpressionStatement;

@@ -218,6 +219,6 @@ export declare function parseImportClause(state: ParserState, context: Context): ImportClause;

export declare function parseFromClause(state: ParserState, context: Context): StringLiteral;
export declare function parseExportDeclaration(state: ParserState, context: Context): ExportDeclaration | ExportDefault;
export declare function parseExportDeclaration(state: ParserState, context: Context, scope: any): ExportDeclaration | ExportDefault;
export declare function parseNamedExports(state: ParserState, context: Context): ExportSpecifier[];
export declare function parseExportSpecifier(state: ParserState, context: Context): ExportSpecifier;
export declare function parseExportDefault(state: ParserState, context: Context, start: number): ExportDefault;
export declare function parseExportDefault(state: ParserState, context: Context, start: number, scope: any): ExportDefault;
//# sourceMappingURL=parser.d.ts.map
{
"name": "escaya",
"version": "0.0.20",
"version": "0.0.25",
"description": "An blazing fast 100% spec compliant, incremental javascript parser written in Typescript",

@@ -70,4 +70,4 @@ "main": "dist/escaya.umd.min.js",

"@types/node": "^14.0.14",
"@typescript-eslint/eslint-plugin": "^3.5.0",
"@typescript-eslint/parser": "^3.5.0",
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.9.1",
"chalk": "^3.0.0",

@@ -77,20 +77,20 @@ "coveralls": "^3.0.9",

"eslint": "^7.7.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"glob": "^7.1.6",
"husky": "^4.2.3",
"husky": "^4.2.5",
"mocha": "^8.1.1",
"nyc": "^15.1.0",
"path": "^0.12.7",
"prettier": "^2.0.5",
"prettier": "^2.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.26.3",
"rollup": "^2.26.5",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^6.0.1",
"rollup-plugin-typescript2": "^0.27.1",
"source-map-support": "^0.5.13",
"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-typescript2": "^0.27.2",
"source-map-support": "^0.5.19",
"test262-parser-tests": "0.0.5",
"ts-node": "^8.10.2",
"ts-node": "^9.0.0",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.9.7",
"typescript": "^4.0.2",
"unicode-13.0.0": "^0.8.0"

@@ -97,0 +97,0 @@ },

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

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