nintendo-switch-eshop
Advanced tools
Comparing version 7.0.2 to 7.1.0
export { getGamesAmerica as default, getGamesAmerica } from './lib/getGames/getGamesAmerica'; | ||
export { getGamesEurope } from './lib/getGames/getGamesEurope'; | ||
export { getGamesJapan } from './lib/getGames/getGamesJapan'; | ||
export { getGamesBrazil } from './lib/getGames/getGamesBrazil'; | ||
export { getQueriedGamesAmerica } from './lib/getGames/getQueriedGamesAmerica'; | ||
export { getQueriedGamesBrazil } from './lib/getGames/getQueriedGamesBrazil'; | ||
export { getActiveShops } from './lib/getShops/getActiveShops'; | ||
@@ -13,5 +15,5 @@ export { getShopsAmerica } from './lib/getShops/getShopsAmerica'; | ||
export { parseNSUID } from './lib/other/parseNSUID'; | ||
export { EU_GET_GAMES_URL, JP_GET_GAMES_URL, PRICE_GET_URL, QUERIED_US_ALGOLIA_KEY, QUERIED_US_GET_GAMES_URL, Region, US_ALGOLIA_HEADERS, US_ALGOLIA_ID, US_ALGOLIA_KEY, US_GET_GAMES_URL } from './lib/utils/constants'; | ||
export { EU_GET_GAMES_URL, JP_GET_GAMES_URL, PRICE_GET_URL, QUERIED_US_ALGOLIA_KEY, QUERIED_US_GET_GAMES_URL, QUERIED_BR_ALGOLIA_KEY, QUERIED_BR_GET_GAMES_URL, Region, US_ALGOLIA_HEADERS, US_ALGOLIA_ID, US_ALGOLIA_KEY, US_GET_GAMES_URL, BR_ALGOLIA_HEADERS, BR_ALGOLIA_ID, BR_ALGOLIA_KEY, BR_GET_GAMES_URL } from './lib/utils/constants'; | ||
export type { EShop, EURequestOptions, GameEU, GameJP, GameUS, HighlightResult, Nsuid, PriceResponse, QueriedGameResult, QueriedGamesAmericaOptions, QueriedGameUS, TitleData } from './lib/utils/interfaces'; | ||
export { EshopError } from './lib/utils/utils'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EshopError = exports.US_GET_GAMES_URL = exports.US_ALGOLIA_KEY = exports.US_ALGOLIA_ID = exports.US_ALGOLIA_HEADERS = exports.Region = exports.QUERIED_US_GET_GAMES_URL = exports.QUERIED_US_ALGOLIA_KEY = exports.PRICE_GET_URL = exports.JP_GET_GAMES_URL = exports.EU_GET_GAMES_URL = exports.parseNSUID = exports.parseGameCode = exports.getShopsByCountryCodes = exports.getPrices = exports.getShopsEurope = exports.getShopsAsia = exports.getShopsAmerica = exports.getActiveShops = exports.getQueriedGamesAmerica = exports.getGamesJapan = exports.getGamesEurope = exports.getGamesAmerica = exports.default = void 0; | ||
exports.EshopError = exports.BR_GET_GAMES_URL = exports.BR_ALGOLIA_KEY = exports.BR_ALGOLIA_ID = exports.BR_ALGOLIA_HEADERS = exports.US_GET_GAMES_URL = exports.US_ALGOLIA_KEY = exports.US_ALGOLIA_ID = exports.US_ALGOLIA_HEADERS = exports.Region = exports.QUERIED_BR_GET_GAMES_URL = exports.QUERIED_BR_ALGOLIA_KEY = exports.QUERIED_US_GET_GAMES_URL = exports.QUERIED_US_ALGOLIA_KEY = exports.PRICE_GET_URL = exports.JP_GET_GAMES_URL = exports.EU_GET_GAMES_URL = exports.parseNSUID = exports.parseGameCode = exports.getShopsByCountryCodes = exports.getPrices = exports.getShopsEurope = exports.getShopsAsia = exports.getShopsAmerica = exports.getActiveShops = exports.getQueriedGamesBrazil = exports.getQueriedGamesAmerica = exports.getGamesBrazil = exports.getGamesJapan = exports.getGamesEurope = exports.getGamesAmerica = exports.default = void 0; | ||
var getGamesAmerica_1 = require("./lib/getGames/getGamesAmerica"); | ||
@@ -11,4 +11,8 @@ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return getGamesAmerica_1.getGamesAmerica; } }); | ||
Object.defineProperty(exports, "getGamesJapan", { enumerable: true, get: function () { return getGamesJapan_1.getGamesJapan; } }); | ||
var getGamesBrazil_1 = require("./lib/getGames/getGamesBrazil"); | ||
Object.defineProperty(exports, "getGamesBrazil", { enumerable: true, get: function () { return getGamesBrazil_1.getGamesBrazil; } }); | ||
var getQueriedGamesAmerica_1 = require("./lib/getGames/getQueriedGamesAmerica"); | ||
Object.defineProperty(exports, "getQueriedGamesAmerica", { enumerable: true, get: function () { return getQueriedGamesAmerica_1.getQueriedGamesAmerica; } }); | ||
var getQueriedGamesBrazil_1 = require("./lib/getGames/getQueriedGamesBrazil"); | ||
Object.defineProperty(exports, "getQueriedGamesBrazil", { enumerable: true, get: function () { return getQueriedGamesBrazil_1.getQueriedGamesBrazil; } }); | ||
var getActiveShops_1 = require("./lib/getShops/getActiveShops"); | ||
@@ -36,2 +40,4 @@ Object.defineProperty(exports, "getActiveShops", { enumerable: true, get: function () { return getActiveShops_1.getActiveShops; } }); | ||
Object.defineProperty(exports, "QUERIED_US_GET_GAMES_URL", { enumerable: true, get: function () { return constants_1.QUERIED_US_GET_GAMES_URL; } }); | ||
Object.defineProperty(exports, "QUERIED_BR_ALGOLIA_KEY", { enumerable: true, get: function () { return constants_1.QUERIED_BR_ALGOLIA_KEY; } }); | ||
Object.defineProperty(exports, "QUERIED_BR_GET_GAMES_URL", { enumerable: true, get: function () { return constants_1.QUERIED_BR_GET_GAMES_URL; } }); | ||
Object.defineProperty(exports, "Region", { enumerable: true, get: function () { return constants_1.Region; } }); | ||
@@ -42,4 +48,8 @@ Object.defineProperty(exports, "US_ALGOLIA_HEADERS", { enumerable: true, get: function () { return constants_1.US_ALGOLIA_HEADERS; } }); | ||
Object.defineProperty(exports, "US_GET_GAMES_URL", { enumerable: true, get: function () { return constants_1.US_GET_GAMES_URL; } }); | ||
Object.defineProperty(exports, "BR_ALGOLIA_HEADERS", { enumerable: true, get: function () { return constants_1.BR_ALGOLIA_HEADERS; } }); | ||
Object.defineProperty(exports, "BR_ALGOLIA_ID", { enumerable: true, get: function () { return constants_1.BR_ALGOLIA_ID; } }); | ||
Object.defineProperty(exports, "BR_ALGOLIA_KEY", { enumerable: true, get: function () { return constants_1.BR_ALGOLIA_KEY; } }); | ||
Object.defineProperty(exports, "BR_GET_GAMES_URL", { enumerable: true, get: function () { return constants_1.BR_GET_GAMES_URL; } }); | ||
var utils_1 = require("./lib/utils/utils"); | ||
Object.defineProperty(exports, "EshopError", { enumerable: true, get: function () { return utils_1.EshopError; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -77,2 +77,18 @@ /** Algolia ID for getting US games */ | ||
export declare const JP_NSUID_REGEX: RegExp; | ||
/** Algolia ID for getting BR games */ | ||
export declare const BR_ALGOLIA_ID = "U3B6GR4UA3"; | ||
/** Algolia Key for getting US games */ | ||
export declare const BR_ALGOLIA_KEY = "c4da8be7fd29f0f5bfa42920b0a99dc7"; | ||
/** Algolia key for getting BR games with a query */ | ||
export declare const QUERIED_BR_ALGOLIA_KEY = "c4da8be7fd29f0f5bfa42920b0a99dc7"; | ||
/** URL for getting BR Games */ | ||
export declare const BR_GET_GAMES_URL: string; | ||
/** URL for getting Queried BR Games */ | ||
export declare const QUERIED_BR_GET_GAMES_URL: string; | ||
/** @internal Request headers for BR games */ | ||
export declare const BR_ALGOLIA_HEADERS: { | ||
'Content-Type': string; | ||
'X-Algolia-API-Key': string; | ||
'X-Algolia-Application-Id': string; | ||
}; | ||
/** URL for getting game prices */ | ||
@@ -79,0 +95,0 @@ export declare const PRICE_GET_URL = "https://api.ec.nintendo.com/v1/price"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Region = exports.PRICE_LIST_LIMIT = exports.PRICE_GET_OPTIONS = exports.PRICE_GET_URL = exports.JP_NSUID_REGEX = exports.JP_GAME_CODE_REGEX = exports.JP_GAME_CHECK_CODE = exports.JP_GET_GAMES_URL = exports.EU_GAME_LIST_LIMIT = exports.EU_DEFAULT_LOCALE = exports.EU_GAME_CODE_REGEX = exports.EU_GAME_CHECK_CODE = exports.EU_GET_GAMES_URL = exports.EU_GET_GAMES_OPTIONS = exports.US_ALGOLIA_HEADERS = exports.US_GAME_CODE_REGEX = exports.US_GAME_CHECK_CODE = exports.QUERIED_US_GET_GAMES_URL = exports.US_GET_GAMES_URL = exports.QUERIED_US_ALGOLIA_KEY = exports.US_ALGOLIA_KEY = exports.US_ALGOLIA_ID = void 0; | ||
exports.Region = exports.PRICE_LIST_LIMIT = exports.PRICE_GET_OPTIONS = exports.PRICE_GET_URL = exports.BR_ALGOLIA_HEADERS = exports.QUERIED_BR_GET_GAMES_URL = exports.BR_GET_GAMES_URL = exports.QUERIED_BR_ALGOLIA_KEY = exports.BR_ALGOLIA_KEY = exports.BR_ALGOLIA_ID = exports.JP_NSUID_REGEX = exports.JP_GAME_CODE_REGEX = exports.JP_GAME_CHECK_CODE = exports.JP_GET_GAMES_URL = exports.EU_GAME_LIST_LIMIT = exports.EU_DEFAULT_LOCALE = exports.EU_GAME_CODE_REGEX = exports.EU_GAME_CHECK_CODE = exports.EU_GET_GAMES_URL = exports.EU_GET_GAMES_OPTIONS = exports.US_ALGOLIA_HEADERS = exports.US_GAME_CODE_REGEX = exports.US_GAME_CHECK_CODE = exports.QUERIED_US_GET_GAMES_URL = exports.US_GET_GAMES_URL = exports.QUERIED_US_ALGOLIA_KEY = exports.US_ALGOLIA_KEY = exports.US_ALGOLIA_ID = void 0; | ||
/** Algolia ID for getting US games */ | ||
@@ -80,2 +80,18 @@ exports.US_ALGOLIA_ID = 'U3B6GR4UA3'; | ||
exports.JP_NSUID_REGEX = /\d{14}/; | ||
/** Algolia ID for getting BR games */ | ||
exports.BR_ALGOLIA_ID = 'U3B6GR4UA3'; | ||
/** Algolia Key for getting US games */ | ||
exports.BR_ALGOLIA_KEY = 'c4da8be7fd29f0f5bfa42920b0a99dc7'; | ||
/** Algolia key for getting BR games with a query */ | ||
exports.QUERIED_BR_ALGOLIA_KEY = 'c4da8be7fd29f0f5bfa42920b0a99dc7'; | ||
/** URL for getting BR Games */ | ||
exports.BR_GET_GAMES_URL = `https://${exports.BR_ALGOLIA_ID}-dsn.algolia.net/1/indexes/*/queries`; | ||
/** URL for getting Queried BR Games */ | ||
exports.QUERIED_BR_GET_GAMES_URL = `https://${exports.BR_ALGOLIA_ID}-dsn.algolia.net/1/indexes/ncom_game_pt_br/query`; | ||
/** @internal Request headers for BR games */ | ||
exports.BR_ALGOLIA_HEADERS = { | ||
'Content-Type': 'application/json', | ||
'X-Algolia-API-Key': exports.BR_ALGOLIA_KEY, | ||
'X-Algolia-Application-Id': exports.BR_ALGOLIA_ID | ||
}; | ||
/** URL for getting game prices */ | ||
@@ -82,0 +98,0 @@ exports.PRICE_GET_URL = 'https://api.ec.nintendo.com/v1/price'; |
{ | ||
"name": "nintendo-switch-eshop", | ||
"version": "7.0.2", | ||
"version": "7.1.0", | ||
"workspaces": [ | ||
@@ -11,6 +11,8 @@ "documentation/" | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
"require": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
@@ -25,44 +27,53 @@ "sideEffects": false, | ||
"clean": "tsc -b src --clean", | ||
"sversion": "standard-version", | ||
"bump": "standard-version --no-verify", | ||
"changelog": "git cliff --prepend ./CHANGELOG.md -l -c ./cliff.toml", | ||
"update": "yarn upgrade-interactive", | ||
"prepublishOnly": "yarn build", | ||
"prepublish": "yarn build", | ||
"prepare": "husky install .github/husky" | ||
}, | ||
"dependencies": { | ||
"@sapphire/fetch": "^2.1.0", | ||
"@sapphire/fetch": "^2.3.1", | ||
"@types/country-data": "^0.0.2", | ||
"country-data": "^0.0.31", | ||
"fast-xml-parser": "^4.0.2" | ||
"fast-xml-parser": "^4.0.7" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^16.1.0", | ||
"@commitlint/config-conventional": "^16.0.0", | ||
"@sapphire/eslint-config": "^4.2.0", | ||
"@sapphire/prettier-config": "^1.3.0", | ||
"@sapphire/ts-config": "^3.3.1", | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^17.0.16", | ||
"@typescript-eslint/eslint-plugin": "^5.11.0", | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"@commitlint/cli": "^16.2.3", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"@sapphire/eslint-config": "^4.3.3", | ||
"@sapphire/prettier-config": "^1.4.2", | ||
"@sapphire/ts-config": "^3.3.4", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^17.0.24", | ||
"@typescript-eslint/eslint-plugin": "^5.19.0", | ||
"@typescript-eslint/parser": "^5.19.0", | ||
"common-tags": "^1.8.2", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.8.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"gen-esm-wrapper": "^1.1.3", | ||
"husky": "^7.0.4", | ||
"jest": "^27.5.0", | ||
"jest-circus": "^27.5.0", | ||
"lint-staged": "^12.3.3", | ||
"prettier": "^2.5.1", | ||
"jest": "^27.5.1", | ||
"jest-circus": "^27.5.1", | ||
"lint-staged": "^12.3.8", | ||
"prettier": "^2.6.2", | ||
"pretty-quick": "^3.1.3", | ||
"replace": "^1.2.1", | ||
"standard-version": "^9.3.2", | ||
"ts-jest": "^27.1.3", | ||
"ts-node": "^10.5.0", | ||
"typescript": "^4.5.5" | ||
"ts-jest": "^27.1.4", | ||
"ts-node": "^10.7.0", | ||
"typescript": "^4.6.3" | ||
}, | ||
"resolutions": { | ||
"@types/react": "^17.0.44", | ||
"@types/react-dom": "^17.0.15", | ||
"async": "^2.6.4", | ||
"ansi-regex": "^5.0.1", | ||
"minimist": "^1.2.6" | ||
}, | ||
"files": [ | ||
"dist/", | ||
"!dist/*.tsbuildinfo" | ||
"dist/**/*.js*", | ||
"dist/**/*.mjs*", | ||
"dist/**/*.d*" | ||
], | ||
@@ -101,3 +112,3 @@ "engines": { | ||
}, | ||
"packageManager": "yarn@3.1.1" | ||
} | ||
"packageManager": "yarn@3.2.0" | ||
} |
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
127001
77
1442
Updated@sapphire/fetch@^2.3.1
Updatedfast-xml-parser@^4.0.7