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 2.1.0 to 2.1.1

4

CHANGELOG.md
# Changelog
## 2.1.1
- Fixed a bug where component file names were wrong on Windows builds
## 2.1.0

@@ -4,0 +8,0 @@

@@ -69,4 +69,12 @@ const webComponentName = 'data-component';

const name = state.file.opts.parserOpts.sourceFileName
if (typeof name === 'string') return name.split('/').pop()
return undefined
if (typeof name !== 'string') {
return undefined
}
if (name.indexOf('/') !== -1) {
return name.split('/').pop()
} else if (name.indexOf('\\') !== -1) {
return name.split('\\').pop()
} else {
return name
}
}

@@ -73,0 +81,0 @@

2

package.json
{
"name": "@fullstory/babel-plugin-annotate-react",
"version": "2.1.0",
"version": "2.1.1",
"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