Socket
Socket
Sign inDemoInstall

blizzapi

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blizzapi - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/lib/classes/abstract/BattleNetAPI.d.ts

@@ -10,4 +10,4 @@ import { RegionIdOrName, AccessToken } from '../../../../@types';

setAccessToken: () => Promise<string>;
static validateAccessToken: (region: string | number, accessToken: string | undefined) => Promise<boolean>;
static validateAccessToken: (region: RegionIdOrName, accessToken: AccessToken) => Promise<boolean>;
}
//# sourceMappingURL=BattleNetAPI.d.ts.map

@@ -12,4 +12,4 @@ import BattleNetAPI from './abstract/BattleNetAPI';

static getAllRegionNames: () => string[];
static getRegionNameById: (regionId: string | number) => readonly string[];
static validateRegionId: (regionId: string | number) => boolean;
static getRegionNameById: (regionId: import("../../../@types").RegionIdOrName) => readonly string[];
static validateRegionId: (regionId: import("../../../@types").RegionIdOrName) => boolean;
static getRegionIdByName: (regionName: string) => number;

@@ -19,15 +19,15 @@ static validateRegionName: (regionName: string) => boolean;

static getAllLocaleNames: () => string[];
static getLocalesByRegionId: (regionId: string | number) => readonly string[];
static getLocalesByRegionId: (regionId: import("../../../@types").RegionIdOrName) => readonly string[];
static checkIfLocaleLooksValid: (locale: string) => boolean;
static validateLocale: (locale: string) => boolean;
static isLocaleValidForRegionId: (locale: string, regionId: string | number) => boolean;
static isLocaleValidForRegionId: (locale: string, regionId: import("../../../@types").RegionIdOrName) => boolean;
static getAllSc2Realms: () => Readonly<import("../../../@interfaces").RegionIdProperties<readonly number[]>>;
static getAllAvailableSc2Realms: () => readonly number[];
static getSc2RealmsByRegionId: (regionId: string | number) => readonly number[];
static checkIfSc2RealmLooksValid: (sc2Realm: string | number) => boolean;
static validateSc2Realm: (sc2Realm: string | number) => boolean;
static isSc2RealmValidForRegionId: (sc2Realm: string | number, regionId: string | number) => boolean;
static getDefaultLocaleNameForRegionId: (regionId: string | number) => string;
static getSc2RealmsByRegionId: (regionId: import("../../../@types").RegionIdOrName) => readonly number[];
static checkIfSc2RealmLooksValid: (sc2Realm: import("../../../@types").RegionIdOrName) => boolean;
static validateSc2Realm: (sc2Realm: import("../../../@types").RegionIdOrName) => boolean;
static isSc2RealmValidForRegionId: (sc2Realm: import("../../../@types").RegionIdOrName, regionId: import("../../../@types").RegionIdOrName) => boolean;
static getDefaultLocaleNameForRegionId: (regionId: import("../../../@types").RegionIdOrName) => string;
static getAllDefaultLocaleNames: () => import("../../../@interfaces").RegionIdProperties<string>;
}
//# sourceMappingURL=BlizzAPI.d.ts.map

@@ -17,3 +17,5 @@ "use strict";

