@expo/steps 18.8.0 → 18.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interpolation.js +4 -1
- package/package.json +2 -2
package/dist/interpolation.js
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.interpolateJobContext = interpolateJobContext;
|
|
4
4
|
const jsepEval_1 = require("./utils/jsepEval");
|
|
5
|
+
function isSingleWholeStringInterpolation(value) {
|
|
6
|
+
return value.startsWith('${{') && value.endsWith('}}') && !value.includes('${{', 3);
|
|
7
|
+
}
|
|
5
8
|
function interpolateJobContext({ target, context, }) {
|
|
6
9
|
if (typeof target === 'string') {
|
|
7
10
|
// If the value is e.g. `build: ${{ inputs.build }}`, we will interpolate the value
|
|
8
11
|
// without changing `inputs.build` type, i.e. if it is an object it'll be like `build: {...inputs.build}`.
|
|
9
|
-
if (
|
|
12
|
+
if (isSingleWholeStringInterpolation(target)) {
|
|
10
13
|
return (0, jsepEval_1.jsepEval)(target.slice(3, -2), context);
|
|
11
14
|
}
|
|
12
15
|
// Otherwise we replace all occurrences of `${{...}}` with the result of the expression.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/steps",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.9.0",
|
|
4
4
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Expo <support@expo.io>",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=18"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "8fdf47aa7d5d8241d8afa04924a1d0f6d00fdc5a"
|
|
60
60
|
}
|