19 строки
844 B
JavaScript
19 строки
844 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isSupportedToolsFeature = exports.ToolsFeature = void 0;
|
|
var ToolsFeature;
|
|
(function (ToolsFeature) {
|
|
ToolsFeature["IndirectTracingSupportsStaticBinaries"] = "indirectTracingSupportsStaticBinaries";
|
|
})(ToolsFeature || (exports.ToolsFeature = ToolsFeature = {}));
|
|
/**
|
|
* Determines if the given feature is supported by the CLI.
|
|
*
|
|
* @param versionInfo Version information, including features, returned by the CLI.
|
|
* @param feature The feature to check for.
|
|
* @returns True if the feature is supported or false otherwise.
|
|
*/
|
|
function isSupportedToolsFeature(versionInfo, feature) {
|
|
return !!versionInfo.features && versionInfo.features[feature];
|
|
}
|
|
exports.isSupportedToolsFeature = isSupportedToolsFeature;
|
|
//# sourceMappingURL=tools-features.js.map
|