Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@openreplay/sourcemap-uploader
Advanced tools
NPM module to upload your JS sourcemaps files to OpenReplay
Readme
An NPM module to upload your JS sourcemap files to your OpenReplay instance.
npm i -D @openreplay/sourcemap-uploader
sourcemap-uploader -s https://opnereplay.mycompany.com/api -k API_KEY -p PROJECT_KEY file -m ./dist/index.js.map -u https://myapp.com/index.js
The URL must correspond to the root where you upload JS files from the directory. In other words, 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 your OpenReplay instance so it can be reachable through the link https://myapp.com/static/app-42.js
, then the command should be like:
sourcemap-uploader -s https://opnereplay.mycompany.com/api -k API_KEY -p PROJECT_KEY dir -m ./build -u https://myapp.com/static
Use -s
(--server
) to specify the URL of your OpenReplay instance (append it with /api).
Do not use this parameter if you use SaaS version of the OpenRplay
Use -v
(--verbose
) to see the logs.
There are two functions you can export from the package:
uploadFile(api_key, project_key, sourcemap_file_path, js_file_url, [server])
uploadDir(api_key, project_key, sourcemap_dir_path, js_dir_url, [server])
Both functions return Promise with a result value to be the list of files for which sourcemaps were uploaded.
FAQs
NPM module to upload your JS sourcemaps files to OpenReplay
The npm package @openreplay/sourcemap-uploader receives a total of 627 weekly downloads. As such, @openreplay/sourcemap-uploader popularity was classified as not popular.
We found that @openreplay/sourcemap-uploader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.