Détail du package

@bugsnag/source-maps

bugsnag829.6kMIT2.3.3

CLI and JS library for uploading source maps to Bugsnag

Bugsnag, source, maps, CLI

readme

@bugsnag/source-maps

Installation

You can install @bugsnag/source-maps locally to your project:

npm install --save-dev @bugsnag/source-maps
yarn add --dev @bugsnag/source-maps

You can then run the CLI using the convenience tools for each package manager:

npx bugsnag-source-maps [...args]
yarn run bugsnag-source-maps [...args]

Or you can install the bugsnag-source-maps CLI tool globally on your system:

npm install --global @bugsnag/source-maps
yarn global add @bugsnag/source-maps

System requirements

@bugsnag/source-maps requires Node.js v10+

Usage

See the Bugsnag docs website for full usage documentation.

bugsnag-source-maps --help

  bugsnag-source-maps <command>

Available commands

  upload-browser
  upload-node
  upload-react-native

Options

  -h, --help    show this message
  --version     output the version of the CLI module

Bugsnag On-Premise

If you are using Bugsnag On-premise, you should use the endpoint option to set the url of your upload server, for example:

bugsnag-source-maps upload-browser \
  --endpoint https://bugsnag.my-company.com/
  # ... other options

Support

Contributing

Most updates to this repo will be made by Bugsnag employees. We are unable to accommodate significant external PRs such as features additions or any large refactoring, however minor fixes are welcome. See contributing for more information.

License

This package is free software released under the MIT License. See LICENSE.txt for details.

changelog

Changelog

[2.3.3] - 2024-05-02

Fixed

  • Normalise path separators for Webpack paths on Windows #95

2.3.2 (2024-03-04)

Security

  • Add dependency resolution for semver to fix ReDoS vulnerability #92

2.3.1 (2022-02-04)

Fixed

  • handle the webpack 5 default devtoolModuleFilenameTemplate format #78

2.3.0 (2021-08-05)

  • Add --idle-timeout flag to control the HTTP request timeout (see Node documentation) #74
  • Increase the default HTTP request timeout to 10 minutes (from 5 minutes) #74

2.2.0 (2021-07-05)

Added

  • Support --overwrite and --no-overwrite everywhere #66

2.1.0 (2021-05-18)

Added

  • Add support for codeBundleId on node and browser uploads #61

Changed

  • Always use / as the path separator in the uploaded minifiedUrl for Node #60

Fixed

  • Strip the project root from source maps created on Windows #60

2.0.0 (2021-01-21)

Breaking

  • Default overwrite=true for React Native upload #50
  • Remove --overwrite flag from React Native uploads command and add --no-overwrite #50

Note: using the --overwrite option with the upload-react-native command will now fail because the flag has been removed.

1.0.1 (2020-12-14)

Changed

  • Automatically set an appropriate path on the endpoint URL unless one is explicitly provided #48

1.0.0 (2020-12-10)

Initial release.