UNPKG

@metamask/snaps-utils

Version:
21 lines 811 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPlatformVersion = void 0; const package_json_1 = __importDefault(require("@metamask/snaps-sdk/package.json")); /** * Get the current supported platform version. * * Note: This function assumes that the same SDK version is used across all * dependencies. If this is not the case, the version of the SDK that is * closest to the `snaps-utils` package will be returned. * * @returns The platform version. */ function getPlatformVersion() { return package_json_1.default.version; } exports.getPlatformVersion = getPlatformVersion; //# sourceMappingURL=platform-version.cjs.map