New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nintendo-switch-eshop

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nintendo-switch-eshop - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

7

dist/constants.d.ts

@@ -10,2 +10,9 @@ export declare const US_GET_GAMES_OPTIONS: {

export declare const US_GAME_LIST_LIMIT = 200;
export declare const EU_GET_GAMES_OPTIONS: {
fq: string;
q: string;
sort: string;
start: string;
wt: string;
};
export declare const EU_GET_GAMES_URL = "http://search.nintendo-europe.com/{locale}/select";

@@ -12,0 +19,0 @@ export declare const EU_GAME_CHECK_CODE = "70010000000184";

2

dist/constants.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.US_GET_GAMES_OPTIONS={system:"switch",sort:"title",direction:"asc"},exports.US_GET_GAMES_URL="http://www.nintendo.com/json/content/get/filter/game",exports.US_GAME_CHECK_CODE="70010000000185",exports.US_GAME_CODE_REGEX=/HAC\w(\w{4})/,exports.US_GAME_LIST_LIMIT=200,exports.EU_GET_GAMES_URL="http://search.nintendo-europe.com/{locale}/select",exports.EU_GAME_CHECK_CODE="70010000000184",exports.EU_GAME_CODE_REGEX=/HAC\w(\w{4})/,exports.EU_DEFAULT_LOCALE="en",exports.EU_GAME_LIST_LIMIT=9999,exports.JP_GET_GAMES_CURRENT="https://www.nintendo.co.jp/data/software/xml-system/switch-onsale.xml",exports.JP_GET_GAMES_COMING="https://www.nintendo.co.jp/data/software/xml-system/switch-coming.xml",exports.JP_GAME_CHECK_CODE="70010000000039",exports.JP_GAME_CODE_REGEX=/\/HAC(\w{4})/,exports.JP_NSUID_REGEX=/\d{14}/,exports.PRICE_GET_URL="https://api.ec.nintendo.com/v1/price",exports.PRICE_GET_OPTIONS={lang:"en"},exports.PRICE_LIST_LIMIT=50;class EshopError extends Error{constructor(t){super(t),this.message=t,this.name="EshopError",this.stack=""}}exports.EshopError=EshopError;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.US_GET_GAMES_OPTIONS={system:"switch",sort:"title",direction:"asc"},exports.US_GET_GAMES_URL="http://www.nintendo.com/json/content/get/filter/game",exports.US_GAME_CHECK_CODE="70010000000185",exports.US_GAME_CODE_REGEX=/HAC\w(\w{4})/,exports.US_GAME_LIST_LIMIT=200,exports.EU_GET_GAMES_OPTIONS={fq:"type:GAME AND system_type:nintendoswitch* AND product_code_txt:*",q:"*",sort:"sorting_title asc",start:"0",wt:"json"},exports.EU_GET_GAMES_URL="http://search.nintendo-europe.com/{locale}/select",exports.EU_GAME_CHECK_CODE="70010000000184",exports.EU_GAME_CODE_REGEX=/HAC\w(\w{4})/,exports.EU_DEFAULT_LOCALE="en",exports.EU_GAME_LIST_LIMIT=9999,exports.JP_GET_GAMES_CURRENT="https://www.nintendo.co.jp/data/software/xml-system/switch-onsale.xml",exports.JP_GET_GAMES_COMING="https://www.nintendo.co.jp/data/software/xml-system/switch-coming.xml",exports.JP_GAME_CHECK_CODE="70010000000039",exports.JP_GAME_CODE_REGEX=/\/HAC(\w{4})/,exports.JP_NSUID_REGEX=/\d{14}/,exports.PRICE_GET_URL="https://api.ec.nintendo.com/v1/price",exports.PRICE_GET_OPTIONS={lang:"en"},exports.PRICE_LIST_LIMIT=50;class EshopError extends Error{constructor(t){super(t),this.message=t,this.name="EshopError",this.stack=""}}exports.EshopError=EshopError;

@@ -0,0 +0,0 @@ const { getGamesAmerica, getGamesEurope, getGamesJapan } = require('nintendo-switch-eshop');

export * from './nintendo-switch-eshop';
export { Region } from './interfaces';
export { Region, GameEU, GameJP, GameUS } from './interfaces';

@@ -19,2 +19,3 @@ import { Country } from 'country-data';

image_url: string;
image_url_h2x1_s: string;
image_url_sq_s: string;

@@ -120,3 +121,3 @@ image_url_tm_s: string;

export interface USRequestOptions extends RequestOptions {
shop?: 'retail' | 'ncom' | 'all';
shop?: 'retail' | 'ncom' | 'all' | 'unfiltered';
}

@@ -123,0 +124,0 @@ export interface EURequestOptions extends RequestOptions {

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

"use strict";var __awaiter=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(s,n){function i(t){try{_(o.next(t))}catch(t){n(t)}}function a(t){try{_(o.throw(t))}catch(t){n(t)}}function _(t){t.done?s(t.value):new r(function(e){e(t.value)}).then(i,a)}_((o=o.apply(t,e||[])).next())})},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const awesome_querystring_1=require("awesome-querystring"),country_data_1=require("country-data"),fast_xml_parser_1=require("fast-xml-parser"),node_fetch_1=__importDefault(require("node-fetch")),constants_1=require("./constants"),interfaces_1=require("./interfaces"),arrayRemoveDuplicates=(t,e)=>{const r=[];return t.filter(t=>{const o=e?t[e]:t;return!(r.indexOf(o)>=0)&&r.push(o)})};exports.getGamesAmerica=((t={shop:"ncom",limit:constants_1.US_GAME_LIST_LIMIT},e=0,r=[])=>__awaiter(this,void 0,void 0,function*(){t.limit||(t.limit=constants_1.US_GAME_LIST_LIMIT),t.shop||(t.shop="ncom");const o="all"===t.shop?["ncom","retail"]:t.shop;try{const s=yield node_fetch_1.default(`${constants_1.US_GET_GAMES_URL}?${awesome_querystring_1.stringify(Object.assign({limit:t.limit,offset:e,shop:o},constants_1.US_GET_GAMES_OPTIONS))}`);if(!s.ok)throw new Error("US_games_request_failed");const n=yield s.json(),i=arrayRemoveDuplicates(r.concat(n.games.game),"slug");return!t.limit&&n.games.game.length+e<n.filter.total&&(yield exports.getGamesAmerica(t,e+t.limit,i)),i}catch(t){if(/(?:US_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of US Games failed");return t}})),exports.getGamesJapan=(()=>__awaiter(this,void 0,void 0,function*(){try{const t=yield node_fetch_1.default(constants_1.JP_GET_GAMES_CURRENT),e=yield node_fetch_1.default(constants_1.JP_GET_GAMES_COMING);if(!t.ok)throw new Error("JP_current_games_US_games_request_failed");if(!e.ok)throw new Error("JP_coming_games_US_games_request_failed");const r=fast_xml_parser_1.parse(yield t.text()),o=fast_xml_parser_1.parse(yield e.text()),s=r.TitleInfoList.TitleInfo,n=o.TitleInfoList.TitleInfo;return s.concat(n)}catch(t){if(/(?:JP_current_games_US_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of Current JP Games failed");if(/(?:JP_coming_games_US_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of Upcoming JP Games failed");return t}})),exports.getGamesEurope=((t={limit:constants_1.EU_GAME_LIST_LIMIT,locale:constants_1.EU_DEFAULT_LOCALE})=>__awaiter(this,void 0,void 0,function*(){t.limit||(t.limit=constants_1.EU_GAME_LIST_LIMIT),t.locale||(t.locale=constants_1.EU_DEFAULT_LOCALE);try{const e=yield node_fetch_1.default(`${constants_1.EU_GET_GAMES_URL.replace("{locale}",t.locale)}?${awesome_querystring_1.stringify({fq:"type:GAME AND system_type:nintendoswitch* AND product_code_txt:*",q:"*",rows:t.limit,sort:"sorting_title asc",start:"0",wt:"json"})}`);if(!e.ok)throw new Error("EU_games_request_failed");return(yield e.json()).response.docs}catch(t){if(/(?:EU_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of EU Games failed");return t}})),exports.getPrices=((t,e,r=0,o=[])=>__awaiter(this,void 0,void 0,function*(){try{const s=e.slice(r,r+constants_1.PRICE_LIST_LIMIT),n=yield node_fetch_1.default(`${constants_1.PRICE_GET_URL}?${awesome_querystring_1.stringify(Object.assign({country:t,ids:s,limit:constants_1.PRICE_LIST_LIMIT},constants_1.PRICE_GET_OPTIONS))}`);if(403===n.status)throw new Error("PRICE_Rate_Limit");if(!n.ok)throw new Error("PRICE_get_request_failed");const i=yield n.json();if(i.prices&&i.prices.length+r<e.length){const s=o.concat(i.prices);exports.getPrices(t,e,r+constants_1.PRICE_LIST_LIMIT,s)}else if(i.prices)return i.prices=i.prices.concat(o),i;return i}catch(t){if(/(?:PRICE_Rate_Limit)/i.test(t.toString()))throw new constants_1.EshopError("Looks like you ran into a rate limit while getting price data, please do not spam the Nintendo servers.");if(/(?:PRICE_get_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of eShop prices failed");return t}})),exports.getShopsByCountryCodes=((t,e,r)=>__awaiter(this,void 0,void 0,function*(){try{const o=t.map(t=>country_data_1.countries.all.filter(e=>e.alpha2===t)[0]),s=[];for(const t of o)try{const r=yield exports.getPrices(t.alpha2,e);r.country=t,s.push(r)}catch(t){continue}const n=s.filter(t=>t&&t.prices&&t.prices.length&&t.prices[0].regular_price).map(t=>({code:t.country.alpha2,country:t.country.name,currency:t.prices[0].regular_price.currency,region:r}));if(!n.length)throw new Error("ACTIVE_SHOPS_Rate_Limit");return n}catch(t){if(/(?:ACTIVE_SHOPS_Rate_Limit)/i.test(t.toString()))throw new constants_1.EshopError("Looks like you ran into a rate limit while getting price data, please do not spam the Nintendo servers.");return t}})),exports.getShopsAmerica=(()=>__awaiter(this,void 0,void 0,function*(){return exports.getShopsByCountryCodes(country_data_1.regions.southAmerica.countries.concat(country_data_1.regions.centralAfrica.countries,country_data_1.regions.northernAmerica.countries),constants_1.US_GAME_CHECK_CODE,interfaces_1.Region.AMERICAS)})),exports.getShopsEurope=(()=>__awaiter(this,void 0,void 0,function*(){return exports.getShopsByCountryCodes(country_data_1.regions.northernEurope.countries.concat(country_data_1.regions.southernEurope.countries,country_data_1.regions.easternEurope.countries,country_data_1.regions.westernEurope.countries,country_data_1.regions.australia.countries,country_data_1.regions.southernAfrica.countries),constants_1.EU_GAME_CHECK_CODE,interfaces_1.Region.EUROPE)})),exports.getShopsAsia=(()=>__awaiter(this,void 0,void 0,function*(){return exports.getShopsByCountryCodes(country_data_1.regions.southernAsia.countries.concat(country_data_1.regions.southernAsia.countries,country_data_1.regions.southeastAsia.countries,country_data_1.regions.eastAsia.countries,country_data_1.regions.westernAsia.countries),constants_1.JP_GAME_CHECK_CODE,interfaces_1.Region.ASIA)})),exports.getActiveShops=(()=>__awaiter(this,void 0,void 0,function*(){const t=yield exports.getShopsAmerica(),e=yield exports.getShopsAsia(),r=yield exports.getShopsEurope();return t.concat(e,r)})),exports.parseGameCode=((t,e)=>{let r;switch(e){case interfaces_1.Region.EUROPE:r=constants_1.EU_GAME_CODE_REGEX.exec(t.product_code_txt[0]);break;case interfaces_1.Region.ASIA:r=constants_1.JP_GAME_CODE_REGEX.exec(t.ScreenshotImgURL[0]);break;default:case interfaces_1.Region.AMERICAS:r=constants_1.US_GAME_CODE_REGEX.exec(t.game_code)}return r&&r.length>1?r[1]:null}),exports.parseNSUID=((t,e)=>{switch(e){case interfaces_1.Region.EUROPE:return t.nsuid_txt?t.nsuid_txt[0]:null;case interfaces_1.Region.ASIA:const r=constants_1.JP_NSUID_REGEX.exec(t.LinkURL[0]);return r&&r.length>0?r[0]:null;default:case interfaces_1.Region.AMERICAS:return t.nsuid}});
"use strict";var __awaiter=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(s,n){function i(t){try{_(o.next(t))}catch(t){n(t)}}function a(t){try{_(o.throw(t))}catch(t){n(t)}}function _(t){t.done?s(t.value):new r(function(e){e(t.value)}).then(i,a)}_((o=o.apply(t,e||[])).next())})},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const awesome_querystring_1=require("awesome-querystring"),country_data_1=require("country-data"),fast_xml_parser_1=require("fast-xml-parser"),node_fetch_1=__importDefault(require("node-fetch")),constants_1=require("./constants"),interfaces_1=require("./interfaces"),arrayRemoveDuplicates=(t,e)=>{const r=[];return t.filter(t=>{const o=e?t[e]:t;return!(r.indexOf(o)>=0)&&r.push(o)})},hasProp=(t,e)=>t&&e in t;exports.getGamesAmerica=((t={},e=0,r=[])=>__awaiter(this,void 0,void 0,function*(){const o=hasProp(t,"limit")?t.limit:constants_1.US_GAME_LIST_LIMIT,s=hasProp(t,"shop")?t.shop:"ncom";let n="all"===s?["ncom","retail"]:s;n="unfiltered"===n?void 0:n;try{const s=yield node_fetch_1.default(`${constants_1.US_GET_GAMES_URL}?${awesome_querystring_1.stringify(Object.assign({limit:o,offset:e,shop:n},constants_1.US_GET_GAMES_OPTIONS))}`);if(!s.ok)throw new Error("US_games_request_failed");const i=yield s.json(),a=arrayRemoveDuplicates(r.concat(i.games.game),"slug");return!hasProp(t,"limit")&&i.games.game.length+e<i.filter.total?yield exports.getGamesAmerica(t,e+o,a):a}catch(t){if(/(?:US_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of US Games failed");throw t}})),exports.getGamesJapan=(()=>__awaiter(this,void 0,void 0,function*(){try{const t=yield node_fetch_1.default(constants_1.JP_GET_GAMES_CURRENT),e=yield node_fetch_1.default(constants_1.JP_GET_GAMES_COMING);if(!t.ok)throw new Error("JP_current_games_US_games_request_failed");if(!e.ok)throw new Error("JP_coming_games_US_games_request_failed");const r=fast_xml_parser_1.parse(yield t.text()),o=fast_xml_parser_1.parse(yield e.text()),s=r.TitleInfoList.TitleInfo,n=o.TitleInfoList.TitleInfo;return s.concat(n)}catch(t){if(/(?:JP_current_games_US_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of Current JP Games failed");if(/(?:JP_coming_games_US_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of Upcoming JP Games failed");throw t}})),exports.getGamesEurope=((t={limit:constants_1.EU_GAME_LIST_LIMIT,locale:constants_1.EU_DEFAULT_LOCALE})=>__awaiter(this,void 0,void 0,function*(){t.limit||(t.limit=constants_1.EU_GAME_LIST_LIMIT),t.locale||(t.locale=constants_1.EU_DEFAULT_LOCALE);try{const e=yield node_fetch_1.default(`${constants_1.EU_GET_GAMES_URL.replace("{locale}",t.locale)}?${awesome_querystring_1.stringify(Object.assign({rows:t.limit},constants_1.EU_GET_GAMES_OPTIONS))}`);if(!e.ok)throw new Error("EU_games_request_failed");return(yield e.json()).response.docs}catch(t){if(/(?:EU_games_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of EU Games failed");throw t}})),exports.getPrices=((t,e,r=0,o=[])=>__awaiter(this,void 0,void 0,function*(){try{const s=e.slice(r,r+constants_1.PRICE_LIST_LIMIT),n=yield node_fetch_1.default(`${constants_1.PRICE_GET_URL}?${awesome_querystring_1.stringify(Object.assign({country:t,ids:s,limit:constants_1.PRICE_LIST_LIMIT},constants_1.PRICE_GET_OPTIONS))}`);if(403===n.status)throw new Error("PRICE_Rate_Limit");if(!n.ok)throw new Error("PRICE_get_request_failed");const i=yield n.json();if(i.prices&&i.prices.length+r<e.length){const s=o.concat(i.prices);return yield exports.getPrices(t,e,r+constants_1.PRICE_LIST_LIMIT,s)}return i.prices?(i.prices=i.prices.concat(o),i):i}catch(t){if(/(?:PRICE_Rate_Limit)/i.test(t.toString()))throw new constants_1.EshopError("Looks like you ran into a rate limit while getting price data, please do not spam the Nintendo servers.");if(/(?:PRICE_get_request_failed)/i.test(t.toString()))throw new constants_1.EshopError("Fetching of eShop prices failed");throw t}})),exports.getShopsByCountryCodes=((t,e,r)=>__awaiter(this,void 0,void 0,function*(){try{const o=t.map(t=>country_data_1.countries.all.filter(e=>e.alpha2===t)[0]),s=[];for(const t of o)try{const r=yield exports.getPrices(t.alpha2,e);r.country=t,s.push(r)}catch(t){continue}const n=s.filter(t=>t&&t.prices&&t.prices.length&&t.prices[0].regular_price).map(t=>({code:t.country.alpha2,country:t.country.name,currency:t.prices[0].regular_price.currency,region:r}));if(!n.length)throw new Error("ACTIVE_SHOPS_Rate_Limit");return n}catch(t){if(/(?:ACTIVE_SHOPS_Rate_Limit)/i.test(t.toString()))throw new constants_1.EshopError("Looks like you ran into a rate limit while getting price data, please do not spam the Nintendo servers.");throw t}})),exports.getShopsAmerica=(()=>__awaiter(this,void 0,void 0,function*(){return exports.getShopsByCountryCodes(country_data_1.regions.southAmerica.countries.concat(country_data_1.regions.centralAfrica.countries,country_data_1.regions.northernAmerica.countries),constants_1.US_GAME_CHECK_CODE,interfaces_1.Region.AMERICAS)})),exports.getShopsEurope=(()=>__awaiter(this,void 0,void 0,function*(){return exports.getShopsByCountryCodes(country_data_1.regions.northernEurope.countries.concat(country_data_1.regions.southernEurope.countries,country_data_1.regions.easternEurope.countries,country_data_1.regions.westernEurope.countries,country_data_1.regions.australia.countries,country_data_1.regions.southernAfrica.countries),constants_1.EU_GAME_CHECK_CODE,interfaces_1.Region.EUROPE)})),exports.getShopsAsia=(()=>__awaiter(this,void 0,void 0,function*(){return exports.getShopsByCountryCodes(country_data_1.regions.southernAsia.countries.concat(country_data_1.regions.southernAsia.countries,country_data_1.regions.southeastAsia.countries,country_data_1.regions.eastAsia.countries,country_data_1.regions.westernAsia.countries),constants_1.JP_GAME_CHECK_CODE,interfaces_1.Region.ASIA)})),exports.getActiveShops=(()=>__awaiter(this,void 0,void 0,function*(){const t=yield exports.getShopsAmerica(),e=yield exports.getShopsAsia(),r=yield exports.getShopsEurope();return t.concat(e,r)})),exports.parseGameCode=((t,e)=>{let r;switch(e){case interfaces_1.Region.EUROPE:r=constants_1.EU_GAME_CODE_REGEX.exec(t.product_code_txt[0]);break;case interfaces_1.Region.ASIA:r=constants_1.JP_GAME_CODE_REGEX.exec(t.ScreenshotImgURL[0]);break;default:case interfaces_1.Region.AMERICAS:r=constants_1.US_GAME_CODE_REGEX.exec(t.game_code)}return r&&r.length>1?r[1]:null}),exports.parseNSUID=((t,e)=>{switch(e){case interfaces_1.Region.EUROPE:return t.nsuid_txt?t.nsuid_txt[0]:null;case interfaces_1.Region.ASIA:const r=constants_1.JP_NSUID_REGEX.exec(t.LinkURL[0]);return r&&r.length>0?r[0]:null;default:case interfaces_1.Region.AMERICAS:return t.nsuid}});

@@ -0,0 +0,0 @@ Apache License

{
"name": "nintendo-switch-eshop",
"version": "2.0.1",
"version": "2.1.0",
"description": "Unofficial API lib for Nintendo Switch eShop game listing and pricing information.",

@@ -18,2 +18,14 @@ "author": "lmmfranco",

},
"scripts": {
"docs": "jsdoc2md --files ./lib/*.ts --template ./docs/template.hbs --example-lang js --configure ./jsdoc2md.json --no-cache > ./README.md",
"test": "jest --no-cache",
"lint": "tslint --fix -p . -c ./tslint.json ./lib/*.ts",
"clean": "rimraf ./dist",
"prebuild": "yarn clean && yarn lint && yarn test",
"build": "tsc",
"postbuild": "terser-folder ./dist -eo ./dist -x .js && copyfiles -u 1 ./docs/example.js ./dist && yarn docs && yarn replace:promise && yarn replace:array && yarn replace:paragraph",
"replace:promise": "replace --silent \"(Promise)\\.&lt;\" \"Promise&lt;\" README.md",
"replace:array": "replace --silent \"(Array)\\.&lt;\" \"Array&lt;\" README.md",
"replace:paragraph": "replace --silent \" - <p>(.+)</p>\" \" - $1\" README.md"
},
"keywords": [

@@ -30,6 +42,4 @@ "eshop",

"dependencies": {
"@types/country-data": "^0.0.0",
"@types/node-fetch": "^2.1.4",
"awesome-querystring": "^1.1.5",
"country-data": "0.0.31",
"country-data": "^0.0.31",
"fast-xml-parser": "^3.12.12",

@@ -39,27 +49,29 @@ "node-fetch": "^2.3.0"

"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/preset-typescript": "^7.1.0",
"@babel/register": "^7.0.0",
"@types/jest": "^23.3.13",
"@types/node": "^10.12.18",
"common-tags": "^1.8.0",
"del": "^3.0.0",
"gulp": "^4.0.0",
"gulp-jest": "^4.0.2",
"gulp-replace": "^1.0.0",
"gulp-typescript": "^5.0.0",
"gulp-uglify-es": "^1.0.4",
"jest": "^23.6.0",
"jest-cli": "^23.6.0",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.3.1",
"@babel/preset-typescript": "^7.3.3",
"@types/country-data": "^0.0.0",
"@types/jest": "^24.0.6",
"@types/node": "^11.9.5",
"@types/node-fetch": "^2.1.4",
"copyfiles": "^2.1.0",
"jest": "^24.0.0",
"jsdoc-babel": "^0.5.0",
"jsdoc-to-markdown": "^4.0.1",
"milky-tslint": "^1.0.2",
"ts-jest": "^23.10.5",
"ts-node": "^7.0.1",
"replace": "^1.0.1",
"rimraf": "^2.6.3",
"terser-folder": "^2.0.0",
"tslint": "^5.12.1",
"typescript": "^3.2.4",
"yargs": "^12.0.5"
"typescript": "^3.2.4"
},
"files": [
"dist/"
],
"directories": {
"lib": "lib/",
"test": "tests/",
"doc": "docs/",
"example": "dist/example.js"
}
}

@@ -152,3 +152,3 @@ <div align="center">

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;GameUS&gt;&gt;</code> - Promise containing all the games
**Returns**: <code>Promise&lt;Array&lt;GameUS&gt;&gt;</code> -

@@ -167,3 +167,3 @@ | Param | Type | Description |

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;GameJP&gt;&gt;</code> - Promise containing all the games
**Returns**: <code>Promise&lt;Array&lt;GameJP&gt;&gt;</code> -
<a name="getGamesEurope"></a>

@@ -175,3 +175,3 @@

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;GameUS&gt;&gt;</code> - Promise containing all the games
**Returns**: <code>Promise&lt;Array&lt;GameUS&gt;&gt;</code> -

@@ -188,3 +188,3 @@ | Param | Type | Description |

**Kind**: global function
**Returns**: [<code>Promise&lt;PriceResponse&gt;</code>](#PriceResponse) - A promise containing the pricing information.
**Returns**: [<code>Promise&lt;PriceResponse&gt;</code>](#PriceResponse) -

@@ -204,3 +204,3 @@ | Param | Type | Description |

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> - A list of shop objects with country code, name and default currency.
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> -

@@ -220,3 +220,3 @@ | Param | Type | Description |

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> - A list of shop objects with country code, name and default currency.
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> -
<a name="getShopsEurope"></a>

@@ -229,3 +229,3 @@

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> - A list of shop objects with country code, name and default currency.
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> -
<a name="getShopsAsia"></a>

@@ -238,3 +238,3 @@

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> - A list of shop objects with country code, name and default currency.
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> -
<a name="getActiveShops"></a>

@@ -247,3 +247,3 @@

**Kind**: global function
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> - A list of shop objects with country code, name and default currency.
**Returns**: <code>Promise&lt;Array&lt;EShop&gt;&gt;</code> -
<a name="parseGameCode"></a>

@@ -255,3 +255,3 @@

**Kind**: global function
**Returns**: <code>string</code> \| <code>null</code> - The 4-digit resulting game code
**Returns**: <code>string</code> \| <code>null</code> -

@@ -269,3 +269,3 @@ | Param | Type | Description |

**Kind**: global function
**Returns**: <code>string</code> \| <code>null</code> - The 14-digits NSUID
**Returns**: <code>string</code> \| <code>null</code> -

@@ -308,2 +308,3 @@ | Param | Type | Description |

| image_url | <code>string</code> | |
| image_url_h2x1_s | <code>string</code> | |
| image_url_sq_s | <code>string</code> | |

@@ -310,0 +311,0 @@ | image_url_tm_s | <code>string</code> | |

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