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

shift-parser

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shift-parser - npm Package Compare versions

Comparing version 6.0.1 to 7.0.0

2

dist/early-errors.js

@@ -100,3 +100,3 @@ 'use strict';

var SUPERCALL_ERROR = function SUPERCALL_ERROR(node) {
return new _earlyErrorState.EarlyError(node, 'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass');
return new _earlyErrorState.EarlyError(node, _errors.ErrorMessages.ILLEGAL_SUPER_CALL);
};

@@ -103,0 +103,0 @@ var SUPERPROPERTY_ERROR = function SUPERPROPERTY_ERROR(node) {

@@ -39,4 +39,7 @@ 'use strict';

UNEXPECTED_COMMA_AFTER_REST: 'Unexpected comma after rest',
UNEXPECTED_REST_PARAMETERS_INITIALIZATION: 'Rest parameter may not have a default initializer',
NEWLINE_AFTER_THROW: 'Illegal newline after throw',
UNTERMINATED_REGEXP: 'Invalid regular expression: missing /',
INVALID_LAST_REST_PARAMETER: 'Rest parameter must be last formal parameter',
INVALID_REST_PARAMETERS_INITIALIZATION: 'Rest parameter may not have a default initializer',
INVALID_REGEXP_FLAGS: 'Invalid regular expression flags',

@@ -48,2 +51,3 @@ INVALID_REGEX: 'Invalid regular expression',

INVALID_LHS_IN_FOR_OF: 'Invalid left-hand side in for-of',
INVALID_LHS_IN_FOR_AWAIT: 'Invalid left-hand side in for-await',
INVALID_UPDATE_OPERAND: 'Increment/decrement target must be an identifier or member expression',

@@ -55,4 +59,6 @@ INVALID_EXPONENTIATION_LHS: 'Unary expressions as the left operand of an exponentation expression ' + 'must be disambiguated with parentheses',

ILLEGAL_ARROW_FUNCTION_PARAMS: 'Illegal arrow function parameter list',
INVALID_ASYNC_PARAMS: 'Async function parameters must not contain await expressions',
INVALID_VAR_INIT_FOR_IN: 'Invalid variable declaration in for-in statement',
INVALID_VAR_INIT_FOR_OF: 'Invalid variable declaration in for-of statement',
INVALID_VAR_INIT_FOR_AWAIT: 'Invalid variable declaration in for-await statement',
UNINITIALIZED_BINDINGPATTERN_IN_FOR_INIT: 'Binding pattern appears without initializer in for statement init',

@@ -94,2 +100,3 @@ ILLEGAL_PROPERTY: 'Illegal property initializer',

ILLEGAL_ACCESS_SUPER_MEMBER: 'Member access on super must be in a method',
ILLEGAL_SUPER_CALL: 'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',
DUPLICATE_LABEL_DECLARATION: function DUPLICATE_LABEL_DECLARATION(label) {

@@ -96,0 +103,0 @@ return 'Label ' + JSON.stringify(label) + ' has already been declared';

{
"name": "shift-parser",
"version": "6.0.1",
"version": "7.0.0",
"description": "ECMAScript parser that produces a Shift format AST",

@@ -17,3 +17,4 @@ "author": "Shape Security",

"clean": "rm -rf dist coverage .nyc_output",
"test": "mocha --inline-diffs --check-leaks --ui tdd --reporter dot --slow 200 --timeout 5000 --recursive test --compilers js:babel-core/register",
"test-specific": "mocha --inline-diffs --check-leaks --ui tdd --reporter dot --slow 200 --timeout 5000 --recursive test/$TEST --compilers js:babel-core/register",
"test": "TEST=\"\" npm run test-specific",
"coverage": "npm run build -- --plugins=istanbul && nyc --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 npm test",

@@ -29,5 +30,5 @@ "lint": "eslint src test",

"multimap": "^1.0.2",
"shift-ast": "^5.0.0",
"shift-reducer": "^5.0.0",
"shift-regexp-acceptor": "^1.0.1"
"shift-ast": "6.0.0",
"shift-reducer": "6.0.0",
"shift-regexp-acceptor": "2.0.2"
},

@@ -52,7 +53,7 @@ "devDependencies": {

"regenerate": "^1.4.0",
"shift-parser-expectations": "^2017.0.0",
"shift-spec": "^2017.0.0",
"shift-parser-expectations": "^2018.0.2",
"shift-spec": "2018.0.2",
"test262": "git+https://github.com/tc39/test262.git#8ed9947df1c4ea34fa1810067529df0806cc07ad",
"test262-parser": "^2.0.7",
"test262-parser-tests": "0.0.3",
"test262-parser-tests": "0.0.5",
"tick": "0.1.1",

@@ -59,0 +60,0 @@ "traceur": "0.0.111",

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