( environments: EnvironmentSetting_Environment[] )
| 111 | } |
| 112 | |
| 113 | function convertEnvironmentList( |
| 114 | environments: EnvironmentSetting_Environment[] |
| 115 | ): Environment[] { |
| 116 | return environments.map<Environment>((env, i) => ({ |
| 117 | ...createProto(EnvironmentSetting_EnvironmentSchema, { |
| 118 | name: environmentNameFromId(env.id), |
| 119 | id: env.id, |
| 120 | title: env.title, |
| 121 | tags: env.tags, |
| 122 | }), |
| 123 | color: env.color ? colorToHex(env.color) : "", |
| 124 | order: i, |
| 125 | })); |
| 126 | } |
| 127 | |
| 128 | function isSelfHostLicense() { |
| 129 | return import.meta.env.MODE.toLowerCase() !== "release-aws"; |
no test coverage detected