serverless-whitelisting
Advanced tools
Comparing version 0.0.3 to 0.0.4
12
index.js
@@ -34,3 +34,3 @@ "use strict"; | ||
hooks, | ||
resourcePolicy: null, | ||
resourcePolicy: [], | ||
provider: serverless.getProvider("aws") | ||
@@ -50,3 +50,3 @@ }); | ||
); | ||
this.resourcePolicy = Object.assign(PUBLIC_RESOURCE, BASE_POLICY); | ||
this.resourcePolicy.push(Object.assign(PUBLIC_RESOURCE, BASE_POLICY)); | ||
} | ||
@@ -73,3 +73,3 @@ | ||
this.resourcePolicy = Object.assign( | ||
this.resourcePolicy.push(Object.assign( | ||
{ | ||
@@ -83,3 +83,3 @@ Condition: { | ||
BASE_POLICY | ||
); | ||
)); | ||
} | ||
@@ -93,3 +93,3 @@ | ||
} | ||
this.resourcePolicy = Object.assign(policy, BASE_POLICY); | ||
this.resourcePolicy.push(Object.assign(policy, BASE_POLICY)); | ||
} | ||
@@ -100,3 +100,3 @@ } | ||
const resourcePolicyUpdate = { | ||
resourcePolicy: [this.resourcePolicy] | ||
resourcePolicy: this.resourcePolicy | ||
}; | ||
@@ -103,0 +103,0 @@ |
{ | ||
"name": "serverless-whitelisting", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Asterist", | ||
@@ -5,0 +5,0 @@ "description": "Create a whitelist for IP addresses, CIDR for a serverless application, using serverless resource policies", |
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
6377