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

@asayerio/sourcemaps-uploader

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asayerio/sourcemaps-uploader

NPM module to upload your JS sourcemaps files to Asayer

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
3
Weekly downloads
 
Created
Source

sourcemaps-uploader

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

Installation

npm i @asayerio/sourcemaps-uploader

CLI

Upload sourcemap for one file

sourcemaps-uploader -k API_KEY -p PROJECT_ID file -m ./dist/index.js.map -u https://asayer.io/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:

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

NPM

There are two functions inside index.js of the package

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

Both functions return Promise.

FAQs

Package last updated on 18 May 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