bugsnag-sourcemaps
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,7 @@ | ||
# 1.0.2 | ||
## Maintenance | ||
* Support older versions of node (4.8+) | ||
# 1.0.1 | ||
@@ -2,0 +8,0 @@ |
@@ -7,3 +7,3 @@ #!/usr/bin/env node | ||
const readPkgUp = require('read-pkg-up'); | ||
const { upload } = require('./'); | ||
const upload = require('./').upload; | ||
@@ -97,3 +97,4 @@ const cli = meow(` | ||
readPkgUp(conf.projectRoot || process.cwd()) | ||
.then(({ pkg }) => { | ||
.then(arg => { | ||
const pkg = arg && arg.pkg ? arg.pkg : null; | ||
if (pkg) conf.appVersion = pkg.version; | ||
@@ -100,0 +101,0 @@ }) |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const fs = require('graceful-fs'); | ||
@@ -245,3 +247,3 @@ const request = require('request'); | ||
* Any unknown options are simply added to the form data, to allow for any future options. | ||
* | ||
* | ||
* Some options are omitted from the form data, as they are only used as configuration. | ||
@@ -310,3 +312,6 @@ * E.g. "endpoint", "uploadSources", and "projectRoot". | ||
*/ | ||
function sendRequest({ options, formData }) { | ||
function sendRequest(args) { | ||
// { options, formData } | ||
const options = args.options | ||
const formData = args.formData | ||
return new Promise((resolve, reject) => { | ||
@@ -313,0 +318,0 @@ request.post({ |
{ | ||
"name": "bugsnag-sourcemaps", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"keywords": [ | ||
@@ -8,5 +8,5 @@ "bugsnag", | ||
], | ||
"homepage": "https://github.com/jmshal/bugsnag-sourcemaps", | ||
"homepage": "https://github.com/bugsnag/bugsnag-sourcemaps", | ||
"bugs": { | ||
"url": "https://github.com/jmshal/bugsnag-sourcemaps/issues" | ||
"url": "https://github.com/bugsnag/bugsnag-sourcemaps/issues" | ||
}, | ||
@@ -22,3 +22,3 @@ "bin": "cli.js", | ||
"type": "git", | ||
"url": "https://github.com/jmshal/bugsnag-sourcemaps.git" | ||
"url": "https://github.com/bugsnag/bugsnag-sourcemaps.git" | ||
}, | ||
@@ -54,4 +54,6 @@ "dependencies": { | ||
], | ||
"coverageReporters": ["lcov"] | ||
"coverageReporters": [ | ||
"lcov" | ||
] | ||
} | ||
} |
@@ -15,3 +15,3 @@ # bugsnag-sourcemaps | ||
```sh | ||
$ npm install --save-dev bugsnag-sourcemaps | ||
$ npm install --global bugsnag-sourcemaps | ||
``` | ||
@@ -25,3 +25,3 @@ | ||
```shell | ||
$ npm run bugsnag-sourcemaps -- --api-key YOUR_API_KEY_HERE \ | ||
$ bugsnag-sourcemaps upload --api-key YOUR_API_KEY_HERE \ | ||
--app-version 1.2.3 \ | ||
@@ -28,0 +28,0 @@ --minified-url 'http://example.com/assets/example.min.js' \ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
20947
478
1