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.7.0 to 0.8.0

41

dist/generated/predicates.js

@@ -56,2 +56,3 @@ /**

exports.isCatchToken = isCatchToken;
exports.isChainExpression = isChainExpression;
exports.isClassBody = isClassBody;

@@ -61,4 +62,2 @@ exports.isClassDeclaration = isClassDeclaration;

exports.isClassImplements = isClassImplements;
exports.isClassPrivateProperty = isClassPrivateProperty;
exports.isClassProperty = isClassProperty;
exports.isClassToken = isClassToken;

@@ -116,3 +115,2 @@ exports.isClosingAngleBracketToken = isClosingAngleBracketToken;

exports.isExportNamedDeclaration = isExportNamedDeclaration;
exports.isExportNamespaceSpecifier = isExportNamespaceSpecifier;
exports.isExportSpecifier = isExportSpecifier;

@@ -218,11 +216,10 @@ exports.isExportToken = isExportToken;

exports.isOpeningParenthesisToken = isOpeningParenthesisToken;
exports.isOptionalCallExpression = isOptionalCallExpression;
exports.isOptionalChainToken = isOptionalChainToken;
exports.isOptionalIndexedAccessType = isOptionalIndexedAccessType;
exports.isOptionalMemberExpression = isOptionalMemberExpression;
exports.isPercentToken = isPercentToken;
exports.isPlusEqualToken = isPlusEqualToken;
exports.isPlusToken = isPlusToken;
exports.isPrivateName = isPrivateName;
exports.isPrivateIdentifier = isPrivateIdentifier;
exports.isProperty = isProperty;
exports.isPropertyDefinition = isPropertyDefinition;
exports.isQualifiedTypeIdentifier = isQualifiedTypeIdentifier;

@@ -351,2 +348,6 @@ exports.isQuestionMarkToken = isQuestionMarkToken;

function isChainExpression(node) {
return node.type === 'ChainExpression';
}
function isClassBody(node) {

@@ -368,10 +369,2 @@ return node.type === 'ClassBody';

function isClassPrivateProperty(node) {
return node.type === 'ClassPrivateProperty';
}
function isClassProperty(node) {
return node.type === 'ClassProperty';
}
function isConditionalExpression(node) {

@@ -497,6 +490,2 @@ return node.type === 'ConditionalExpression';

function isExportNamespaceSpecifier(node) {
return node.type === 'ExportNamespaceSpecifier';
}
function isExportSpecifier(node) {

@@ -738,6 +727,2 @@ return node.type === 'ExportSpecifier';

function isOptionalCallExpression(node) {
return node.type === 'OptionalCallExpression';
}
function isOptionalIndexedAccessType(node) {

@@ -747,10 +732,6 @@ return node.type === 'OptionalIndexedAccessType';

function isOptionalMemberExpression(node) {
return node.type === 'OptionalMemberExpression';
function isPrivateIdentifier(node) {
return node.type === 'PrivateIdentifier';
}
function isPrivateName(node) {
return node.type === 'PrivateName';
}
function isProperty(node) {

@@ -760,2 +741,6 @@ return node.type === 'Property';

function isPropertyDefinition(node) {
return node.type === 'PropertyDefinition';
}
function isQualifiedTypeIdentifier(node) {

@@ -762,0 +747,0 @@ return node.type === 'QualifiedTypeIdentifier';

@@ -17,3 +17,3 @@ /**

isClass: true,
isClassPropertyWithNonComputedName: true,
isPropertyDefinitionWithNonComputedName: true,
isClassMember: true,

@@ -40,3 +40,2 @@ isClassMemberWithNonComputedName: true,

exports.isClassMemberWithNonComputedName = isClassMemberWithNonComputedName;
exports.isClassPropertyWithNonComputedName = isClassPropertyWithNonComputedName;
exports.isComment = isComment;

@@ -51,2 +50,3 @@ exports.isFunction = isFunction;

exports.isOptionalMemberExpressionWithNonComputedProperty = isOptionalMemberExpressionWithNonComputedProperty;
exports.isPropertyDefinitionWithNonComputedName = isPropertyDefinitionWithNonComputedName;
exports.isRegExpLiteral = isRegExpLiteral;

@@ -68,8 +68,8 @@ exports.isStringLiteral = isStringLiteral;

function isClassPropertyWithNonComputedName(node) {
return (0, _predicates.isClassProperty)(node) && node.computed === false;
function isPropertyDefinitionWithNonComputedName(node) {
return (0, _predicates.isPropertyDefinition)(node) && node.computed === false;
}
function isClassMember(node) {
return (0, _predicates.isClassProperty)(node) || (0, _predicates.isClassPrivateProperty)(node) || (0, _predicates.isMethodDefinition)(node);
return (0, _predicates.isPropertyDefinition)(node) || (0, _predicates.isMethodDefinition)(node);
}

@@ -76,0 +76,0 @@

{
"name": "hermes-estree",
"version": "0.7.0",
"version": "0.8.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