webpack-bugsnag-plugins
Advanced tools
Comparing version 1.4.2 to 1.4.3
# Changelog | ||
## 1.4.5 (2020-01-28) | ||
- Allow setting of `codeBundleId` on `BugsnagSourceMapUploaderPlugin` (#40, fixes #38) | ||
## 1.4.2 (2019-09-10) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "webpack-bugsnag-plugins", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Webpack plugins for common Bugsnag actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -78,2 +78,3 @@ # webpack-bugsnag-plugins | ||
- `appVersion: string` the version of the application you are building | ||
- `codeBundleId: string` the codeBundleId (e.g. for NativeScript projects) | ||
- `overwrite: boolean` whether you want to overwrite previously uploaded sourcemaps | ||
@@ -80,0 +81,0 @@ - `endpoint: string` post the build payload to a URL other than the default (`https://upload.bugsnag.com`) |
@@ -20,2 +20,3 @@ 'use strict' | ||
this.appVersion = options.appVersion | ||
this.codeBundleId = options.codeBundleId | ||
this.overwrite = options.overwrite | ||
@@ -107,2 +108,3 @@ this.endpoint = options.endpoint | ||
appVersion: this.appVersion, | ||
codeBundleId: this.codeBundleId, | ||
minifiedUrl: sm.url, | ||
@@ -109,0 +111,0 @@ minifiedFile: sm.source, |
@@ -15,2 +15,3 @@ const BugsnagSourceMapUploaderPlugin = require('../../../').BugsnagSourceMapUploaderPlugin | ||
apiKey: 'YOUR_API_KEY', | ||
codeBundleId: '1.0.0-b12', | ||
endpoint: `http://localhost:${process.env.PORT}` | ||
@@ -17,0 +18,0 @@ }) |
@@ -33,3 +33,3 @@ 'use strict' | ||
t.plan(7) | ||
t.plan(8) | ||
const server = http.createServer((req, res) => { | ||
@@ -42,2 +42,3 @@ parseFormdata(req, function (err, data) { | ||
t.equal(data.fields.apiKey, 'YOUR_API_KEY', 'body should contain api key') | ||
t.equal(data.fields.codeBundleId, '1.0.0-b12', 'body could contain codeBundleId') | ||
t.ok(/^https:\/\/foobar.com\/js\/main\.js\?[\w\d]+$/.test(data.fields.minifiedUrl), 'body should contain minified url') | ||
@@ -44,0 +45,0 @@ t.equal(data.parts.length, 2, 'body should contain 2 uploads') |
Sorry, the diff of this file is not supported yet
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
32797
638
122