meriyah 7.1.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,7 +97,8 @@ export declare const enum Flags {
97
97
  StrictEvalArguments = 512,
98
98
  DisallowCall = 1024,
99
99
  HasOptionalChaining = 2048,
100
- EightAndNine = 4096
100
+ EightAndNine = 4096,
101
+ DisallowInvoke = 8192
101
102
  }
102
103
  export declare const enum HoistedClassFlags {
103
104
  None = 0,
@@ -7,7 +7,11 @@ export type OnComment = (type: ESTree.CommentType, value: string, start: number,
7
7
  export interface Options {
8
8
  sourceType?: SourceType;
9
9
  next?: boolean;
10
- ranges?: boolean;
10
+ ranges?: boolean | {
11
+ start?: boolean;
12
+ end?: boolean;
13
+ range?: boolean;
14
+ };
11
15
  webcompat?: boolean;
12
16
  loc?: boolean;
13
17
  raw?: boolean;
@@ -23,8 +27,14 @@ export interface Options {
23
27
  module?: boolean;
24
28
  globalReturn?: boolean;
25
29
  }
26
- export type NormalizedOptions = Omit<Options, 'validateRegex' | 'onComment' | 'onToken'> & {
30
+ export interface NormalizedRanges {
31
+ start: boolean;
32
+ end: boolean;
33
+ range: boolean;
34
+ }
35
+ export type NormalizedOptions = Omit<Options, 'validateRegex' | 'onComment' | 'onToken' | 'ranges'> & {
27
36
  validateRegex: boolean;
37
+ ranges?: NormalizedRanges;
28
38
  onComment?: OnComment;
29
39
  onToken?: OnToken;
30
40
  };
@@ -32,6 +32,7 @@ export declare class Parser {
32
32
  exportedBindings: Set<string>;
33
33
  assignable: AssignmentTargetKind;
34
34
  destructible: DestructuringKind;
35
+ strictReservedRange: [Location, Location] | null;
35
36
  leadingDecorators: {
36
37
  start?: Location;
37
38
  decorators: ESTree.Decorator[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meriyah",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "A 100% compliant, self-hosted javascript parser with high focus on both performance and stability",
5
5
  "main": "dist/meriyah.cjs",
6
6
  "module": "dist/meriyah.min.mjs",