Skip to content

Commit 023470f

Browse files
Matt Strommattstrom
authored andcommitted
fix: fix type errors
1 parent 952f90e commit 023470f

File tree

5 files changed

+71
-12
lines changed

5 files changed

+71
-12
lines changed

package-lock.json

Lines changed: 61 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"connect": "^3.7.0",
5353
"cookie-parser": "^1.4.5",
5454
"flat-cache": "^1.3.2",
55-
"fs-extra": "^7.0.1",
55+
"fs-extra": "^9.0.0",
5656
"glob-to-regexp": "^0.4.1",
5757
"http-status-codes": "^1.4.0"
5858
},

src/utils/callback-promise.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ export class CallbackPromise<T = any> implements Promise<T> {
3838
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult> {
3939
return this.promise.catch(onrejected);
4040
}
41+
42+
finally(onfinally?: (() => void) | undefined | null): Promise<T> {
43+
return this.promise.finally(onfinally);
44+
}
4145
}

src/utils/context.builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function buildContext(): Context {
66
functionName: '',
77
functionVersion: '',
88
invokedFunctionArn: '',
9-
memoryLimitInMB: 128,
9+
memoryLimitInMB: '128',
1010
awsRequestId: '',
1111
logGroupName: '',
1212
logStreamName: '',

src/utils/deferred-promise.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ export class DeferredPromise<T> implements Promise<T> {
2727
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult> {
2828
return this.promise.catch(onrejected);
2929
}
30+
31+
finally(onfinally?: (() => void) | undefined | null): Promise<T> {
32+
return this.promise.finally(onfinally);
33+
}
3034
}

0 commit comments

Comments
 (0)