@ui5/task-adaptation 1.0.16 → 1.0.17

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 CHANGED
@@ -2,7 +2,10 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
 
5
- A list of unreleased changes can be found [here](https://github.com/SAP/ui5-task-adaptation/compare/v1.0.16...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-task-adaptation/compare/v1.0.17...HEAD).
6
+
7
+ <a name="v1.0.17"></a>
8
+ ## [v1.0.17] - 2023-08-16
6
9
 
7
10
  <a name="v1.0.16"></a>
8
11
  ## [v1.0.16] - 2023-08-15
@@ -46,6 +49,7 @@ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-task
46
49
  <a name="v1.0.0"></a>
47
50
  ## v1.0.0 - 2020-12-09
48
51
 
52
+ [v1.0.17]: https://github.com/SAP/ui5-task-adaptation/compare/v1.0.16...v1.0.17
49
53
  [v1.0.16]: https://github.com/SAP/ui5-task-adaptation/compare/v1.0.11...v1.0.16
50
54
  [v1.0.11]: https://github.com/SAP/ui5-task-adaptation/compare/v1.0.10...v1.0.11
51
55
  [v1.0.10]: https://github.com/SAP/ui5-task-adaptation/compare/v1.0.9...v1.0.10
@@ -213,7 +213,7 @@ class AnnotationManager {
213
213
  }
214
214
  }
215
215
  };
216
- const json = util_1.inspect(obj, true, 100, false);
216
+ const json = (0, util_1.inspect)(obj, true, 100, false);
217
217
  const pathParts = path.split("/");
