esoftplay 0.0.136-t → 0.0.136-v

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/bin/router.js CHANGED
@@ -173,8 +173,10 @@ function createIndex() {
173
173
  AllRoutes.forEach((nav) => {
174
174
  const [module, task] = nav.split('/')
175
175
  const comp = ucword(module) + ucword(task)
176
- importer.push(`import { ${comp} } from ${'"esoftplay/cache/' + module + '/' + task + '/import"'} `)
177
- importer.push(`import { * as ${comp}Property } from ${'"esoftplay/cache/' + module + '/' + task + '/import"'} `)
176
+ if (!task.includes('.debug') && !task.includes('.live')) {
177
+ importer.push(`import { ${comp} } from ${'"esoftplay/cache/' + module + '/' + task + '/import"'} `)
178
+ importer.push(`import * as ${comp}Property from ${'"esoftplay/cache/' + module + '/' + task + '/import"'} `)
179
+ }
178
180
  })
179
181
  var PreText = ''
180
182
  var Text = `
package/moment.ts CHANGED
@@ -67,6 +67,9 @@ export default function moment(date?: string | Date | any) {
67
67
  },
68
68
  /* last chain */
69
69
  fromNow: () => {
70
+ const currentLang = esp.modProp('lib/locale').default.state().get()
71
+ const localeId = langData?.filter?.((x) => x.name == currentLang)?.[0]?.code
72
+ moment().locale(localeId)
70
73
  const out = dayjs(resetTimeOffset(_date)).fromNow()
71
74
  return out
72
75
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.136-t",
3
+ "version": "0.0.136-v",
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",