exports.default = (options) => __awaiter(this, void 0, void 0, function* () {
const { uri } = options;
console.log('hello!');
const uri = encodeURI(options.uri);
console.log(uri);
const method = options.method || 'GET';

@@ -20,0 +22,0 @@ try {

@@ -1,3 +0,4 @@

declare const _default: (regionIdOrName: string | number, accessToken: string | undefined) => Promise<boolean>;
import { RegionIdOrName, AccessToken } from '../../../../@types';
declare const _default: (regionIdOrName: RegionIdOrName, accessToken: AccessToken) => Promise<boolean>;
export default _default;
//# sourceMappingURL=validateAccessToken.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (uri) => {
const uriTestRegex = /^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/gm;
const uriTestRegex = /(?:http[s]?:\/\/)[^\s(["<,>]*\.[^\s[",><]*/gm;
return uriTestRegex.test(uri);
};
//# sourceMappingURL=uri.js.map

@@ -0,3 +1,4 @@

import { RegionIdOrName } from '../../../../@types';
export declare const getAllApiHosts: () => Readonly<import("../../..").RegionIdProperties<string | readonly string[]>>;
export declare const getApiHostByRegion: (regionIdOrName: string | number) => string | readonly string[];
export declare const getApiHostByRegion: (regionIdOrName: RegionIdOrName) => string | readonly string[];
//# sourceMappingURL=regionHosts.d.ts.map

@@ -1,5 +0,5 @@

import { ConstantKey } from '../../../../@types';
export declare const getConstantByRegion: (regionIdOrName: string | number, constantKey: ConstantKey) => string | number | readonly string[] | readonly number[];
export declare const getConstantByRegionId: (regionId: string | number, constantKey: ConstantKey) => string | number | readonly string[] | readonly number[];
export declare const getConstantByRegionName: (regionName: string, constantKey: ConstantKey) => string | number | readonly string[] | readonly number[];
import { ConstantKey, RegionIdOrName } from '../../../../@types';
export declare const getConstantByRegion: (regionIdOrName: RegionIdOrName, constantKey: ConstantKey) => string | number | readonly number[] | readonly string[];
export declare const getConstantByRegionId: (regionId: RegionIdOrName, constantKey: ConstantKey) => string | number | readonly number[] | readonly string[];
export declare const getConstantByRegionName: (regionName: string, constantKey: ConstantKey) => string | number | readonly number[] | readonly string[];
//# sourceMappingURL=index.d.ts.map
import { RegionIdProperties } from '../../../../@interfaces';
export declare const getAllDefaultLocaleIndexes: () => Readonly<RegionIdProperties<number>>;
export declare const getDefaultLocaleIndexForRegionId: (regionId: string | number) => number;
export declare const getDefaultLocaleNameForRegionId: (regionId: string | number) => string;
export declare const getDefaultLocaleIndexForRegionId: (regionId: import("../../../../@types").RegionIdOrName) => number;
export declare const getDefaultLocaleNameForRegionId: (regionId: import("../../../../@types").RegionIdOrName) => string;
export declare const getAllDefaultLocaleNames: () => RegionIdProperties<string>;
//# sourceMappingURL=defaultLocales.d.ts.map
export declare const getAllLocales: () => Readonly<import("../../..").RegionIdProperties<readonly string[]>>;
export declare const getAllLocaleNames: () => string[];
export declare const getLocalesByRegionId: (regionId: string | number) => readonly string[];
export declare const getLocalesByRegionId: (regionId: import("../../../../@types").RegionIdOrName) => readonly string[];
export declare const checkIfLocaleLooksValid: (locale: string) => boolean;
export declare const validateLocale: (locale: string) => boolean;
export declare const isLocaleValidForRegionId: (locale: string, regionId: string | number) => boolean;
export declare const isLocaleValidForRegionId: (locale: string, regionId: import("../../../../@types").RegionIdOrName) => boolean;
//# sourceMappingURL=locales.d.ts.map
export declare const getAllRegions: () => Readonly<import("../../..").RegionIdProperties<readonly string[]>>;
export declare const getAllRegionIds: () => readonly number[];
export declare const getAllRegionNames: () => string[];
export declare const getRegionNameById: (regionId: string | number) => readonly string[];
export declare const validateRegionId: (regionId: string | number) => boolean;
export declare const getRegionNameById: (regionId: import("../../../../@types").RegionIdOrName) => readonly string[];
export declare const validateRegionId: (regionId: import("../../../../@types").RegionIdOrName) => boolean;
export declare const getRegionIdByName: (regionName: string) => number;
export declare const validateRegionName: (regionName: string) => boolean;
//# sourceMappingURL=regions.d.ts.map
export declare const getAllSc2Realms: () => Readonly<import("../../..").RegionIdProperties<readonly number[]>>;
export declare const getAllAvailableSc2Realms: () => readonly number[];
export declare const getSc2RealmsByRegionId: (regionId: string | number) => readonly number[];
export declare const checkIfSc2RealmLooksValid: (sc2Realm: string | number) => boolean;
export declare const validateSc2Realm: (sc2Realm: string | number) => boolean;
export declare const isSc2RealmValidForRegionId: (sc2Realm: string | number, regionId: string | number) => boolean;
export declare const getSc2RealmsByRegionId: (regionId: import("../../../../@types").RegionIdOrName) => readonly number[];
export declare const checkIfSc2RealmLooksValid: (sc2Realm: import("../../../../@types").RegionIdOrName) => boolean;
export declare const validateSc2Realm: (sc2Realm: import("../../../../@types").RegionIdOrName) => boolean;
export declare const isSc2RealmValidForRegionId: (sc2Realm: import("../../../../@types").RegionIdOrName, regionId: import("../../../../@types").RegionIdOrName) => boolean;
//# sourceMappingURL=sc2Realms.d.ts.map

@@ -0,3 +1,4 @@

import { RegionIdOrName } from '../../../../@types';
export declare const getAllAuthorizeUris: () => Readonly<import("../../..").RegionIdProperties<string>>;
export declare const getAuthorizeUriByRegion: (regionIdOrName: string | number) => string | number | readonly string[] | readonly number[];
export declare const getAuthorizeUriByRegion: (regionIdOrName: RegionIdOrName) => string | number | readonly number[] | readonly string[];
//# sourceMappingURL=authorizeUris.d.ts.map

@@ -0,3 +1,4 @@

import { RegionIdOrName } from '../../../../@types';
export declare const getAllCheckTokenUris: () => Readonly<import("../../..").RegionIdProperties<string>>;
export declare const getCheckTokenUriByRegion: (regionIdOrName: string | number) => string | number | readonly string[] | readonly number[];
export declare const getCheckTokenUriByRegion: (regionIdOrName: RegionIdOrName) => string | number | readonly number[] | readonly string[];
//# sourceMappingURL=checkTokenUris.d.ts.map

@@ -0,3 +1,4 @@

import { RegionIdOrName } from '../../../../@types';
export declare const getAllTokenUris: () => Readonly<import("../../..").RegionIdProperties<string>>;
export declare const getTokenUriByRegion: (regionIdOrName: string | number) => string;
export declare const getTokenUriByRegion: (regionIdOrName: RegionIdOrName) => string;
//# sourceMappingURL=tokenUris.d.ts.map
{
"name": "blizzapi",
"version": "1.1.0",
"version": "1.1.1",
"description": "Flexible and feature-rich Node.js library for Blizzard Battle.net API",

@@ -44,7 +44,7 @@ "homepage": "https://blizzapi.lukem.net",

"@types/base-64": "0.1.3",
"@types/jest": "24.0.16",
"@types/node": "12.6.8",
"@types/jest": "24.0.18",
"@types/node": "12.7.2",
"jest": "24.8.0",
"prettier": "1.18.2",
"rimraf": "2.6.3",
"rimraf": "3.0.0",
"ts-jest": "24.0.2",

@@ -51,0 +51,0 @@ "tslint": "5.18.0",

@@ -0,8 +1,9 @@

<img src="https://raw.githubusercontent.com/lukemnet/blizzapi-docs/master/docs/.vuepress/public/logo.png" alt="BlizzAPI logo" width="200" height="200">
# BlizzAPI
[![npm (latest)](https://img.shields.io/npm/v/blizzapi/latest.svg)](https://www.npmjs.com/package/blizzapi)
[![Travis CI Build Status](https://travis-ci.org/lukemnet/blizzapi.svg?branch=master)](https://travis-ci.org/lukemnet/blizzapi)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/syfiarwau11435nq/branch/master?svg=true)](https://ci.appveyor.com/project/lwojcik/blizzapi/branch/master)
[![Maintainability](https://api.codeclimate.com/v1/badges/8c2b8e4efe8441ad055f/maintainability)](https://codeclimate.com/github/lukemnet/blizzapi/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/8c2b8e4efe8441ad055f/test_coverage)](https://codeclimate.com/github/lukemnet/blizzapi/test_coverage)
[![Test Coverage](https://api.codeclimate.com/v1/badges/8c2b8e4efe8441ad055f/test_coverage)](https://codeclimate.com/github/lukemnet/blizzapi/test_coverage) [![Greenkeeper badge](https://badges.greenkeeper.io/lukemnet/blizzapi.svg)](https://greenkeeper.io/)

@@ -9,0 +10,0 @@ Flexible feature-rich library for easy access to [Battle.net API](https://develop.battle.net/).

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

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

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

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

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