Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@openreplay/sourcemap-uploader
Advanced tools
NPM module to upload your JS sourcemaps files to OpenReplay
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.
npm install
bash run-dev.sh
FAQs
NPM module to upload your JS sourcemaps files to OpenReplay
The npm package @openreplay/sourcemap-uploader receives a total of 1,048 weekly downloads. As such, @openreplay/sourcemap-uploader popularity was classified as popular.
We found that @openreplay/sourcemap-uploader demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.