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

bugsnag-sourcemaps

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugsnag-sourcemaps - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

10

index.js
const fs = require('fs');
const request = require('request');
const UPLOAD_URL = 'https://upload.bugsnag.com';
const DEFAULT_OPTIONS = {

@@ -13,2 +12,3 @@ apiKey: null,

// sources: {},
endpoint: 'https://upload.bugsnag.com',
};

@@ -40,2 +40,6 @@

}
// Settings (omit from formData)
case 'endpoint': {
break;
}
// Basic fields (strings/booleans) & future fields

@@ -49,3 +53,3 @@ default: {

request.post({
url: UPLOAD_URL,
url: optionsWithDefaults.endpoint,
formData,

@@ -66,2 +70,2 @@ }, function (err, res, body) {

exports.upload = upload;
exports.upload = upload;
{
"name": "bugsnag-sourcemaps",
"description": "A Node.js module to programmatically upload your sourcemap files to Bugsnag",
"version": "0.0.6",
"version": "0.0.7",
"keywords": [

@@ -6,0 +6,0 @@ "bugsnag",

@@ -36,4 +36,22 @@ # bugsnag-sourcemaps

### Bugsnag Enterprise
If you are using Bugsnag Enterprise (on premise installation) with a custom domain, you can pass an optional `endpoint` option to define a custom upload url.
Example with endpoint option:
```js
import path from 'path';
import { upload } from 'bugsnag-sourcemaps';
upload({
// apiKey, appVersion, etc...
endpoint: 'https://bugsnag.my-company.com',
}, function(err) {
// ...
});
```
## License
MIT License ❤️
MIT License ❤️
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