Skip to content

Commit 94d74e2

Browse files
committed
release 0.3.0
1 parent 7587cd0 commit 94d74e2

5 files changed

+7
-5
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Add this line in your HTML code, before `</head>` and replace `<my-api-key>` and
2626

2727
```HTML
2828
<!-- Warning: This is an experimental library, do not use it on production environments -->
29-
<script defer src="https://cdn.rawgit.com/GoogleCloudPlatform/stackdriver-errors-js/v0.2.0/dist/stackdriver-errors-concat.min.js"></script>
29+
<script defer src="https://cdn.rawgit.com/GoogleCloudPlatform/stackdriver-errors-js/v0.3.0/dist/stackdriver-errors-concat.min.js"></script>
3030
<script type="text/javascript">
3131
window.addEventListener('DOMContentLoaded', function() {
3232
var errorHandler = new StackdriverErrorReporter();

Diff for: dist/maps/stackdriver-errors-concat.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/stackdriver-errors-concat.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -5458,7 +5458,9 @@ if (!Array.prototype.forEach) {
54585458
payload.message += '\n';
54595459
// Reconstruct the stackframe to a JS stackframe as expected by Error Reporting parsers.
54605460
// stack[s].source should not be used because not populated when created from source map.
5461-
payload.message += [' at ', stack[s].getFunctionName(), ' (', stack[s].getFileName(), ':', stack[s].getLineNumber() ,':', stack[s].getColumnNumber() , ')'].join('');
5461+
//
5462+
// If functionName or methodName isn't available <anonymous> will be used as the name.
5463+
payload.message += [' at ', stack[s].getFunctionName() || '<anonymous>', ' (', stack[s].getFileName(), ':', stack[s].getLineNumber() ,':', stack[s].getColumnNumber() , ')'].join('');
54625464
}
54635465
that.sendErrorPayload(payload, callback);
54645466
}, function(reason) {

Diff for: dist/stackdriver-errors-concat.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stackdriver-errors-js",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Experimental client-side JavaScript library to report errors to Stackdriver Error Reporting",
55
"main": "stackdriver-errors.js",
66
"scripts": {

0 commit comments

Comments
 (0)