@kakkuk/serverless-aws-apigateway-documentation
Advanced tools
Comparing version 1.1.11 to 1.1.12
{ | ||
"name": "@kakkuk/serverless-aws-apigateway-documentation", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Serverless 1.0 plugin to add documentation and models to the serverless generated API Gateway", | ||
@@ -8,3 +8,5 @@ "main": "src/index.js", | ||
"codecov": "cat coverage/*/lcov.info | codecov", | ||
"test": "jest" | ||
"test": "jest", | ||
"lint": "npx eslint", | ||
"lint:fix": "npx eslint --fix" | ||
}, | ||
@@ -16,3 +18,3 @@ "repository": "git@github.com:failsafe-engineering/serverless-aws-apigateway-documentation.git", | ||
"codecov": "^3.8.3", | ||
"eslint": "^3.11.1", | ||
"eslint": "^8.11.0", | ||
"jest": "^27.5.1" | ||
@@ -19,0 +21,0 @@ }, |
@@ -1,2 +0,5 @@ | ||
[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE) | ||
[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) | ||
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE) | ||
[![npm version](https://badge.fury.io/js/@kakkuk%2Fserverless-aws-apigateway-documentation.svg)](https://badge.fury.io/js/@kakkuk%2Fserverless-aws-apigateway-documentation) | ||
[![Known Vulnerabilities](https://snyk.io/test/npm/@kakkuk/serverless-aws-apigateway-documentation/badge.svg)](https://snyk.io/test/npm/@kakkuk/serverless-aws-apigateway-documentation) | ||
@@ -3,0 +6,0 @@ # Premise |
@@ -214,3 +214,3 @@ 'use strict'; | ||
const source = `method.request.${mapPath}.${qp.name}`; | ||
if (resource.Properties.RequestParameters.hasOwnProperty(source)) return; // don't mess with existing config | ||
if (resource.Properties.RequestParameters.hasOwnProperty(source)) return; // eslint-disable-line no-prototype-builtins | ||
resource.Properties.RequestParameters[source] = qp.required || false; | ||
@@ -217,0 +217,0 @@ }); |
@@ -70,3 +70,3 @@ 'use strict'; | ||
type: 'object', | ||
patternProperties: { '.+\/.+': { type: 'string' } } | ||
patternProperties: { '.+\/.+': { type: 'string' } } // eslint-disable-line no-useless-escape | ||
}; | ||
@@ -178,3 +178,3 @@ | ||
const methodResponse = { | ||
statusCode: ""+statusCode, | ||
statusCode: ''+statusCode, | ||
}; | ||
@@ -181,0 +181,0 @@ |
@@ -12,3 +12,3 @@ 'use strict'; | ||
let match; | ||
if (match = /{{model:\s*([\-\w]+)}}/.exec(obj[key])) { | ||
if (match = /{{model:\s*([\-\w]+)}}/.exec(obj[key])) { // eslint-disable-line no-cond-assign, no-useless-escape | ||
obj[key] = { | ||
@@ -15,0 +15,0 @@ 'Fn::Join': [ |
@@ -11,3 +11,3 @@ 'use strict' | ||
let match | ||
if (match = /#\/definitions\/([\-\w]+)/.exec(obj[key])) { | ||
if (match = /#\/definitions\/([\-\w]+)/.exec(obj[key])) { // eslint-disable-line no-cond-assign, no-useless-escape | ||
obj[key] = '{{model: ' + match[1] + '}}' | ||
@@ -29,3 +29,3 @@ } | ||
let match | ||
if (match = /#\/definitions\/([\-\w]+)/.exec(param.schema['$ref'])) { | ||
if (match = /#\/definitions\/([\-\w]+)/.exec(param.schema['$ref'])) { // eslint-disable-line no-cond-assign, no-useless-escape | ||
return match[1]; | ||
@@ -32,0 +32,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
178434
324