Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Nov 17, 2023
1 parent d0d5ec5 commit 4febc94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/http-router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const httpRouteHandler = (routes) => {

// Not Found
throw createError(404, 'Route does not exist', {
cause: { pacakge: '@middy/http-router', data: path }
cause: { package: '@middy/http-router', data: path }
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/input-output-logger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const inputOutputLoggerMiddleware = (opts = {}) => {
if (typeof logger !== 'function') {
throw new Error('logger must be a function', {
cause: {
pacakge: '@middy/input-output-logger'
package: '@middy/input-output-logger'
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ssm/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,10 @@ test('It should throw error if InvalidParameters returned', async (t) => {
t.is(e.message, 'Failed to resolve internal values')
t.deepEqual(e.cause.data, [
new Error('InvalidParameter invalid-ssm-param-name', {
cause: { pacakge: '@middy/ssm' }
cause: { package: '@middy/ssm' }
}),
new Error('InvalidParameter another-invalid-ssm-param', {
cause: { pacakge: '@middy/ssm' }
cause: { package: '@middy/ssm' }
})
])
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const wsRouteHandler = (routes) => {

// Not Found
throw createError(404, 'Route does not exist', {
cause: { pacakge: '@middy/ws-router', data: routeKey }
cause: { package: '@middy/ws-router', data: routeKey }
})
}
}
Expand Down

0 comments on commit 4febc94

Please sign in to comment.