Skip to content

Commit f2a3c28

Browse files
rhcarvalhokamilogorek
authored andcommitted
fix: Revert bad string replacements
Fixes changes introduced in 8c60b1e. Global string replacement was too eager and broke things in raven-node (although development head is actually in the 4.x branch). Other than that, this commit fixes doc comments and an entry in packages/typescript/package.json.
1 parent 3627fe0 commit f2a3c28

21 files changed

+36
-36
lines changed

packages/raven-node/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- fix: Remove a redundant try-catch block (#445)
3232
- fix: Do not override context when capturing non-error exceptions (#444)
3333
- fix: Update stack-trace to handle spaces in paths (#437)
34-
- docs: Remove private _DSNs from the docs (#447)
34+
- docs: Remove private DSNs from the docs (#447)
3535
- docs: Update Usage docs to include Domains in Promise support (#438)
3636

3737
## 2.4.2 - 2018-02-27

packages/raven-node/lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ extend(Raven.prototype, {
341341
'X-Sentry-Auth': utils.getAuthHeader(
342342
timestamp,
343343
self.dsn.public_key,
344-
self.dsn.private __key
344+
self.dsn.private_key
345345
),
346346
'Content-Type': 'application/octet-stream',
347347
'Content-Length': message.length

packages/raven-node/lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ module.exports.parseDSN = function parseDSN(dsn) {
188188
};
189189

190190
if (parsed.auth.split(':')[1]) {
191-
response.private __key = parsed.auth.split(':')[1];
191+
response.private_key = parsed.auth.split(':')[1];
192192
}
193193

194194
if (~response.protocol.indexOf('+')) {

packages/raven-node/test/exit/capture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
var Raven = require('../../');
3-
var dsn = 'https://public:private _@app.getsentry.com/269';
3+
var dsn = 'https://public:private@app.getsentry.com/269';
44

55
var nock = require('nock');
66
var scope = nock('https://app.getsentry.com')

packages/raven-node/test/exit/capture_callback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var Raven = require('../../');
33
var assert = require('assert');
4-
var dsn = 'https://public:private _@app.getsentry.com/269';
4+
var dsn = 'https://public:private@app.getsentry.com/269';
55

66
var nock = require('nock');
77
var scope = nock('https://app.getsentry.com')

packages/raven-node/test/exit/capture_with_second_domain_error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var Raven = require('../../');
33
var assert = require('assert');
4-
var dsn = 'https://public:private _@app.getsentry.com/269';
4+
var dsn = 'https://public:private@app.getsentry.com/269';
55

66
var nock = require('nock');
77
var scope = nock('https://app.getsentry.com')

packages/raven-node/test/exit/capture_with_second_error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var Raven = require('../../');
33
var assert = require('assert');
4-
var dsn = 'https://public:private _@app.getsentry.com/269';
4+
var dsn = 'https://public:private@app.getsentry.com/269';
55

66
var nock = require('nock');
77
var scope = nock('https://app.getsentry.com')

packages/raven-node/test/exit/domain_capture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
var Raven = require('../../');
3-
var dsn = 'https://public:private _@app.getsentry.com/269';
3+
var dsn = 'https://public:private@app.getsentry.com/269';
44

55
var nock = require('nock');
66
var scope = nock('https://app.getsentry.com')

packages/raven-node/test/exit/domain_capture_callback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var Raven = require('../../');
33
var assert = require('assert');
4-
var dsn = 'https://public:private _@app.getsentry.com/269';
4+
var dsn = 'https://public:private@app.getsentry.com/269';
55

66
var nock = require('nock');
77
var scope = nock('https://app.getsentry.com')

packages/raven-node/test/exit/domain_capture_with_second_error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var Raven = require('../../');
33
var assert = require('assert');
4-
var dsn = 'https://public:private _@app.getsentry.com/269';
4+
var dsn = 'https://public:private@app.getsentry.com/269';
55

66
var nock = require('nock');
77
var scope = nock('https://app.getsentry.com')

0 commit comments

Comments
 (0)