nintendo-switch-eshop
Advanced tools
Comparing version 5.1.0 to 6.0.0
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGamesAmerica = void 0; | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
const tslib_1 = require("tslib"); | ||
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); | ||
const querystring_1 = require("querystring"); | ||
@@ -9,0 +7,0 @@ const constants_1 = require("../utils/constants"); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGamesEurope = void 0; | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
const tslib_1 = require("tslib"); | ||
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); | ||
const querystring_1 = require("querystring"); | ||
@@ -9,0 +7,0 @@ const constants_1 = require("../utils/constants"); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getGamesJapan = void 0; | ||
const tslib_1 = require("tslib"); | ||
const fast_xml_parser_1 = require("fast-xml-parser"); | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); | ||
const constants_1 = require("../utils/constants"); | ||
@@ -10,0 +8,0 @@ const utils_1 = require("../utils/utils"); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getQueriedGamesAmerica = void 0; | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
const tslib_1 = require("tslib"); | ||
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); | ||
const querystring_1 = require("querystring"); | ||
@@ -9,0 +7,0 @@ const constants_1 = require("../utils/constants"); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPrices = void 0; | ||
const node_fetch_1 = __importDefault(require("node-fetch")); | ||
const tslib_1 = require("tslib"); | ||
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch")); | ||
const querystring_1 = require("querystring"); | ||
@@ -9,0 +7,0 @@ const constants_1 = require("../utils/constants"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseGameCode = void 0; | ||
const util_1 = require("util"); | ||
const constants_1 = require("../utils/constants"); | ||
@@ -23,4 +22,2 @@ /** | ||
break; | ||
case 1 /* AMERICAS */: | ||
return util_1.deprecate(() => { var _a; return (((_a = constants_1.US_GAME_CODE_REGEX.exec(game.game_code)) === null || _a === void 0 ? void 0 : _a.length) || false ? constants_1.US_GAME_CODE_REGEX.exec(game.game_code)[1] : ''); }, 'game_code is no longer returned by the API for American games so it can no longer be parsed from the data.', 'DEP0001')(); | ||
} | ||
@@ -27,0 +24,0 @@ return codeParse && codeParse.length > 1 ? codeParse[1] : null; |
import type { Country } from 'country-data'; | ||
import type { Region } from './constants'; | ||
/** @internal */ | ||
interface Category { | ||
/** Categories array */ | ||
category: string[]; | ||
} | ||
export interface GameEU { | ||
@@ -172,25 +167,59 @@ age_rating_type: string; | ||
export interface GameUS { | ||
/** @deprecated Product code. Can be parsed for a region wide code. */ | ||
game_code?: string; | ||
buyonline: boolean; | ||
front_box_art: string; | ||
/** Unix timestamp when this entry was last edited on the API */ | ||
lastModified: number; | ||
/** The title of the game */ | ||
title: string; | ||
/** A longer description about this title */ | ||
description: string; | ||
/** The URL to the game on {@linkplain https://nintendo.com}. Prepend `https://nintend.com` to this URL to get a fully qualified URL to the game. */ | ||
url: string; | ||
/** USA eShop price (in dollars) */ | ||
eshop_price: number; | ||
/** 14-digit game unique identifier */ | ||
nsuid: string; | ||
video_link: string; | ||
number_of_players: string; | ||
/** Canada eShop price (in canadian dollars) */ | ||
ca_price: number; | ||
id: string; | ||
title: string; | ||
/** Gaming platform */ | ||
system: string; | ||
free_to_start: boolean; | ||
digitaldownload: boolean; | ||
release_date: string; | ||
categories: Category; | ||
/** Game URL name */ | ||
slug: string; | ||
buyitnow: boolean; | ||
/** The boxart of this title, if this is an eShop game then it is the homescreen icon */ | ||
boxart: string; | ||
/** A larger header image */ | ||
horizontalHeaderImage: string; | ||
/** The platform on which this game was released */ | ||
platform: string; | ||
/** The date this game was released in the {@linkplain https://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Extended Format} */ | ||
releaseDateDisplay: string; | ||
/** The {@linkplain https://www.esrb.org ESRB} rating this game was given */ | ||
esrbRating: string; | ||
/** The amount of players this game supports. This is a string because Nintendo is more verbose than just a number. */ | ||
numOfPlayers: string; | ||
/** Whether this game is featured on {@linkplain https://nintendo.com}'s homepage */ | ||
featured: boolean; | ||
/** Whether this game is free to start and only needs payment later */ | ||
freeToStart: boolean; | ||
/** An array of ESRB descriptions such as `"Alcohol Reference"` and `"Violence"` */ | ||
esrbDescriptors: string[]; | ||
/** The franches this game is part of */ | ||
franchises: string[]; | ||
/** The genres this this game is part of */ | ||
genres: string[]; | ||
/** The studios that published this game */ | ||
publishers: string[]; | ||
/** The studios that developed this gamme */ | ||
developers: string[]; | ||
/** Qualifiers that could be used to find this game when applying filters on {@linkplain https://nintendo.com} */ | ||
generalFilters: string[]; | ||
/** A list of ways this game can be purchased */ | ||
howToShop: string[]; | ||
/** Qualifiers that could be used to find this game when applying player filters on {@linkplain https://nintendo.com} */ | ||
playerFilters: string[]; | ||
/** The predefined price range in which this game falls, can be used when applying filters on {@linkplain https://nintendo.com} */ | ||
priceRange: string; | ||
/** The {@linkplain https://en.wikipedia.org/wiki/List_price Manufacturer's Suggested Retail Price} for this game (in United States Dollars). */ | ||
msrp: number; | ||
/** The price for this game when it is on sale. This is `null` when the game is _not_ on sale. */ | ||
salePrice: number | null; | ||
/** The lowest price this game was ever available for. */ | ||
lowestPrice: number; | ||
/** Identifiers about the availability of this game. */ | ||
availability: string[]; | ||
/** The internal ID that Nintendo has assigned to this game in their API. This doesn't really serve any use. */ | ||
objectID: string; | ||
} | ||
@@ -197,0 +226,0 @@ /** @internal */ |
{ | ||
"name": "nintendo-switch-eshop", | ||
"version": "5.1.0", | ||
"version": "6.0.0", | ||
"description": "Unofficial API lib for Nintendo Switch eShop game listing and pricing information.", | ||
@@ -31,35 +31,35 @@ "author": "lmmfranco", | ||
"country-data": "^0.0.31", | ||
"fast-xml-parser": "^3.18.0", | ||
"fast-xml-parser": "^3.19.0", | ||
"node-fetch": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^12.0.1", | ||
"@commitlint/config-conventional": "^12.0.1", | ||
"@sapphire/eslint-config": "^3.0.1", | ||
"@sapphire/prettier-config": "^1.0.7", | ||
"@sapphire/ts-config": "^2.0.1", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^14.14.31", | ||
"@types/node-fetch": "^2.5.8", | ||
"@typescript-eslint/eslint-plugin": "^4.16.1", | ||
"@typescript-eslint/parser": "^4.16.1", | ||
"@commitlint/cli": "^12.1.4", | ||
"@commitlint/config-conventional": "^12.1.4", | ||
"@sapphire/eslint-config": "^3.1.4", | ||
"@sapphire/prettier-config": "^1.1.3", | ||
"@sapphire/ts-config": "^2.2.3", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.12.3", | ||
"@types/node-fetch": "^2.5.10", | ||
"@typescript-eslint/eslint-plugin": "^4.27.0", | ||
"@typescript-eslint/parser": "^4.27.0", | ||
"common-tags": "^1.8.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^7.21.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"gen-esm-wrapper": "^1.1.1", | ||
"husky": "^5.1.3", | ||
"jest": "^26.6.3", | ||
"jest-circus": "^26.6.3", | ||
"lint-staged": "^10.5.4", | ||
"prettier": "^2.2.1", | ||
"pretty-quick": "^3.1.0", | ||
"replace": "^1.2.0", | ||
"standard-version": "^9.1.1", | ||
"ts-jest": "^26.5.3", | ||
"ts-node": "^9.1.1", | ||
"typedoc": "^0.20.29", | ||
"eslint": "^7.29.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"gen-esm-wrapper": "^1.1.2", | ||
"husky": "^6.0.0", | ||
"jest": "^27.0.4", | ||
"jest-circus": "^27.0.4", | ||
"lint-staged": "^11.0.0", | ||
"prettier": "^2.3.1", | ||
"pretty-quick": "^3.1.1", | ||
"replace": "^1.2.1", | ||
"standard-version": "^9.3.0", | ||
"ts-jest": "^27.0.3", | ||
"ts-node": "^10.0.0", | ||
"typedoc": "^0.21.0", | ||
"typedoc-plugin-nojekyll": "^1.0.1", | ||
"typescript": "^4.2.3" | ||
"typescript": "^4.3.4" | ||
}, | ||
@@ -66,0 +66,0 @@ "files": [ |
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
1323
104287
68
Updatedfast-xml-parser@^3.19.0