@blizzard-api/client 1.0.3 → 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 +2 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ npm i @blizzard-api/client
|
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
import { createBlizzardApiClient } from '@blizzard-api/client';
|
|
26
|
+
//or
|
|
27
|
+
import createBlizzardApiClient from '@blizzard-api/client';
|
|
26
28
|
import { wow } from '@blizzard-api/wow';
|
|
27
29
|
|
|
28
30
|
const client = await createBlizzardApiClient({
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var querystring = require('querystring');
|
|
4
6
|
var core = require('@blizzard-api/core');
|
|
5
7
|
var axios = require('axios');
|
|
@@ -199,5 +201,6 @@ var createBlizzardApiClient = async (options, onTokenRefresh = true) => {
|
|
|
199
201
|
};
|
|
200
202
|
|
|
201
203
|
exports.createBlizzardApiClient = createBlizzardApiClient;
|
|
204
|
+
exports.default = createBlizzardApiClient;
|
|
202
205
|
//# sourceMappingURL=out.js.map
|
|
203
206
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -235,4 +235,4 @@ declare class BlizzardApiClient implements IBlizzardApiClient {
|
|
|
235
235
|
*/
|
|
236
236
|
declare const createBlizzardApiClient: (options: ClientOptions, onTokenRefresh?: ((token: AccessToken) => void) | boolean) => Promise<BlizzardApiClient>;
|
|
237
237
|
|
|
238
|
-
export { type AccessToken, type AccessTokenRequestArguments, type ClientOptions, type IBlizzardApiClient, type ValidateAccessTokenArguments, type ValidateAccessTokenResponse, createBlizzardApiClient };
|
|
238
|
+
export { type AccessToken, type AccessTokenRequestArguments, type ClientOptions, type IBlizzardApiClient, type ValidateAccessTokenArguments, type ValidateAccessTokenResponse, createBlizzardApiClient, createBlizzardApiClient as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -235,4 +235,4 @@ declare class BlizzardApiClient implements IBlizzardApiClient {
|
|
|
235
235
|
*/
|
|
236
236
|
declare const createBlizzardApiClient: (options: ClientOptions, onTokenRefresh?: ((token: AccessToken) => void) | boolean) => Promise<BlizzardApiClient>;
|
|
237
237
|
|
|
238
|
-
export { type AccessToken, type AccessTokenRequestArguments, type ClientOptions, type IBlizzardApiClient, type ValidateAccessTokenArguments, type ValidateAccessTokenResponse, createBlizzardApiClient };
|
|
238
|
+
export { type AccessToken, type AccessTokenRequestArguments, type ClientOptions, type IBlizzardApiClient, type ValidateAccessTokenArguments, type ValidateAccessTokenResponse, createBlizzardApiClient, createBlizzardApiClient as default };
|
package/dist/index.js
CHANGED
|
@@ -192,6 +192,6 @@ var createBlizzardApiClient = async (options, onTokenRefresh = true) => {
|
|
|
192
192
|
return client;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
export { createBlizzardApiClient };
|
|
195
|
+
export { createBlizzardApiClient, createBlizzardApiClient as default };
|
|
196
196
|
//# sourceMappingURL=out.js.map
|
|
197
197
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blizzard-api/client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Putro",
|
|
6
6
|
"description": "A node.js axios client to integrate with the blizzard battle.net api.",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@blizzard-api/core": "1.1.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@blizzard-api/classic-wow": "1.1.
|
|
53
|
+
"@blizzard-api/classic-wow": "1.1.3",
|
|
54
54
|
"@blizzard-api/core": "1.1.1",
|
|
55
|
-
"@blizzard-api/d3": "0.1.
|
|
56
|
-
"@blizzard-api/wow": "1.1.
|
|
55
|
+
"@blizzard-api/d3": "0.1.2",
|
|
56
|
+
"@blizzard-api/wow": "1.1.3"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsup",
|