Skip to content

Commit

Permalink
2.0.0-rc.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rabold committed May 10, 2020
1 parent c6453cf commit 8934e71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ export default class SentryLambdaWrapper {
installSentry(pluginConfig);
}
return (event, context, callback) => {
var _a;
var _a, _b, _c, _d;
if (!isSentryInstalled) {
return handler(event, context, callback);
}
const originalCallbacks = {
done: context.done.bind(context),
succeed: context.succeed.bind(context),
fail: context.fail.bind(context),
done: (_a = context.done) === null || _a === void 0 ? void 0 : _a.bind(context),
succeed: (_b = context.succeed) === null || _b === void 0 ? void 0 : _b.bind(context),
fail: (_c = context.fail) === null || _c === void 0 ? void 0 : _c.bind(context),
callback: callback,
};
context.done =
Expand All @@ -233,7 +233,7 @@ export default class SentryLambdaWrapper {
},
tags: {},
};
const identity = ((_a = context.identity) === null || _a === void 0 ? void 0 : _a.constructor) === Object && Object.keys(context.identity).length > 0
const identity = ((_d = context.identity) === null || _d === void 0 ? void 0 : _d.constructor) === Object && Object.keys(context.identity).length > 0
? context.identity
: event.requestContext
? event.requestContext.identity
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-sentry-lib",
"version": "1.2.0",
"version": "2.0.0-rc.0",
"description": "Serverless Sentry Lib - Automatically send errors and exceptions to Sentry (https://sentry.io)",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 8934e71

Please sign in to comment.