@sap/ux-specification 1.90.13 → 1.96.0
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.
- package/CHANGELOG.md +3 -298
- package/README.md +1 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/documentation/v4/v4-AnalyticalListPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
- package/dist/documentation/v4/v4-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +1 -1
- package/dist/index-min.js.LICENSE.txt +71 -0
- package/dist/schemas/v2/AnalyticalListPageConfig.json +6 -4
- package/dist/schemas/v2/ListReportConfig.json +16 -9
- package/dist/schemas/v2/ObjectPageConfig.json +12 -10
- package/dist/schemas/v4/AnalyticalListPageConfig.json +3 -0
- package/dist/schemas/v4/ListReportConfig.json +3 -0
- package/dist/scripts/to-json-schema.js +11 -2
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/specification/v4/index-min.js +1 -1
- package/dist/src/api.d.ts +9 -1
- package/dist/src/api.js +18 -1
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +15 -0
- package/dist/src/apiTypes.js +10 -0
- package/dist/src/apiTypes.js.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/specification/v2/controls/FilterBar.d.ts +12 -6
- package/dist/src/specification/v2/controls/FormAction.d.ts +4 -20
- package/dist/src/specification/v2/controls/FormAction.js +0 -17
- package/dist/src/specification/v2/controls/FormAction.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +2 -5
- package/dist/src/specification/v2/controls/ObjectPageHeader.js +0 -5
- package/dist/src/specification/v2/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.d.ts +4 -4
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +3 -2
- package/dist/src/specification/v2/controls/Table.d.ts +3 -15
- package/dist/src/specification/v2/controls/Table.js +0 -15
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- package/dist/src/specification/v2/controls/index.js +0 -2
- package/dist/src/specification/v2/controls/index.js.map +1 -1
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
- package/dist/src/specification/v4/controls/Table.d.ts +1 -0
- package/dist/src/sync/common/generate/index.d.ts +1 -0
- package/dist/src/sync/common/generate/index.js +1 -0
- package/dist/src/sync/common/generate/index.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.js +21 -20
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +66 -0
- package/dist/src/sync/common/generate/utils.js +205 -0
- package/dist/src/sync/common/generate/utils.js.map +1 -0
- package/dist/src/sync/common/importProject.js +10 -10
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +2 -29
- package/dist/src/sync/common/utils.js +24 -122
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +6 -3
- package/dist/src/sync/v2/export/controls/FilterBar.js +24 -11
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +8 -7
- package/dist/src/sync/v2/export/controls/FormAction.js +15 -53
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +5 -4
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.js +3 -2
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +6 -3
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +8 -0
- package/dist/src/sync/v2/generate/listReport.js +18 -3
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +19 -14
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.js +3 -3
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.js +1 -1
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.js +2 -2
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +29 -29
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/export/export.js +18 -14
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +1 -0
- package/dist/src/sync/v4/generate/listReport.d.ts +2 -1
- package/dist/src/sync/v4/generate/listReport.js +47 -1
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +102 -52
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js +2 -2
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts +0 -3
- package/dist/src/sync/v4/utils/StableIdHelper.js +9 -11
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +1 -8
- package/dist/src/sync/v4/utils/utils.js +28 -54
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +20 -14
|
@@ -17,12 +17,13 @@ function handleActionRecord(appSchema, entityType, actions, lineItemPath, lineIt
|
|
|
17
17
|
if (lineItemRecord.Determining !== true) {
|
|
18
18
|
//no footer bar -> toolbar action
|
|
19
19
|
const actionDefinitionName = lineItemId === 'LineItems' ? 'ToolBarAction' : 'ObjectPageToolBarAction';
|
|
20
|
-
const actionDefinition = `${actionDefinitionName}<${lineItemRecord.Action}
|
|
20
|
+
const actionDefinition = common_1.prepareRef(`${actionDefinitionName}<${lineItemRecord.Action}>`);
|
|
21
21
|
const description = utils_1.getDatafieldDescription(lineItemRecord, entityType);
|
|
22
22
|
actions['properties'][`DataFieldForAction::${lineItemRecord.Action}`] = {
|
|
23
23
|
$ref: utils_1.DEFINITION_LINK_PREFIX + actionDefinition,
|
|
24
24
|
description,
|
|
25
|
-
propertyIndex: recordIndex
|
|
25
|
+
propertyIndex: recordIndex,
|
|
26
|
+
annotationType: lineItemRecord.$Type
|
|
26
27
|
};
|
|
27
28
|
const actionId = lineItemId === 'LineItems' ? 'ToolBarAction' : 'ObjectPageToolBarAction';
|
|
28
29
|
appSchema['definitions'][actionDefinition] = JSON.parse(JSON.stringify(appSchema['definitions'][actionId]));
|
|
@@ -30,44 +31,30 @@ function handleActionRecord(appSchema, entityType, actions, lineItemPath, lineIt
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
exports.handleActionRecord = handleActionRecord;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
selectionFieldsDefinition.additionalProperties = false;
|
|
42
|
-
selectionFieldsDefinition.properties = {};
|
|
43
|
-
selectionFieldsDefinition.annotationPath = utils_1.createAnnotationPath(entityType.fullyQualifiedName, "com.sap.vocabularies.UI.v1.SelectionFields" /* SelectionFields */);
|
|
44
|
-
if (!selectionFieldsAnnotation) {
|
|
45
|
-
return;
|
|
34
|
+
function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityType, i, oDataServiceAVT) {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
const lineItemId = lineItem['lineItemId'];
|
|
37
|
+
const lineItemRecord = lineItem['lineItemRecord'];
|
|
38
|
+
const lineItemPath = lineItem['lineItemPath'];
|
|
39
|
+
if (lineItemRecord['Target'] && lineItemRecord['Target']['value']) {
|
|
40
|
+
const regex = `@${utils_1.findAlias(common_1.UIVOCABULARY, oDataServiceAVT)}.`;
|
|
41
|
+
lineItemRecord['Target']['value'] = lineItemRecord['Target']['value'].replace(regex, '@');
|
|
46
42
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
propertyIndex: i
|
|
43
|
+
const schemaKey = StableIdHelper_1.getStableIdPartFromDataField(lineItemRecord);
|
|
44
|
+
if (schemaKey) {
|
|
45
|
+
appSchema['definitions'][lineItemId]['properties'][schemaKey] = {
|
|
46
|
+
$ref: utils_1.DEFINITION_LINK_PREFIX + columnDefinitionName,
|
|
47
|
+
description: utils_1.getDatafieldDescription(lineItemRecord, entityType),
|
|
48
|
+
// Custom property in schema - for object properties ordering purpose
|
|
49
|
+
propertyIndex: i,
|
|
50
|
+
annotationPath: `${lineItemPath}/${i}`,
|
|
51
|
+
annotationType: lineItemRecord === null || lineItemRecord === void 0 ? void 0 : lineItemRecord.$Type
|
|
57
52
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
annotationPath: `${selectionFieldsDefinition.annotationPath}/${i}`,
|
|
63
|
-
isViewNode: true,
|
|
64
|
-
additionalProperties: false
|
|
65
|
-
};
|
|
66
|
-
i++;
|
|
67
|
-
});
|
|
68
|
-
return;
|
|
53
|
+
if (lineItemRecord.$Type === 'com.sap.vocabularies.UI.v1.DataField') {
|
|
54
|
+
appSchema['definitions'][lineItemId]['properties'][schemaKey].dataType = (_b = (_a = lineItemRecord['Value']) === null || _a === void 0 ? void 0 : _a.$target) === null || _b === void 0 ? void 0 : _b.type.replace('Edm.', '');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
69
57
|
}
|
|
70
|
-
exports.addSelectionFields = addSelectionFields;
|
|
71
58
|
/**
|
|
72
59
|
* Adds the line item definition, columns and actions to the app schema (for the list report or an object page section comprising a table)
|
|
73
60
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -80,33 +67,20 @@ exports.addSelectionFields = addSelectionFields;
|
|
|
80
67
|
* in case of LR or ALP no ID is passed, 'LineItems' is taken then.
|
|
81
68
|
*/
|
|
82
69
|
function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, columnDefinitionName, lineItemId) {
|
|
83
|
-
let schemaKey;
|
|
84
70
|
appSchema['definitions'][columnDefinitionName] = JSON.parse(JSON.stringify(appSchema['definitions']['GenericColumns']['additionalProperties'].anyOf[0]));
|
|
85
71
|
// Add the correct lineItem definition
|
|
86
72
|
lineItemId = lineItemId || 'LineItems';
|
|
87
|
-
const { actions, lineItemPath } =
|
|
73
|
+
const { actions, lineItemPath } = common_1.addCommonLineItemDefinitions(appSchema, lineItemAnnotation, entityType, lineItemId);
|
|
88
74
|
if (lineItemAnnotation) {
|
|
89
|
-
const regex = '@' + utils_1.findAlias(common_1.UIVOCABULARY, oDataServiceAVT) + '.';
|
|
90
75
|
let i = 0;
|
|
91
76
|
lineItemAnnotation.forEach((lineItemRecord) => {
|
|
92
|
-
if (lineItemRecord.$Type ===
|
|
77
|
+
if (lineItemRecord.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */ &&
|
|
93
78
|
(lineItemRecord.Inline !== true || lineItemRecord.Determining === true)) {
|
|
94
79
|
handleActionRecord(appSchema, entityType, actions, lineItemPath, lineItemRecord, lineItemId, i);
|
|
95
80
|
}
|
|
96
81
|
else {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
schemaKey = StableIdHelper_1.getStableIdPartFromDataField(lineItemRecord);
|
|
101
|
-
if (schemaKey) {
|
|
102
|
-
appSchema['definitions'][lineItemId]['properties'][schemaKey] = {
|
|
103
|
-
$ref: utils_1.DEFINITION_LINK_PREFIX + columnDefinitionName,
|
|
104
|
-
description: utils_1.getDatafieldDescription(lineItemRecord, entityType),
|
|
105
|
-
// Custom property in schema - for object properties ordering purpose
|
|
106
|
-
propertyIndex: i,
|
|
107
|
-
annotationPath: lineItemPath + '/' + i
|
|
108
|
-
};
|
|
109
|
-
}
|
|
82
|
+
const lineItem = { lineItemRecord: lineItemRecord, lineItemId: lineItemId, lineItemPath: lineItemPath };
|
|
83
|
+
handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityType, i, oDataServiceAVT);
|
|
110
84
|
}
|
|
111
85
|
i++;
|
|
112
86
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;AAAA,8CAAgG;AAChG,qDAAgE;AAUhE,yCAAsF;AAEtF;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAC9B,SAAiB,EACjB,UAAsB,EACtB,OAAe,EACf,YAAoB,EACpB,cAA+C,EAC/C,UAAkB,EAClB,WAAmB;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vD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,CAAC,sBAAsB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAC9F,CAAC;IAEF,sCAAsC;IACtC,UAAU,GAAG,UAAU,IAAI,WAAW,CAAC;IAEvC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,qCAA4B,CAC1D,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,UAAU,CACb,CAAC;IAEF,IAAI,kBAAkB,EAAE;QACpB,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,kBAAkB,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;YAC1C,IACI,cAAc,CAAC,KAAK,6EAAyC;gBAC7D,CAAC,cAAc,CAAC,MAAM,KAAK,IAAI,IAAI,cAAc,CAAC,WAAW,KAAK,IAAI,CAAC,EACzE;gBACE,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;aACnG;iBAAM;gBACH,MAAM,QAAQ,GAAG,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;gBACxG,oBAAoB,CAAC,QAAQ,EAAE,SAAS,EAAE,oBAAoB,EAAE,UAAU,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC;aACnG;YACD,CAAC,EAAE,CAAC;QACR,CAAC,CAAC,CAAC;KACN;AACL,CAAC;AArCD,4CAqCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.96.0",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
"v4": "dist/specification/v4/index-min.js"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=12.
|
|
16
|
+
"node": ">=12.22.5",
|
|
17
17
|
"yarn": ">=1.22.5"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"clean": "rimraf ./dist ./schemas",
|
|
21
21
|
"build": "yarn run clean && tsc --project ./tsconfig.build.json && yarn run create-json-schemas && yarn copy-json-schemas && webpack --color --config webpack.prod.js && yarn copy-templates && yarn run generate-html-prod && rimraf ../schemas",
|
|
22
|
+
"build:dev": "yarn run clean && tsc --project ./tsconfig.build.json && yarn run create-json-schemas && yarn copy-json-schemas && webpack --color --config webpack.prod.js && yarn copy-templates",
|
|
22
23
|
"watch": "yarn run clean && tsc --project ./tsconfig.build.json && yarn run create-json-schemas && yarn copy-json-schemas && yarn copy-templates && webpack --color --config webpack.dev.js",
|
|
23
24
|
"watch-docu": "yarn run generate-html-dev",
|
|
24
25
|
"create-json-schemas": "node dist/scripts/to-json-schema.js",
|
|
@@ -39,30 +40,41 @@
|
|
|
39
40
|
"htmlV4": "node dist/scripts/extractDocu.js --version=v4 --format=html",
|
|
40
41
|
"generate-html-prod": "yarn run htmlV2 && yarn run htmlV4 && webpack --color --config webpack.docu.prod.js ",
|
|
41
42
|
"generate-html-dev": "yarn run htmlV2 && yarn run htmlV4 && webpack --color --config webpack.docu.dev.js"
|
|
42
|
-
|
|
43
43
|
},
|
|
44
44
|
"publisher": "SAPSE",
|
|
45
45
|
"license": "SEE LICENSE IN LICENSE",
|
|
46
46
|
"devDependencies": {
|
|
47
|
+
"@sap-ux/annotation-converter": "0.3.39",
|
|
48
|
+
"@sap-ux/edmx-parser": "0.3.39",
|
|
49
|
+
"@sap-ux/vocabularies-types": "0.3.39",
|
|
47
50
|
"@sap/edm-converters": "1.0.40",
|
|
51
|
+
"@sapui5/ts-types": "1.90.9",
|
|
48
52
|
"@types/d3": "7.0.0",
|
|
49
53
|
"@types/jest": "26.0.23",
|
|
50
54
|
"@types/jquery": "3.5.6",
|
|
51
55
|
"@types/sax": "1.2.1",
|
|
52
56
|
"@typescript-eslint/eslint-plugin": "4.14.1",
|
|
53
57
|
"@typescript-eslint/parser": "4.14.1",
|
|
58
|
+
"@ui5/flexibility-utils": "0.1.3",
|
|
59
|
+
"ajv": "6.12.6",
|
|
54
60
|
"cpy-cli": "3.1.1",
|
|
55
61
|
"d3": "7.0.1",
|
|
62
|
+
"deepmerge": "4.2.2",
|
|
63
|
+
"ejs": "3.1.6",
|
|
56
64
|
"eslint": "7.18.0",
|
|
57
65
|
"eslint-formatter-multiple": "1.0.0",
|
|
58
66
|
"eslint-plugin-prettier": "3.3.1",
|
|
59
67
|
"excel4node": "1.7.2",
|
|
60
68
|
"http-server": "13.0.1",
|
|
69
|
+
"i18next": "20.3.1",
|
|
61
70
|
"jest": "26.6.3",
|
|
62
71
|
"jest-file-snapshot": "0.5.0",
|
|
63
72
|
"jest-sonar-reporter": "2.0.0",
|
|
64
73
|
"jquery": "3.6.0",
|
|
74
|
+
"lodash.unset": "4.5.2",
|
|
75
|
+
"path": "0.12.7",
|
|
65
76
|
"prettier": "1.19.1",
|
|
77
|
+
"reflect-metadata": "0.1.13",
|
|
66
78
|
"rimraf": "3.0.2",
|
|
67
79
|
"sax": "1.2.4",
|
|
68
80
|
"source-map-loader": "1.0.0",
|
|
@@ -74,17 +86,6 @@
|
|
|
74
86
|
"typescript": "3.8.3",
|
|
75
87
|
"typescript-json-schema": "0.48.0",
|
|
76
88
|
"webpack-cli": "4.7.2",
|
|
77
|
-
"@sap-ux/annotation-converter": "0.3.39",
|
|
78
|
-
"@sap-ux/edmx-parser": "0.3.39",
|
|
79
|
-
"@sap-ux/vocabularies-types": "0.3.39",
|
|
80
|
-
"@ui5/flexibility-utils": "0.1.3",
|
|
81
|
-
"ajv": "6.12.6",
|
|
82
|
-
"deepmerge": "4.2.2",
|
|
83
|
-
"ejs": "3.1.6",
|
|
84
|
-
"i18next": "20.3.1",
|
|
85
|
-
"lodash.unset": "4.5.2",
|
|
86
|
-
"path": "0.12.7",
|
|
87
|
-
"reflect-metadata": "0.1.13",
|
|
88
89
|
"xml-js": "1.6.11"
|
|
89
90
|
},
|
|
90
91
|
"husky": {
|
|
@@ -114,5 +115,10 @@
|
|
|
114
115
|
"path": "reports/lint/eslint.checkstyle.xml"
|
|
115
116
|
}
|
|
116
117
|
]
|
|
118
|
+
},
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"@sap-ux/fe-fpm-writer": "0.2.1",
|
|
121
|
+
"@types/mem-fs-editor": "7.0.1",
|
|
122
|
+
"mem-fs-editor": "9.3.0"
|
|
117
123
|
}
|
|
118
124
|
}
|