@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.
@@ -1972,7 +1972,8 @@ export default PascalNameToReplace;
1972
1972
  }
1973
1973
  return { updatedSlice, componentCode, updatedMock };
1974
1974
  }));
1975
- await updatedSlices.forEach(async ({ updatedSlice, componentCode, updatedMock }, index) => {
1975
+ for (let index = 0; index < updatedSlices.length; index++) {
1976
+ const { updatedSlice, componentCode, updatedMock } = updatedSlices[index];
1976
1977
  console.log("STEP 7: Update the slice code for:", `${index} - ${updatedSlice.name}`);
1977
1978
  if (componentCode) {
1978
1979
  const { errors } = await this.createSlice({
@@ -1999,7 +2000,7 @@ export default PascalNameToReplace;
1999
2000
  sliceID: updatedSlice.id,
2000
2001
  mocks: updatedMock
2001
2002
  });
2002
- });
2003
+ }
2003
2004
  console.log("STEP 9: THE END");
2004
2005
  return {
2005
2006
  slices: updatedSlices.map(({ updatedSlice }) => updatedSlice)