bugsnag-sourcemaps
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,1 +1,8 @@ | ||
# 1.0.4 | ||
## Bug fixes | ||
* Ensure correct values for `overwrite` are sent to API (#24) | ||
* Ensure OS tempdir is used for temporary files (rather than the current directory) (#22) | ||
# 1.0.3 | ||
@@ -2,0 +9,0 @@ |
@@ -62,2 +62,8 @@ #!/usr/bin/env node | ||
], | ||
boolean: [ | ||
'overwrite', | ||
'upload-node-modules', | ||
'upload-sources', | ||
'add-wildcard-prefix', | ||
], | ||
}); | ||
@@ -64,0 +70,0 @@ |
11
index.js
@@ -6,2 +6,3 @@ 'use strict'; | ||
const path = require('path'); | ||
const os = require('os'); | ||
@@ -226,3 +227,3 @@ const DEFAULT_OPTIONS = { | ||
if (options.stripProjectRoot) { | ||
options.tempDir = fs.mkdtempSync('bugsnag-sourcemaps'); | ||
options.tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'bugsnag-sourcemaps')); | ||
return transformSourcesMap(options); | ||
@@ -301,2 +302,10 @@ } | ||
} | ||
case 'overwrite': { | ||
// the presence of any value for this flag causes the API to interpret it as | ||
// true, so only add it to the payload if it is truthy | ||
if (options.overwrite) { | ||
formData[name] = String(value); | ||
} | ||
break; | ||
} | ||
// Basic fields (strings/booleans) & future fields | ||
@@ -303,0 +312,0 @@ default: { |
{ | ||
"name": "bugsnag-sourcemaps", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "bugsnag", |
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
22159
504