UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

19 lines (17 loc) 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateToken = void 0; // SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project /** * This method validates mapbox token. * This token provides a simple synchronous validation * @param {string} token the Mapbox token to validate * @return {boolean} true if token is valid, false otherwise */ var validateToken = exports.validateToken = function validateToken(token) { return (token || '') !== ''; }; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ2YWxpZGF0ZVRva2VuIiwiZXhwb3J0cyIsInRva2VuIl0sInNvdXJjZXMiOlsiLi4vc3JjL21hcGJveC11dGlscy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogTUlUXG4vLyBDb3B5cmlnaHQgY29udHJpYnV0b3JzIHRvIHRoZSBrZXBsZXIuZ2wgcHJvamVjdFxuXG4vKipcbiAqIFRoaXMgbWV0aG9kIHZhbGlkYXRlcyBtYXBib3ggdG9rZW4uXG4gKiBUaGlzIHRva2VuIHByb3ZpZGVzIGEgc2ltcGxlIHN5bmNocm9ub3VzIHZhbGlkYXRpb25cbiAqIEBwYXJhbSB7c3RyaW5nfSB0b2tlbiB0aGUgTWFwYm94IHRva2VuIHRvIHZhbGlkYXRlXG4gKiBAcmV0dXJuIHtib29sZWFufSB0cnVlIGlmIHRva2VuIGlzIHZhbGlkLCBmYWxzZSBvdGhlcndpc2VcbiAqL1xuZXhwb3J0IGNvbnN0IHZhbGlkYXRlVG9rZW4gPSAodG9rZW46IHN0cmluZyk6IGJvb2xlYW4gPT4gKHRva2VuIHx8ICcnKSAhPT0gJyc7XG4iXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ08sSUFBTUEsYUFBYSxHQUFBQyxPQUFBLENBQUFELGFBQUEsR0FBRyxTQUFoQkEsYUFBYUEsQ0FBSUUsS0FBYTtFQUFBLE9BQWMsQ0FBQ0EsS0FBSyxJQUFJLEVBQUUsTUFBTSxFQUFFO0FBQUEiLCJpZ25vcmVMaXN0IjpbXX0=