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

tree-sitter-javascript

Package Overview
Dependencies
Maintainers
11
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-javascript - npm Package Compare versions

Comparing version 0.15.1 to 0.15.2

queries/highlights-jsx.scm

141

grammar.js

@@ -6,5 +6,5 @@ const PREC = {

COMMA: -1,
OBJECT: -1,
DECLARATION: 1,
ASSIGN: 0,
OBJECT: 1,
TERNARY: 1,

@@ -49,2 +49,3 @@ OR: 2,

inline: $ => [
$._call_signature,
$._constructable_expression,

@@ -65,2 +66,3 @@ $._statement,

$._jsx_identifier,
$._lhs_expression,
],

@@ -78,2 +80,3 @@

[$.computed_property_name, $.array],
[$._for_header, $._expression],
],

@@ -145,3 +148,5 @@

import_statement: $ => seq(
import: $ => token('import'),
import_statement: $ => prec(1, seq(
'import',

@@ -153,3 +158,3 @@ choice(

$._semicolon
),
)),

@@ -202,3 +207,2 @@ import_clause: $ => choice(

$.for_in_statement,
$.for_of_statement,
$.while_statement,

@@ -228,4 +232,2 @@ $.do_statement,

// let x = y, z = a;
lexical_declaration: $ => seq(

@@ -242,7 +244,8 @@ choice('let', 'const'),

statement_block: $ => seq(
statement_block: $ => prec.right(seq(
'{',
repeat($._statement),
'}'
),
'}',
optional($._automatic_semicolon)
)),

@@ -261,5 +264,3 @@ if_statement: $ => prec.right(seq(

'switch',
'(',
field('value', $._expressions),
')',
field('value', $.parenthesized_expression),
field('body', $.switch_body)

@@ -288,21 +289,14 @@ ),

'for',
'(',
optional(choice('var', 'let', 'const')),
field('left', choice($.identifier, $._destructuring_pattern)),
'in',
field('right', $._expressions),
')',
optional('await'),
$._for_header,
field('body', $._statement)
),
for_of_statement: $ => seq(
'for',
optional('await'),
_for_header: $ => seq(
'(',
optional(choice('var', 'let', 'const')),
field('left', choice($.identifier, $._destructuring_pattern)),
'of',
field('right', $._expression),
field('left', choice($.parenthesized_expression, $._lhs_expression)),
choice('in', 'of'),
field('right', $._expressions),
')',
field('body', $._statement)
),

@@ -356,3 +350,3 @@

'return',
optional(field('argument', $._expressions)),
optional($._expressions),
$._semicolon

@@ -363,3 +357,3 @@ ),

'throw',
field('argument', $._expressions),
$._expressions,
$._semicolon

@@ -371,3 +365,3 @@ ),

labeled_statement: $ => prec.dynamic(-1, seq(
field('label', alias($.identifier, $.statement_identifier)),
field('label', alias(choice($.identifier, $._reserved_identifier), $.statement_identifier)),
':',

@@ -402,3 +396,3 @@ $._statement

'catch',
optional(seq('(', field('parameter', $.identifier), ')')),
optional(seq('(', field('parameter', choice($.identifier, $._destructuring_pattern)), ')')),
field('body', $.statement_block)

@@ -444,4 +438,6 @@ ),

'yield',
optional(field('argument', $._expression))
)),
choice(
seq('*', $._expression),
optional($._expression)
))),

