@honeybadger-io/webpack
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [4.3.1](https://github.com/honeybadger-io/honeybadger-js/compare/v4.3.0...v4.3.1) (2022-09-26) | ||
### Bug Fixes | ||
* clean asset url with regex ([#886](https://github.com/honeybadger-io/honeybadger-js/issues/886)) ([9c0032b](https://github.com/honeybadger-io/honeybadger-js/commit/9c0032bcfbe739dc68804f7dfe7ebf557aa45060)), closes [#878](https://github.com/honeybadger-io/honeybadger-js/issues/878) | ||
# [4.3.0](https://github.com/honeybadger-io/honeybadger-js/compare/v4.2.1...v4.3.0) (2022-09-17) | ||
@@ -8,0 +19,0 @@ |
@@ -205,4 +205,5 @@ "use strict"; | ||
if (typeof sourceFile === 'string') { | ||
var sep = this.assetsUrl.endsWith('/') ? '' : '/'; | ||
return "".concat(this.assetsUrl).concat(sep).concat(sourceFile); | ||
var sep = '/'; | ||
var unsanitized = "".concat(this.assetsUrl).concat(sep).concat(sourceFile); | ||
return unsanitized.replace(/([^:]\/)\/+/g, '$1'); | ||
} | ||
@@ -209,0 +210,0 @@ |
{ | ||
"name": "@honeybadger-io/webpack", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Webpack plugin to upload source maps to Honeybadger's API - http://docs.honeybadger.io/guides/source-maps.html", | ||
@@ -62,3 +62,3 @@ "main": "./dist/HoneybadgerSourceMapPlugin.js", | ||
}, | ||
"gitHead": "c5aff95bcaf716d5df122e5225c217b5e3c2620e" | ||
"gitHead": "c6f0d637498f726673ee749c83d689dc13c7e1b6" | ||
} |
@@ -122,4 +122,5 @@ import { promises as fs } from 'fs' | ||
if (typeof sourceFile === 'string') { | ||
const sep = this.assetsUrl.endsWith('/') ? '' : '/' | ||
return `${this.assetsUrl}${sep}${sourceFile}` | ||
const sep = '/' | ||
const unsanitized = `${this.assetsUrl}${sep}${sourceFile}` | ||
return unsanitized.replace(/([^:]\/)\/+/g, '$1') | ||
} | ||
@@ -126,0 +127,0 @@ return this.assetsUrl(sourceFile) |
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
46170
871