@sap-ux/preview-middleware 0.20.70 → 0.20.71

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.
@@ -26,7 +26,7 @@ sap.ui.define(["sap/ui/core/Fragment", "../i18n", "./controllers/AddFragment.con
26
26
  }(DialogNames || {});
27
27
  const OPEN_DIALOG_STATUS_CHANGED = 'OPEN_DIALOG_STATUS_CHANGED';
28
28
  class DialogFactory {
29
- static eventTarget = new EventTarget();
29
+ static eventTarget = (() => new EventTarget())();
30
30
  static isDialogOpen = false;
31
31
  /**
32
32
  * Only one dialog can be open at a time. This flag indicates if a new dialog can be opened.
@@ -31,8 +31,8 @@ sap.ui.define([
31
31
  get quickActionSteps() {
32
32
  return 1;
33
33
  }
34
- kind = NESTED_QUICK_ACTION_KIND;
35
- type = ADD_NEW_ANNOTATION_FILE;
34
+ kind = ((() => NESTED_QUICK_ACTION_KIND)());
35
+ type = ((() => ADD_NEW_ANNOTATION_FILE)());
36
36
  forceRefreshAfterExecution = true;
37
37
  isApplicable = true;
38
38
  get id() {
@@ -27,11 +27,11 @@ sap.ui.define(["sap/ui/core/mvc/XMLView", "sap/ui/core/ComponentContainer", "../
27
27
  * Quick Action provider for SAP Fiori Elements V2 applications.
28
28
  */
29
29
  class FEV2QuickActionRegistry extends QuickActionDefinitionRegistry {
30
- PAGE_NAME_MAP = {
30
+ PAGE_NAME_MAP = (() => ({
31
31
  [LIST_REPORT_TYPE]: 'listReport',
32
32
  [OBJECT_PAGE_TYPE]: 'objectPage',
33
33
  [ANALYTICAL_LIST_PAGE_TYPE]: 'analyticalListPage'
34
- };
34
+ }))();
35
35
  getDefinitions(context) {
36
36
  const activePages = this.getActivePageContent(context.controlIndex);
37
37
  const definitionGroups = [];
@@ -26,10 +26,10 @@ sap.ui.define(["../../../cpe/quick-actions/registry", "../common/add-controller-
26
26
  * Quick Action provider for SAP Fiori Elements V4 applications.
27
27
  */
28
28
  class FEV4QuickActionRegistry extends QuickActionDefinitionRegistry {
29
- PAGE_NAME_MAP = {
29
+ PAGE_NAME_MAP = (() => ({
30
30
  [LIST_REPORT_TYPE]: 'listReport',
31
31
  [OBJECT_PAGE_TYPE]: 'objectPage'
32
- };
32
+ }))();
33
33
  getDefinitions(context) {
34
34
  const activePages = this.getActivePageContent(context.controlIndex);
35
35
  const definitionGroups = [];
@@ -44,8 +44,8 @@ sap.ui.define([
44
44
  pendingChanges = [];
45
45
  changedFiles = {};
46
46
  eventStack = [];
47
- pendingConfigChangeMap = new Map();
48
- configPropertyControlIdMap = new Map();
47
+ pendingConfigChangeMap = ((() => new Map())());
48
+ configPropertyControlIdMap = ((() => new Map())());
49
49
  constructor(options) {
50
50
  super();
51
51
  this.options = options;
@@ -57,8 +57,8 @@ sap.ui.define([
57
57
  }
58
58
  }
59
59
  class SelectionService {
60
- appliedChangeCache = new Map();
61
- activeChangeHandlers = new Set();
60
+ appliedChangeCache = ((() => new Map())());
61
+ activeChangeHandlers = ((() => new Set())());
62
62
  constructor(rta, changeService) {
63
63
  this.rta = rta;
64
64
  this.changeService = changeService;
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%3Apreview-middleware"
11
11
  },
12
- "version": "0.20.70",
12
+ "version": "0.20.71",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -25,12 +25,12 @@
25
25
  "ejs": "3.1.10",
26
26
  "mem-fs": "2.1.0",
27
27
  "mem-fs-editor": "9.4.0",
28
- "@sap-ux/adp-tooling": "0.15.7",
28
+ "@sap-ux/adp-tooling": "0.15.8",
29
29
  "@sap-ux/btp-utils": "1.1.0",
30
30
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.8",
31
31
  "@sap-ux/feature-toggle": "0.3.0",
32
32
  "@sap-ux/logger": "0.7.0",
33
- "@sap-ux/project-access": "1.30.7",
33
+ "@sap-ux/project-access": "1.30.8",
34
34
  "@sap-ux/system-access": "0.6.11"
35
35
  },
36
36
  "devDependencies": {
@@ -48,7 +48,7 @@
48
48
  "express": "4.21.2",
49
49
  "nock": "13.4.0",
50
50
  "npm-run-all2": "6.2.0",
51
- "supertest": "6.3.3",
51
+ "supertest": "7.1.4",
52
52
  "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.14.11",
53
53
  "@sap-ux/axios-extension": "1.22.4",
54
54
  "@sap-ux/i18n": "0.3.1",