serverless-api-gateway-caching
Advanced tools
Comparing version 1.1.0 to 1.1.1-rc1
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "serverless-api-gateway-caching", | ||
"version": "1.1.0", | ||
"version": "1.1.1-rc1", | ||
"description": "A plugin for the serverless framework which helps with configuring caching for API Gateway endpoints.", | ||
@@ -21,3 +21,2 @@ "main": "src/apiGatewayCachingPlugin.js", | ||
"dependencies": { | ||
"aws-sdk": "^2.310.0", | ||
"lodash.get": "^4.4.2", | ||
@@ -34,3 +33,2 @@ "lodash.isempty": "^4.4.0" | ||
"devDependencies": { | ||
"aws-sdk-mock": "^4.1.0", | ||
"chai": "^4.1.2", | ||
@@ -37,0 +35,0 @@ "chance": "^1.0.16", |
@@ -0,0 +0,0 @@ # serverless-api-gateway-caching |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ const isEmpty = require('lodash.isempty'); |
@@ -0,0 +0,0 @@ const isEmpty = require('lodash.isempty'); |
const isEmpty = require('lodash.isempty'); | ||
const AWS = require('aws-sdk'); | ||
@@ -125,6 +124,2 @@ const getRestApiId = async (settings, serverless) => { | ||
AWS.config.update({ | ||
region: settings.region, | ||
}); | ||
let patchOps = createPatchForStage(settings); | ||
@@ -141,3 +136,2 @@ | ||
} | ||
const apiGateway = new AWS.APIGateway(); | ||
let params = { | ||
@@ -150,3 +144,3 @@ restApiId, | ||
serverless.cli.log(`[serverless-api-gateway-caching] Updating API Gateway cache settings.`); | ||
await apiGateway.updateStage(params).promise(); | ||
await serverless.providers.aws.request('APIGateway', 'updateStage', params, settings.stage, settings.region); | ||
serverless.cli.log(`[serverless-api-gateway-caching] Done updating API Gateway cache settings.`); | ||
@@ -153,0 +147,0 @@ } |
@@ -0,0 +0,0 @@ module.exports = { |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18561
2
4
327
2
- Removedaws-sdk@^2.310.0
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedaws-sdk@2.1692.0(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@4.9.2(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedevents@1.1.1(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedieee754@1.1.13(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arguments@1.2.0(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-generator-function@1.1.0(transitive)
- Removedis-regex@1.2.1(transitive)
- Removedis-typed-array@1.1.15(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjmespath@0.16.0(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedpunycode@1.3.2(transitive)
- Removedquerystring@0.2.0(transitive)
- Removedsafe-regex-test@1.1.0(transitive)
- Removedsax@1.2.1(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedurl@0.10.3(transitive)
- Removedutil@0.12.5(transitive)
- Removeduuid@8.0.0(transitive)
- Removedwhich-typed-array@1.1.18(transitive)
- Removedxml2js@0.6.2(transitive)
- Removedxmlbuilder@11.0.1(transitive)