@sap-ux/adp-tooling 0.12.83 → 0.12.85

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.
@@ -29,7 +29,7 @@ function writeAnnotationChange(projectPath, timestamp, annotation, change, fs) {
29
29
  try {
30
30
  const changeFileName = `id_${timestamp}_addAnnotationsToOData.change`;
31
31
  const changesFolderPath = path_1.default.join(projectPath, project_access_1.DirName.Webapp, project_access_1.DirName.Changes);
32
- const changeFilePath = path_1.default.join(changesFolderPath, project_access_1.DirName.Manifest, changeFileName);
32
+ const changeFilePath = path_1.default.join(changesFolderPath, changeFileName);
33
33
  const annotationsFolderPath = path_1.default.join(changesFolderPath, project_access_1.DirName.Annotations);
34
34
  writeChangeToFile(changeFilePath, change, fs);
35
35
  if (!annotation.filePath) {
@@ -178,7 +178,7 @@ function getChangesByType(projectPath, changeType, subDir) {
178
178
  function findChangeWithInboundId(projectPath, inboundId) {
179
179
  let changeObj;
180
180
  let filePath = '';
181
- const pathToInboundChangeFiles = path_1.default.join(projectPath, project_access_1.DirName.Webapp, project_access_1.DirName.Changes, project_access_1.DirName.Manifest);
181
+ const pathToInboundChangeFiles = path_1.default.join(projectPath, project_access_1.DirName.Webapp, project_access_1.DirName.Changes);
182
182
  if (!(0, fs_1.existsSync)(pathToInboundChangeFiles)) {
183
183
  return {
184
184
  filePath,
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ComponentUsagesWriter = void 0;
4
- const project_access_1 = require("@sap-ux/project-access");
5
4
  const change_utils_1 = require("../../../base/change-utils");
6
5
  /**
7
6
  * Handles the creation and writing of component usages data changes for a project.
@@ -63,14 +62,14 @@ class ComponentUsagesWriter {
63
62
  const componentUsagesContent = this.constructContent(data);
64
63
  const timestamp = Date.now();
65
64
  const compUsagesChange = (0, change_utils_1.getChange)(data.variant, timestamp, componentUsagesContent, "appdescr_ui5_addComponentUsages" /* ChangeType.ADD_COMPONENT_USAGES */);
66
- (0, change_utils_1.writeChangeToFolder)(this.projectPath, compUsagesChange, `id_${timestamp}_addComponentUsages.change`, this.fs, project_access_1.DirName.Manifest);
65
+ (0, change_utils_1.writeChangeToFolder)(this.projectPath, compUsagesChange, `id_${timestamp}_addComponentUsages.change`, this.fs);
67
66
  if (!('library' in data)) {
68
67
  return;
69
68
  }
70
69
  const libRefContent = this.constructLibContent(data);
71
70
  const libTimestamp = timestamp + 1;
72
71
  const refLibChange = (0, change_utils_1.getChange)(data.variant, libTimestamp, libRefContent, "appdescr_ui5_addLibraries" /* ChangeType.ADD_LIBRARY_REFERENCE */);
73
- (0, change_utils_1.writeChangeToFolder)(this.projectPath, refLibChange, `id_${libTimestamp}_addLibraries.change`, this.fs, project_access_1.DirName.Manifest);
72
+ (0, change_utils_1.writeChangeToFolder)(this.projectPath, refLibChange, `id_${libTimestamp}_addLibraries.change`, this.fs);
74
73
  }
75
74
  }
76
75
  exports.ComponentUsagesWriter = ComponentUsagesWriter;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataSourceWriter = void 0;
4
- const project_access_1 = require("@sap-ux/project-access");
5
4
  const change_utils_1 = require("../../../base/change-utils");
6
5
  /**
7
6
  * Handles the creation and writing of data source data changes for a project.
@@ -58,12 +57,12 @@ class DataSourceWriter {
58
57
  const timestamp = Date.now();
59
58
  const content = this.constructContent(id, uri, maxAge);
60
59
  const change = (0, change_utils_1.getChange)(variant, timestamp, content, "appdescr_app_changeDataSource" /* ChangeType.CHANGE_DATA_SOURCE */);
61
- (0, change_utils_1.writeChangeToFolder)(this.projectPath, change, `id_${timestamp}_changeDataSource.change`, this.fs, project_access_1.DirName.Manifest);
60
+ (0, change_utils_1.writeChangeToFolder)(this.projectPath, change, `id_${timestamp}_changeDataSource.change`, this.fs);
62
61
  if (annotationId && annotationUri) {
63
62
  const annotationContent = this.constructContent(annotationId, annotationUri);
64
63
  const annotationTs = timestamp + 1;
65
64
  const annotationChange = (0, change_utils_1.getChange)(variant, annotationTs, annotationContent, "appdescr_app_changeDataSource" /* ChangeType.CHANGE_DATA_SOURCE */);
66
- (0, change_utils_1.writeChangeToFolder)(this.projectPath, annotationChange, `id_${annotationTs}_changeDataSource.change`, this.fs, project_access_1.DirName.Manifest);
65
+ (0, change_utils_1.writeChangeToFolder)(this.projectPath, annotationChange, `id_${annotationTs}_changeDataSource.change`, this.fs);
67
66
  }
68
67
  }
69
68
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InboundWriter = void 0;
4
- const project_access_1 = require("@sap-ux/project-access");
5
4
  const change_utils_1 = require("../../../base/change-utils");
6
5
  /**
7
6
  * Handles the creation and writing of inbound data changes for a project.
@@ -74,7 +73,7 @@ class InboundWriter {
74
73
  if (!changeWithInboundId) {
75
74
  const content = this.constructContent(data);
76
75
  const change = (0, change_utils_1.getChange)(data.variant, timestamp, content, "appdescr_app_changeInbound" /* ChangeType.CHANGE_INBOUND */);
77
- (0, change_utils_1.writeChangeToFolder)(this.projectPath, change, `id_${timestamp}_changeInbound.change`, this.fs, project_access_1.DirName.Manifest);
76
+ (0, change_utils_1.writeChangeToFolder)(this.projectPath, change, `id_${timestamp}_changeInbound.change`, this.fs);
78
77
  }
