Skip to content

Commit af774da

Browse files
committed
Use internal serverless libraries instead of clones???
1 parent 8eb4478 commit af774da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const compileIamRole = require('./deploy/stepFunctions/compileIamRole');
77
const httpValidate = require('./deploy/events/apiGateway/validate');
88
const httpResources = require('./deploy/events/apiGateway/resources');
99
const httpMethods = require('./deploy/events/apiGateway/methods');
10-
const httpAuthorizers = require('./deploy/events/apiGateway/authorizers');
10+
const httpAuthorizers = require('serverless/lib/plugins/aws/package/compile/events/apiGateway/lib/authorizers');
1111
const httpCors = require('./deploy/events/apiGateway/cors');
1212
const httpApiKeys = require('./deploy/events/apiGateway/apiKeys');
1313
const httpUsagePlan = require('./deploy/events/apiGateway/usagePlan');
@@ -103,7 +103,8 @@ class ServerlessStepFunctions {
103103
.then(this.compileActivities),
104104
'package:compileEvents': () =>
105105
this.compileScheduledEvents().then(() => {
106-
this.pluginhttpValidated = this.httpValidate();
106+
// FIXME: Rename pluginhttpValidated to validated so that we can use internal serverless libraries
107+
this.validated = this.pluginhttpValidated = this.httpValidate();
107108

108109
if (this.pluginhttpValidated.events.length === 0) {
109110
return BbPromise.resolve();

0 commit comments

Comments
 (0)