@apm-insight-web/upload-sourcemaps
Advanced tools
Comparing version 1.0.0-alpha.0 to 1.0.0
@@ -11,3 +11,2 @@ "use strict"; | ||
const clipanion_1 = require("clipanion"); | ||
const form_data_1 = (0, tslib_1.__importDefault)(require("form-data")); | ||
const node_fetch_1 = (0, tslib_1.__importDefault)(require("node-fetch")); | ||
@@ -68,14 +67,11 @@ const URI = '/apmplus_api/eue/webpro/js/sourcemap/upload'; | ||
const URL = `https://${host}${URI}`; | ||
const form = new form_data_1.default(); | ||
form.append('file', fs_1.default.createReadStream(filePath)); | ||
form.append('map_url', mapURL); | ||
try { | ||
const res = yield (0, node_fetch_1.default)(URL, { | ||
method: 'POST', | ||
method: 'post', | ||
headers: { | ||
'x-app-ids': app_id, | ||
'Content-Type': 'application/json', | ||
}, | ||
body: JSON.stringify({ | ||
common: { | ||
aid: app_id, | ||
aid: Number(app_id), | ||
site_type: 'web', | ||
@@ -82,0 +78,0 @@ env, |
{ | ||
"name": "@apm-insight-web/upload-sourcemaps", | ||
"version": "1.0.0-alpha.0", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "5b88d25b2bf3d22fd799490e43f318bb2f575e28" | ||
"gitHead": "62c3a61206f915f0a2c73f64e1816d2a175fe2de" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
12200
183