@fullstory/babel-plugin-annotate-react
Advanced tools
Comparing version 2.1.0 to 2.1.1
# Changelog | ||
## 2.1.1 | ||
- Fixed a bug where component file names were wrong on Windows builds | ||
## 2.1.0 | ||
@@ -4,0 +8,0 @@ |
12
index.js
@@ -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 @@ |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13340
219