esoftplay 0.0.124-c → 0.0.124-e
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/modules/lib/curl.ts +2 -0
- package/moment.ts +3 -2
- package/package.json +1 -1
package/modules/lib/curl.ts
CHANGED
|
@@ -288,6 +288,7 @@ export default class m {
|
|
|
288
288
|
esp.log(this.url + this.uri, options)
|
|
289
289
|
this.fetchConf = { url: this.url + this.uri, options: options }
|
|
290
290
|
this.initTimeout(this.timeout);
|
|
291
|
+
//api_init_time
|
|
291
292
|
fetch(this.url + this.uri, options).then(async (res) => {
|
|
292
293
|
this.cancelTimeout()
|
|
293
294
|
var resText = await res.text()
|
|
@@ -301,6 +302,7 @@ export default class m {
|
|
|
301
302
|
LibProgress.hide()
|
|
302
303
|
this.onError(resText)
|
|
303
304
|
}
|
|
305
|
+
//api_logger
|
|
304
306
|
}).catch((e) => {
|
|
305
307
|
this.cancelTimeout()
|
|
306
308
|
LibProgress.hide()
|
package/moment.ts
CHANGED
|
@@ -57,8 +57,9 @@ export default function moment(date?: string | Date | any) {
|
|
|
57
57
|
const out = dayjs(normalizeTimeOffset(_date)).fromNow()
|
|
58
58
|
return out
|
|
59
59
|
},
|
|
60
|
-
format: (custom: string) => {
|
|
61
|
-
const
|
|
60
|
+
format: (custom: string, ignoreTimezone?: boolean) => {
|
|
61
|
+
const _d = ignoreTimezone? _date : normalizeTimeOffset(_date)
|
|
62
|
+
const out = dayjs(_d).format(custom)
|
|
62
63
|
return out
|
|
63
64
|
},
|
|
64
65
|
toDate: () => {
|