@slicemachine/manager 0.24.4-alpha.xru-slice-generation-ai-poc.2 → 0.24.4-alpha.xru-slice-generation-ai-poc.3
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.
@@ -1992,7 +1992,8 @@ export default PascalNameToReplace;
|
|
1992
1992
|
}
|
1993
1993
|
return { updatedSlice, componentCode, updatedMock };
|
1994
1994
|
}));
|
1995
|
-
|
1995
|
+
for (let index = 0; index < updatedSlices.length; index++) {
|
1996
|
+
const { updatedSlice, componentCode, updatedMock } = updatedSlices[index];
|
1996
1997
|
console.log("STEP 7: Update the slice code for:", `${index} - ${updatedSlice.name}`);
|
1997
1998
|
if (componentCode) {
|
1998
1999
|
const { errors: errors2 } = await this.createSlice({
|
@@ -2019,7 +2020,7 @@ export default PascalNameToReplace;
|
|
2019
2020
|
sliceID: updatedSlice.id,
|
2020
2021
|
mocks: updatedMock
|
2021
2022
|
});
|
2022
|
-
}
|
2023
|
+
}
|
2023
2024
|
console.log("STEP 9: THE END");
|
2024
2025
|
return {
|
2025
2026
|
slices: updatedSlices.map(({ updatedSlice }) => updatedSlice)
|