@everymundo/aws-api-gateway-serverless-component
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@everymundo/aws-api-gateway-serverless-component", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "./serverless.js", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -25,3 +25,4 @@ const AWS = require('aws-sdk') | ||
description: 'Serverless Components API', | ||
endpointTypes: ['EDGE'] | ||
endpointTypes: ['EDGE'], | ||
tracingEnabled: false | ||
} | ||
@@ -37,3 +38,3 @@ | ||
const { name, description, region, stage, endpointTypes } = config | ||
const { name, description, region, stage, endpointTypes, tracingEnabled } = config | ||
@@ -113,3 +114,3 @@ this.context.debug(`Starting API Gateway deployment with name ${name} in the ${region} region`) | ||
await retry(() => createDeployment({ apig, apiId, stage })) | ||
await retry(() => createDeployment({ apig, apiId, stage, tracingEnabled })) | ||
@@ -116,0 +117,0 @@ config.url = `https://${apiId}.execute-api.${region}.amazonaws.com/${stage}` |
@@ -341,4 +341,4 @@ const pRetry = require('p-retry') | ||
const createDeployment = async ({ apig, apiId, stage }) => { | ||
const deployment = await apig.createDeployment({ restApiId: apiId, stageName: stage }).promise() | ||
const createDeployment = async ({ apig, apiId, stage, tracingEnabled }) => { | ||
const deployment = await apig.createDeployment({ restApiId: apiId, stageName: stage, tracingEnabled }).promise() | ||
@@ -345,0 +345,0 @@ // todo add update stage functionality |
41608
688