serverless-sentry
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0-rc.2
{ | ||
"name": "serverless-sentry", | ||
"version": "1.0.0-rc.1", | ||
"version": "1.0.0-rc.2", | ||
"description": "Serverless Sentry Plugin - Automatically send errors and exceptions to Sentry (https://sentry.io)", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -8,4 +8,2 @@ # ⚡️ Serverless Sentry Plugin | ||
This plugin simplifies automatic forwarding of errors and exceptions to Sentry | ||
(sentry.io) to Serverless 1.x. | ||
@@ -336,4 +334,9 @@ ## About | ||
### 1.0.0-rc.1 [WIP] | ||
### 1.0.0-rc.2 | ||
* Fixed an issue with the plugin not being initialized properly when deploying | ||
an existing artifact. | ||
### 1.0.0-rc.1 | ||
* First official release of this plugin for use with Serverless 1.x | ||
@@ -340,0 +343,0 @@ * For older versions of this plugin that work with Serverless 0.5, see |
@@ -23,3 +23,4 @@ "use strict"; | ||
"after:package:initialize": this.afterPackageInitialize.bind(this), | ||
"after:deploy:deploy": this.afterDeployFunctions.bind(this) | ||
"before:deploy:deploy": this.beforeDeployDeploy.bind(this), | ||
"after:deploy:deploy": this.afterDeployDeploy.bind(this) | ||
}; | ||
@@ -38,2 +39,6 @@ | ||
validate() { | ||
if (this._validated) { | ||
// Already ran | ||
return BbPromise.resolve(); | ||
} | ||
@@ -83,4 +88,9 @@ // Check required serverless version | ||
afterDeployFunctions() { | ||
beforeDeployDeploy() { | ||
return BbPromise.bind(this) | ||
.then(this.validate); | ||
} | ||
afterDeployDeploy() { | ||
return BbPromise.bind(this) | ||
.then(this.createSentryRelease) | ||
@@ -87,0 +97,0 @@ .then(this.deploySentryRelease); |
25942
291
350