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

hermes-estree

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermes-estree - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

34

dist/generated/predicates.js

@@ -9,3 +9,10 @@ /**

* @format
* @generated
*/
/*
* !!! GENERATED FILE !!!
*
* Any manual changes to this file will be overwritten. To regenerate run `yarn build`.
*/
// lint directives to let us do some basic validation of generated files

@@ -34,2 +41,3 @@

exports.isBigIntLiteralTypeAnnotation = isBigIntLiteralTypeAnnotation;
exports.isBigIntTypeAnnotation = isBigIntTypeAnnotation;
exports.isBinaryExpression = isBinaryExpression;

@@ -318,2 +326,6 @@ exports.isBitwiseANDEqualToken = isBitwiseANDEqualToken;

function isBigIntTypeAnnotation(node) {
return node.type === 'BigIntTypeAnnotation';
}
function isBinaryExpression(node) {

@@ -1224,43 +1236,43 @@ return node.type === 'BinaryExpression';

function isAsKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'as';
return node.type === 'Identifier' && node.name === 'as' || node.type === 'Keyword' && node.value === 'as';
}
function isAsyncKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'async';
return node.type === 'Identifier' && node.name === 'async' || node.type === 'Keyword' && node.value === 'async';
}
function isAwaitKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'await';
return node.type === 'Identifier' && node.name === 'await' || node.type === 'Keyword' && node.value === 'await';
}
function isDeclareKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'declare';
return node.type === 'Identifier' && node.name === 'declare' || node.type === 'Keyword' && node.value === 'declare';
}
function isFromKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'from';
return node.type === 'Identifier' && node.name === 'from' || node.type === 'Keyword' && node.value === 'from';
}
function isGetKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'get';
return node.type === 'Identifier' && node.name === 'get' || node.type === 'Keyword' && node.value === 'get';
}
function isLetKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'let';
return node.type === 'Identifier' && node.name === 'let' || node.type === 'Keyword' && node.value === 'let';
}
function isModuleKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'module';
return node.type === 'Identifier' && node.name === 'module' || node.type === 'Keyword' && node.value === 'module';
}
function isOfKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'of';
return node.type === 'Identifier' && node.name === 'of' || node.type === 'Keyword' && node.value === 'of';
}
function isSetKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'set';
return node.type === 'Identifier' && node.name === 'set' || node.type === 'Keyword' && node.value === 'set';
}
function isTypeKeyword(node) {
return (node.type === 'Identifier' || node.type === 'Keyword') && node.value === 'type';
return node.type === 'Identifier' && node.name === 'type' || node.type === 'Keyword' && node.value === 'type';
}

@@ -1267,0 +1279,0 @@

@@ -32,3 +32,5 @@ /**

isRegExpLiteral: true,
isStringLiteral: true
isStringLiteral: true,
isExpression: true,
isStatement: true
};

@@ -41,2 +43,3 @@ exports.isBigIntLiteral = isBigIntLiteral;

exports.isComment = isComment;
exports.isExpression = isExpression;
exports.isFunction = isFunction;

@@ -52,2 +55,3 @@ exports.isMemberExpressionWithNonComputedProperty = isMemberExpressionWithNonComputedProperty;

exports.isRegExpLiteral = isRegExpLiteral;
exports.isStatement = isStatement;
exports.isStringLiteral = isStringLiteral;

@@ -130,2 +134,10 @@

return (0, _predicates.isLiteral)(node) && node.literalType === 'string';
}
function isExpression(node) {
return (0, _predicates.isThisExpression)(node) || (0, _predicates.isArrayExpression)(node) || (0, _predicates.isObjectExpression)(node) || (0, _predicates.isFunctionExpression)(node) || (0, _predicates.isArrowFunctionExpression)(node) || (0, _predicates.isYieldExpression)(node) || (0, _predicates.isLiteral)(node) || (0, _predicates.isUnaryExpression)(node) || (0, _predicates.isUpdateExpression)(node) || (0, _predicates.isBinaryExpression)(node) || (0, _predicates.isAssignmentExpression)(node) || (0, _predicates.isLogicalExpression)(node) || (0, _predicates.isMemberExpression)(node) || (0, _predicates.isConditionalExpression)(node) || (0, _predicates.isCallExpression)(node) || (0, _predicates.isNewExpression)(node) || (0, _predicates.isSequenceExpression)(node) || (0, _predicates.isTemplateLiteral)(node) || (0, _predicates.isTaggedTemplateExpression)(node) || (0, _predicates.isClassExpression)(node) || (0, _predicates.isMetaProperty)(node) || (0, _predicates.isIdentifier)(node) || (0, _predicates.isAwaitExpression)(node) || (0, _predicates.isImportExpression)(node) || (0, _predicates.isChainExpression)(node) || (0, _predicates.isTypeCastExpression)(node) || (0, _predicates.isJSXFragment)(node) || (0, _predicates.isJSXElement)(node);
}
function isStatement(node) {
return (0, _predicates.isBlockStatement)(node) || (0, _predicates.isBreakStatement)(node) || (0, _predicates.isClassDeclaration)(node) || (0, _predicates.isContinueStatement)(node) || (0, _predicates.isDebuggerStatement)(node) || (0, _predicates.isDeclareClass)(node) || (0, _predicates.isDeclareVariable)(node) || (0, _predicates.isDeclareFunction)(node) || (0, _predicates.isDeclareInterface)(node) || (0, _predicates.isDeclareModule)(node) || (0, _predicates.isDeclareOpaqueType)(node) || (0, _predicates.isDeclareTypeAlias)(node) || (0, _predicates.isDoWhileStatement)(node) || (0, _predicates.isEmptyStatement)(node) || (0, _predicates.isEnumDeclaration)(node) || (0, _predicates.isExpressionStatement)(node) || (0, _predicates.isForInStatement)(node) || (0, _predicates.isForOfStatement)(node) || (0, _predicates.isForStatement)(node) || (0, _predicates.isFunctionDeclaration)(node) || (0, _predicates.isIfStatement)(node) || (0, _predicates.isInterfaceDeclaration)(node) || (0, _predicates.isLabeledStatement)(node) || (0, _predicates.isOpaqueType)(node) || (0, _predicates.isReturnStatement)(node) || (0, _predicates.isSwitchStatement)(node) || (0, _predicates.isThrowStatement)(node) || (0, _predicates.isTryStatement)(node) || (0, _predicates.isTypeAlias)(node) || (0, _predicates.isVariableDeclaration)(node) || (0, _predicates.isWhileStatement)(node) || (0, _predicates.isWithStatement)(node);
}
{
"name": "hermes-estree",
"version": "0.9.0",
"version": "0.10.0",
"description": "Flow types for the Flow-ESTree spec produced by the hermes parser",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

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