@expo/steps
Advanced tools
@@ -5,2 +5,5 @@ "use strict"; | ||
| const jsepEval_1 = require("./utils/jsepEval"); | ||
| function isSingleWholeStringInterpolation(value) { | ||
| return value.startsWith('${{') && value.endsWith('}}') && !value.includes('${{', 3); | ||
| } | ||
| function interpolateJobContext({ target, context, }) { | ||
@@ -10,3 +13,3 @@ if (typeof target === 'string') { | ||
| // without changing `inputs.build` type, i.e. if it is an object it'll be like `build: {...inputs.build}`. | ||
| if (target.startsWith('${{') && target.endsWith('}}')) { | ||
| if (isSingleWholeStringInterpolation(target)) { | ||
| return (0, jsepEval_1.jsepEval)(target.slice(3, -2), context); | ||
@@ -13,0 +16,0 @@ } |
+2
-2
| { | ||
| "name": "@expo/steps", | ||
| "version": "18.8.0", | ||
| "version": "18.9.0", | ||
| "bugs": "https://github.com/expo/eas-cli/issues", | ||
@@ -59,3 +59,3 @@ "license": "BUSL-1.1", | ||
| }, | ||
| "gitHead": "7c7fad4a13a8a45bdca698fc0fd4c08b17bb189c" | ||
| "gitHead": "8fdf47aa7d5d8241d8afa04924a1d0f6d00fdc5a" | ||
| } |
156440
0.09%3343
0.09%