Skip to content

Commit fa12532

Browse files
committed
remove version from README
1 parent 57baa35 commit fa12532

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ If API keys are not an option for your team, [use a custom url](
2929

3030
The library can either be used as a standalone script, or incorporated as a module into a larger javascript application.
3131

32-
For use in any HTML page or without a specific framework, include the standalone script from CDN and set up the error handler in a page load event. For instance, use include the following HTML in the page `<head>` and replace `<my-api-key>` and `<my-project-id>` with your API key and Google Cloud project ID string:
32+
For use in any HTML page or without a specific framework, include the standalone script from CDN and set up the error handler in a page load event.
33+
For instance, use include the following HTML in the page `<head>` and replace:
34+
35+
* `<version>` with the [latest version of the NPM package](https://www.npmjs.com/package/stackdriver-errors-js)
36+
* `<my-api-key>` with your API key
37+
* `<my-project-id>` with and Google Cloud project ID string:
3338

3439
```HTML
3540
<!-- Warning: Experimental library, do not use in production environments. -->
36-
<script defer src="https://cdn.jsdelivr.net/npm/stackdriver-errors-js@0.7.0/dist/stackdriver-errors-concat.min.js"></script>
41+
<script defer src="https://cdn.jsdelivr.net/npm/stackdriver-errors-js@<version>/dist/stackdriver-errors-concat.min.js"></script>
3742
<script type="text/javascript">
3843
window.addEventListener('DOMContentLoaded', function() {
3944
var errorHandler = new StackdriverErrorReporter();

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"prepare": "npm run clean && npm run dist",
1111
"pretest": "npm run lint",
1212
"start": "gulp demo && http-server ./dist -o",
13-
"test": "mocha -r test/setup.js test/test.js",
14-
"version": "sed -i s/@[0-9.]\\\\{5,\\\\}/@${npm_package_version}/g README.md && git add README.md"
13+
"test": "mocha -r test/setup.js test/test.js"
1514
},
1615
"repository": {
1716
"type": "git",

0 commit comments

Comments
 (0)