Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dherault committed Aug 17, 2024
1 parent 8c260f0 commit a2c2930
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/http/createAuthScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ export default function createAuthScheme(authorizerOptions, provider, lambda) {
event = {
...event,
identitySource: [finalAuthorization],
pathParameters: nullIfEmpty(pathParams),
queryStringParameters: parseQueryStringParameters(url),
rawPath: request.path,
rawQueryString: getRawQueryParams(url),
requestContext: {
Expand All @@ -158,8 +160,6 @@ export default function createAuthScheme(authorizerOptions, provider, lambda) {
},
routeArn: methodArn,
routeKey: resourceId,
pathParameters: nullIfEmpty(pathParams),
queryStringParameters: parseQueryStringParameters(url),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function _hasFolderPackageJsonTypeModule(folder) {
return false
}
} catch (e) {
// eslint-disable-next-line no-console
console.warn(
`${pj} cannot be read, it will be ignored for ES module detection purposes.`,
e,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports.logger = function (category) {
const args = [...arguments].map((arg) =>
typeof arg === "function" ? arg() : arg,
)
// eslint-disable-next-line no-console
Reflect.apply(console.log, null, [Tag, category, ...args])
}
},
Expand All @@ -39,6 +40,7 @@ exports.logger = function (category) {
const args = [...arguments].map((arg) =>
typeof arg === "function" ? arg() : arg,
)
// eslint-disable-next-line no-console
Reflect.apply(console.log, null, [Tag, category, ...args])
}
},
Expand All @@ -47,6 +49,7 @@ exports.logger = function (category) {
const args = [...arguments].map((arg) =>
typeof arg === "function" ? arg() : arg,
)
// eslint-disable-next-line no-console
Reflect.apply(console.log, null, [Tag, category, ...args])
}
},
Expand Down

0 comments on commit a2c2930

Please sign in to comment.