trainfinder 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -19
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +44 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/train/train-data.json +170 -0
- package/dist/src/train/train-parse.service.d.ts +11 -0
- package/dist/src/train/train-parse.service.js +66 -0
- package/dist/src/train/train-parse.service.js.map +1 -0
- package/dist/src/train/train.service.d.ts +13 -0
- package/dist/src/train/train.service.js +100 -0
- package/dist/src/train/train.service.js.map +1 -0
- package/dist/src/train/train.service.spec.d.ts +1 -0
- package/dist/src/train/train.service.spec.js +17 -0
- package/dist/src/train/train.service.spec.js.map +1 -0
- package/dist/test/app.e2e-spec.d.ts +1 -0
- package/dist/test/app.e2e-spec.js +55 -0
- package/dist/test/app.e2e-spec.js.map +1 -0
- package/dist/train/train.service.spec.d.ts +1 -0
- package/dist/train/train.service.spec.js +17 -0
- package/dist/train/train.service.spec.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +8 -61
package/README.md
CHANGED
|
@@ -1,56 +1,69 @@
|
|
|
1
1
|
# TrainFinder CLI
|
|
2
2
|
|
|
3
|
-
`TrainFinder
|
|
4
|
-
|
|
3
|
+
`TrainFinder` is a **terminal-based CLI library** that allows you to search for **domestic high-speed train information in South Korea**.
|
|
4
|
+
You can search for trains based on **departure station, arrival station, and date**.
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
## ⚡
|
|
8
|
+
## ⚡ Installation
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
11
|
npm install -g trainfinder
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
##
|
|
15
|
-
|
|
14
|
+
## 🚄 Train Types
|
|
15
|
+
|
|
16
|
+
> ⚠️ Only the train types listed below are accepted as valid input.
|
|
17
|
+
|
|
18
|
+
- ktx
|
|
19
|
+
- ktx산천A
|
|
20
|
+
- ktx산천B
|
|
21
|
+
- ktx이음
|
|
22
|
+
- srt
|
|
23
|
+
- ktx청룡
|
|
16
24
|
|
|
17
25
|
```bash
|
|
18
26
|
trainfinder trainlist
|
|
19
27
|
```
|
|
20
28
|
|
|
21
|
-
##
|
|
29
|
+
## 🚉 Station List
|
|
22
30
|
```bash
|
|
23
31
|
trainfinder stationlist
|
|
24
32
|
```
|
|
25
33
|
|
|
26
|
-
##
|
|
34
|
+
## 🔍 Check Station Existence
|
|
35
|
+
> Check whether a station exists.
|
|
36
|
+
> ⚠️ **Station names must be entered in Korean.**
|
|
37
|
+
|
|
27
38
|
```bash
|
|
28
|
-
trainfinder station --st
|
|
39
|
+
trainfinder station --st <station_name>
|
|
29
40
|
|
|
30
41
|
# 예시
|
|
31
42
|
trainfinder station --st 수서
|
|
32
43
|
```
|
|
33
44
|
|
|
34
45
|
## 기차 조회
|
|
46
|
+
> Search for trains based on departure station, arrival station, and date.
|
|
35
47
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
| Option | Description | Default |
|
|
49
|
+
| --------- | ------------------------- | ------- |
|
|
50
|
+
| `--dep` | Departure station name | — |
|
|
51
|
+
| `--arr` | Arrival station name | — |
|
|
52
|
+
| `--date` | Date to search (YYYYMMDD) | Today |
|
|
53
|
+
| `--train` | Train type | ktx |
|
|
40
54
|
|
|
41
|
-
--arr : 도착역 코드
|
|
42
|
-
|
|
43
|
-
--date : 조회할 날짜 (기본값: 오늘 날짜)
|
|
44
|
-
|
|
45
|
-
--train : 열차 종류 (기본값: ktx)
|
|
46
55
|
|
|
47
56
|
|
|
48
57
|
```bash
|
|
49
|
-
trainfinder search
|
|
58
|
+
trainfinder search \
|
|
59
|
+
--dep <departure_station> \
|
|
60
|
+
--arr <arrival_station> \
|
|
61
|
+
--date <YYYYMMDD> \
|
|
62
|
+
--train <train_type>
|
|
50
63
|
```
|
|
51
64
|
|
|
52
65
|
```bash
|
|
53
|
-
#
|
|
66
|
+
# Example
|
|
54
67
|
trainfinder search --dep 서울 --arr 오송 --date 20251212 --train ktx
|
|
55
68
|
```
|
|
56
69
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const train_service_1 = require("./train/train.service");
|
|
6
|
+
const train_parse_service_1 = require("./train/train-parse.service");
|
|
7
|
+
const program = new commander_1.Command();
|
|
8
|
+
const trainParseService = new train_parse_service_1.TrainParseService();
|
|
9
|
+
const trainService = new train_service_1.TrainService(trainParseService);
|
|
10
|
+
program
|
|
11
|
+
.name('train')
|
|
12
|
+
.description('KTX/SRT CLI')
|
|
13
|
+
.version('1.0.0');
|
|
14
|
+
program
|
|
15
|
+
.command('trainlist')
|
|
16
|
+
.description('기차 종류 전체조회')
|
|
17
|
+
.action(() => {
|
|
18
|
+
trainService.trainList();
|
|
19
|
+
});
|
|
20
|
+
program
|
|
21
|
+
.command('search')
|
|
22
|
+
.description('출발/도착/날짜/기차종류 기반 기차 조회')
|
|
23
|
+
.option('--dep <dep>', '출발역 ID')
|
|
24
|
+
.option('--arr <arr>', '도착역 ID')
|
|
25
|
+
.option('--date <date>', '날짜 YYYYMMDD', '20230405')
|
|
26
|
+
.option('--train <train>', '열차종류', '00')
|
|
27
|
+
.action((opts) => {
|
|
28
|
+
trainService.searchTrain(opts.dep, opts.arr, opts.date, opts.train);
|
|
29
|
+
});
|
|
30
|
+
program
|
|
31
|
+
.command('station')
|
|
32
|
+
.description('기차역 존재 유무 확인')
|
|
33
|
+
.option('--st <st>', '검색역')
|
|
34
|
+
.action((opts) => {
|
|
35
|
+
trainService.findStation(opts.st);
|
|
36
|
+
});
|
|
37
|
+
program
|
|
38
|
+
.command('stationlist')
|
|
39
|
+
.description('기차역 전체조회')
|
|
40
|
+
.action((opts) => {
|
|
41
|
+
trainService.stationList();
|
|
42
|
+
});
|
|
43
|
+
program.parse();
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AACA,yCAAoC;AACpC,yDAAqD;AACrD,qEAAgE;AAEhE,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAC9B,MAAM,iBAAiB,GAAG,IAAI,uCAAiB,EAAE,CAAC;AAClD,MAAM,YAAY,GAAG,IAAI,4BAAY,CAAC,iBAAiB,CAAC,CAAC;AAEzD,OAAO;KACJ,IAAI,CAAC,OAAO,CAAC;KACb,WAAW,CAAC,aAAa,CAAC;KAC1B,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO;KACJ,OAAO,CAAC,WAAW,CAAC;KACpB,WAAW,CAAC,YAAY,CAAC;KACzB,MAAM,CAAC,GAAG,EAAE;IACX,YAAY,CAAC,SAAS,EAAE,CAAC;AAC3B,CAAC,CAAC,CAAA;AAEJ,OAAO;KACJ,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,wBAAwB,CAAC;KACrC,MAAM,CAAC,aAAa,EAAE,QAAQ,CAAC;KAC/B,MAAM,CAAC,aAAa,EAAE,QAAQ,CAAC;KAC/B,MAAM,CAAC,eAAe,EAAE,aAAa,EAAE,UAAU,CAAC;KAClD,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,IAAI,CAAC;KACvC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;IACf,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEL,OAAO;KACJ,OAAO,CAAC,SAAS,CAAC;KAClB,WAAW,CAAC,cAAc,CAAC;KAC3B,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC;KAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;IACd,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC;AAEL,OAAO;KACJ,OAAO,CAAC,aAAa,CAAC;KACtB,WAAW,CAAC,UAAU,CAAC;KACvB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;IACf,YAAY,CAAC,WAAW,EAAE,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"trainNames": [
|
|
3
|
+
"ktx",
|
|
4
|
+
"ktx산천A",
|
|
5
|
+
"ktx산천B",
|
|
6
|
+
"ktx이음",
|
|
7
|
+
"srt",
|
|
8
|
+
"ktx청룡"
|
|
9
|
+
],
|
|
10
|
+
"vehicleMapping": [
|
|
11
|
+
{ "vehiclekndid": "00", "vehiclekndnm": "KTX" },
|
|
12
|
+
{ "vehiclekndid": "07", "vehiclekndnm": "KTX-산천(A-type)" },
|
|
13
|
+
{ "vehiclekndid": "10", "vehiclekndnm": "KTX-산천(B-type)" },
|
|
14
|
+
{ "vehiclekndid": "16", "vehiclekndnm": "KTX-이음" },
|
|
15
|
+
{ "vehiclekndid": "17", "vehiclekndnm": "SRT" },
|
|
16
|
+
{ "vehiclekndid": "19", "vehiclekndnm": "KTX-청룡" }
|
|
17
|
+
],
|
|
18
|
+
"nodeList": [
|
|
19
|
+
{
|
|
20
|
+
"seoul": [
|
|
21
|
+
{ "nodeid": "NAT130126", "nodename": "청량리" },
|
|
22
|
+
{ "nodeid": "NAT010000", "nodename": "서울" },
|
|
23
|
+
{ "nodeid": "NAT010032", "nodename": "용산" },
|
|
24
|
+
{ "nodeid": "NATH30000", "nodename": "수서" },
|
|
25
|
+
{ "nodeid": "NAT010091", "nodename": "영등포" },
|
|
26
|
+
{ "nodeid": "NAT020040", "nodename": "상봉" }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"incheon": [
|
|
31
|
+
{ "nodeid": "NATC10580", "nodename": "인천공항T1" }
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"gyeonggi": [
|
|
36
|
+
{ "nodeid": "NAT110147", "nodename": "행신" },
|
|
37
|
+
{ "nodeid": "NAT010415", "nodename": "수원" },
|
|
38
|
+
{ "nodeid": "NATH10219", "nodename": "광명" },
|
|
39
|
+
{ "nodeid": "NATH30326", "nodename": "동탄" },
|
|
40
|
+
{ "nodeid": "NATH30536", "nodename": "평택지제" },
|
|
41
|
+
{ "nodeid": "NAT250007", "nodename": "판교" },
|
|
42
|
+
{ "nodeid": "NAT280090", "nodename": "가남" },
|
|
43
|
+
{ "nodeid": "NAT250428", "nodename": "부발" }
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"gangwon": [
|
|
48
|
+
{ "nodeid": "NAT020864", "nodename": "서원주" },
|
|
49
|
+
{ "nodeid": "NAT020947", "nodename": "원주" },
|
|
50
|
+
{ "nodeid": "NAT021033", "nodename": "만종" },
|
|
51
|
+
{ "nodeid": "NATN10428", "nodename": "둔내" },
|
|
52
|
+
{ "nodeid": "NATN10230", "nodename": "횡성" },
|
|
53
|
+
{ "nodeid": "NATN10787", "nodename": "진부" },
|
|
54
|
+
{ "nodeid": "NATN10625", "nodename": "평창" },
|
|
55
|
+
{ "nodeid": "NAT601936", "nodename": "강릉" },
|
|
56
|
+
{ "nodeid": "NAT601774", "nodename": "정동진" },
|
|
57
|
+
{ "nodeid": "NAT601485", "nodename": "동해" }
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"daejeon": [
|
|
62
|
+
{ "nodeid": "NAT011668", "nodename": "대전" },
|
|
63
|
+
{ "nodeid": "NAT030057", "nodename": "서대전" },
|
|
64
|
+
{ "nodeid": "NAT011524", "nodename": "신탄진" }
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"chungnam": [
|
|
69
|
+
{ "nodeid": "NAT050044", "nodename": "오송" },
|
|
70
|
+
{ "nodeid": "NATH20438", "nodename": "공주" },
|
|
71
|
+
{ "nodeid": "NAT030254", "nodename": "계룡" },
|
|
72
|
+
{ "nodeid": "NAT030508", "nodename": "논산" }
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"chungbuk": [
|
|
77
|
+
{ "nodeid": "NAT280212", "nodename": "감곡장호원" },
|
|
78
|
+
{ "nodeid": "NAT280358", "nodename": "앙성온천" },
|
|
79
|
+
{ "nodeid": "NAT280666", "nodename": "살미" },
|
|
80
|
+
{ "nodeid": "NAT280751", "nodename": "수안보온천" },
|
|
81
|
+
{ "nodeid": "NAT280814", "nodename": "연풍" },
|
|
82
|
+
{ "nodeid": "NAT050827", "nodename": "충주" },
|
|
83
|
+
{ "nodeid": "NAT021549", "nodename": "제천" },
|
|
84
|
+
{ "nodeid": "NAT021784", "nodename": "단양" }
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"busan": [
|
|
89
|
+
{ "nodeid": "NAT014445", "nodename": "부산" },
|
|
90
|
+
{ "nodeid": "NAT750046", "nodename": "부전" },
|
|
91
|
+
{ "nodeid": "NAT014150", "nodename": "물금" },
|
|
92
|
+
{ "nodeid": "NAT014281", "nodename": "구포" }
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"gyeongnam": [
|
|
97
|
+
{ "nodeid": "NATH13717", "nodename": "울산" },
|
|
98
|
+
{ "nodeid": "NAT013841", "nodename": "밀양" },
|
|
99
|
+
{ "nodeid": "NAT013841", "nodename": "밀양" },
|
|
100
|
+
{ "nodeid": "NAT880177", "nodename": "진영" },
|
|
101
|
+
{ "nodeid": "NAT880281", "nodename": "창원중앙" },
|
|
102
|
+
{ "nodeid": "NAT880310", "nodename": "창원" },
|
|
103
|
+
{ "nodeid": "NAT880345", "nodename": "마산" },
|
|
104
|
+
{ "nodeid": "NAT880766", "nodename": "반성" },
|
|
105
|
+
{ "nodeid": "NAT881014", "nodename": "진주" }
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"daegu": [
|
|
110
|
+
{ "nodeid": "NAT013239", "nodename": "대구" },
|
|
111
|
+
{ "nodeid": "NAT013271", "nodename": "동대구" },
|
|
112
|
+
{ "nodeid": "NAT013189", "nodename": "서대구" }
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"gyeongbuk": [
|
|
117
|
+
{ "nodeid": "NAT022053", "nodename": "풍기" },
|
|
118
|
+
{ "nodeid": "NAT022188", "nodename": "영주" },
|
|
119
|
+
{ "nodeid": "NAT022558", "nodename": "안동" },
|
|
120
|
+
{ "nodeid": "NAT022844", "nodename": "의성" },
|
|
121
|
+
{ "nodeid": "NAT023449", "nodename": "영천" },
|
|
122
|
+
{ "nodeid": "NATH12383", "nodename": "김천구미" },
|
|
123
|
+
{ "nodeid": "NAT280927", "nodename": "문경" },
|
|
124
|
+
{ "nodeid": "NATH13421", "nodename": "경주" },
|
|
125
|
+
{ "nodeid": "NAT8B0351", "nodename": "포항" }
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"jeonbuk": [
|
|
130
|
+
{ "nodeid": "NAT030879", "nodename": "익산" },
|
|
131
|
+
{ "nodeid": "NAT040257", "nodename": "전주" },
|
|
132
|
+
{ "nodeid": "NAT031056", "nodename": "김제" },
|
|
133
|
+
{ "nodeid": "NAT040868", "nodename": "남원" },
|
|
134
|
+
{ "nodeid": "NAT031314", "nodename": "정읍" },
|
|
135
|
+
{ "nodeid": "NAT040536", "nodename": "임실" },
|
|
136
|
+
{ "nodeid": "NAT040667", "nodename": "오수" }
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"jeonnam": [
|
|
141
|
+
{ "nodeid": "NAT031638", "nodename": "장성" },
|
|
142
|
+
{ "nodeid": "NAT031857", "nodename": "광주송정" },
|
|
143
|
+
{ "nodeid": "NAT032563", "nodename": "목포" },
|
|
144
|
+
{ "nodeid": "NAT031998", "nodename": "나주" },
|
|
145
|
+
{ "nodeid": "NAT041072", "nodename": "곡성" },
|
|
146
|
+
{ "nodeid": "NAT041285", "nodename": "구례구" },
|
|
147
|
+
{ "nodeid": "NAT041595", "nodename": "순천" },
|
|
148
|
+
{ "nodeid": "NAT041993", "nodename": "여수EXPO" }
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"city": [
|
|
153
|
+
{ "citycode": 11, "cityname": "서울특별시" },
|
|
154
|
+
{ "citycode": 12, "cityname": "세종특별시" },
|
|
155
|
+
{ "citycode": 21, "cityname": "부산광역시" },
|
|
156
|
+
{ "citycode": 22, "cityname": "대구광역시" },
|
|
157
|
+
{ "citycode": 23, "cityname": "인천광역시" },
|
|
158
|
+
{ "citycode": 24, "cityname": "광주광역시" },
|
|
159
|
+
{ "citycode": 25, "cityname": "대전광역시" },
|
|
160
|
+
{ "citycode": 26, "cityname": "울산광역시" },
|
|
161
|
+
{ "citycode": 31, "cityname": "경기도" },
|
|
162
|
+
{ "citycode": 32, "cityname": "강원도" },
|
|
163
|
+
{ "citycode": 33, "cityname": "충청북도" },
|
|
164
|
+
{ "citycode": 34, "cityname": "충청남도" },
|
|
165
|
+
{ "citycode": 35, "cityname": "전라북도" },
|
|
166
|
+
{ "citycode": 36, "cityname": "전라남도" },
|
|
167
|
+
{ "citycode": 37, "cityname": "경상북도" },
|
|
168
|
+
{ "citycode": 38, "cityname": "경상남도" }
|
|
169
|
+
]
|
|
170
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class TrainParseService {
|
|
2
|
+
constructor();
|
|
3
|
+
trainList(): Promise<void>;
|
|
4
|
+
parseToNodeId(trainName: string): Promise<string>;
|
|
5
|
+
trainDepArrFinder(depName: string, arrName: string): Promise<{
|
|
6
|
+
depNodeId: any;
|
|
7
|
+
arrNodeId: any;
|
|
8
|
+
}>;
|
|
9
|
+
findStation(station: String): Promise<any>;
|
|
10
|
+
stationList(): Promise<any[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TrainParseService = void 0;
|
|
7
|
+
const train_data_json_1 = __importDefault(require("./train-data.json"));
|
|
8
|
+
class TrainParseService {
|
|
9
|
+
constructor() { }
|
|
10
|
+
async trainList() {
|
|
11
|
+
const trainList = train_data_json_1.default.trainNames;
|
|
12
|
+
trainList.forEach(train => {
|
|
13
|
+
console.log(train);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
async parseToNodeId(trainName) {
|
|
17
|
+
const trainNames = train_data_json_1.default.trainNames;
|
|
18
|
+
const vehicleMapping = train_data_json_1.default.vehicleMapping;
|
|
19
|
+
const match = vehicleMapping.find(v => v.vehiclekndnm.replace(/-/g, '').toLowerCase() === trainName.toLowerCase());
|
|
20
|
+
if (!match) {
|
|
21
|
+
console.error("❌ 잘못된 기차 이름:", trainName);
|
|
22
|
+
console.log("입력 가능 전체 기차종류:", trainNames.join(', '));
|
|
23
|
+
}
|
|
24
|
+
return match ? String(match.vehiclekndid) : '00';
|
|
25
|
+
}
|
|
26
|
+
async trainDepArrFinder(depName, arrName) {
|
|
27
|
+
const depNode = await this.findStation(depName);
|
|
28
|
+
const arrNode = await this.findStation(arrName);
|
|
29
|
+
if (!depNode) {
|
|
30
|
+
console.log(`출발역 "${depName}"을(를) 찾을 수 없습니다. 역명을 다시 확인해 주세요.`);
|
|
31
|
+
}
|
|
32
|
+
if (!arrNode) {
|
|
33
|
+
console.log(`도착역 "${arrName}"을(를) 찾을 수 없습니다. 역명을 다시 확인해 주세요.`);
|
|
34
|
+
}
|
|
35
|
+
const depNodeId = depNode.nodeid;
|
|
36
|
+
const arrNodeId = arrNode.nodeid;
|
|
37
|
+
return {
|
|
38
|
+
depNodeId,
|
|
39
|
+
arrNodeId,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
async findStation(station) {
|
|
43
|
+
for (const region of train_data_json_1.default.nodeList) {
|
|
44
|
+
const regionKey = Object.keys(region)[0];
|
|
45
|
+
const nodes = region[regionKey];
|
|
46
|
+
const foundStation = nodes.find(e => e.nodename.toLowerCase().trim() === station.toLowerCase().trim());
|
|
47
|
+
if (foundStation) {
|
|
48
|
+
return foundStation;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
async stationList() {
|
|
54
|
+
const allStations = [];
|
|
55
|
+
for (const region of train_data_json_1.default.nodeList) {
|
|
56
|
+
const regionKey = Object.keys(region)[0];
|
|
57
|
+
const nodes = region[regionKey];
|
|
58
|
+
nodes.forEach(e => {
|
|
59
|
+
allStations.push(e.nodename);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return allStations;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.TrainParseService = TrainParseService;
|
|
66
|
+
//# sourceMappingURL=train-parse.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"train-parse.service.js","sourceRoot":"","sources":["../../../src/train/train-parse.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TrainParseService } from './train-parse.service';
|
|
2
|
+
export declare class TrainService {
|
|
3
|
+
private readonly trainParseService;
|
|
4
|
+
private serviceKey;
|
|
5
|
+
constructor(trainParseService: TrainParseService);
|
|
6
|
+
formatDateTime(dateTime: number): string;
|
|
7
|
+
trainList(): Promise<void>;
|
|
8
|
+
today(date: string): Promise<void>;
|
|
9
|
+
searchTrain(depName: string, arrName: string, date: string, trainName: string): Promise<void>;
|
|
10
|
+
cityCodeList(cityCode: string): Promise<void>;
|
|
11
|
+
findStation(station: string): Promise<void>;
|
|
12
|
+
stationList(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TrainService = void 0;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
class TrainService {
|
|
9
|
+
constructor(trainParseService) {
|
|
10
|
+
this.trainParseService = trainParseService;
|
|
11
|
+
this.serviceKey = 'd2a259fae046ba1b65a3c083fdd80de2a781e37eb27f939d758af1de25f606f9';
|
|
12
|
+
}
|
|
13
|
+
formatDateTime(dateTime) {
|
|
14
|
+
const dateTimeString = dateTime.toString();
|
|
15
|
+
const year = dateTimeString.slice(0, 4);
|
|
16
|
+
const month = dateTimeString.slice(4, 6);
|
|
17
|
+
const day = dateTimeString.slice(6, 8);
|
|
18
|
+
const hour = dateTimeString.slice(8, 10);
|
|
19
|
+
const minute = dateTimeString.slice(10, 12);
|
|
20
|
+
return `${year}-${month}-${day} ${hour}:${minute}`;
|
|
21
|
+
}
|
|
22
|
+
async trainList() {
|
|
23
|
+
return await this.trainParseService.trainList();
|
|
24
|
+
}
|
|
25
|
+
async today(date) {
|
|
26
|
+
const now = new Date();
|
|
27
|
+
const kstOffset = 9 * 60;
|
|
28
|
+
now.setMinutes(now.getMinutes() + now.getTimezoneOffset() + kstOffset);
|
|
29
|
+
const currentDate = now.toISOString().slice(0, 10).replace(/-/g, '');
|
|
30
|
+
if (date < currentDate) {
|
|
31
|
+
throw new Error('The provided date is earlier than the current date.');
|
|
32
|
+
}
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
async searchTrain(depName, arrName, date, trainName) {
|
|
36
|
+
var _a, _b, _c, _d;
|
|
37
|
+
const url = 'http://apis.data.go.kr/1613000/TrainInfoService/getStrtpntAlocFndTrainInfo';
|
|
38
|
+
this.today(date);
|
|
39
|
+
const trainGradeCode = await this.trainParseService.parseToNodeId(trainName);
|
|
40
|
+
const nodeId = await this.trainParseService.trainDepArrFinder(depName, arrName);
|
|
41
|
+
const depPlaceId = nodeId.depNodeId;
|
|
42
|
+
const arrPlaceId = nodeId.arrNodeId;
|
|
43
|
+
const params = new URLSearchParams({
|
|
44
|
+
serviceKey: this.serviceKey,
|
|
45
|
+
_type: 'json',
|
|
46
|
+
depPlaceId,
|
|
47
|
+
arrPlaceId,
|
|
48
|
+
depPlandTime: date,
|
|
49
|
+
trainGradeCode,
|
|
50
|
+
});
|
|
51
|
+
const response = await axios_1.default.get(`${url}?${params.toString()}`, { responseType: 'json' });
|
|
52
|
+
const items = ((_d = (_c = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.body) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.item) || [];
|
|
53
|
+
if (!items.length) {
|
|
54
|
+
console.log('조회된 열차가 없습니다.');
|
|
55
|
+
}
|
|
56
|
+
console.log('=== 🚆 기차 조회 결과 ===');
|
|
57
|
+
items.forEach((item) => {
|
|
58
|
+
console.log('-------------조회--------------');
|
|
59
|
+
console.log(`열차번호: ${item.trainno}`);
|
|
60
|
+
console.log(`출발지: ${item.depplacename}`);
|
|
61
|
+
console.log(`출발 시간: ${this.formatDateTime(item.depplandtime)}`);
|
|
62
|
+
console.log(`도착지: ${item.arrplacename}`);
|
|
63
|
+
console.log(`도착 시간: ${this.formatDateTime(item.arrplandtime)}`);
|
|
64
|
+
console.log(`종류: ${item.traingradename}`);
|
|
65
|
+
console.log('-----------------------------');
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
async cityCodeList(cityCode) {
|
|
69
|
+
var _a, _b, _c, _d;
|
|
70
|
+
const url = 'http://apis.data.go.kr/1613000/TrainInfoService/getCtyAcctoTrainSttnList';
|
|
71
|
+
const params = new URLSearchParams({
|
|
72
|
+
numOfRows: "100",
|
|
73
|
+
serviceKey: this.serviceKey,
|
|
74
|
+
_type: 'json',
|
|
75
|
+
cityCode,
|
|
76
|
+
});
|
|
77
|
+
const response = await axios_1.default.get(`${url}?${params.toString()}`, { responseType: 'json' });
|
|
78
|
+
const items = ((_d = (_c = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.body) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.item) || [];
|
|
79
|
+
console.log(cityCode);
|
|
80
|
+
console.log('=== 🏢 기차역 목록 ===');
|
|
81
|
+
console.log(items);
|
|
82
|
+
}
|
|
83
|
+
async findStation(station) {
|
|
84
|
+
const exactlyStation = await this.trainParseService.findStation(station);
|
|
85
|
+
if (exactlyStation) {
|
|
86
|
+
console.log(`"${station}"은 존재하는 역 입니다.`);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
console.log('"trainfinder stationlist" 명령어로 존재하는 역을 확인해 보세요.');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async stationList() {
|
|
93
|
+
const list = await this.trainParseService.stationList();
|
|
94
|
+
list.forEach((item) => {
|
|
95
|
+
console.log(item);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.TrainService = TrainService;
|
|
100
|
+
//# sourceMappingURL=train.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"train.service.js","sourceRoot":"","sources":["../../../src/train/train.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const testing_1 = require("@nestjs/testing");
|
|
4
|
+
const train_service_1 = require("./train.service");
|
|
5
|
+
describe('TrainService', () => {
|
|
6
|
+
let service;
|
|
7
|
+
beforeEach(async () => {
|
|
8
|
+
const module = await testing_1.Test.createTestingModule({
|
|
9
|
+
providers: [train_service_1.TrainService],
|
|
10
|
+
}).compile();
|
|
11
|
+
service = module.get(train_service_1.TrainService);
|
|
12
|
+
});
|
|
13
|
+
it('should be defined', () => {
|
|
14
|
+
expect(service).toBeDefined();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=train.service.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"train.service.spec.js","sourceRoot":"","sources":["../../../src/train/train.service.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,mDAA+C;AAE/C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OAAqB,CAAC;IAE1B,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,SAAS,EAAE,CAAC,4BAAY,CAAC;SAC1B,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,OAAO,GAAG,MAAM,CAAC,GAAG,CAAe,4BAAY,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const testing_1 = require("@nestjs/testing");
|
|
37
|
+
const request = __importStar(require("supertest"));
|
|
38
|
+
const app_module_1 = require("./../src/app.module");
|
|
39
|
+
describe('AppController (e2e)', () => {
|
|
40
|
+
let app;
|
|
41
|
+
beforeEach(async () => {
|
|
42
|
+
const moduleFixture = await testing_1.Test.createTestingModule({
|
|
43
|
+
imports: [app_module_1.AppModule],
|
|
44
|
+
}).compile();
|
|
45
|
+
app = moduleFixture.createNestApplication();
|
|
46
|
+
await app.init();
|
|
47
|
+
});
|
|
48
|
+
it('/ (GET)', () => {
|
|
49
|
+
return request(app.getHttpServer())
|
|
50
|
+
.get('/')
|
|
51
|
+
.expect(200)
|
|
52
|
+
.expect('Hello World!');
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=app.e2e-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.e2e-spec.js","sourceRoot":"","sources":["../../test/app.e2e-spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAsD;AAEtD,mDAAqC;AACrC,oDAAgD;AAEhD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,GAAqB,CAAC;IAE1B,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,aAAa,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAClE,OAAO,EAAE,CAAC,sBAAS,CAAC;SACrB,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,GAAG,GAAG,aAAa,CAAC,qBAAqB,EAAE,CAAC;QAC5C,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE;QACjB,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;aAChC,GAAG,CAAC,GAAG,CAAC;aACR,MAAM,CAAC,GAAG,CAAC;aACX,MAAM,CAAC,cAAc,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const testing_1 = require("@nestjs/testing");
|
|
4
|
+
const train_service_1 = require("./train.service");
|
|
5
|
+
describe('TrainService', () => {
|
|
6
|
+
let service;
|
|
7
|
+
beforeEach(async () => {
|
|
8
|
+
const module = await testing_1.Test.createTestingModule({
|
|
9
|
+
providers: [train_service_1.TrainService],
|
|
10
|
+
}).compile();
|
|
11
|
+
service = module.get(train_service_1.TrainService);
|
|
12
|
+
});
|
|
13
|
+
it('should be defined', () => {
|
|
14
|
+
expect(service).toBeDefined();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=train.service.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"train.service.spec.js","sourceRoot":"","sources":["../../src/train/train.service.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,mDAA+C;AAE/C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OAAqB,CAAC;IAE1B,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,SAAS,EAAE,CAAC,4BAAY,CAAC;SAC1B,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,OAAO,GAAG,MAAM,CAAC,GAAG,CAAe,4BAAY,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2017.full.d.ts","../node_modules/commander/typings/index.d.ts","../node_modules/axios/index.d.ts","../src/train/train-data.json","../src/train/train-parse.service.ts","../src/train/train.service.ts","../src/index.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/crypto.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/utility.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client-stats.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/h2c-client.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-call-history.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/snapshot-agent.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cache-interceptor.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/web-globals/streams.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[61,112,113,115,132,133],[61,114,115,132,133],[115,132,133],[61,115,120,132,133,150],[61,115,116,121,126,132,133,135,147,158],[61,115,116,117,126,132,133,135],[61,115,132,133],[61,115,118,132,133,159],[61,115,119,120,127,132,133,136],[61,115,120,132,133,147,155],[61,115,121,123,126,132,133,135],[61,114,115,122,132,133],[61,115,123,124,132,133],[61,115,125,126,132,133],[61,114,115,126,132,133],[61,115,126,127,128,132,133,147,158],[61,115,126,127,128,132,133,142,147,150],[61,107,115,123,126,129,132,133,135,147,158],[61,115,126,127,129,130,132,133,135,147,155,158],[61,115,129,131,132,133,147,155,158],[59,60,61,62,63,64,65,66,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164],[61,115,126,132,133],[61,115,132,133,134,158],[61,115,123,126,132,133,135,147],[61,115,132,133,136],[61,115,132,133,137],[61,114,115,132,133,138],[61,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164],[61,115,132,133,140],[61,115,132,133,141],[61,115,126,132,133,142,143],[61,115,132,133,142,144,159,161],[61,115,127,132,133],[61,115,126,132,133,147,148,150],[61,115,132,133,149,150],[61,115,132,133,147,148],[61,115,132,133,150],[61,115,132,133,151],[61,112,115,132,133,147,152],[61,115,126,132,133,153,154],[61,115,132,133,153,154],[61,115,120,132,133,135,147,155],[61,115,132,133,156],[61,115,132,133,135,157],[61,115,129,132,133,141,158],[61,115,120,132,133,159],[61,115,132,133,147,160],[61,115,132,133,134,161],[61,115,132,133,162],[61,115,120,132,133],[61,107,115,132,133],[61,115,132,133,163],[61,107,115,126,128,132,133,138,147,150,158,160,161,163],[61,115,132,133,147,164],[61,73,76,79,80,115,132,133,158],[61,76,115,132,133,147,158],[61,76,80,115,132,133,158],[61,115,132,133,147],[61,70,115,132,133],[61,74,115,132,133],[61,72,73,76,115,132,133,158],[61,115,132,133,135,155],[61,115,132,133,165],[61,70,115,132,133,165],[61,72,76,115,132,133,135,158],[61,67,68,69,71,75,115,126,132,133,147,158],[61,76,84,92,115,132,133],[61,68,74,115,132,133],[61,76,101,102,115,132,133],[61,68,71,76,115,132,133,150,158,165],[61,76,115,132,133],[61,72,76,115,132,133,158],[61,67,115,132,133],[61,70,71,72,74,75,76,77,78,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102,103,104,105,106,115,132,133],[61,76,94,97,115,123,132,133],[61,76,84,85,86,115,132,133],[61,74,76,85,87,115,132,133],[61,75,115,132,133],[61,68,70,76,115,132,133],[61,76,80,85,87,115,132,133],[61,80,115,132,133],[61,74,76,79,115,132,133,158],[61,68,72,76,84,115,132,133],[61,76,94,115,132,133],[61,87,115,132,133],[61,70,76,101,115,132,133,150,163,165],[53,56,57,61,115,132,133],[55,61,115,132,133],[54,56,61,115,132,133]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1d242d5c24cf285c88bc4fb93c5ff903de8319064e282986edeb6247ba028d5e","impliedFormat":1},{"version":"0237580177f1a858ab125992af8a6dfc29268fe7d4bac5308b9f462f88b0cd31","impliedFormat":1},{"version":"1c9800fbae1b443d77672e6d3e715df7280479b7c41f08cb790e750f01b50d90","impliedFormat":99},{"version":"132e2016057344e711b08f10833ed44b6eaf8da94e904dd05dc61ac5ff8c3f48","signature":"1ba76a92dd75d32a3f575456a6ff5469d178aba073807b259ad5ce2f99e33b28"},{"version":"852ce5ac8519a4217795f01eaf7cb6cc6a993b68fb5c9f3d634c15d0ebd6ebd7","signature":"d09f66d085409d9ffce71f8e2b8eebe0aeabc223624b305a0c753e995f941a8b"},{"version":"7c72715b182982a5674c4a9ed3114e41439ab0b3aa48bcf42c8f18a542df8636","signature":"32d55f7ed80d2af76e2a4251080d1ce76bdf1ab2b25ca88d182e7454c2192709"},{"version":"c5bbe936f198d3593dc89fef2a57a49abbd0156739ff08b9952ad39a2b27c3eb","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012"},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"378281aa35786c27d5811af7e6bcaa492eebd0c7013d48137c35bbc69a2b9751","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"1b2dd1cbeb0cc6ae20795958ba5950395ebb2849b7c8326853dd15530c77ab0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"387a023d363f755eb63450a66c28b14cdd7bc30a104565e2dbf0a8988bb4a56c","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"3a80bc85f38526ca3b08007ee80712e7bb0601df178b23fbf0bf87036fce40ce","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"2931540c47ee0ff8a62860e61782eb17b155615db61e36986e54645ec67f67c2","impliedFormat":1},{"version":"ccab02f3920fc75c01174c47fcf67882a11daf16baf9e81701d0a94636e94556","impliedFormat":1},{"version":"f6faf5f74e4c4cc309a6c6a6c4da02dbb840be5d3e92905a23dcd7b2b0bd1986","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"33e981bf6376e939f99bd7f89abec757c64897d33c005036b9a10d9587d80187","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"3bacf516d686d08682751a3bd2519ea3b8041a164bfb4f1d35728993e70a2426","impliedFormat":1},{"version":"7fb266686238369442bd1719bc0d7edd0199da4fb8540354e1ff7f16669b4323","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"c183b931b68ad184bc8e8372bf663f3d33304772fb482f29fb91b3c391031f3e","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"48cc3ec153b50985fb95153258a710782b25975b10dd4ac8a4f3920632d10790","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"e1528ca65ac90f6fa0e4a247eb656b4263c470bb22d9033e466463e13395e599","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"866078923a56d026e39243b4392e282c1c63159723996fa89243140e1388a98d","impliedFormat":1},{"version":"830171b27c5fdf9bcbe4cf7d428fcf3ae2c67780fb7fbdccdf70d1623d938bc4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ea15fd99b2e34cb25fe8346c955000bb70c8b423ae4377a972ef46bfb37f595","impliedFormat":1},{"version":"7cf69dd5502c41644c9e5106210b5da7144800670cbe861f66726fa209e231c4","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"f9b4137a0d285bd77dba2e6e895530112264310ae47e07bf311feae428fb8b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b21e13ed07d0df176ae31d6b7f01f7b17d66dbeb489c0d31d00de2ca14883da","impliedFormat":1},{"version":"51aecd2df90a3cffea1eb4696b33b2d78594ea2aa2138e6b9471ec4841c6c2ee","impliedFormat":1},{"version":"9d8f9e63e29a3396285620908e7f14d874d066caea747dc4b2c378f0599166b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"f929f0b6b3421a2d34344b0f421f45aeb2c84ad365ebf29d04312023b3accc58","impliedFormat":1},{"version":"db9ada976f9e52e13f7ae8b9a320f4b67b87685938c5879187d8864b2fbe97f3","impliedFormat":1},{"version":"9f39e70a354d0fba29ac3cdf6eca00b7f9e96f64b2b2780c432e8ea27f133743","impliedFormat":1},{"version":"0dace96cc0f7bc6d0ee2044921bdf19fe42d16284dbcc8ae200800d1c9579335","impliedFormat":1},{"version":"a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"c64e1888baaa3253ca4405b455e4bf44f76357868a1bd0a52998ade9a092ad78","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8cf132379078d0974a59df26069689a2d33c7dc826b5be56231841cb2f32e58","impliedFormat":1},{"version":"fbf413fc617837453c878a9174a1f1b383616857a3f8366bc41cf30df4aea7d5","impliedFormat":1},{"version":"148c73ec11318850f571172ceae3e55ce479d850fe18ec8eae0abd99d9f6c319","impliedFormat":1},{"version":"230bdc111d7578276e4a3bb9d075d85c78c6b68f428c3a9935e2eaa10f4ae1f5","impliedFormat":1},{"version":"e8aabbee5e7b9101b03bb4222607d57f38859b8115a8050a4eb91b4ee43a3a73","impliedFormat":1},{"version":"bbf42f98a5819f4f06e18c8b669a994afe9a17fe520ae3454a195e6eabf7700d","impliedFormat":1},{"version":"c0bb1b65757c72bbf8ddf7eaa532223bacf58041ff16c883e76f45506596e925","impliedFormat":1},{"version":"c8b85f7aed29f8f52b813f800611406b0bfe5cf3224d20a4bdda7c7f73ce368e","affectsGlobalScope":true,"impliedFormat":1},{"version":"145dcf25fd4967c610c53d93d7bc4dce8fbb1b6dd7935362472d4ae49363c7ba","impliedFormat":1},{"version":"ff65b8a8bd380c6d129becc35de02f7c29ad7ce03300331ca91311fb4044d1a9","impliedFormat":1},{"version":"04bf1aa481d1adfb16d93d76e44ce71c51c8ef68039d849926551199489637f6","impliedFormat":1},{"version":"9043daec15206650fa119bad6b8d70136021ea7d52673a71f79a87a42ee38d44","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b055dae40c0e27154f109c4ff771ae748db161c503a1687e3d4b9c91ba20de3","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"8c81fd4a110490c43d7c578e8c6f69b3af01717189196899a6a44f93daa57a3a","impliedFormat":1},{"version":"5fb39858b2459864b139950a09adae4f38dad87c25bf572ce414f10e4bd7baab","impliedFormat":1},{"version":"65faec1b4bd63564aeec33eab9cacfaefd84ce2400f03903a71a1841fbce195f","impliedFormat":1},{"version":"b33b74b97952d9bf4fbd2951dcfbb5136656ddb310ce1c84518aaa77dbca9992","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b306cd4282bbb54d4a6bb23cfb7a271160983dfc38c67b5a132504cfcc34896","affectsGlobalScope":true,"impliedFormat":1},{"version":"c119835edf36415081dfd9ed15fc0cd37aaa28d232be029ad073f15f3d88c323","impliedFormat":1},{"version":"450172a56b944c2d83f45cc11c9a388ea967cd301a21202aa0a23c34c7506a18","impliedFormat":1},{"version":"9705cd157ffbb91c5cab48bdd2de5a437a372e63f870f8a8472e72ff634d47c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"72f8936aebf0c4a1adab767b97d34ba7d3a308afcf76de4417b9c16fb92ed548","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"69e0a41d620fb678a899c65e073413b452f4db321b858fe422ad93fd686cd49a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3585d6891e9ea18e07d0755a6d90d71331558ba5dc5561933553209f886db106","affectsGlobalScope":true,"impliedFormat":1},{"version":"86be71cbb0593468644932a6eb96d527cfa600cecfc0b698af5f52e51804451d","impliedFormat":1},{"version":"84dd6b0fd2505135692935599d6606f50a421389e8d4535194bcded307ee5cf2","impliedFormat":1},{"version":"0d5b085f36e6dc55bc6332ecb9c733be3a534958c238fb8d8d18d4a2b6f2a15a","impliedFormat":1},{"version":"db19ea066fdc5f97df3f769e582ae3000380ab7942e266654bdb1a4650d19eaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"2a034894bf28c220a331c7a0229d33564803abe2ac1b9a5feee91b6b9b6e88ea","impliedFormat":1},{"version":"d7e9ab1b0996639047c61c1e62f85c620e4382206b3abb430d9a21fb7bc23c77","impliedFormat":1}],"root":[[56,58]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noFallthroughCasesInSwitch":false,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strictBindCallApply":false,"strictNullChecks":false,"target":4},"referencedMap":[[112,1],[113,1],[114,2],[61,3],[115,4],[116,5],[117,6],[59,7],[118,8],[119,9],[120,10],[121,11],[122,12],[123,13],[124,13],[125,14],[126,15],[127,16],[128,17],[62,7],[60,7],[129,18],[130,19],[131,20],[165,21],[132,22],[133,7],[134,23],[135,24],[136,25],[137,26],[138,27],[139,28],[140,29],[141,30],[142,31],[143,31],[144,32],[145,7],[146,33],[147,34],[149,35],[148,36],[150,37],[151,38],[152,39],[153,40],[154,41],[155,42],[156,43],[157,44],[158,45],[159,46],[160,47],[161,48],[162,49],[63,7],[64,50],[65,7],[66,7],[108,51],[109,52],[110,7],[111,37],[163,53],[164,54],[54,7],[53,7],[50,7],[51,7],[8,7],[9,7],[13,7],[12,7],[2,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[21,7],[3,7],[22,7],[23,7],[4,7],[24,7],[52,7],[28,7],[25,7],[26,7],[27,7],[29,7],[30,7],[31,7],[5,7],[32,7],[33,7],[34,7],[35,7],[6,7],[39,7],[36,7],[37,7],[38,7],[40,7],[7,7],[41,7],[46,7],[47,7],[42,7],[43,7],[44,7],[45,7],[1,7],[48,7],[49,7],[11,7],[10,7],[84,55],[96,56],[82,57],[97,58],[106,59],[73,60],[74,61],[72,62],[105,63],[100,64],[104,65],[76,66],[93,67],[75,68],[103,69],[70,70],[71,64],[77,71],[78,7],[83,72],[81,71],[68,73],[107,74],[98,75],[87,76],[86,71],[88,77],[91,78],[85,79],[89,80],[101,63],[79,81],[80,82],[92,83],[69,58],[95,84],[94,71],[90,85],[99,7],[67,7],[102,86],[58,87],[55,7],[56,88],[57,89]],"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,79 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trainfinder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "KTX/SRT 실시간 열차 조회 CLI 도구",
|
|
5
5
|
"author": "junseok oh",
|
|
6
|
-
"private": false,
|
|
7
6
|
"license": "MIT",
|
|
8
7
|
"bin": {
|
|
9
8
|
"trainfinder": "./dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"scripts": {
|
|
12
|
-
"build": "
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"cli:run": "node dist/index.js"
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"dev": "ts-node src/index.ts",
|
|
13
|
+
"start": "node dist/index.js"
|
|
16
14
|
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
|
|
19
|
-
"srt",
|
|
20
|
-
"train",
|
|
21
|
-
"cli"
|
|
22
|
-
],
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"README.md",
|
|
26
|
-
"LICENSE"
|
|
27
|
-
],
|
|
15
|
+
"keywords": ["ktx", "srt", "train", "cli"],
|
|
16
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
28
17
|
"dependencies": {
|
|
29
|
-
"@nestjs/common": "^11.1.9",
|
|
30
|
-
"@nestjs/config": "^4.0.2",
|
|
31
|
-
"@nestjs/core": "^11.1.9",
|
|
32
|
-
"@nestjs/mapped-types": "*",
|
|
33
|
-
"@nestjs/platform-express": "^11.1.9",
|
|
34
18
|
"axios": "^1.13.2",
|
|
35
|
-
"commander": "^14.0.2"
|
|
36
|
-
"reflect-metadata": "^0.2.2",
|
|
37
|
-
"rxjs": "^7.8.2"
|
|
19
|
+
"commander": "^14.0.2"
|
|
38
20
|
},
|
|
39
21
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@nestjs/schematics": "^11.0.9",
|
|
42
|
-
"@nestjs/testing": "^11.1.9",
|
|
43
|
-
"@types/express": "^5.0.6",
|
|
44
|
-
"@types/jest": "30.0.0",
|
|
45
|
-
"@types/node": "24.10.1",
|
|
46
|
-
"@types/supertest": "^6.0.3",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
|
48
|
-
"@typescript-eslint/parser": "^8.48.1",
|
|
49
|
-
"eslint": "^9.39.1",
|
|
50
|
-
"eslint-config-prettier": "^10.1.8",
|
|
51
|
-
"eslint-plugin-prettier": "^5.5.4",
|
|
52
|
-
"jest": "30.2.0",
|
|
53
|
-
"prettier": "^3.7.4",
|
|
54
|
-
"source-map-support": "^0.5.21",
|
|
55
|
-
"supertest": "^7.1.4",
|
|
56
|
-
"ts-jest": "29.4.6",
|
|
57
|
-
"ts-loader": "^9.5.4",
|
|
22
|
+
"@types/node": "^24.10.1",
|
|
58
23
|
"ts-node": "^10.9.2",
|
|
59
|
-
"tsconfig-paths": "4.2.0",
|
|
60
24
|
"typescript": "^5.9.3"
|
|
61
|
-
},
|
|
62
|
-
"jest": {
|
|
63
|
-
"moduleFileExtensions": [
|
|
64
|
-
"js",
|
|
65
|
-
"json",
|
|
66
|
-
"ts"
|
|
67
|
-
],
|
|
68
|
-
"rootDir": "src",
|
|
69
|
-
"testRegex": ".*\\.spec\\.ts$",
|
|
70
|
-
"transform": {
|
|
71
|
-
"^.+\\.(t|j)s$": "ts-jest"
|
|
72
|
-
},
|
|
73
|
-
"collectCoverageFrom": [
|
|
74
|
-
"**/*.(t|j)s"
|
|
75
|
-
],
|
|
76
|
-
"coverageDirectory": "../coverage",
|
|
77
|
-
"testEnvironment": "node"
|
|
78
25
|
}
|
|
79
26
|
}
|