Skip to content

Commit 230aeed

Browse files
committed
ensure fatal error are always printed to stderr
1 parent b495223 commit 230aeed

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-aws-lambda",
3-
"version": "4.8.0",
3+
"version": "4.8.1",
44
"description": "AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline ALB, APG, S3, SNS, SQS, DynamoDB Stream server mocking.",
55
"author": "Inqnuam",
66
"license": "MIT",
@@ -69,7 +69,7 @@
6969
"@types/archiver": "^5.3.2",
7070
"@types/node": "^14.14.31",
7171
"@types/serve-static": "^1.15.5",
72-
"typescript": "^5.5.2",
72+
"typescript": "^5.5.3",
7373
"vitest": "^1.6.0"
7474
},
7575
"keywords": [

src/lib/utils/colorize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const print = (color: string, s: string) => {
1111
}
1212
};
1313

14-
const RED = (s: string) => print("31", s);
14+
const RED = (s: string) => console.log(`\x1b[31m${s}\x1b[0m`);
1515
const GREEN = (s: string) => print("32", s);
1616
const YELLOW = (s: string) => print("33", s);
1717
const CYAN = (s: string) => print("36", s);

templates/simple/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"devDependencies": {
66
"prettier": "3.2.5",
77
"serverless": "^3.38.0",
8-
"serverless-aws-lambda": "^4.8.0",
9-
"serverless-aws-lambda-vitest": "^1.2.5",
10-
"typescript": "^5.4.5"
8+
"serverless-aws-lambda": "^4.8.1",
9+
"serverless-aws-lambda-vitest": "^2.0.0",
10+
"typescript": "^5.5.3"
1111
},
1212
"scripts": {
1313
"sls": "sls",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,10 +2138,10 @@ type-detect@^4.0.0, type-detect@^4.0.8:
21382138
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
21392139
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
21402140

2141-
typescript@^5.5.2:
2142-
version "5.5.2"
2143-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
2144-
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==
2141+
typescript@^5.5.3:
2142+
version "5.5.3"
2143+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.3.tgz#e1b0a3c394190838a0b168e771b0ad56a0af0faa"
2144+
integrity sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==
21452145

21462146
ufo@^1.5.3:
21472147
version "1.5.3"

0 commit comments

Comments
 (0)