|
1 |
| -"use strict"; |
2 |
| -Object.defineProperty(exports, "__esModule", { value: true }); |
3 |
| -const exceptions_1 = require("../exceptions"); |
4 |
| -var FunctionRuntimeConstant; |
5 |
| -(function (FunctionRuntimeConstant) { |
6 |
| - FunctionRuntimeConstant[FunctionRuntimeConstant["None"] = 1] = "None"; |
7 |
| - FunctionRuntimeConstant[FunctionRuntimeConstant["Dotnet"] = 2] = "Dotnet"; |
8 |
| - FunctionRuntimeConstant[FunctionRuntimeConstant["Node"] = 3] = "Node"; |
9 |
| - FunctionRuntimeConstant[FunctionRuntimeConstant["Powershell"] = 4] = "Powershell"; |
10 |
| - FunctionRuntimeConstant[FunctionRuntimeConstant["Java"] = 5] = "Java"; |
11 |
| - FunctionRuntimeConstant[FunctionRuntimeConstant["Python"] = 6] = "Python"; |
12 |
| -})(FunctionRuntimeConstant = exports.FunctionRuntimeConstant || (exports.FunctionRuntimeConstant = {})); |
13 |
| -class FunctionRuntimeUtil { |
14 |
| - static FromString(language) { |
15 |
| - if (language === undefined) { |
16 |
| - return FunctionRuntimeConstant.None; |
17 |
| - } |
18 |
| - const key = language.charAt(0).toUpperCase() + language.toLowerCase().slice(1); |
19 |
| - const result = FunctionRuntimeConstant[key]; |
20 |
| - if (result === undefined) { |
21 |
| - throw new exceptions_1.UnexpectedConversion('FunctionRuntimeConstant', language); |
22 |
| - } |
23 |
| - return result; |
24 |
| - } |
25 |
| -} |
26 |
| -exports.FunctionRuntimeUtil = FunctionRuntimeUtil; |
| 1 | +"use strict"; |
| 2 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 | +const exceptions_1 = require("../exceptions"); |
| 4 | +var FunctionRuntimeConstant; |
| 5 | +(function (FunctionRuntimeConstant) { |
| 6 | + FunctionRuntimeConstant[FunctionRuntimeConstant["None"] = 1] = "None"; |
| 7 | + FunctionRuntimeConstant[FunctionRuntimeConstant["Dotnet"] = 2] = "Dotnet"; |
| 8 | + FunctionRuntimeConstant[FunctionRuntimeConstant["Node"] = 3] = "Node"; |
| 9 | + FunctionRuntimeConstant[FunctionRuntimeConstant["Powershell"] = 4] = "Powershell"; |
| 10 | + FunctionRuntimeConstant[FunctionRuntimeConstant["Java"] = 5] = "Java"; |
| 11 | + FunctionRuntimeConstant[FunctionRuntimeConstant["Python"] = 6] = "Python"; |
| 12 | +})(FunctionRuntimeConstant = exports.FunctionRuntimeConstant || (exports.FunctionRuntimeConstant = {})); |
| 13 | +class FunctionRuntimeUtil { |
| 14 | + static FromString(language) { |
| 15 | + if (language === undefined) { |
| 16 | + return FunctionRuntimeConstant.None; |
| 17 | + } |
| 18 | + const key = language.charAt(0).toUpperCase() + language.toLowerCase().slice(1); |
| 19 | + const result = FunctionRuntimeConstant[key]; |
| 20 | + if (result === undefined) { |
| 21 | + throw new exceptions_1.UnexpectedConversion('FunctionRuntimeConstant', language); |
| 22 | + } |
| 23 | + return result; |
| 24 | + } |
| 25 | +} |
| 26 | +exports.FunctionRuntimeUtil = FunctionRuntimeUtil; |
0 commit comments