UNPKG

bungie-net-core

Version:

An easy way to interact with the Bungie.net API

19 lines (18 loc) 467 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getManifestComponentJSON = getManifestComponentJSON; async function getManifestComponentJSON(http, { destinyManifest, tableName, language }) { const baseUrl = 'https://www.bungie.net' + destinyManifest.jsonWorldComponentContentPaths[language][tableName]; return http({ baseUrl, method: 'GET', searchParams: new URLSearchParams(), body: undefined }); }