webpack-bugsnag-plugins
Advanced tools
Comparing version 1.4.0 to 1.4.1
# Changelog | ||
## 1.4.1 (2019-08-12) | ||
### Fixed | ||
- Manually join paths rather than using `url.resolve()` as that doesn't work with the (\*) wildcard character (#37, fixes #35) | ||
## 1.4.0 (2019-03-13) | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "webpack-bugsnag-plugins", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Webpack plugins for common Bugsnag actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
'use strict' | ||
const upload = require('bugsnag-sourcemaps').upload | ||
const resolve = require('url').resolve | ||
const parallel = require('run-parallel-limit') | ||
@@ -77,10 +76,7 @@ const extname = require('path').extname | ||
map: outputSourceMapLocation, | ||
url: resolve( | ||
url: '' + | ||
// ensure publicPath has a trailing slash | ||
publicPath.replace(/[^/]$/, '$&/'), | ||
// ensure source doesn't have a leading slash (sometimes it does, e.g. | ||
// in laravel-mix, but this throws off the url resolve() call) see issue | ||
// for more detail: https://github.com/bugsnag/webpack-bugsnag-plugins/issues/11 | ||
source.replace(/^\//, '') | ||
).toString() | ||
publicPath.replace(/[^/]$/, '$&/') + | ||
// remove leading / or ./ from source | ||
source.replace(/^\.?\//, '') | ||
} | ||
@@ -87,0 +83,0 @@ }).filter(Boolean) |
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
31992
633