@blizzard-api/d3 1.0.4 → 1.0.5
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/dist/index.d.ts +482 -446
- package/dist/index.js +252 -105
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,157 +1,304 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/base.ts
|
|
2
|
+
const base = "d3/data";
|
|
3
|
+
const profileBase = `d3/profile`;
|
|
4
|
+
const gameDataBase = `data/d3`;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/act/act.ts
|
|
8
|
+
/**
|
|
9
|
+
|
|
10
|
+
* Returns the act information for the specified act ID.
|
|
11
|
+
|
|
12
|
+
* @param actId The ID of the act.
|
|
13
|
+
|
|
14
|
+
* @returns The act resource. See {@link ActResponse}.
|
|
15
|
+
|
|
16
|
+
*/
|
|
7
17
|
function act(actId) {
|
|
8
|
-
|
|
9
|
-
path: `${base}/act/${actId}`
|
|
10
|
-
};
|
|
18
|
+
return { path: `${base}/act/${actId}` };
|
|
11
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
|
|
22
|
+
* Returns the index of acts.
|
|
23
|
+
|
|
24
|
+
* @returns The act index resource. See {@link ActIndexResponse}.
|
|
25
|
+
|
|
26
|
+
*/
|
|
12
27
|
function actIndex() {
|
|
13
|
-
|
|
14
|
-
path: `${base}/act`
|
|
15
|
-
};
|
|
28
|
+
return { path: `${base}/act` };
|
|
16
29
|
}
|
|
17
30
|
|
|
18
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/artisan-and-recipe/artisan-and-recipe.ts
|
|
33
|
+
/**
|
|
34
|
+
|
|
35
|
+
* Returns the artisan information for the specified artisan slug.
|
|
36
|
+
|
|
37
|
+
* @param artisanSlug The slug of the artisan.
|
|
38
|
+
|
|
39
|
+
* @returns The artisan resource. See {@link ArtisanResponse}.
|
|
40
|
+
|
|
41
|
+
*/
|
|
19
42
|
function artisan(artisanSlug) {
|
|
20
|
-
|
|
21
|
-
path: `${base}/artisan/${artisanSlug}`
|
|
22
|
-
};
|
|
43
|
+
return { path: `${base}/artisan/${artisanSlug}` };
|
|
23
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
|
|
47
|
+
* Returns the recipe information for the specified artisan and recipe slugs.
|
|
48
|
+
|
|
49
|
+
* @param artisanSlug The slug of the artisan.
|
|
50
|
+
|
|
51
|
+
* @param recipeSlug The slug of the recipe.
|
|
52
|
+
|
|
53
|
+
* @returns The recipe resource. See {@link RecipeResponse}.
|
|
54
|
+
|
|
55
|
+
*/
|
|
24
56
|
function recipe(artisanSlug, recipeSlug) {
|
|
25
|
-
|
|
26
|
-
path: `${base}/artisan/${artisanSlug}/recipe/${recipeSlug}`
|
|
27
|
-
};
|
|
57
|
+
return { path: `${base}/artisan/${artisanSlug}/recipe/${recipeSlug}` };
|
|
28
58
|
}
|
|
29
59
|
|
|
30
|
-
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/character-class-and-skill/character-class-and-skill.ts
|
|
62
|
+
/**
|
|
63
|
+
|
|
64
|
+
* Returns the character class information for the specified character class slug.
|
|
65
|
+
|
|
66
|
+
* @param characterClassSlug The slug of the character class.
|
|
67
|
+
|
|
68
|
+
* @returns The character class resource. See {@link CharacterClassResponse}.
|
|
69
|
+
|
|
70
|
+
*/
|
|
31
71
|
function characterClass(characterClassSlug) {
|
|
32
|
-
|
|
33
|
-
path: `${base}/character-class/${characterClassSlug}`
|
|
34
|
-
};
|
|
72
|
+
return { path: `${base}/character-class/${characterClassSlug}` };
|
|
35
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
|
|
76
|
+
* Returns the skill information for the specified character class and skill slugs.
|
|
77
|
+
|
|
78
|
+
* @param characterClassSlug The slug of the character class.
|
|
79
|
+
|
|
80
|
+
* @param skillSlug The slug of the skill.
|
|
81
|
+
|
|
82
|
+
* @returns The skill resource. See {@link SkillResponse}.
|
|
83
|
+
|
|
84
|
+
*/
|
|
36
85
|
function skill(characterClassSlug, skillSlug) {
|
|
37
|
-
|
|
38
|
-
path: `${base}/hero/${characterClassSlug}/skill/${skillSlug}`
|
|
39
|
-
};
|
|
86
|
+
return { path: `${base}/hero/${characterClassSlug}/skill/${skillSlug}` };
|
|
40
87
|
}
|
|
41
88
|
|
|
42
|
-
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/follower/follower.ts
|
|
91
|
+
/**
|
|
92
|
+
|
|
93
|
+
* Returns the follower information for the specified follower slug.
|
|
94
|
+
|
|
95
|
+
* @param followerSlug The slug of the follower.
|
|
96
|
+
|
|
97
|
+
* @returns The follower resource. See {@link FollowerResponse}.
|
|
98
|
+
|
|
99
|
+
*/
|
|
43
100
|
function follower(followerSlug) {
|
|
44
|
-
|
|
45
|
-
path: `${base}/follower/${followerSlug}`
|
|
46
|
-
};
|
|
101
|
+
return { path: `${base}/follower/${followerSlug}` };
|
|
47
102
|
}
|
|
48
103
|
|
|
49
|
-
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/game-data/game-data.ts
|
|
106
|
+
/**
|
|
107
|
+
|
|
108
|
+
* Returns the era information for the specified era ID.
|
|
109
|
+
|
|
110
|
+
* @param id The ID of the era.
|
|
111
|
+
|
|
112
|
+
* @returns The era resource. See {@link EraResponse}.
|
|
113
|
+
|
|
114
|
+
*/
|
|
50
115
|
function era(id) {
|
|
51
|
-
|
|
52
|
-
path: `${gameDataBase}/era/${id}`
|
|
53
|
-
};
|
|
116
|
+
return { path: `${gameDataBase}/era/${id}` };
|
|
54
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
|
|
120
|
+
* Returns the era index.
|
|
121
|
+
|
|
122
|
+
* @returns The era index resource. See {@link EraIndexResponse}.
|
|
123
|
+
|
|
124
|
+
*/
|
|
55
125
|
function eraIndex() {
|
|
56
|
-
|
|
57
|
-
path: `${gameDataBase}/era`
|
|
58
|
-
};
|
|
126
|
+
return { path: `${gameDataBase}/era` };
|
|
59
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
|
|
130
|
+
* Returns the era leaderboard for the specified era ID and leaderboard.
|
|
131
|
+
|
|
132
|
+
* @param id The ID of the era.
|
|
133
|
+
|
|
134
|
+
* @param leaderboard The name of the leaderboard.
|
|
135
|
+
|
|
136
|
+
* @returns The era leaderboard resource. See {@link EraLeaderboardResponse}.
|
|
137
|
+
|
|
138
|
+
*/
|
|
60
139
|
function eraLeaderboard(id, leaderboard) {
|
|
61
|
-
|
|
62
|
-
path: `${gameDataBase}/era/${id}/leaderboard/${leaderboard}`
|
|
63
|
-
};
|
|
140
|
+
return { path: `${gameDataBase}/era/${id}/leaderboard/${leaderboard}` };
|
|
64
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
|
|
144
|
+
* Returns the season information for the specified season ID.
|
|
145
|
+
|
|
146
|
+
* @param id The ID of the season.
|
|
147
|
+
|
|
148
|
+
* @returns The season resource. See {@link SeasonResponse}.
|
|
149
|
+
|
|
150
|
+
*/
|
|
65
151
|
function season(id) {
|
|
66
|
-
|
|
67
|
-
path: `${gameDataBase}/season/${id}`
|
|
68
|
-
};
|
|
152
|
+
return { path: `${gameDataBase}/season/${id}` };
|
|
69
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
|
|
156
|
+
* Returns the season index.
|
|
157
|
+
|
|
158
|
+
* @returns The season index resource. See {@link SeasonIndexResponse}.
|
|
159
|
+
|
|
160
|
+
*/
|
|
70
161
|
function seasonIndex() {
|
|
71
|
-
|
|
72
|
-
path: `${gameDataBase}/season`
|
|
73
|
-
};
|
|
162
|
+
return { path: `${gameDataBase}/season` };
|
|
74
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
|
|
166
|
+
* Returns the season leaderboard for the specified season ID and leaderboard.
|
|
167
|
+
|
|
168
|
+
* @param id The ID of the season.
|
|
169
|
+
|
|
170
|
+
* @param leaderboard The name of the leaderboard.
|
|
171
|
+
|
|
172
|
+
* @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.
|
|
173
|
+
|
|
174
|
+
*/
|
|
75
175
|
function seasonLeaderboard(id, leaderboard) {
|
|
76
|
-
|
|
77
|
-
path: `${gameDataBase}/season/${id}/leaderboard/${leaderboard}`
|
|
78
|
-
};
|
|
176
|
+
return { path: `${gameDataBase}/season/${id}/leaderboard/${leaderboard}` };
|
|
79
177
|
}
|
|
80
178
|
|
|
81
|
-
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/item-type/item-type.ts
|
|
181
|
+
/**
|
|
182
|
+
|
|
183
|
+
* Returns the item type information for the specified item type slug.
|
|
184
|
+
|
|
185
|
+
* @param itemTypeSlug The slug of the item type, example: "sword2h"
|
|
186
|
+
|
|
187
|
+
* @returns The item type resource. See {@link ItemTypeResponse}.
|
|
188
|
+
|
|
189
|
+
*/
|
|
82
190
|
function itemType(itemTypeSlug) {
|
|
83
|
-
|
|
84
|
-
path: `${base}/item-type/${itemTypeSlug}`
|
|
85
|
-
};
|
|
191
|
+
return { path: `${base}/item-type/${itemTypeSlug}` };
|
|
86
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
|
|
195
|
+
* Returns the item type index.
|
|
196
|
+
|
|
197
|
+
* @returns The item type index resource. See {@link ItemTypeIndexResponse}.
|
|
198
|
+
|
|
199
|
+
*/
|
|
87
200
|
function itemTypeIndex() {
|
|
88
|
-
|
|
89
|
-
path: `${base}/item-type`
|
|
90
|
-
};
|
|
201
|
+
return { path: `${base}/item-type` };
|
|
91
202
|
}
|
|
92
203
|
|
|
93
|
-
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/item/item.ts
|
|
206
|
+
/**
|
|
207
|
+
|
|
208
|
+
* Returns the item information for the specified item slug and ID.
|
|
209
|
+
|
|
210
|
+
* @param itemSlugAndId The slug and ID of the item, example: "corrupted-ashbringer-Unique_Sword_2H_104_x1".
|
|
211
|
+
|
|
212
|
+
* @returns The item resource. See {@link ItemResponse}.
|
|
213
|
+
|
|
214
|
+
*/
|
|
94
215
|
function item(itemSlugAndId) {
|
|
95
|
-
|
|
96
|
-
path: `${base}/item/${itemSlugAndId}`
|
|
97
|
-
};
|
|
216
|
+
return { path: `${base}/item/${itemSlugAndId}` };
|
|
98
217
|
}
|
|
99
218
|
|
|
100
|
-
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/profile/profile.ts
|
|
221
|
+
/**
|
|
222
|
+
|
|
223
|
+
* Returns the account information for the specified battle tag.
|
|
224
|
+
|
|
225
|
+
* @param battleTag The battle tag of the account.
|
|
226
|
+
|
|
227
|
+
* @returns The account resource. See {@link AccountResponse}.
|
|
228
|
+
|
|
229
|
+
*/
|
|
101
230
|
function account(battleTag) {
|
|
102
|
-
|
|
103
|
-
path: `${profileBase}/${battleTag}`
|
|
104
|
-
};
|
|
231
|
+
return { path: `${profileBase}/${battleTag}` };
|
|
105
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
|
|
235
|
+
* Returns the hero information for the specified battle tag and hero ID.
|
|
236
|
+
|
|
237
|
+
* @param battleTag The battle tag of the account.
|
|
238
|
+
|
|
239
|
+
* @param heroId The ID of the hero.
|
|
240
|
+
|
|
241
|
+
* @returns The hero resource. See {@link AccountHeroResponse}.
|
|
242
|
+
|
|
243
|
+
*/
|
|
106
244
|
function accountHero(battleTag, heroId) {
|
|
107
|
-
|
|
108
|
-
path: `${profileBase}/${battleTag}/hero/${heroId}`
|
|
109
|
-
};
|
|
245
|
+
return { path: `${profileBase}/${battleTag}/hero/${heroId}` };
|
|
110
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
|
|
249
|
+
* Returns the follower items for the specified battle tag and hero ID.
|
|
250
|
+
|
|
251
|
+
* @param battleTag The battle tag of the account.
|
|
252
|
+
|
|
253
|
+
* @param heroId The ID of the hero.
|
|
254
|
+
|
|
255
|
+
* @returns The follower items resource. See {@link AccountHeroFollowerItemsResponse}.
|
|
256
|
+
|
|
257
|
+
*/
|
|
111
258
|
function accountHeroFollowerItems(battleTag, heroId) {
|
|
112
|
-
|
|
113
|
-
path: `${profileBase}/${battleTag}/hero/${heroId}/follower-items`
|
|
114
|
-
};
|
|
259
|
+
return { path: `${profileBase}/${battleTag}/hero/${heroId}/follower-items` };
|
|
115
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
|
|
263
|
+
* Returns the items for the specified battle tag and hero ID.
|
|
264
|
+
|
|
265
|
+
* @param battleTag The battle tag of the account.
|
|
266
|
+
|
|
267
|
+
* @param heroId The ID of the hero.
|
|
268
|
+
|
|
269
|
+
* @returns The hero items resource. See {@link AccountHeroResponse}.
|
|
270
|
+
|
|
271
|
+
*/
|
|
116
272
|
function accountHeroItems(battleTag, heroId) {
|
|
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
|
-
accountHeroFollowerItems,
|
|
144
|
-
accountHeroItems,
|
|
145
|
-
//Game Data
|
|
146
|
-
era,
|
|
147
|
-
eraIndex,
|
|
148
|
-
eraLeaderboard,
|
|
149
|
-
season,
|
|
150
|
-
seasonIndex,
|
|
151
|
-
seasonLeaderboard
|
|
273
|
+
return { path: `${profileBase}/${battleTag}/hero/${heroId}/items` };
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/index.ts
|
|
278
|
+
const d3 = {
|
|
279
|
+
act,
|
|
280
|
+
actIndex,
|
|
281
|
+
artisan,
|
|
282
|
+
recipe,
|
|
283
|
+
follower,
|
|
284
|
+
characterClass,
|
|
285
|
+
skill,
|
|
286
|
+
itemType,
|
|
287
|
+
itemTypeIndex,
|
|
288
|
+
item,
|
|
289
|
+
account,
|
|
290
|
+
accountHero,
|
|
291
|
+
accountHeroFollowerItems,
|
|
292
|
+
accountHeroItems,
|
|
293
|
+
era,
|
|
294
|
+
eraIndex,
|
|
295
|
+
eraLeaderboard,
|
|
296
|
+
season,
|
|
297
|
+
seasonIndex,
|
|
298
|
+
seasonLeaderboard
|
|
152
299
|
};
|
|
153
300
|
var src_default = d3;
|
|
154
301
|
|
|
302
|
+
//#endregion
|
|
155
303
|
export { account, accountHero, accountHeroFollowerItems, accountHeroItems, act, actIndex, artisan, characterClass, d3, src_default as default, era, eraIndex, eraLeaderboard, follower, item, itemType, itemTypeIndex, recipe, season, seasonIndex, seasonLeaderboard, skill };
|
|
156
|
-
//# sourceMappingURL=index.js.map
|
|
157
304
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/base.ts","../src/act/act.ts","../src/artisan-and-recipe/artisan-and-recipe.ts","../src/character-class-and-skill/character-class-and-skill.ts","../src/follower/follower.ts","../src/game-data/game-data.ts","../src/item-type/item-type.ts","../src/item/item.ts","../src/profile/profile.ts","../src/index.ts"],"names":[],"mappings":";AAAO,IAAM,IAAO,GAAA,SAAA;AAEb,IAAM,WAAc,GAAA,CAAA,UAAA,CAAA;AAGpB,IAAM,YAAe,GAAA,CAAA,OAAA,CAAA;;;ACIrB,SAAS,IAAI,KAAsC,EAAA;AACxD,EAAO,OAAA;AAAA,IACL,IAAM,EAAA,CAAA,EAAG,IAAI,CAAA,KAAA,EAAQ,KAAK,CAAA;AAAA,GAC5B;AACF;AAMO,SAAS,QAAuC,GAAA;AACrD,EAAO,OAAA;AAAA,IACL,IAAA,EAAM,GAAG,IAAI,CAAA,IAAA;AAAA,GACf;AACF;;;ACdO,SAAS,QAAQ,WAAgD,EAAA;AACtE,EAAO,OAAA;AAAA,IACL,IAAM,EAAA,CAAA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AAA,MAAA;AAAA,GAClD;AACF;;;AC3CA,IAAM,EAAK,GAAA;AAAA;AAAA,EAET,GAAA;AAAA,EACA,QAAA;AAAA;AAAA,EAEA,OAAA;AAAA,EACA,MAAA;AAAA;AAAA,EAEA,QAAA;AAAA;AAAA,EAEA,cAAA;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,aAAA;AAAA;AAAA,EAEA,IAAA;AAAA;AAAA,EAEA,OAAA;AAAA,EACA,WAAA;AAAA,EACA,wBAAA;AAAA,EACA,gBAAA;AAAA;AAAA,EAEA,GAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA,MAAA;AAAA,EACA,WAAA;AAAA,EACA;AACF;AACA,IAAO,WAAQ,GAAA","file":"index.js","sourcesContent":["export const base = 'd3/data';\r\n\r\nexport const profileBase = `d3/profile`;\r\n\r\n//Why is the game data APIs base root the reverse of the regular base?\r\nexport const gameDataBase = `data/d3`;\r\n\r\n/**\r\n * Base interface for Blizzard API responses.\r\n */\r\nexport interface ResponseBase {\r\n _links: {\r\n self: {\r\n href: string;\r\n };\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ActIndexResponse, ActResponse } from './types';\r\n\r\n/**\r\n * Returns the act information for the specified act ID.\r\n * @param actId The ID of the act.\r\n * @returns The act resource. See {@link ActResponse}.\r\n */\r\nexport function act(actId: number): Resource<ActResponse> {\r\n return {\r\n path: `${base}/act/${actId}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the index of acts.\r\n * @returns The act index resource. See {@link ActIndexResponse}.\r\n */\r\nexport function actIndex(): Resource<ActIndexResponse> {\r\n return {\r\n path: `${base}/act`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ArtisanResponse, RecipeResponse } from './types';\r\n\r\n/**\r\n * Returns the artisan information for the specified artisan slug.\r\n * @param artisanSlug The slug of the artisan.\r\n * @returns The artisan resource. See {@link ArtisanResponse}.\r\n */\r\nexport function artisan(artisanSlug: string): Resource<ArtisanResponse> {\r\n return {\r\n path: `${base}/artisan/${artisanSlug}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the recipe information for the specified artisan and recipe slugs.\r\n * @param artisanSlug The slug of the artisan.\r\n * @param recipeSlug The slug of the recipe.\r\n * @returns The recipe resource. See {@link RecipeResponse}.\r\n */\r\nexport function recipe(artisanSlug: string, recipeSlug: string): Resource<RecipeResponse> {\r\n return {\r\n path: `${base}/artisan/${artisanSlug}/recipe/${recipeSlug}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { CharacterClassResponse, SkillResponse } from './types';\r\n\r\n/**\r\n * Returns the character class information for the specified character class slug.\r\n * @param characterClassSlug The slug of the character class.\r\n * @returns The character class resource. See {@link CharacterClassResponse}.\r\n */\r\nexport function characterClass(characterClassSlug: string): Resource<CharacterClassResponse> {\r\n return {\r\n path: `${base}/character-class/${characterClassSlug}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the skill information for the specified character class and skill slugs.\r\n * @param characterClassSlug The slug of the character class.\r\n * @param skillSlug The slug of the skill.\r\n * @returns The skill resource. See {@link SkillResponse}.\r\n */\r\nexport function skill(characterClassSlug: string, skillSlug: string): Resource<SkillResponse> {\r\n return {\r\n path: `${base}/hero/${characterClassSlug}/skill/${skillSlug}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { FollowerResponse } from './types';\r\n\r\n/**\r\n * Returns the follower information for the specified follower slug.\r\n * @param followerSlug The slug of the follower.\r\n * @returns The follower resource. See {@link FollowerResponse}.\r\n */\r\nexport function follower(followerSlug: string): Resource<FollowerResponse> {\r\n return {\r\n path: `${base}/follower/${followerSlug}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { gameDataBase } from '../base';\r\nimport type {\r\n EraIndexResponse,\r\n EraLeaderboardResponse,\r\n EraResponse,\r\n SeasonIndexResponse,\r\n SeasonLeaderboardResponse,\r\n SeasonResponse,\r\n} from './types';\r\n\r\n/**\r\n * Returns the era information for the specified era ID.\r\n * @param id The ID of the era.\r\n * @returns The era resource. See {@link EraResponse}.\r\n */\r\nexport function era(id: number): Resource<EraResponse> {\r\n return {\r\n path: `${gameDataBase}/era/${id}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the era index.\r\n * @returns The era index resource. See {@link EraIndexResponse}.\r\n */\r\nexport function eraIndex(): Resource<EraIndexResponse> {\r\n return {\r\n path: `${gameDataBase}/era`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the era leaderboard for the specified era ID and leaderboard.\r\n * @param id The ID of the era.\r\n * @param leaderboard The name of the leaderboard.\r\n * @returns The era leaderboard resource. See {@link EraLeaderboardResponse}.\r\n */\r\nexport function eraLeaderboard(id: number, leaderboard: string): Resource<EraLeaderboardResponse> {\r\n return {\r\n path: `${gameDataBase}/era/${id}/leaderboard/${leaderboard}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the season information for the specified season ID.\r\n * @param id The ID of the season.\r\n * @returns The season resource. See {@link SeasonResponse}.\r\n */\r\nexport function season(id: number): Resource<SeasonResponse> {\r\n return {\r\n path: `${gameDataBase}/season/${id}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the season index.\r\n * @returns The season index resource. See {@link SeasonIndexResponse}.\r\n */\r\nexport function seasonIndex(): Resource<SeasonIndexResponse> {\r\n return {\r\n path: `${gameDataBase}/season`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the season leaderboard for the specified season ID and leaderboard.\r\n * @param id The ID of the season.\r\n * @param leaderboard The name of the leaderboard.\r\n * @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.\r\n */\r\nexport function seasonLeaderboard(id: number, leaderboard: string): Resource<SeasonLeaderboardResponse> {\r\n return {\r\n path: `${gameDataBase}/season/${id}/leaderboard/${leaderboard}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ItemTypeIndexResponse, ItemTypeResponse } from './types';\r\n\r\n/**\r\n * Returns the item type information for the specified item type slug.\r\n * @param itemTypeSlug The slug of the item type, example: \"sword2h\"\r\n * @returns The item type resource. See {@link ItemTypeResponse}.\r\n */\r\nexport function itemType(itemTypeSlug: string): Resource<Array<ItemTypeResponse>> {\r\n return {\r\n path: `${base}/item-type/${itemTypeSlug}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the item type index.\r\n * @returns The item type index resource. See {@link ItemTypeIndexResponse}.\r\n */\r\nexport function itemTypeIndex(): Resource<Array<ItemTypeIndexResponse>> {\r\n return {\r\n path: `${base}/item-type`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ItemResponse } from './types';\r\n\r\n/**\r\n * Returns the item information for the specified item slug and ID.\r\n * @param itemSlugAndId The slug and ID of the item, example: \"corrupted-ashbringer-Unique_Sword_2H_104_x1\".\r\n * @returns The item resource. See {@link ItemResponse}.\r\n */\r\nexport function item(itemSlugAndId: string): Resource<ItemResponse> {\r\n return {\r\n path: `${base}/item/${itemSlugAndId}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { profileBase } from '../base';\r\nimport type { AccountHeroFollowerItemsResponse, AccountHeroResponse, AccountResponse } from './types';\r\n\r\n/**\r\n * Returns the account information for the specified battle tag.\r\n * @param battleTag The battle tag of the account.\r\n * @returns The account resource. See {@link AccountResponse}.\r\n */\r\nexport function account(battleTag: string): Resource<AccountResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the hero information for the specified battle tag and hero ID.\r\n * @param battleTag The battle tag of the account.\r\n * @param heroId The ID of the hero.\r\n * @returns The hero resource. See {@link AccountHeroResponse}.\r\n */\r\nexport function accountHero(battleTag: string, heroId: number): Resource<AccountHeroResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}/hero/${heroId}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the follower items for the specified battle tag and hero ID.\r\n * @param battleTag The battle tag of the account.\r\n * @param heroId The ID of the hero.\r\n * @returns The follower items resource. See {@link AccountHeroFollowerItemsResponse}.\r\n */\r\nexport function accountHeroFollowerItems(\r\n battleTag: string,\r\n heroId: number,\r\n): Resource<AccountHeroFollowerItemsResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}/hero/${heroId}/follower-items`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the items for the specified battle tag and hero ID.\r\n * @param battleTag The battle tag of the account.\r\n * @param heroId The ID of the hero.\r\n * @returns The hero items resource. See {@link AccountHeroResponse}.\r\n */\r\nexport function accountHeroItems(battleTag: string, heroId: number): Resource<AccountHeroResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}/hero/${heroId}/items`,\r\n };\r\n}\r\n","import { act, actIndex } from './act/act';\r\nimport { artisan, recipe } from './artisan-and-recipe/artisan-and-recipe';\r\nimport { characterClass, skill } from './character-class-and-skill/character-class-and-skill';\r\nimport { follower } from './follower/follower';\r\nimport { era, eraIndex, eraLeaderboard, season, seasonIndex, seasonLeaderboard } from './game-data/game-data';\r\nimport { itemType, itemTypeIndex } from './item-type/item-type';\r\nimport { item } from './item/item';\r\nimport { account, accountHero, accountHeroFollowerItems, accountHeroItems } from './profile/profile';\r\n\r\nconst d3 = {\r\n //Act\r\n act,\r\n actIndex,\r\n //Artisan and Recipe\r\n artisan,\r\n recipe,\r\n //Follower\r\n follower,\r\n //Character Class and Skill\r\n characterClass,\r\n skill,\r\n //Item Type\r\n itemType,\r\n itemTypeIndex,\r\n //Item\r\n item,\r\n //Profile\r\n account,\r\n accountHero,\r\n accountHeroFollowerItems,\r\n accountHeroItems,\r\n //Game Data\r\n era,\r\n eraIndex,\r\n eraLeaderboard,\r\n season,\r\n seasonIndex,\r\n seasonLeaderboard,\r\n};\r\nexport default d3;\r\nexport { d3 };\r\n\r\n//Act\r\nexport * from './act/act';\r\nexport type * from './act/types';\r\n//Artisan and Recipe\r\nexport * from './artisan-and-recipe/artisan-and-recipe';\r\nexport type * from './artisan-and-recipe/types';\r\n//Character Class and Skill\r\nexport * from './character-class-and-skill/character-class-and-skill';\r\nexport type * from './character-class-and-skill/types';\r\n//Follower\r\nexport * from './follower/follower';\r\nexport type * from './follower/types';\r\n//Game Data\r\nexport * from './game-data/game-data';\r\nexport type * from './game-data/types';\r\n//Item\r\nexport * from './item/item';\r\nexport type * from './item/types';\r\n//Item Type\r\nexport * from './item-type/item-type';\r\nexport type * from './item-type/types';\r\n//Profile\r\nexport * from './profile/profile';\r\nexport type * from './profile/types';\r\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["actId: number","artisanSlug: string","recipeSlug: string","characterClassSlug: string","skillSlug: string","followerSlug: string","id: number","leaderboard: string","itemTypeSlug: string","itemSlugAndId: string","battleTag: string","heroId: number"],"sources":["../src/base.ts","../src/act/act.ts","../src/artisan-and-recipe/artisan-and-recipe.ts","../src/character-class-and-skill/character-class-and-skill.ts","../src/follower/follower.ts","../src/game-data/game-data.ts","../src/item-type/item-type.ts","../src/item/item.ts","../src/profile/profile.ts","../src/index.ts"],"sourcesContent":["export const base = 'd3/data';\r\n\r\nexport const profileBase = `d3/profile`;\r\n\r\n//Why is the game data APIs base root the reverse of the regular base?\r\nexport const gameDataBase = `data/d3`;\r\n\r\n/**\r\n * Base interface for Blizzard API responses.\r\n */\r\nexport interface ResponseBase {\r\n _links: {\r\n self: {\r\n href: string;\r\n };\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ActIndexResponse, ActResponse } from './types';\r\n\r\n/**\r\n * Returns the act information for the specified act ID.\r\n * @param actId The ID of the act.\r\n * @returns The act resource. See {@link ActResponse}.\r\n */\r\nexport function act(actId: number): Resource<ActResponse> {\r\n return {\r\n path: `${base}/act/${actId}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the index of acts.\r\n * @returns The act index resource. See {@link ActIndexResponse}.\r\n */\r\nexport function actIndex(): Resource<ActIndexResponse> {\r\n return {\r\n path: `${base}/act`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ArtisanResponse, RecipeResponse } from './types';\r\n\r\n/**\r\n * Returns the artisan information for the specified artisan slug.\r\n * @param artisanSlug The slug of the artisan.\r\n * @returns The artisan resource. See {@link ArtisanResponse}.\r\n */\r\nexport function artisan(artisanSlug: string): Resource<ArtisanResponse> {\r\n return {\r\n path: `${base}/artisan/${artisanSlug}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the recipe information for the specified artisan and recipe slugs.\r\n * @param artisanSlug The slug of the artisan.\r\n * @param recipeSlug The slug of the recipe.\r\n * @returns The recipe resource. See {@link RecipeResponse}.\r\n */\r\nexport function recipe(artisanSlug: string, recipeSlug: string): Resource<RecipeResponse> {\r\n return {\r\n path: `${base}/artisan/${artisanSlug}/recipe/${recipeSlug}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { CharacterClassResponse, SkillResponse } from './types';\r\n\r\n/**\r\n * Returns the character class information for the specified character class slug.\r\n * @param characterClassSlug The slug of the character class.\r\n * @returns The character class resource. See {@link CharacterClassResponse}.\r\n */\r\nexport function characterClass(characterClassSlug: string): Resource<CharacterClassResponse> {\r\n return {\r\n path: `${base}/character-class/${characterClassSlug}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the skill information for the specified character class and skill slugs.\r\n * @param characterClassSlug The slug of the character class.\r\n * @param skillSlug The slug of the skill.\r\n * @returns The skill resource. See {@link SkillResponse}.\r\n */\r\nexport function skill(characterClassSlug: string, skillSlug: string): Resource<SkillResponse> {\r\n return {\r\n path: `${base}/hero/${characterClassSlug}/skill/${skillSlug}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { FollowerResponse } from './types';\r\n\r\n/**\r\n * Returns the follower information for the specified follower slug.\r\n * @param followerSlug The slug of the follower.\r\n * @returns The follower resource. See {@link FollowerResponse}.\r\n */\r\nexport function follower(followerSlug: string): Resource<FollowerResponse> {\r\n return {\r\n path: `${base}/follower/${followerSlug}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { gameDataBase } from '../base';\r\nimport type {\r\n EraIndexResponse,\r\n EraLeaderboardResponse,\r\n EraResponse,\r\n SeasonIndexResponse,\r\n SeasonLeaderboardResponse,\r\n SeasonResponse,\r\n} from './types';\r\n\r\n/**\r\n * Returns the era information for the specified era ID.\r\n * @param id The ID of the era.\r\n * @returns The era resource. See {@link EraResponse}.\r\n */\r\nexport function era(id: number): Resource<EraResponse> {\r\n return {\r\n path: `${gameDataBase}/era/${id}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the era index.\r\n * @returns The era index resource. See {@link EraIndexResponse}.\r\n */\r\nexport function eraIndex(): Resource<EraIndexResponse> {\r\n return {\r\n path: `${gameDataBase}/era`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the era leaderboard for the specified era ID and leaderboard.\r\n * @param id The ID of the era.\r\n * @param leaderboard The name of the leaderboard.\r\n * @returns The era leaderboard resource. See {@link EraLeaderboardResponse}.\r\n */\r\nexport function eraLeaderboard(id: number, leaderboard: string): Resource<EraLeaderboardResponse> {\r\n return {\r\n path: `${gameDataBase}/era/${id}/leaderboard/${leaderboard}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the season information for the specified season ID.\r\n * @param id The ID of the season.\r\n * @returns The season resource. See {@link SeasonResponse}.\r\n */\r\nexport function season(id: number): Resource<SeasonResponse> {\r\n return {\r\n path: `${gameDataBase}/season/${id}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the season index.\r\n * @returns The season index resource. See {@link SeasonIndexResponse}.\r\n */\r\nexport function seasonIndex(): Resource<SeasonIndexResponse> {\r\n return {\r\n path: `${gameDataBase}/season`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the season leaderboard for the specified season ID and leaderboard.\r\n * @param id The ID of the season.\r\n * @param leaderboard The name of the leaderboard.\r\n * @returns The season leaderboard resource. See {@link SeasonLeaderboardResponse}.\r\n */\r\nexport function seasonLeaderboard(id: number, leaderboard: string): Resource<SeasonLeaderboardResponse> {\r\n return {\r\n path: `${gameDataBase}/season/${id}/leaderboard/${leaderboard}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ItemTypeIndexResponse, ItemTypeResponse } from './types';\r\n\r\n/**\r\n * Returns the item type information for the specified item type slug.\r\n * @param itemTypeSlug The slug of the item type, example: \"sword2h\"\r\n * @returns The item type resource. See {@link ItemTypeResponse}.\r\n */\r\nexport function itemType(itemTypeSlug: string): Resource<Array<ItemTypeResponse>> {\r\n return {\r\n path: `${base}/item-type/${itemTypeSlug}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the item type index.\r\n * @returns The item type index resource. See {@link ItemTypeIndexResponse}.\r\n */\r\nexport function itemTypeIndex(): Resource<Array<ItemTypeIndexResponse>> {\r\n return {\r\n path: `${base}/item-type`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { base } from '../base';\r\nimport type { ItemResponse } from './types';\r\n\r\n/**\r\n * Returns the item information for the specified item slug and ID.\r\n * @param itemSlugAndId The slug and ID of the item, example: \"corrupted-ashbringer-Unique_Sword_2H_104_x1\".\r\n * @returns The item resource. See {@link ItemResponse}.\r\n */\r\nexport function item(itemSlugAndId: string): Resource<ItemResponse> {\r\n return {\r\n path: `${base}/item/${itemSlugAndId}`,\r\n };\r\n}\r\n","import type { Resource } from '@blizzard-api/core';\r\nimport { profileBase } from '../base';\r\nimport type { AccountHeroFollowerItemsResponse, AccountHeroResponse, AccountResponse } from './types';\r\n\r\n/**\r\n * Returns the account information for the specified battle tag.\r\n * @param battleTag The battle tag of the account.\r\n * @returns The account resource. See {@link AccountResponse}.\r\n */\r\nexport function account(battleTag: string): Resource<AccountResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the hero information for the specified battle tag and hero ID.\r\n * @param battleTag The battle tag of the account.\r\n * @param heroId The ID of the hero.\r\n * @returns The hero resource. See {@link AccountHeroResponse}.\r\n */\r\nexport function accountHero(battleTag: string, heroId: number): Resource<AccountHeroResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}/hero/${heroId}`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the follower items for the specified battle tag and hero ID.\r\n * @param battleTag The battle tag of the account.\r\n * @param heroId The ID of the hero.\r\n * @returns The follower items resource. See {@link AccountHeroFollowerItemsResponse}.\r\n */\r\nexport function accountHeroFollowerItems(\r\n battleTag: string,\r\n heroId: number,\r\n): Resource<AccountHeroFollowerItemsResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}/hero/${heroId}/follower-items`,\r\n };\r\n}\r\n\r\n/**\r\n * Returns the items for the specified battle tag and hero ID.\r\n * @param battleTag The battle tag of the account.\r\n * @param heroId The ID of the hero.\r\n * @returns The hero items resource. See {@link AccountHeroResponse}.\r\n */\r\nexport function accountHeroItems(battleTag: string, heroId: number): Resource<AccountHeroResponse> {\r\n return {\r\n path: `${profileBase}/${battleTag}/hero/${heroId}/items`,\r\n };\r\n}\r\n","import { act, actIndex } from './act/act';\r\nimport { artisan, recipe } from './artisan-and-recipe/artisan-and-recipe';\r\nimport { characterClass, skill } from './character-class-and-skill/character-class-and-skill';\r\nimport { follower } from './follower/follower';\r\nimport { era, eraIndex, eraLeaderboard, season, seasonIndex, seasonLeaderboard } from './game-data/game-data';\r\nimport { itemType, itemTypeIndex } from './item-type/item-type';\r\nimport { item } from './item/item';\r\nimport { account, accountHero, accountHeroFollowerItems, accountHeroItems } from './profile/profile';\r\n\r\nconst d3 = {\r\n //Act\r\n act,\r\n actIndex,\r\n //Artisan and Recipe\r\n artisan,\r\n recipe,\r\n //Follower\r\n follower,\r\n //Character Class and Skill\r\n characterClass,\r\n skill,\r\n //Item Type\r\n itemType,\r\n itemTypeIndex,\r\n //Item\r\n item,\r\n //Profile\r\n account,\r\n accountHero,\r\n accountHeroFollowerItems,\r\n accountHeroItems,\r\n //Game Data\r\n era,\r\n eraIndex,\r\n eraLeaderboard,\r\n season,\r\n seasonIndex,\r\n seasonLeaderboard,\r\n};\r\nexport default d3;\r\nexport { d3 };\r\n\r\n//Act\r\nexport * from './act/act';\r\nexport type * from './act/types';\r\n//Artisan and Recipe\r\nexport * from './artisan-and-recipe/artisan-and-recipe';\r\nexport type * from './artisan-and-recipe/types';\r\n//Character Class and Skill\r\nexport * from './character-class-and-skill/character-class-and-skill';\r\nexport type * from './character-class-and-skill/types';\r\n//Follower\r\nexport * from './follower/follower';\r\nexport type * from './follower/types';\r\n//Game Data\r\nexport * from './game-data/game-data';\r\nexport type * from './game-data/types';\r\n//Item\r\nexport * from './item/item';\r\nexport type * from './item/types';\r\n//Item Type\r\nexport * from './item-type/item-type';\r\nexport type * from './item-type/types';\r\n//Profile\r\nexport * from './profile/profile';\r\nexport type * from './profile/types';\r\n"],"mappings":";AAAA,MAAa,OAAO;AAEpB,MAAa,eAAe;AAG5B,MAAa,gBAAgB;;;;;;;;;;;;;ACI7B,SAAgB,IAAIA,OAAsC;AACxD,QAAO,EACL,OAAO,EAAE,KAAK,OAAO,MAAM,EAC5B;AACF;;;;;;;;AAMD,SAAgB,WAAuC;AACrD,QAAO,EACL,OAAO,EAAE,KAAK,MACf;AACF;;;;;;;;;;;;;ACdD,SAAgB,QAAQC,aAAgD;AACtE,QAAO,EACL,OAAO,EAAE,KAAK,WAAW,YAAY,EACtC;AACF;;;;;;;;;;;;AAQD,SAAgB,OAAOA,aAAqBC,YAA8C;AACxF,QAAO,EACL,OAAO,EAAE,KAAK,WAAW,YAAY,UAAU,WAAW,EAC3D;AACF;;;;;;;;;;;;;AChBD,SAAgB,eAAeC,oBAA8D;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,UAAU,EACnC;AACF;;;;;;;;;;;;AAQD,SAAgB,YAAYA,WAAmBC,QAA+C;AAC5F,QAAO,EACL,OAAO,EAAE,YAAY,GAAG,UAAU,QAAQ,OAAO,EAClD;AACF;;;;;;;;;;;;AAQD,SAAgB,yBACdD,WACAC,QAC4C;AAC5C,QAAO,EACL,OAAO,EAAE,YAAY,GAAG,UAAU,QAAQ,OAAO,iBAClD;AACF;;;;;;;;;;;;AAQD,SAAgB,iBAAiBD,WAAmBC,QAA+C;AACjG,QAAO,EACL,OAAO,EAAE,YAAY,GAAG,UAAU,QAAQ,OAAO,QAClD;AACF;;;;AC3CD,MAAM,KAAK;CAET;CACA;CAEA;CACA;CAEA;CAEA;CACA;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;AACD;AACD,kBAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/d3",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "A series of helpers to interact with the Diablo 3 Blizzard API",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@blizzard-api/core": "2.1.
|
|
37
|
+
"@blizzard-api/core": "2.1.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@blizzard-api/core": "2.1.
|
|
40
|
+
"@blizzard-api/core": "2.1.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
|
-
"build": "
|
|
44
|
-
"dev": "
|
|
43
|
+
"build": "tsdown",
|
|
44
|
+
"dev": "tsdown --watch",
|
|
45
45
|
"test": "vitest run",
|
|
46
46
|
"test:coverage": "pnpm test -- --coverage",
|
|
47
47
|
"test:watch": "vitest watch"
|