serverless-newrelic-lambda-layers
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -29,10 +29,12 @@ "use strict"; | ||
this.awsProvider = this.serverless.getProvider("aws"); | ||
this.hooks = { | ||
"after:deploy:deploy": this.addLogSubscriptions.bind(this), | ||
"after:deploy:function:packageFunction": this.cleanup.bind(this), | ||
"after:package:createDeploymentArtifacts": this.cleanup.bind(this), | ||
"before:deploy:function:packageFunction": this.run.bind(this), | ||
"before:package:createDeploymentArtifacts": this.run.bind(this), | ||
"before:remove:remove": this.removeLogSubscriptions.bind(this) | ||
}; | ||
this.hooks = this.shouldSkipPlugin() | ||
? {} | ||
: { | ||
"after:deploy:deploy": this.addLogSubscriptions.bind(this), | ||
"after:deploy:function:packageFunction": this.cleanup.bind(this), | ||
"after:package:createDeploymentArtifacts": this.cleanup.bind(this), | ||
"before:deploy:function:packageFunction": this.run.bind(this), | ||
"before:package:createDeploymentArtifacts": this.run.bind(this), | ||
"before:remove:remove": this.removeLogSubscriptions.bind(this) | ||
}; | ||
} | ||
@@ -61,6 +63,2 @@ get config() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.shouldSkipPlugin()) { | ||
this.serverless.cli.log(`Skipping plugin serverless-newrelic-lambda-layers for stage ${this.stage}`); | ||
return; | ||
} | ||
const version = this.serverless.getVersion(); | ||
@@ -96,5 +94,2 @@ if (semver.lt(version, "1.34.0")) { | ||
cleanup() { | ||
if (this.shouldSkipPlugin()) { | ||
return; | ||
} | ||
this.removeNodeHelper(); | ||
@@ -104,5 +99,2 @@ } | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.shouldSkipPlugin()) { | ||
return; | ||
} | ||
if (this.autoSubscriptionDisabled) { | ||
@@ -138,5 +130,2 @@ this.serverless.cli.log("Skipping adding log subscription. Explicitly disabled"); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.shouldSkipPlugin()) { | ||
return; | ||
} | ||
if (this.autoSubscriptionDisabled) { | ||
@@ -233,2 +222,3 @@ this.serverless.cli.log("Skipping removing log subscription. Explicitly disabled"); | ||
} | ||
this.serverless.cli.log(`Skipping plugin serverless-newrelic-lambda-layers for stage ${this.stage}`); | ||
return true; | ||
@@ -235,0 +225,0 @@ } |
{ | ||
"name": "serverless-newrelic-lambda-layers", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "Serverless plugin for NewRelic APM AWS Lambda layers.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38286
404