218
218
  if (path.endsWith("/")) {
219
219
  pathParts.pop();
@@ -238,7 +238,7 @@ class AnnotationManager {
238
238
  const paths = new Set();
239
239
  if (jsons.length > 1) {
240
240
  for (let j = 1; j < jsons.length; j++) {
241
- const diffResult = json_diff_1.diff(jsons[0], jsons[j], { full: false, sort: false });
241
+ const diffResult = (0, json_diff_1.diff)(jsons[0], jsons[j], { full: false, sort: false });
242
242
  // if diffResult is undefined -> jsons are the same
243
243
  if (diffResult) {
244
244
  for (const path of this.traverseDiff(diffResult)) {
@@ -11,7 +11,7 @@ const MANIFEST_APP_VARIANT = "manifest.appdescr_variant";
11
11
  class AppVariantManager {
12
12
  static async process(appVariantResources, projectNamespace, taskUtil) {
13
13
  const appVariantInfo = await this.getAppVariantInfo(appVariantResources);
14
- const i18nBundleName = commonUtil_1.replaceDots(appVariantInfo.id);
14
+ const i18nBundleName = (0, commonUtil_1.replaceDots)(appVariantInfo.id);
15
15
  for (const resource of appVariantResources) {
16
16
  this.writeI18nToModule(resource, projectNamespace, i18nBundleName);
17
17
  this.omitFiles(resource, taskUtil);
@@ -16,7 +16,7 @@ class BaseAppManager {
16
16
  await processor.updateLandscapeSpecificContent(content, renamedBaseAppFiles);
17
17
  this.fillAppVariantIdHierarchy(processor, id, version, content);
18
18
  this.updateAdaptationProperties(content);
19
- const i18nBundleName = commonUtil_1.replaceDots(appVariantInfo.id);
19
+ const i18nBundleName = (0, commonUtil_1.replaceDots)(appVariantInfo.id);
20
20
  await this.applyDescriptorChanges(content, appVariantInfo.manifest, i18nBundleName);
21
21
  renamedBaseAppFiles.set(filepath, JSON.stringify(content));
22
22
  return this.writeToWorkspace(renamedBaseAppFiles, options.projectNamespace);
package/dist/bundle.js CHANGED
@@ -15,14 +15,12 @@ function _interopNamespace(e) {
15
15
  var d = Object.getOwnPropertyDescriptor(e, k);
16
16
  Object.defineProperty(n, k, d.get ? d : {
17
17
  enumerable: true,
18
- get: function () {
19
- return e[k];
20
- }
18
+ get: function () { return e[k]; }
21
19
  });
22
20
  }
23
21
  });
24
22
  }
25
- n['default'] = e;
23
+ n["default"] = e;
26
24
  return Object.freeze(n);
27
25
  }
28
26
 
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ const processor_1 = require("./processors/processor");
10
10
  module.exports = ({ workspace, options, taskUtil }) => {
11
11
  dotenv.config();
12
12
  async function process(workspace, taskUtil) {
13
- const processor = processor_1.determineProcessor(options.configuration);
13
+ const processor = (0, processor_1.determineProcessor)(options.configuration);
14
14
  const appVariantResources = await appVariantManager_1.default.getAppVariantResources(workspace);
15
15
  const appVariantInfo = await appVariantManager_1.default.process(appVariantResources, options.projectNamespace, taskUtil);
16
16
  const baseAppFiles = await processor.getBaseAppFiles(appVariantInfo.reference);
@@ -94,6 +94,6 @@ export interface IMetadata {
94
94
  changedOn: string;
95
95
  id?: string;
96
96
  }
97
- export declare type KeyedMap<T, K extends keyof T, V> = {
97
+ export type KeyedMap<T, K extends keyof T, V> = {
98
98
  [k in K]: V;
99
99
  };
@@ -12,7 +12,7 @@ class AbapProcessor {
12
12
  return this.cacheManager.getFiles(() => this.abapRepoManager.getMetadata(baseAppId), () => this.abapRepoManager.downloadBaseAppFiles());
13
13
  }
14
14
  validateConfiguration() {
15
- commonUtil_1.validateObject(this.configuration, ["destination", "appName"], "should be specified in ui5.yaml configuration");
15
+ (0, commonUtil_1.validateObject)(this.configuration, ["destination", "appName"], "should be specified in ui5.yaml configuration");
16
16
  }
17
17
  async updateLandscapeSpecificContent(renamedBaseAppManifest, baseAppFiles) {
18
18
  const { languages } = this.configuration;
@@ -11,7 +11,7 @@ class CFProcessor {
11
11
  return this.cacheManager.getFiles(() => html5RepoManager_1.default.getMetadata(this.configuration), () => html5RepoManager_1.default.getBaseAppFiles(this.configuration));
12
12
  }
13
13
  validateConfiguration() {
14
- commonUtil_1.validateObject(this.configuration, ["appHostId", "appName", "appVersion"], "should be specified in ui5.yaml configuration");
14
+ (0, commonUtil_1.validateObject)(this.configuration, ["appHostId", "appName", "appVersion"], "should be specified in ui5.yaml configuration");
15
15
  }
16
16
  async updateLandscapeSpecificContent(renamedBaseAppManifest) {
17
17
  this.updateCloudPlatform(renamedBaseAppManifest);
@@ -50,7 +50,7 @@ class AbapRepoManager {
50
50
  const data = await requestUtil_1.default.get(uri, REQUEST_OPTIONS_XML, auth);
51
51
  if (data?.d?.ZipArchive.length > 0) {
52
52
  const buffer = Buffer.from(data.d.ZipArchive, "base64");
53
- return zipUtil_1.unzipZipEntries(buffer);
53
+ return (0, zipUtil_1.unzipZipEntries)(buffer);
54
54
  }
55
55
  throw new Error(`App '${appName}' from destination '${destination}' doesn't contain files`);
56
56
  }
@@ -69,7 +69,7 @@ class HTML5RepoManager {
69
69
  const { appHostId, appName, appVersion } = options;
70
70
  const uri = `${html5RepoBaseUri}/applications/content/${appName}-${appVersion}/`;
71
71
  const zip = await this.download(token, appHostId, uri);
72
- return zipUtil_1.unzipZipEntries(zip);
72
+ return (0, zipUtil_1.unzipZipEntries)(zip);
73
73
  }
74
74
  static async download(token, appHostId, uri) {
75
75
  if (!token) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/task-adaptation",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Custom task for ui5-builder which allows building UI5 Flexibility Adaptation Projects for SAP BTP, Cloud Foundry environment",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "version": "git-chglog --next-tag v$npm_package_version -o CHANGELOG.md && git add CHANGELOG.md",
14
14
  "postversion": "git push --follow-tags",
15
15
  "release-note": "git-chglog -c .chglog/release-config.yml v$npm_package_version",
16
- "rollup": "ts-node scripts/rollup.ts",
16
+ "rollup": "npx ts-node scripts/rollup.ts",
17
17
  "build": "npm run rollup && tsc -p ./"
18
18
  },
19
19
  "repository": {
@@ -62,14 +62,14 @@
62
62
  "@types/mocha": "^9.1.0",
63
63
  "@types/rimraf": "^3.0.2",
64
64
  "@types/semver": "^7.3.8",
65
- "@types/sinon": "^10.0.2",
65
+ "@types/sinon": "^10.0.16",
66
66
  "chai": "^4.3.4",
67
67
  "chai-as-promised": "^7.1.1",
68
68
  "chalk": "^4.1.2",
69
69
  "mocha": "^9.2.0",
70
70
  "mock-require": "^3.0.3",
71
71
  "nyc": "^15.1.0",
72
- "sinon": "^11.1.2",
72
+ "sinon": "^15.2.0",
73
73
  "source-map-support": "^0.5.19",
74
74
  "ts-node": "^10.4.0",
75
75
  "typescript": "^4.3.5"