esoftplay 0.0.173 → 0.0.174

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.
Files changed (2) hide show
  1. package/moment.ts +2 -2
  2. package/package.json +1 -1
package/moment.ts CHANGED
@@ -37,7 +37,7 @@ function parseGMTOffset(gmtString) {
37
37
  const match = gmtString.match(regex);
38
38
 
39
39
  if (!match) {
40
- throw new Error('Invalid GMT format');
40
+ return null
41
41
  }
42
42
 
43
43
  const sign = match[1] === '+' ? 1 : -1;
@@ -130,7 +130,7 @@ export default function moment(date?: string | Date | any) {
130
130
  const out = dayjs(_d).format(custom)
131
131
  return out
132
132
  },
133
- serverFormat: (custom: string, timezone: string) => {
133
+ serverFormat: (custom: string, timezone?: string) => {
134
134
  const currentLang = esp.modProp('lib/locale').default.state().get()
135
135
  const localeId = langData?.filter?.((x) => x.name == currentLang)?.[0]?.code
136
136
  moment().locale(localeId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.173",
3
+ "version": "0.0.174",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",