New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openreplay/sourcemap-uploader

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openreplay/sourcemap-uploader

NPM module to upload your JS sourcemaps files to OpenReplay

  • 3.0.3
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

sourcemaps-uploader

A NPM module to upload your JS sourcemaps files to OpenReplay.

Installation

npm i -D @openreplay/sourcemap-uploader 

CLI

Upload sourcemap for one file

sourcemap-uploader -k API_KEY -p PROJECT_KEY file -m ./dist/index.js.map -u https://myapp.com/index.js

Upload all sourcemaps in the directory. The url must correspond to the root where you upload JS files from the directory.

Thus, if you have your app-42.js along with the app-42.js.map in the ./build folder and then want to upload it to you server (you might want to avoid uploading soursemaps) so it can be reachable through the link https://myapp.com/static/app-42.js, the command would be the next:

sourcemap-uploader -k API_KEY -p PROJECT_KEY dir -m ./build -u https://myapp.com/static

Use -v (--verbose) key to see the logs.

NPM

There are two functions inside index.js of the package

uploadFile(api_key, project_key, sourcemap_file_path, js_file_url)
uploadDir(api_key, project_key, sourcemap_dir_path, js_dir_url)

Both functions return Promise.

FAQs

Package last updated on 11 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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