Skip to content

Commit

Permalink
Merge pull request #4514 from afvalenciab/patch-1
Browse files Browse the repository at this point in the history
Update instructions to list source maps via node
  • Loading branch information
zuluecho9 committed Oct 27, 2021
2 parents 5c5fccb + a509a73 commit 0c32af2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Here are some examples of using the npm module via the command line.

```
npm install -g @newrelic/publish-sourcemap
publish-sourcemap <var>PATH_TO_SOURCE_MAP_FILE (local or remote)</var> <var>PATH_TO_ORIGINAL_FILE</var> --apiKey=<var>YOUR_NEW_RELIC_USER_API_KEY</var> --applicationId=<var>YOUR_NEW_RELIC_APP_ID</var> --repoUrl=<var>GITHUB_REPOSITORY_URL</var> --buildCommit=<var>GIT_BUILD_COMMIT_HASH</var>
publish-sourcemap <var>PATH_TO_SOURCE_MAP_FILE (local or remote)</var> <var>PATH_TO_ORIGINAL_FILE</var> --apiKey=<var>YOUR_NEW_RELIC_USER_KEY</var> --applicationId=<var>YOUR_NEW_RELIC_APP_ID</var> --repoUrl=<var>GITHUB_REPOSITORY_URL</var> --buildCommit=<var>GIT_BUILD_COMMIT_HASH</var>
```
</Collapser>

Expand Down Expand Up @@ -160,11 +160,11 @@ publishSourcemap({
var listSourcemaps = require(‘@newrelic/publish-sourcemap’).listSourcemaps
listSourcemaps({
sourcemapPath: '<var>SOURCE_MAP_FULL_PATH</var>',
javascriptUrl: '<var>JS_URL</var>',
applicationId: <var>YOUR_NEW_RELIC_APP_ID</var>,
apiKey: '<var>YOUR_NEW_RELIC_USER_API_KEY</var>',
}, function (err, res) { console.log(err || res.body)})
limit: [Max number of results to return || 20]: ,
offset: [Number of results to skip before returning || 0]: ,
}, function (err, res) { console.log(err || res.sourcemaps)})
```
</Collapser>

Expand Down

0 comments on commit 0c32af2

Please sign in to comment.