You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1022 B
21 lines
1022 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isSDKVersionRuntimeVersion = exports.getSDKVersionFromRuntimeVersion = exports.getRuntimeVersionForSDKVersion = exports.RUNTIME_VERSION_PREFIX = void 0;
|
|
exports.RUNTIME_VERSION_PREFIX = 'exposdk:';
|
|
function getRuntimeVersionForSDKVersion(sdkVersion) {
|
|
return "" + exports.RUNTIME_VERSION_PREFIX + sdkVersion;
|
|
}
|
|
exports.getRuntimeVersionForSDKVersion = getRuntimeVersionForSDKVersion;
|
|
function getSDKVersionFromRuntimeVersion(runtimeVersion) {
|
|
var regexMatches = /^exposdk:(\d+\.\d+\.\d+)$/.exec(runtimeVersion);
|
|
if (!regexMatches || regexMatches.length < 2) {
|
|
return undefined;
|
|
}
|
|
return regexMatches[1];
|
|
}
|
|
exports.getSDKVersionFromRuntimeVersion = getSDKVersionFromRuntimeVersion;
|
|
function isSDKVersionRuntimeVersion(runtimeVersion) {
|
|
return getSDKVersionFromRuntimeVersion(runtimeVersion) !== undefined;
|
|
}
|
|
exports.isSDKVersionRuntimeVersion = isSDKVersionRuntimeVersion;
|
|
//# sourceMappingURL=index.js.map
|