@@ -465,3 +461,3 @@ object: $ => prec(PREC.OBJECT, seq(

field('left', choice(
alias($.identifier, $.shorthand_property_identifier),
alias(choice($._reserved_identifier, $.identifier), $.shorthand_property_identifier),
$._destructuring_pattern

@@ -595,11 +591,11 @@ )),

field('name', optional($.identifier)),
field('parameters', $.formal_parameters),
$._call_signature,
field('body', $.statement_block)
),
function_declaration: $ => prec(PREC.DECLARATION, seq(
function_declaration: $ => prec.right(PREC.DECLARATION, seq(
optional('async'),
'function',
field('name', $.identifier),
field('parameters', $.formal_parameters),
$._call_signature,
field('body', $.statement_block),

@@ -610,14 +606,16 @@ optional($._automatic_semicolon)

generator_function: $ => seq(
optional('async'),
'function',
'*',
field('name', optional($.identifier)),
field('parameters', $.formal_parameters),
$._call_signature,
field('body', $.statement_block)
),
generator_function_declaration: $ => prec(PREC.DECLARATION, seq(
generator_function_declaration: $ => prec.right(PREC.DECLARATION, seq(
optional('async'),
'function',
'*',
field('name', $.identifier),
field('parameters', $.formal_parameters),
$._call_signature,
field('body', $.statement_block),

@@ -630,4 +628,7 @@ optional($._automatic_semicolon)

choice(
field('parameter', $.identifier),
field('parameters', $.formal_parameters)
field('parameter', choice(
alias($._reserved_identifier, $.identifier),
$.identifier,
)),
$._call_signature
),

@@ -641,2 +642,7 @@ '=>',

// Override
_call_signature: $ => seq(
field('parameters', $.formal_parameters)
),
call_expression: $ => prec(PREC.CALL, seq(

@@ -666,2 +672,3 @@ field('function', choice($._expression, $.super, $.function)),

$.undefined,
$.import,
$.object,

@@ -701,10 +708,12 @@ $.array,

_lhs_expression: $ => choice(
$.member_expression,
$.subscript_expression,
$.identifier,
alias($._reserved_identifier, $.identifier),
$._destructuring_pattern
),
assignment_expression: $ => prec.right(PREC.ASSIGN, seq(
field('left', choice(
$.member_expression,
$.subscript_expression,
$.identifier,
alias($._reserved_identifier, $.identifier),
$._destructuring_pattern
)),
field('left', choice($.parenthesized_expression, $._lhs_expression)),
'=',

@@ -719,3 +728,4 @@ field('right', $._expression)

alias($._reserved_identifier, $.identifier),
$.identifier
$.identifier,
$.parenthesized_expression,
)),

@@ -747,9 +757,2 @@ choice('+=', '-=', '*=', '/=', '%=', '^=', '&=', '|=', '>>=', '>>>=', '<<=', '**='),

binary_expression: $ => choice(
// Avoid a conflict between `for_in_statement` and the `in` operator
prec.left(PREC.REL, seq(
field('left', choice($.identifier, $.object, $.array)),
field('operator', 'in'),
field('right', $._expression)
)),
...[

@@ -829,3 +832,3 @@ ['&&', PREC.AND],

repeat(choice(
token.immediate(prec(PREC.STRING, /[^"\\\n]+/)),
token.immediate(prec(PREC.STRING, /[^"\\\n]+|\\\r?\n/)),
$.escape_sequence

@@ -838,3 +841,3 @@ )),

repeat(choice(
token.immediate(prec(PREC.STRING, /[^'\\\n]+/)),
token.immediate(prec(PREC.STRING, /[^'\\\n]+|\\\r?\n/)),
$.escape_sequence

@@ -910,18 +913,18 @@ )),

choice('0x', '0X'),
/[\da-fA-F]+/
/[\da-fA-F](_?[\da-fA-F])*/
)
const decimal_digits = /\d+/
const decimal_digits = /\d(_?\d)*/
const signed_integer = seq(optional(choice('-','+')), decimal_digits)
const exponent_part = seq(choice('e', 'E'), signed_integer)
const binary_literal = seq(choice('0b', '0B'), /[0-1]+/)
const binary_literal = seq(choice('0b', '0B'), /[0-1](_?[0-1])*/)
const octal_literal = seq(choice('0o', '0O'), /[0-7]+/)
const octal_literal = seq(choice('0o', '0O'), /[0-7](_?[0-7])*/)
const bigint_literal = seq(decimal_digits, 'n')
const bigint_literal = seq(choice(hex_literal, binary_literal, octal_literal, decimal_digits), 'n')
const decimal_integer_literal = choice(
'0',
seq(optional('0'), /[1-9]/, optional(decimal_digits))
seq(optional('0'), /[1-9]/, optional(seq(optional('_'), decimal_digits)))
)

@@ -932,3 +935,4 @@

seq('.', decimal_digits, optional(exponent_part)),
seq(decimal_integer_literal, optional(exponent_part))
seq(decimal_integer_literal, exponent_part),
seq(decimal_digits),
)

@@ -946,4 +950,4 @@

identifier: $ => {
const alpha = /[^\s0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u00A0]/
const alpha_numeric = /[^\s:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u00A0]/
const alpha = /[^\s0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u00A0]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/
const alpha_numeric = /[^\s:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u00A0]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/

@@ -1037,3 +1041,6 @@ return token(seq(alpha, repeat(alpha_numeric)))

'...',
$.identifier
choice(
$.identifier,
$._destructuring_pattern,
)
),

@@ -1040,0 +1047,0 @@

{
"name": "tree-sitter-javascript",
"version": "0.15.1",
"version": "0.15.2",
"description": "Javascript grammar for node-tree-sitter",

@@ -19,3 +19,3 @@ "main": "index.js",

"esprima": "^2.7.1",
"tree-sitter-cli": "^0.15.5",
"tree-sitter-cli": "^0.15.7",
"tree-sitter-highlight-schema": "0.1.1"

@@ -34,3 +34,6 @@ },

],
"highlights": "src/highlights.json",
"highlights": [
"queries/highlights-jsx.scm",
"queries/highlights.scm"
],
"injection-regex": "^(js|javascript)$"

@@ -37,0 +40,0 @@ }

@@ -95,2 +95,6 @@ [

{
"type": "import",
"named": true
},
{
"type": "jsx_element",

@@ -222,6 +226,2 @@ "named": true

{
"type": "for_of_statement",
"named": true
},
{
"type": "for_statement",

@@ -311,2 +311,21 @@ "named": true

{
"type": "array_pattern",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "_expression",
"named": true
},
{
"type": "spread_element",
"named": true
}
]
}
},
{
"type": "arrow_function",

@@ -372,2 +391,6 @@ "named": true,

{
"type": "parenthesized_expression",
"named": true
},
{
"type": "subscript_expression",

@@ -437,2 +460,6 @@ "named": true

{
"type": "parenthesized_expression",
"named": true
},
{
"type": "subscript_expression",

@@ -460,4 +487,4 @@ "named": true

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -482,14 +509,2 @@ {

"named": true
},
{
"type": "array",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "object",
"named": true
}

@@ -677,2 +692,6 @@ ]

{
"type": "_destructuring_pattern",
"named": true
},
{
"type": "identifier",

@@ -721,3 +740,3 @@ "named": true

"children": {
"multiple": true,
"multiple": false,
"required": false,

@@ -788,3 +807,3 @@ "types": [

"children": {
"multiple": true,
"multiple": false,
"required": false,

@@ -804,4 +823,4 @@ "types": [

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -820,4 +839,4 @@ {

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -857,4 +876,4 @@ {

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -881,3 +900,3 @@ {

"body": {
"multiple": true,
"multiple": false,
"required": true,

@@ -892,3 +911,3 @@ "types": [

"condition": {
"multiple": true,
"multiple": false,
"required": true,

@@ -950,3 +969,3 @@ "types": [

"multiple": false,
"required": true,
"required": false,
"types": [

@@ -971,3 +990,3 @@ {

"children": {
"multiple": true,
"multiple": false,
"required": false,

@@ -987,4 +1006,4 @@ "types": [

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -1023,3 +1042,3 @@ {

"body": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1034,3 +1053,3 @@ "types": [

"left": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1045,31 +1064,13 @@ "types": [

"named": true
}
]
},
"right": {
"multiple": true,
"required": true,
"types": [
},
{
"type": "_expression",
"type": "member_expression",
"named": true
},
{
"type": "sequence_expression",
"type": "parenthesized_expression",
"named": true
}
]
}
}
},
{
"type": "for_of_statement",
"named": true,
"fields": {
"body": {
"multiple": true,
"required": true,
"types": [
},
{
"type": "_statement",
"type": "subscript_expression",
"named": true

@@ -1079,25 +1080,15 @@ }

},
"left": {
"multiple": true,
"right": {
"multiple": false,
"required": true,
"types": [
{
"type": "_destructuring_pattern",
"type": "_expression",
"named": true
},
{
"type": "identifier",
"type": "sequence_expression",
"named": true
}
]
},
"right": {
"multiple": true,
"required": true,
"types": [
{
"type": "_expression",
"named": true
}
]
}

@@ -1111,3 +1102,3 @@ }

"body": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1122,3 +1113,3 @@ "types": [

"condition": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1137,3 +1128,3 @@ "types": [

"increment": {
"multiple": true,
"multiple": false,
"required": false,

@@ -1152,3 +1143,3 @@ "types": [

"initializer": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1352,3 +1343,3 @@ "types": [

"alternative": {
"multiple": true,
"multiple": false,
"required": false,

@@ -1363,3 +1354,3 @@ "types": [

"condition": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1374,3 +1365,3 @@ "types": [

"consequence": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1387,2 +1378,7 @@ "types": [

{
"type": "import",
"named": true,
"fields": {}
},
{
"type": "import_clause",

@@ -1393,3 +1389,3 @@ "named": true,

"multiple": true,
"required": false,
"required": true,
"types": [

@@ -1427,3 +1423,3 @@ {

"children": {
"multiple": true,
"multiple": false,
"required": false,

@@ -1444,3 +1440,3 @@ "types": [

"multiple": true,
"required": false,
"required": true,
"types": [

@@ -1555,3 +1551,3 @@ {

"children": {
"multiple": true,
"multiple": false,
"required": false,

@@ -1607,3 +1603,3 @@ "types": [

"multiple": true,
"required": false,
"required": true,
"types": [

@@ -1698,3 +1694,3 @@ {

"label": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1710,4 +1706,4 @@ "types": [

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -1727,3 +1723,3 @@ {

"multiple": true,
"required": false,
"required": true,
"types": [

@@ -1742,3 +1738,3 @@ {

"object": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1757,3 +1753,3 @@ "types": [

"property": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1852,4 +1848,4 @@ "types": [

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -1869,3 +1865,3 @@ {

"multiple": true,
"required": false,
"required": true,
"types": [

@@ -1888,3 +1884,3 @@ {

"arguments": {
"multiple": true,
"multiple": false,
"required": false,

@@ -1899,3 +1895,3 @@ "types": [

"constructor": {
"multiple": true,
"multiple": false,
"required": true,

@@ -1932,2 +1928,6 @@ "types": [

{
"type": "import",
"named": true
},
{
"type": "member_expression",

@@ -2024,2 +2024,33 @@ "named": true

{
"type": "object_pattern",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "assignment_pattern",
"named": true
},
{
"type": "method_definition",
"named": true
},
{
"type": "pair",
"named": true
},
{
"type": "shorthand_property_identifier",
"named": true
},
{
"type": "spread_element",
"named": true
}
]
}
},
{
"type": "pair",

@@ -2067,4 +2098,4 @@ "named": true,

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -2129,3 +2160,3 @@ {

"multiple": false,
"required": true,
"required": false,
"types": [

@@ -2171,6 +2202,10 @@ {

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [
{
"type": "_destructuring_pattern",
"named": true
},
{
"type": "identifier",

@@ -2185,17 +2220,16 @@ "named": true

"named": true,
"fields": {
"argument": {
"multiple": false,
"required": false,
"types": [
{
"type": "_expression",
"named": true
},
{
"type": "sequence_expression",
"named": true
}
]
}
"fields": {},
"children": {
"multiple": false,
"required": false,
"types": [
{
"type": "_expression",
"named": true
},
{
"type": "sequence_expression",
"named": true
}
]
}

@@ -2208,3 +2242,3 @@ },

"left": {
"multiple": true,
"multiple": false,
"required": true,

@@ -2219,3 +2253,3 @@ "types": [

"right": {
"multiple": true,
"multiple": false,
"required": true,

@@ -2240,4 +2274,4 @@ "types": [

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -2398,8 +2432,4 @@ {

{
"type": "_expression",
"type": "parenthesized_expression",
"named": true
},
{
"type": "sequence_expression",
"named": true
}

@@ -2434,4 +2464,4 @@ ]

"children": {
"multiple": true,
"required": false,
"multiple": false,
"required": true,
"types": [

@@ -2488,17 +2518,16 @@ {

"named": true,
"fields": {
"argument": {
"multiple": false,
"required": true,
"types": [
{
"type": "_expression",
"named": true
},
{
"type": "sequence_expression",
"named": true
}
]
}
"fields": {},
"children": {
"multiple": false,
"required": true,
"types": [
{
"type": "_expression",
"named": true
},
{
"type": "sequence_expression",
"named": true
}
]
}

@@ -2628,3 +2657,3 @@ },

"multiple": true,
"required": false,
"required": true,
"types": [

@@ -2658,3 +2687,3 @@ {

"multiple": false,
"required": true,
"required": false,
"types": [

@@ -2674,3 +2703,3 @@ {

"body": {
"multiple": true,
"multiple": false,
"required": true,

@@ -2685,3 +2714,3 @@ "types": [

"condition": {
"multiple": true,
"multiple": false,
"required": true,

@@ -2702,3 +2731,3 @@ "types": [

"body": {
"multiple": true,
"multiple": false,
"required": true,

@@ -2713,3 +2742,3 @@ "types": [

"object": {
"multiple": true,
"multiple": false,
"required": true,

@@ -2728,140 +2757,131 @@ "types": [

"named": true,
"fields": {
"argument": {
"multiple": false,
"required": false,
"types": [
{
"type": "_expression",
"named": true
}
]
}
"fields": {},
"children": {
"multiple": false,
"required": false,
"types": [
{
"type": "_expression",
"named": true
}
]
}
},
{
"type": "hash_bang_line",
"named": true
},
{
"type": "export",
"type": "!",
"named": false
},
{
"type": "*",
"type": "!=",
"named": false
},
{
"type": "default",
"type": "!==",
"named": false
},
{
"type": "{",
"type": "\"",
"named": false
},
{
"type": ",",
"type": "${",
"named": false
},
{
"type": "}",
"type": "%",
"named": false
},
{
"type": "as",
"type": "%=",
"named": false
},
{
"type": "import",
"type": "&",
"named": false
},
{
"type": "from",
"type": "&&",
"named": false
},
{
"type": "var",
"type": "&=",
"named": false
},
{
"type": "let",
"type": "'",
"named": false
},
{
"type": "const",
"type": "(",
"named": false
},
{
"type": "if",
"type": ")",
"named": false
},
{
"type": "else",
"type": "*",
"named": false
},
{
"type": "switch",
"type": "**",
"named": false
},
{
"type": "(",
"type": "**=",
"named": false
},
{
"type": ")",
"type": "*=",
"named": false
},
{
"type": "for",
"type": "+",
"named": false
},
{
"type": "in",
"type": "++",
"named": false
},
{
"type": "await",
"type": "+=",
"named": false
},
{
"type": "of",
"type": ",",
"named": false
},
{
"type": "while",
"type": "-",
"named": false
},
{
"type": "do",
"type": "--",
"named": false
},
{
"type": "try",
"type": "-=",
"named": false
},
{
"type": "with",
"type": ".",
"named": false
},
{
"type": "break",
"type": "...",
"named": false
},
{
"type": "continue",
"type": "/",
"named": false
},
{
"type": "debugger",
"type": "/=",
"named": false
},
{
"type": "return",
"type": ":",
"named": false
},
{
"type": "throw",
"named": false
},
{
"type": ";",

@@ -2871,22 +2891,18 @@ "named": false

{
"type": ":",
"type": "<",
"named": false
},
{
"type": "case",
"type": "<<",
"named": false
},
{
"type": "catch",
"type": "<<=",
"named": false
},
{
"type": "finally",
"type": "<=",
"named": false
},
{
"type": "yield",
"named": false
},
{
"type": "=",

@@ -2896,11 +2912,11 @@ "named": false

{
"type": "[",
"type": "==",
"named": false
},
{
"type": "]",
"type": "===",
"named": false
},
{
"type": "<",
"type": "=>",
"named": false

@@ -2913,289 +2929,301 @@ },

{
"type": "/",
"type": ">=",
"named": false
},
{
"type": "jsx_text",
"named": true
"type": ">>",
"named": false
},
{
"type": "jsx_identifier",
"named": true
"type": ">>=",
"named": false
},
{
"type": ".",
"type": ">>>",
"named": false
},
{
"type": "class",
"type": ">>>=",
"named": false
},
{
"type": "extends",
"type": "?",
"named": false
},
{
"type": "async",
"type": "@",
"named": false
},
{
"type": "function",
"type": "[",
"named": false
},
{
"type": "=>",
"type": "]",
"named": false
},
{
"type": "new",
"type": "^",
"named": false
},
{
"type": "+=",
"type": "^=",
"named": false
},
{
"type": "-=",
"type": "`",
"named": false
},
{
"type": "*=",
"type": "as",
"named": false
},
{
"type": "/=",
"type": "async",
"named": false
},
{
"type": "%=",
"type": "await",
"named": false
},
{
"type": "^=",
"type": "break",
"named": false
},
{
"type": "&=",
"type": "case",
"named": false
},
{
"type": "|=",
"type": "catch",
"named": false
},
{
"type": ">>=",
"type": "class",
"named": false
},
{
"type": ">>>=",
"type": "const",
"named": false
},
{
"type": "<<=",
"type": "continue",
"named": false
},
{
"type": "**=",
"type": "debugger",
"named": false
},
{
"type": "...",
"type": "default",
"named": false
},
{
"type": "?",
"type": "delete",
"named": false
},
{
"type": "&&",
"type": "do",
"named": false
},
{
"type": "||",
"type": "else",
"named": false
},
{
"type": ">>",
"named": false
"type": "escape_sequence",
"named": true
},
{
"type": ">>>",
"type": "export",
"named": false
},
{
"type": "<<",
"type": "extends",
"named": false
},
{
"type": "&",
"named": false
"type": "false",
"named": true
},
{
"type": "^",
"type": "finally",
"named": false
},
{
"type": "|",
"type": "for",
"named": false
},
{
"type": "+",
"type": "from",
"named": false
},
{
"type": "-",
"type": "function",
"named": false
},
{
"type": "%",
"type": "get",
"named": false
},
{
"type": "**",
"named": false
"type": "hash_bang_line",
"named": true
},
{
"type": "<=",
"named": false
"type": "identifier",
"named": true
},
{
"type": "==",
"type": "if",
"named": false
},
{
"type": "===",
"type": "import",
"named": false
},
{
"type": "!=",
"type": "in",
"named": false
},
{
"type": "!==",
"type": "instanceof",
"named": false
},
{
"type": ">=",
"named": false
"type": "jsx_text",
"named": true
},
{
"type": "instanceof",
"type": "let",
"named": false
},
{
"type": "!",
"type": "new",
"named": false
},
{
"type": "~",
"named": false
"type": "null",
"named": true
},
{
"type": "typeof",
"named": false
"type": "number",
"named": true
},
{
"type": "void",
"type": "of",
"named": false
},
{
"type": "delete",
"named": false
"type": "property_identifier",
"named": true
},
{
"type": "++",
"named": false
"type": "regex_flags",
"named": true
},
{
"type": "--",
"named": false
"type": "regex_pattern",
"named": true
},
{
"type": "\"",
"type": "return",
"named": false
},
{
"type": "'",
"type": "set",
"named": false
},
{
"type": "escape_sequence",
"type": "shorthand_property_identifier",
"named": true
},
{
"type": "comment",
"type": "statement_identifier",
"named": true
},
{
"type": "`",
"type": "static",
"named": false
},
{
"type": "${",
"type": "super",
"named": true
},
{
"type": "switch",
"named": false
},
{
"type": "/",
"type": "target",
"named": false
},
{
"type": "regex_pattern",
"type": "this",
"named": true
},
{
"type": "regex_flags",
"named": true
"type": "throw",
"named": false
},
{
"type": "number",
"type": "true",
"named": true
},
{
"type": "identifier",
"named": true
"type": "try",
"named": false
},
{
"type": "target",
"type": "typeof",
"named": false
},
{
"type": "this",
"type": "undefined",
"named": true
},
{
"type": "super",
"named": true
"type": "var",
"named": false
},
{
"type": "true",
"named": true
"type": "void",
"named": false
},
{
"type": "false",
"named": true
"type": "while",
"named": false
},
{
"type": "null",
"named": true
"type": "with",
"named": false
},
{
"type": "undefined",
"named": true
"type": "yield",
"named": false
},
{
"type": "@",
"type": "{",
"named": false
},
{
"type": "static",
"type": "|",
"named": false
},
{
"type": "get",
"type": "|=",
"named": false
},
{
"type": "set",
"type": "||",
"named": false
},
{
"type": "}",
"named": false
},
{
"type": "~",
"named": false
}
]

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 not supported yet

Sorry, the diff of this file is not supported yet

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