@blizzard-api/sc2 2.0.2 → 3.0.1
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/account/index.d.ts +12 -0
- package/dist/account/index.js +13 -0
- package/dist/account/index.js.map +1 -0
- package/dist/index-C6XacDRF.d.ts +181 -0
- package/dist/index-D4dz9fHQ.d.ts +39 -0
- package/dist/index-DShZYxRE.d.ts +48 -0
- package/dist/index-E_sUhfIc.d.ts +116 -0
- package/dist/index.d.ts +5 -377
- package/dist/index.js +5 -186
- package/dist/index.js.map +1 -1
- package/dist/ladder/index.d.ts +2 -0
- package/dist/ladder/index.js +22 -0
- package/dist/ladder/index.js.map +1 -0
- package/dist/league/index.d.ts +2 -0
- package/dist/league/index.js +44 -0
- package/dist/league/index.js.map +1 -0
- package/dist/legacy/index.d.ts +2 -0
- package/dist/legacy/index.js +61 -0
- package/dist/legacy/index.js.map +1 -0
- package/dist/profile/index.d.ts +2 -0
- package/dist/profile/index.js +55 -0
- package/dist/profile/index.js.map +1 -0
- package/dist/regions-C2THJaaU.d.ts +5 -0
- package/dist/regions-Dk4G9ABq.js +12 -0
- package/dist/regions-Dk4G9ABq.js.map +1 -0
- package/package.json +16 -7
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/league/index.ts
|
|
2
|
+
const starcraftLeagueQueue = {
|
|
3
|
+
"hots-1v1": 101,
|
|
4
|
+
"hots-2v2": 102,
|
|
5
|
+
"hots-3v3": 103,
|
|
6
|
+
"hots-4v4": 104,
|
|
7
|
+
"lotv-1v1": 201,
|
|
8
|
+
"lotv-2v2": 202,
|
|
9
|
+
"lotv-3v3": 203,
|
|
10
|
+
"lotv-4v4": 204,
|
|
11
|
+
"lotv-archon": 206,
|
|
12
|
+
"wol-1v1": 1,
|
|
13
|
+
"wol-2v2": 2,
|
|
14
|
+
"wol-3v3": 3,
|
|
15
|
+
"wol-4v4": 4
|
|
16
|
+
};
|
|
17
|
+
const starcraftLeagueTeam = {
|
|
18
|
+
arranged: 0,
|
|
19
|
+
random: 1
|
|
20
|
+
};
|
|
21
|
+
const starcraftLeagueId = {
|
|
22
|
+
bronze: 0,
|
|
23
|
+
diamond: 4,
|
|
24
|
+
gold: 2,
|
|
25
|
+
grandmaster: 6,
|
|
26
|
+
master: 5,
|
|
27
|
+
platinum: 3,
|
|
28
|
+
silver: 1
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Returns the league data for the specified season, queue, team type, and league.
|
|
32
|
+
* @param seasonId The season ID
|
|
33
|
+
* @param queueId The queue ID
|
|
34
|
+
* @param teamType The team type
|
|
35
|
+
* @param leagueId The league ID
|
|
36
|
+
* @returns The league data resource. See {@link LeagueDataResponse}.
|
|
37
|
+
*/
|
|
38
|
+
function getLeagueData(seasonId, queueId, teamType, leagueId) {
|
|
39
|
+
return { path: `/data/sc2/league/${seasonId}/${starcraftLeagueQueue[queueId]}/${starcraftLeagueTeam[teamType]}/${starcraftLeagueId[leagueId]}` };
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { getLeagueData };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/league/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport type { LeagueDataResponse, StarcraftLeagueId, StarcraftLeagueQueue, StarcraftLeagueTeamType } from './types';\n\nconst starcraftLeagueQueue: Record<StarcraftLeagueQueue, number> = {\n 'hots-1v1': 101,\n 'hots-2v2': 102,\n 'hots-3v3': 103,\n 'hots-4v4': 104,\n 'lotv-1v1': 201,\n 'lotv-2v2': 202,\n 'lotv-3v3': 203,\n 'lotv-4v4': 204,\n 'lotv-archon': 206,\n 'wol-1v1': 1,\n 'wol-2v2': 2,\n 'wol-3v3': 3,\n 'wol-4v4': 4,\n};\n\nconst starcraftLeagueTeam: Record<StarcraftLeagueTeamType, number> = {\n arranged: 0,\n random: 1,\n};\n\nconst starcraftLeagueId: Record<StarcraftLeagueId, number> = {\n bronze: 0,\n diamond: 4,\n gold: 2,\n grandmaster: 6,\n master: 5,\n platinum: 3,\n silver: 1,\n};\n\n/**\n * Returns the league data for the specified season, queue, team type, and league.\n * @param seasonId The season ID\n * @param queueId The queue ID\n * @param teamType The team type\n * @param leagueId The league ID\n * @returns The league data resource. See {@link LeagueDataResponse}.\n */\nexport function getLeagueData(\n seasonId: string,\n queueId: StarcraftLeagueQueue,\n teamType: StarcraftLeagueTeamType,\n leagueId: StarcraftLeagueId,\n): Resource<LeagueDataResponse> {\n return {\n path: `/data/sc2/league/${seasonId}/${starcraftLeagueQueue[queueId]}/${starcraftLeagueTeam[teamType]}/${starcraftLeagueId[leagueId]}`,\n };\n}\n"],"mappings":";AAGA,MAAM,uBAA6D;CACjE,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,eAAe;CACf,WAAW;CACX,WAAW;CACX,WAAW;CACX,WAAW;CACZ;AAED,MAAM,sBAA+D;CACnE,UAAU;CACV,QAAQ;CACT;AAED,MAAM,oBAAuD;CAC3D,QAAQ;CACR,SAAS;CACT,MAAM;CACN,aAAa;CACb,QAAQ;CACR,UAAU;CACV,QAAQ;CACT;;;;;;;;;AAUD,SAAgB,cACd,UACA,SACA,UACA,UAC8B;CAC9B,OAAO,EACL,MAAM,oBAAoB,SAAS,GAAG,qBAAqB,SAAS,GAAG,oBAAoB,UAAU,GAAG,kBAAkB,aAC3H"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as legacyProfile, i as legacyMatchHistory, n as legacyLadder, o as legacyRewards, r as legacyLadders, t as legacyAchievements } from "../index-C6XacDRF.js";
|
|
2
|
+
export { legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { t as starcraftRegion } from "../regions-Dk4G9ABq.js";
|
|
2
|
+
//#region src/legacy/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Returns the legacy achievements for the specified region.
|
|
5
|
+
* @param regionId The region ID for Starcraft.
|
|
6
|
+
* @returns A resource representing the legacy achievements. See {@link LegacyAchievementsResponse}
|
|
7
|
+
*/
|
|
8
|
+
function legacyAchievements(regionId) {
|
|
9
|
+
return { path: `/sc2/legacy/data/achievements/${starcraftRegion[regionId]}` };
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns the ladder information for the specified ladder.
|
|
13
|
+
* @param regionId The region ID for Starcraft.
|
|
14
|
+
* @param ladderId The ID of the ladder.
|
|
15
|
+
* @returns A resource representing the ladder. See {@link LadderResponse}
|
|
16
|
+
*/
|
|
17
|
+
function legacyLadder(regionId, ladderId) {
|
|
18
|
+
return { path: `/sc2/legacy/ladder/${starcraftRegion[regionId]}/${ladderId}` };
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns the ladders for the specified profile.
|
|
22
|
+
* @param regionId The region ID for Starcraft.
|
|
23
|
+
* @param realmId 1 or 2
|
|
24
|
+
* @param profileId The ID of the profile.
|
|
25
|
+
* @returns A resource representing the ladders for the given profile. See {@link LegacyLaddersResponse}
|
|
26
|
+
*/
|
|
27
|
+
function legacyLadders(regionId, realmId, profileId) {
|
|
28
|
+
return { path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladders` };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns the match history for the specified profile.
|
|
32
|
+
* @param regionId The region ID for Starcraft.
|
|
33
|
+
* @param realmId 1 or 2
|
|
34
|
+
* @param profileId The ID of the profile.
|
|
35
|
+
* @returns A resource representing the match history for the given profile. See {@link LegacyMatchHistoryResponse}
|
|
36
|
+
*/
|
|
37
|
+
function legacyMatchHistory(regionId, realmId, profileId) {
|
|
38
|
+
return { path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/matches` };
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns the profile for the specified profile.
|
|
42
|
+
* @param regionId The region ID for Starcraft.
|
|
43
|
+
* @param realmId 1 or 2
|
|
44
|
+
* @param profileId The ID of the profile.
|
|
45
|
+
* @returns A resource representing the profile for the given ID. See {@link LegacyProfileResponse}
|
|
46
|
+
*/
|
|
47
|
+
function legacyProfile(regionId, realmId, profileId) {
|
|
48
|
+
return { path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}` };
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Returns the rewards for the specified region.
|
|
52
|
+
* @param regionId The region ID for Starcraft.
|
|
53
|
+
* @returns A resource representing the rewards for the given region. See {@link LegacyRewardsResponse}
|
|
54
|
+
*/
|
|
55
|
+
function legacyRewards(regionId) {
|
|
56
|
+
return { path: `/sc2/legacy/data/rewards/${starcraftRegion[regionId]}` };
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { legacyAchievements, legacyLadder, legacyLadders, legacyMatchHistory, legacyProfile, legacyRewards };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/legacy/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type {\n LegacyAchievementsResponse,\n LegacyLaddersResponse,\n LegacyMatchHistoryResponse,\n LegacyProfileResponse,\n LegacyRewardsResponse,\n} from './types';\n\n/**\n * Returns the legacy achievements for the specified region.\n * @param regionId The region ID for Starcraft.\n * @returns A resource representing the legacy achievements. See {@link LegacyAchievementsResponse}\n */\nexport function legacyAchievements(regionId: StarcraftRegion): Resource<LegacyAchievementsResponse> {\n return {\n path: `/sc2/legacy/data/achievements/${starcraftRegion[regionId]}`,\n };\n}\n\n/**\n * Returns the ladder information for the specified ladder.\n * @param regionId The region ID for Starcraft.\n * @param ladderId The ID of the ladder.\n * @returns A resource representing the ladder. See {@link LadderResponse}\n */\nexport function legacyLadder(regionId: StarcraftRegion, ladderId: number): Resource<unknown> {\n return {\n path: `/sc2/legacy/ladder/${starcraftRegion[regionId]}/${ladderId}`,\n };\n}\n\n/**\n * Returns the ladders for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the ladders for the given profile. See {@link LegacyLaddersResponse}\n */\nexport function legacyLadders(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LegacyLaddersResponse> {\n return {\n path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladders`,\n };\n}\n\n/**\n * Returns the match history for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the match history for the given profile. See {@link LegacyMatchHistoryResponse}\n */\nexport function legacyMatchHistory(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LegacyMatchHistoryResponse> {\n return {\n path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/matches`,\n };\n}\n\n/**\n * Returns the profile for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the profile for the given ID. See {@link LegacyProfileResponse}\n */\nexport function legacyProfile(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LegacyProfileResponse> {\n return {\n path: `/sc2/legacy/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}`,\n };\n}\n\n/**\n * Returns the rewards for the specified region.\n * @param regionId The region ID for Starcraft.\n * @returns A resource representing the rewards for the given region. See {@link LegacyRewardsResponse}\n */\nexport function legacyRewards(regionId: StarcraftRegion): Resource<LegacyRewardsResponse> {\n return {\n path: `/sc2/legacy/data/rewards/${starcraftRegion[regionId]}`,\n };\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,mBAAmB,UAAiE;CAClG,OAAO,EACL,MAAM,iCAAiC,gBAAgB,aACxD;;;;;;;;AASH,SAAgB,aAAa,UAA2B,UAAqC;CAC3F,OAAO,EACL,MAAM,sBAAsB,gBAAgB,UAAU,GAAG,YAC1D;;;;;;;;;AAUH,SAAgB,cACd,UACA,SACA,WACiC;CACjC,OAAO,EACL,MAAM,uBAAuB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,WAChF;;;;;;;;;AAUH,SAAgB,mBACd,UACA,SACA,WACsC;CACtC,OAAO,EACL,MAAM,uBAAuB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,WAChF;;;;;;;;;AAUH,SAAgB,cACd,UACA,SACA,WACiC;CACjC,OAAO,EACL,MAAM,uBAAuB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,aACtE;;;;;;;AAQH,SAAgB,cAAc,UAA4D;CACxF,OAAO,EACL,MAAM,4BAA4B,gBAAgB,aACnD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as starcraftRegion } from "../regions-Dk4G9ABq.js";
|
|
2
|
+
//#region src/profile/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Returns the ladder information for the specified profile and ladder.
|
|
5
|
+
* @param regionId The region ID for Starcraft.
|
|
6
|
+
* @param realmId 1 or 2
|
|
7
|
+
* @param profileId The ID of the profile.
|
|
8
|
+
* @param ladderId The ID of the ladder.
|
|
9
|
+
* @returns A resource representing the ladder. See {@link LadderResponse}
|
|
10
|
+
*/
|
|
11
|
+
function ladder(regionId, realmId, profileId, ladderId) {
|
|
12
|
+
return { path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladder/${ladderId}` };
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns the ladder summary information for the specified profile.
|
|
16
|
+
* @param regionId The region ID for Starcraft.
|
|
17
|
+
* @param realmId 1 or 2
|
|
18
|
+
* @param profileId The ID of the profile.
|
|
19
|
+
* @returns A resource representing the ladder summary. See {@link LadderSummaryResponse}
|
|
20
|
+
*/
|
|
21
|
+
function ladderSummary(regionId, realmId, profileId) {
|
|
22
|
+
return { path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladder/summary` };
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the metadata information for the specified profile.
|
|
26
|
+
* @param regionId The region ID for Starcraft.
|
|
27
|
+
* @param realmId 1 or 2
|
|
28
|
+
* @param profileId The ID of the profile.
|
|
29
|
+
* @returns A resource representing the metadata. See {@link MetadataResponse}
|
|
30
|
+
*/
|
|
31
|
+
function metadata(regionId, realmId, profileId) {
|
|
32
|
+
return { path: `/sc2/metadata/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}` };
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns the profile information for the specified profile.
|
|
36
|
+
* @param regionId The region ID for Starcraft.
|
|
37
|
+
* @param realmId 1 or 2
|
|
38
|
+
* @param profileId The ID of the profile.
|
|
39
|
+
* @returns A resource representing the profile. See {@link MetadataResponse}
|
|
40
|
+
*/
|
|
41
|
+
function profile(regionId, realmId, profileId) {
|
|
42
|
+
return { path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}` };
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @param regionId The region ID for Starcraft.
|
|
47
|
+
* @returns A resource representing the static profile. See {@link StaticProfileResponse}
|
|
48
|
+
*/
|
|
49
|
+
function staticProfile(regionId) {
|
|
50
|
+
return { path: `/sc2/static/profile/${starcraftRegion[regionId]}` };
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { ladder, ladderSummary, metadata, profile, staticProfile };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/profile/index.ts"],"sourcesContent":["import type { Resource } from '@blizzard-api/core';\nimport { starcraftRegion } from '../regions';\nimport type { StarcraftRegion } from '../regions';\nimport type { LadderResponse, LadderSummaryResponse, MetadataResponse, StaticProfileResponse } from './types';\n\n/**\n * Returns the ladder information for the specified profile and ladder.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @param ladderId The ID of the ladder.\n * @returns A resource representing the ladder. See {@link LadderResponse}\n */\nexport function ladder(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n ladderId: number,\n): Resource<LadderResponse> {\n return {\n path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladder/${ladderId}`,\n };\n}\n\n/**\n * Returns the ladder summary information for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the ladder summary. See {@link LadderSummaryResponse}\n */\nexport function ladderSummary(\n regionId: StarcraftRegion,\n realmId: 1 | 2,\n profileId: number,\n): Resource<LadderSummaryResponse> {\n return {\n path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}/ladder/summary`,\n };\n}\n\n/**\n * Returns the metadata information for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the metadata. See {@link MetadataResponse}\n */\nexport function metadata(regionId: StarcraftRegion, realmId: 1 | 2, profileId: number): Resource<MetadataResponse> {\n return {\n path: `/sc2/metadata/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}`,\n };\n}\n\n/**\n * Returns the profile information for the specified profile.\n * @param regionId The region ID for Starcraft.\n * @param realmId 1 or 2\n * @param profileId The ID of the profile.\n * @returns A resource representing the profile. See {@link MetadataResponse}\n */\nexport function profile(regionId: StarcraftRegion, realmId: 1 | 2, profileId: number): Resource<MetadataResponse> {\n return {\n path: `/sc2/profile/${starcraftRegion[regionId]}/${realmId}/${profileId}`,\n };\n}\n\n/**\n *\n * @param regionId The region ID for Starcraft.\n * @returns A resource representing the static profile. See {@link StaticProfileResponse}\n */\nexport function staticProfile(regionId: StarcraftRegion): Resource<StaticProfileResponse> {\n return {\n path: `/sc2/static/profile/${starcraftRegion[regionId]}`,\n };\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAgB,OACd,UACA,SACA,WACA,UAC0B;CAC1B,OAAO,EACL,MAAM,gBAAgB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,UAAU,YACnF;;;;;;;;;AAUH,SAAgB,cACd,UACA,SACA,WACiC;CACjC,OAAO,EACL,MAAM,gBAAgB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,UAAU,kBACzE;;;;;;;;;AAUH,SAAgB,SAAS,UAA2B,SAAgB,WAA+C;CACjH,OAAO,EACL,MAAM,yBAAyB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,aACxE;;;;;;;;;AAUH,SAAgB,QAAQ,UAA2B,SAAgB,WAA+C;CAChH,OAAO,EACL,MAAM,gBAAgB,gBAAgB,UAAU,GAAG,QAAQ,GAAG,aAC/D;;;;;;;AAQH,SAAgB,cAAc,UAA4D;CACxF,OAAO,EACL,MAAM,uBAAuB,gBAAgB,aAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regions-Dk4G9ABq.js","names":[],"sources":["../src/regions.ts"],"sourcesContent":["//The region (1=US, 2=EU, 3=KO and TW, 5=CN).\nexport type StarcraftRegion = 'cn' | 'eu' | 'kr' | 'tw' | 'us';\n\nexport const starcraftRegion: Record<StarcraftRegion, number> = {\n cn: 5,\n eu: 2,\n kr: 3,\n tw: 3,\n us: 1,\n};\n"],"mappings":";AAGA,MAAa,kBAAmD;CAC9D,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL"}
|
package/package.json
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/sc2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "A series of helpers to interact with the Starcraft II Blizzard API",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Pewtro/blizzard-api.git",
|
|
10
|
+
"directory": "packages/sc2"
|
|
11
|
+
},
|
|
8
12
|
"type": "module",
|
|
9
13
|
"engines": {
|
|
10
|
-
"node": "^
|
|
14
|
+
"node": "^22.13.0 || ^24 || ^26"
|
|
11
15
|
},
|
|
12
16
|
"module": "./dist/index.js",
|
|
13
17
|
"types": "./dist/index.d.ts",
|
|
14
18
|
"exports": {
|
|
15
|
-
"
|
|
16
|
-
"@blizzard-api/
|
|
19
|
+
".": {
|
|
20
|
+
"@blizzard-api/source": "./src/index.ts",
|
|
17
21
|
"types": "./dist/index.d.ts",
|
|
18
22
|
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./*": {
|
|
25
|
+
"@blizzard-api/source": "./src/*/index.ts",
|
|
26
|
+
"types": "./dist/*/index.d.ts",
|
|
27
|
+
"default": "./dist/*/index.js"
|
|
19
28
|
}
|
|
20
29
|
},
|
|
21
30
|
"files": [
|
|
@@ -32,10 +41,10 @@
|
|
|
32
41
|
],
|
|
33
42
|
"dependencies": {},
|
|
34
43
|
"peerDependencies": {
|
|
35
|
-
"@blizzard-api/core": "
|
|
44
|
+
"@blizzard-api/core": "4.1.0"
|
|
36
45
|
},
|
|
37
46
|
"devDependencies": {
|
|
38
|
-
"@blizzard-api/core": "
|
|
47
|
+
"@blizzard-api/core": "4.1.0"
|
|
39
48
|
},
|
|
40
49
|
"scripts": {
|
|
41
50
|
"build": "tsdown",
|