@sap-ux/fiori-freestyle-writer 0.15.2 → 0.15.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-freestyle-writer",
3
3
  "description": "SAP Fiori freestyle application writer",
4
- "version": "0.15.2",
4
+ "version": "0.15.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -7,7 +7,7 @@ import View from "sap/ui/core/mvc/View";
7
7
  import History from "sap/ui/core/routing/History";
8
8
  import Router from "sap/ui/core/routing/Router";
9
9
  import AppComponent from "../Component";
10
- import { currencyValue } from "../model/formatter";
10
+ import { numberUnit } from "../model/formatter";
11
11
 
12
12
  /**
13
13
  * @namespace <%- app.id %>
@@ -15,7 +15,7 @@ import { currencyValue } from "../model/formatter";
15
15
  export default class BaseController extends Controller {
16
16
 
17
17
  public readonly formatter = {
18
- currencyValue
18
+ numberUnit
19
19
  };
20
20
 
21
21
  /**
@@ -4,7 +4,7 @@
4
4
  * @param value value to be formatted
5
5
  * @returns formatted currency value with 2 digits
6
6
  */
7
- export function currencyValue(value: string): string {
7
+ export function numberUnit(value: string): string {
8
8
  if (!value) {
9
9
  return "";
10
10
  }