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

tree-sitter-javascript

Package Overview
Dependencies
Maintainers
14
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.21.2 to 0.21.3

23

grammar.js

@@ -992,3 +992,3 @@ /**

token(choice(
seq('//', /.*/),
seq('//', /[^\r\n\u2028\u2029]*/),
seq(

@@ -1091,5 +1091,5 @@ '/*',

// eslint-disable-next-line max-len
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
// eslint-disable-next-line max-len
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
return token(seq(alpha, repeat(alphanumeric)));

@@ -1100,5 +1100,5 @@ },

// eslint-disable-next-line max-len
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
const alpha = /[^\x00-\x1F\s\p{Zs}0-9:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
// eslint-disable-next-line max-len
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
const alphanumeric = /[^\x00-\x1F\s\p{Zs}:;`"'@#.,|^&<=>+\-*/\\%?!~()\[\]{}\uFEFF\u2060\u200B\u2028\u2029]|\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]+\}/;
return token(seq('#', alpha, repeat(alphanumeric)));

@@ -1201,3 +1201,6 @@ },

repeat(field('decorator', $.decorator)),
optional(choice('static', alias(token(seq('static', /\s+/, 'get', /\s*\n/)), 'static get'))),
optional(choice(
'static',
alias(token(seq('static', /\s+/, 'get', /\s*\n/)), 'static get'),
)),
optional('async'),

@@ -1223,6 +1226,6 @@ optional(choice('get', 'set', '*')),

_property_name: $ => choice(
alias(choice(
$.identifier,
$._reserved_identifier,
), $.property_identifier),
alias(
choice($.identifier, $._reserved_identifier),
$.property_identifier,
),
$.private_property_identifier,

@@ -1229,0 +1232,0 @@ $.string,

{
"name": "tree-sitter-javascript",
"version": "0.21.2",
"version": "0.21.3",
"description": "JavaScript grammar for tree-sitter",

@@ -58,3 +58,6 @@ "repository": "github:tree-sitter/tree-sitter-javascript",

"file-types": [
"js"
"js",
"mjs",
"cjs",
"jsx"
],

@@ -61,0 +64,0 @@ "highlights": [

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

Sorry, the diff of this file is too big to display

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