Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blizzard-api/client

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blizzard-api/client - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

README.md

8

dist/index.js
// 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc