@dative-gpi/foundation-shared-services 0.0.87 → 0.0.89

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.
@@ -23,6 +23,7 @@ export const useAppTimeZone = () => {
23
23
  const offset = timeZone?.value?.offset.slice(3) ?? "";
24
24
  const matchData = offset.match(/([+-])(\d+)(?::(\d+))?/);
25
25
  if (matchData) {
26
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
27
  const [_, sign, hour, minute] = matchData;
27
28
  return parseInt(sign + "1") * ((hour ? parseInt(hour) : 0) * 60 + (minute ? parseInt(minute) : 0)) * 60 * 1000;
28
29
  }
@@ -41,6 +42,7 @@ export const useAppTimeZone = () => {
41
42
  }
42
43
  const matchData = offset.match(/([+-])(\d+)(?::(\d+))?/);
43
44
  if (matchData) {
45
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
44
46
  const [_, sign, hour, minute] = matchData;
45
47
  return `UTC ${sign}${hour.padStart(2, "0")}:${(minute ?? "").padStart(2, "0")}:00`;
46
48
  }
@@ -59,6 +61,7 @@ export const useAppTimeZone = () => {
59
61
  }
60
62
  const matchData = offset.match(/([+-])(\d+)(?::(\d+))?/);
61
63
  if (matchData) {
64
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
62
65
  const [_, sign, hour, minute] = matchData;
63
66
  return parseInt(sign + "1") * ((hour ? parseInt(hour) : 0) * 60 + (minute ? parseInt(minute) : 0)) * 60 * 1000;
64
67
  }
@@ -149,15 +152,15 @@ export const useAppTimeZone = () => {
149
152
  };
150
153
 
151
154
  const todayTimeFormat = (): string => {
152
- return `'${useTranslationsProvider().$tr("ui.time-zone.today-at", "Today at").replaceAll("'", "''")}' HH:mm:ss`;
155
+ return `'${useTranslationsProvider().$tr("ui.time-zone.today-at", "Today at").replace(/'/g, "''")}' HH:mm:ss`;
153
156
  }
154
157
 
155
158
  const yesterdayTimeFormat = (): string => {
156
- return `'${useTranslationsProvider().$tr("ui.time-zone.yesterday-at", "Yesterday at").replaceAll("'", "''")}' HH:mm:ss`;
159
+ return `'${useTranslationsProvider().$tr("ui.time-zone.yesterday-at", "Yesterday at").replace(/'/g, "''")}' HH:mm:ss`;
157
160
  }
158
161
 
159
162
  const overrideFormat = (date: Date, askedFormat: string): string => {
160
- let now = new Date();
163
+ const now = new Date();
161
164
  if (date.toDateString() === now.toDateString()) {
162
165
  return todayTimeFormat();
163
166
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-services",
3
3
  "sideEffects": false,
4
- "version": "0.0.87",
4
+ "version": "0.0.89",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -11,10 +11,10 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "@dative-gpi/bones-ui": "^0.0.73",
14
- "@dative-gpi/foundation-shared-domain": "0.0.87",
14
+ "@dative-gpi/foundation-shared-domain": "0.0.89",
15
15
  "@microsoft/signalr": "^8.0.0",
16
16
  "vue": "^3.4.23",
17
17
  "vue-router": "^4.2.5"
18
18
  },
19
- "gitHead": "ae864c1fac5a392f6fcc8e77be26fe1613eb1165"
19
+ "gitHead": "9bacb675fe5a6db96fbb13de6baeb94ac288fcff"
20
20
  }