Skip to content

Commit 507a45a

Browse files
committed
Upgrade from shallot to @shallot/aws
1 parent 46280a4 commit 507a45a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"postversion": "git push && git push --tags"
2222
},
2323
"devDependencies": {
24+
"@shallot/aws": "^1.0.6",
2425
"@types/aws-lambda": "^8.10.66",
2526
"@types/http-errors": "^1.8.0",
2627
"@types/jest": "^26.0.15",
@@ -36,7 +37,6 @@
3637
"jest": "^26.6.1",
3738
"lint-staged": "^10.4.2",
3839
"prettier": "^2.1.2",
39-
"shallot": "^1.2.1",
4040
"ts-jest": "^26.4.3",
4141
"ts-loader": "^8.0.11",
4242
"ts-node": "^9.0.0",

src/aws/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://github.com/middyjs/middy/tree/master/packages/http-error-handler
44
*/
55

6-
import type { ShallotMiddlewareWithOptions } from 'shallot/dist/aws/core';
6+
import type { ShallotAWSMiddlewareWithOptions } from '@shallot/aws';
77
import type { APIGatewayEvent, APIGatewayProxyResult } from 'aws-lambda';
88

99
import HttpError from 'http-errors';
@@ -20,7 +20,7 @@ export interface TShallotErrorHandlerOptions extends Record<string, unknown> {
2020
*
2121
* @param config optional object to pass config options
2222
*/
23-
const ShallotAWSHttpErrorHandler: ShallotMiddlewareWithOptions<
23+
const ShallotAWSHttpErrorHandler: ShallotAWSMiddlewareWithOptions<
2424
APIGatewayEvent,
2525
APIGatewayProxyResult,
2626
TShallotErrorHandlerOptions

tests/aws.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
import { test, describe, jest, expect } from '@jest/globals';
99

1010
import HttpError from 'http-errors';
11-
import { ShallotAWS } from 'shallot';
11+
import ShallotAWS from '@shallot/aws';
1212
import { ShallotAWSHttpErrorHandler } from '../src';
1313

1414
describe('http-error-handler middleware', () => {

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,11 @@
501501
"@nodelib/fs.scandir" "2.1.3"
502502
fastq "^1.6.0"
503503

504+
"@shallot/aws@^1.0.6":
505+
version "1.0.6"
506+
resolved "https://registry.yarnpkg.com/@shallot/aws/-/aws-1.0.6.tgz#fbc13e73eab7dd01a97acd33653497722d13fb89"
507+
integrity sha512-+ntMuXEdtMpNH1rkJn0KBqjG9KwcyCthbyiJ2ewX3VRGN/dTaj2nsvsAci4opuYcQC9+Ht0Ya4FI+Z2ychBAJQ==
508+
504509
"@sinonjs/commons@^1.7.0":
505510
version "1.8.1"
506511
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.1.tgz#e7df00f98a203324f6dc7cc606cad9d4a8ab2217"
@@ -4242,11 +4247,6 @@ [email protected]:
42424247
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"
42434248
integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
42444249

4245-
shallot@^1.2.1:
4246-
version "1.2.1"
4247-
resolved "https://registry.yarnpkg.com/shallot/-/shallot-1.2.1.tgz#63c060b9a3622ec71d631ad89a38b6449e382e36"
4248-
integrity sha512-A62YeB9Fu7sbntRw1Q82rD3qERv+jniZnzze3AVN7tpTHDkP6ys+AmjU8GqT7jFx8ag6YOqgRrGijq0hqW/lSA==
4249-
42504250
shebang-command@^1.2.0:
42514251
version "1.2.0"
42524252
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"

0 commit comments

Comments
 (0)