@sap-ux/adp-tooling 0.11.11 → 0.11.13
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Editor } from 'mem-fs-editor';
|
|
2
2
|
import type { AnnotationsData, ChangeType, DescriptorVariant, InboundContent, ManifestChangeProperties, PropertyValueType } from '../types';
|
|
3
|
-
export type ChangeMetadata = Pick<DescriptorVariant, '
|
|
3
|
+
export type ChangeMetadata = Pick<DescriptorVariant, 'id' | 'layer' | 'namespace'>;
|
|
4
4
|
type InboundChangeData = {
|
|
5
5
|
filePath: string;
|
|
6
6
|
changeWithInboundId: InboundChange | undefined;
|
|
@@ -82,6 +82,6 @@ export declare function findChangeWithInboundId(projectPath: string, inboundId:
|
|
|
82
82
|
* @param {ChangeType} changeType - The type of the change.
|
|
83
83
|
* @returns - An object representing the change
|
|
84
84
|
*/
|
|
85
|
-
export declare function getChange({
|
|
85
|
+
export declare function getChange({ id, layer, namespace }: ChangeMetadata, timestamp: number, content: object, changeType: ChangeType): ManifestChangeProperties;
|
|
86
86
|
export {};
|
|
87
87
|
//# sourceMappingURL=change-utils.d.ts.map
|
|
@@ -167,7 +167,7 @@ exports.findChangeWithInboundId = findChangeWithInboundId;
|
|
|
167
167
|
* @param {ChangeType} changeType - The type of the change.
|
|
168
168
|
* @returns - An object representing the change
|
|
169
169
|
*/
|
|
170
|
-
function getChange({
|
|
170
|
+
function getChange({ id, layer, namespace }, timestamp, content, changeType) {
|
|
171
171
|
return {
|
|
172
172
|
fileName: `id_${timestamp}`,
|
|
173
173
|
namespace: path_1.default.posix.join(namespace, project_access_1.DirName.Changes),
|
|
@@ -175,7 +175,7 @@ function getChange({ reference, layer, namespace }, timestamp, content, changeTy
|
|
|
175
175
|
fileType: 'change',
|
|
176
176
|
creation: new Date(timestamp).toISOString(),
|
|
177
177
|
packageName: '$TMP',
|
|
178
|
-
reference,
|
|
178
|
+
reference: id,
|
|
179
179
|
support: { generator: '@sap-ux/adp-tooling' },
|
|
180
180
|
changeType,
|
|
181
181
|
content
|
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.11.
|
|
12
|
+
"version": "0.11.13",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@sap-ux/btp-utils": "0.14.4",
|
|
36
36
|
"@sap-ux/inquirer-common": "0.3.1",
|
|
37
37
|
"@sap-ux/logger": "0.5.1",
|
|
38
|
-
"@sap-ux/project-access": "1.22.
|
|
38
|
+
"@sap-ux/project-access": "1.22.4",
|
|
39
39
|
"@sap-ux/system-access": "0.4.7",
|
|
40
40
|
"@sap-ux/ui5-config": "0.22.10"
|
|
41
41
|
},
|