@blizzard-api/client
Advanced tools
Comparing version 0.0.8 to 0.0.9
// src/client/index.ts | ||
import { stringify } from "querystring"; | ||
import { getEndpoint } from "@blizzard-api/core"; | ||
import { getBlizzardApi } from "@blizzard-api/core"; | ||
import axios from "axios"; | ||
@@ -8,3 +8,3 @@ var BlizzardApiClient = class { | ||
constructor(options) { | ||
const { origin, locale } = getEndpoint(options.origin, options.locale); | ||
const { origin, locale } = getBlizzardApi(options.origin, options.locale); | ||
this.defaults = { | ||
@@ -21,3 +21,3 @@ key: options.key, | ||
const config = { ...this.defaults, ...options }; | ||
const endpoint = getEndpoint(config.origin, config.locale); | ||
const endpoint = getBlizzardApi(config.origin, config.locale); | ||
const backslashSeparator = resource.path.startsWith("/") ? "" : "/"; | ||
@@ -28,3 +28,3 @@ return `${endpoint.hostname}${backslashSeparator}${resource.path}`; | ||
const config = { ...this.defaults, ...options }; | ||
const endpoint = getEndpoint(config.origin, config.locale); | ||
const endpoint = getBlizzardApi(config.origin, config.locale); | ||
const namespace = resource.namespace ? { "Battlenet-Namespace": `${resource.namespace}-${endpoint.origin}` } : void 0; | ||
@@ -31,0 +31,0 @@ return { |
{ | ||
"name": "@blizzard-api/client", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"license": "MIT", | ||
"author": "Putro", | ||
"description": "A node.js axios client to integrate with the blizzard battle.net api.", | ||
"repository": "https://github.com/Pewtro/blizzard/packages/client", | ||
"repository": "https://github.com/Pewtro/blizzard/tree/main/packages/client", | ||
"type": "module", | ||
@@ -50,7 +50,7 @@ "engines": { | ||
"peerDependencies": { | ||
"@blizzard-api/core": "0.0.8" | ||
"@blizzard-api/core": "0.0.9" | ||
}, | ||
"devDependencies": { | ||
"@blizzard-api/core": "0.0.8", | ||
"@blizzard-api/wow": "0.0.6" | ||
"@blizzard-api/core": "0.0.9", | ||
"@blizzard-api/wow": "0.0.7" | ||
}, | ||
@@ -57,0 +57,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
28426
8
1
49