Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

webpack-bugsnag-plugins

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-bugsnag-plugins - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

4

CHANGELOG.md
# 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 @@

2

package.json
{
"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

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