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

@fullstory/babel-plugin-annotate-react

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullstory/babel-plugin-annotate-react - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

5

CHANGELOG.md
# Changelog
## 2.0.0
- React.Fragments are no longer annotated
- Updated to new dependency versions
## 1.0.2

@@ -4,0 +9,0 @@

15

index.js

@@ -79,4 +79,8 @@ const webComponentName = 'data-component';

!openingElement.node ||
!openingElement.node.name ||
!openingElement.node.name.name ||
!openingElement.node.name
) return
if (openingElement.node.name.name === 'Fragment') return true;
if (
!openingElement.node.name.type ||

@@ -88,6 +92,5 @@ !openingElement.node.name.object ||

return (
openingElement.node.name.name === 'Fragment' ||
(openingElement.node.name.type === 'JSXMemberExpression' &&
openingElement.node.name.object.name === 'React' &&
openingElement.node.name.property.name === 'Fragment')
openingElement.node.name.type === 'JSXMemberExpression' &&
openingElement.node.name.object.name === 'React' &&
openingElement.node.name.property.name === 'Fragment'
)

@@ -94,0 +97,0 @@ }

2

package.json
{
"name": "@fullstory/babel-plugin-annotate-react",
"version": "1.0.2",
"version": "2.0.0",
"description": "A Babel plugin that annotates React components, making them easier to target with FullStory search",

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

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