Skip to content

Commit b03c1d5

Browse files
README.md에 npm, yarn, pnpm 설치 방법을 세부사항으로 추가하고, messageService.ts에서 스키마 디코딩 방식을 decodeSync에서 decodeUnknownSync로 변경하여 런타임 검증 방식을 개선함.
1 parent cad8756 commit b03c1d5

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,33 @@ This package is 100% compatible with SOLAPI family services (CoolSMS and etc..).
88

99
To use the SDK, simply use npm package manager CLI. Type the following into a terminal window.
1010

11-
### NPM
11+
<details>
12+
<summary><strong>npm</strong></summary>
1213

1314
```bash
1415
npm install --save solapi
1516
```
1617

17-
### Yarn
18+
</details>
19+
20+
<details>
21+
<summary><strong>yarn</strong></summary>
1822

1923
```bash
2024
yarn add solapi
2125
```
2226

23-
### PNPM
27+
</details>
28+
29+
<details>
30+
<summary><strong>pnpm</strong></summary>
2431

2532
```bash
2633
pnpm add solapi
2734
```
2835

36+
</details>
37+
2938
## Usage
3039

3140
See [examples folders](https://github.com/solapi/solapi-nodejs/tree/master/examples)

src/services/messages/messageService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class MessageService extends DefaultService {
6060
appId?: string,
6161
): Promise<SingleMessageSentResponse> {
6262
// Effect-Schema 기반 런타임 검증
63-
const parsedMessage = Schema.decodeSync(requestSendOneMessageSchema)(
63+
const parsedMessage = Schema.decodeUnknownSync(requestSendOneMessageSchema)(
6464
message,
6565
);
6666

0 commit comments

Comments
 (0)