UNPKG

@ledgerhq/live-common

Version:
22 lines 979 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.setWalletAPIVersion = exports.getWalletAPIVersion = void 0; // as the client side must implement the Wallet API, it's for LLD/LLM to set the Wallet API version // that way allows to be loosely coupled between common and lld/llm // it's like we do for enabling coins. // beware this must be set in the first import of the end project. const invariant_1 = __importDefault(require("invariant")); let version = ""; function getWalletAPIVersion() { (0, invariant_1.default)(version, "setWalletAPIVersion must be called before anything else."); return version; } exports.getWalletAPIVersion = getWalletAPIVersion; function setWalletAPIVersion(v) { version = v; } exports.setWalletAPIVersion = setWalletAPIVersion; //# sourceMappingURL=version.js.map