@blizzard-api/core 3.0.2 → 4.0.0
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 +1 -10
- package/package.json +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -220,15 +220,6 @@ type Resource<Response, SearchOptions extends object = Record<string, unknown>,
|
|
|
220
220
|
parameters?: SearchOptions;
|
|
221
221
|
path: string;
|
|
222
222
|
};
|
|
223
|
-
/**
|
|
224
|
-
* Represents the response of a resource
|
|
225
|
-
* @param T The response type of the resource
|
|
226
|
-
* @example
|
|
227
|
-
* type response = ResourceResponse<{ id: number }>;
|
|
228
|
-
* const response: response = Promise.resolve({ id: 1 });
|
|
229
|
-
* response.then((data) => console.log(data.id));
|
|
230
|
-
*/
|
|
231
|
-
type ResourceResponse<T = unknown> = Promise<T>;
|
|
232
223
|
//#endregion
|
|
233
224
|
//#region src/search.d.ts
|
|
234
225
|
/**
|
|
@@ -254,5 +245,5 @@ interface SearchResponseWithoutResults {
|
|
|
254
245
|
resultCountCapped?: boolean;
|
|
255
246
|
}
|
|
256
247
|
//#endregion
|
|
257
|
-
export { BaseSearchParameters, BlizzardNamespaces, Character, Color, ExtractResourceType, Faction, Factions, Gender, GenderName, Href, KeyBase, Locales, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Origins, ProtectedResource, Realm, Resource,
|
|
248
|
+
export { BaseSearchParameters, BlizzardNamespaces, Character, Color, ExtractResourceType, Faction, Factions, Gender, GenderName, Href, KeyBase, Locales, MediaAsset, NameId, NameIdKey, NullishNameIdKey, Origins, ProtectedResource, Realm, Resource, ResponseBase, SearchResponseWithoutResults, d3BasePath, d3GameDataBasePath, d3ProfileBasePath, getBlizzardApi, wowBasePath, wowCharacterBasePath, wowMediaBasePath, wowSearchBasePath };
|
|
258
249
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "The core helpers used by all @blizzard-api/* packages.",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Pewtro/blizzard-api.git",
|
|
10
|
+
"directory": "packages/core"
|
|
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
19
|
"import": {
|
|
16
|
-
"@blizzard-api/
|
|
20
|
+
"@blizzard-api/source": "./src/index.ts",
|
|
17
21
|
"types": "./dist/index.d.ts",
|
|
18
22
|
"default": "./dist/index.js"
|
|
19
23
|
}
|