@sap-ux/adp-tooling 0.9.2 → 0.9.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.
@@ -137,13 +137,14 @@ function findChangeWithInboundId(projectPath, inboundId) {
137
137
  };
138
138
  }
139
139
  try {
140
- const file = (0, fs_1.readdirSync)(pathToInboundChangeFiles, { withFileTypes: true }).find((dirent) => dirent.isFile() && dirent.name.includes('changeInbound'));
141
- if (file) {
140
+ const files = (0, fs_1.readdirSync)(pathToInboundChangeFiles, { withFileTypes: true }).filter((dirent) => dirent.isFile() && dirent.name.includes('changeInbound'));
141
+ for (const file of files) {
142
142
  const pathToFile = path_1.default.join(pathToInboundChangeFiles, file.name);
143
143
  const change = JSON.parse((0, fs_1.readFileSync)(pathToFile, 'utf-8'));
144
144
  if (((_a = change.content) === null || _a === void 0 ? void 0 : _a.inboundId) === inboundId) {
145
145
  changeObj = change;
146
146
  filePath = pathToFile;
147
+ break;
147
148
  }
148
149
  }
149
150
  return {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
11
11
  },
12
- "version": "0.9.2",
12
+ "version": "0.9.3",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",