79
78
  else {
80
79
  if (changeWithInboundId.content) {
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NewModelWriter = void 0;
4
- const project_access_1 = require("@sap-ux/project-access");
5
4
  const change_utils_1 = require("../../../base/change-utils");
6
5
  /**
7
6
  * Handles the creation and writing of new sapui5 model data changes for a project.
@@ -67,7 +66,7 @@ class NewModelWriter {
67
66
  const timestamp = Date.now();
68
67
  const content = this.constructContent(data);
69
68
  const change = (0, change_utils_1.getChange)(data.variant, timestamp, content, "appdescr_ui5_addNewModel" /* ChangeType.ADD_NEW_MODEL */);
70
- (0, change_utils_1.writeChangeToFolder)(this.projectPath, change, `id_${timestamp}_addNewModel.change`, this.fs, project_access_1.DirName.Manifest);
69
+ (0, change_utils_1.writeChangeToFolder)(this.projectPath, change, `id_${timestamp}_addNewModel.change`, this.fs);
71
70
  }
72
71
  }
73
72
  exports.NewModelWriter = NewModelWriter;
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.12.83",
12
+ "version": "0.12.85",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -37,7 +37,7 @@
37
37
  "@sap-ux/inquirer-common": "0.5.4",
38
38
  "@sap-ux/logger": "0.6.0",
39
39
  "@sap-ux/project-access": "1.28.7",
40
- "@sap-ux/project-input-validator": "0.3.3",
40
+ "@sap-ux/project-input-validator": "0.3.4",
41
41
  "@sap-ux/system-access": "0.5.19",
42
42
  "@sap-ux/ui5-config": "0.25.2"
43
43
  },