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

@apm-insight-web/upload-sourcemaps

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apm-insight-web/upload-sourcemaps - npm Package Compare versions

Comparing version 1.0.0-alpha.0 to 1.0.0

10

dist/upload-sourcemaps.js

@@ -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

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