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 1.3.0-dev.20190706 to 1.3.0

3

dist/lexer/charClassifier.d.ts

@@ -18,3 +18,4 @@ export declare const enum CharFlags {

StringLiteral = 4194304,
JSXToken = 8388608
JSXToken = 8388608,
Hyphen = 16777216
}

@@ -21,0 +22,0 @@ export declare const CharTypes: number[];

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

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

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

export declare function parseBindingPattern(parser: ParserState, context: Context, scope: ESTree.Scope, dupeChecks: 0 | 1, type: BindingType, origin: BindingOrigin, start: number, line: number, column: number): ESTree.BindingPattern;
export declare function parseOpeningFragment(parser: ParserState, context: Context, start: number, line: number, column: number): ESTree.JSXOpeningFragment;
export declare function parseJSXClosingFragment(parser: ParserState, context: Context, isJSXChild: 0 | 1, start: number, line: number, column: number): ESTree.JSXClosingFragment;

@@ -103,0 +104,0 @@ export declare function parseJSXChildren(parser: ParserState, context: Context): ESTree.JSXChild[];

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

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

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

}
}
}

@@ -0,0 +0,0 @@ <h1 align="center">Meriyah</h1>

@@ -22,2 +22,3 @@ import { unicodeLookup } from '../unicode';

JSXToken = 1 << 23,
Hyphen = 1 << 24,
}

@@ -74,3 +75,3 @@

CharFlags.None /* 0x2C */,
CharFlags.Exponent /* 0x2D */,
CharFlags.Exponent | CharFlags.Hyphen /* 0x2D */,
CharFlags.None /* 0x2E */,

@@ -77,0 +78,0 @@ CharFlags.None /* 0x2F */,

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

import { CharFlags, CharTypes, isIdentifierStart, isIdentifierPart } from './charClassifier';
import { CharFlags, CharTypes } from './charClassifier';
import { Chars } from '../chars';

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

* Scans JSX identifier
*
* @param parser The parser instance
* @param context Context masks
*/

@@ -91,8 +91,5 @@ export function scanJSXIdentifier(parser: ParserState): Token {

const { index } = parser;
while (parser.index < parser.end) {
const char = parser.nextCP;
if (char === Chars.Hyphen || (index === parser.index ? isIdentifierStart(char) : isIdentifierPart(char))) {
nextCP(parser);
} else break;
let char = parser.nextCP;
while ((CharTypes[char] & (CharFlags.Hyphen | CharFlags.IdentifierPart)) !== 0) {
char = nextCP(parser);
}

@@ -99,0 +96,0 @@ parser.tokenValue += parser.source.slice(index, parser.index);

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

export const version = '1.2.6';
export const version = '1.3.0';

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