esoftplay 0.0.115-e → 0.0.115-h
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 -2
- package/modules/lib/version.tsx +1 -3
- package/package.json +1 -1
package/modules/lib/curl.ts
CHANGED
|
@@ -268,7 +268,6 @@ export default class ecurl {
|
|
|
268
268
|
Pragma: "no-cache",
|
|
269
269
|
['Cache-Control']: "no-store",
|
|
270
270
|
mode: "cors",
|
|
271
|
-
_post: post
|
|
272
271
|
}
|
|
273
272
|
if (debug == 1)
|
|
274
273
|
esp.log(this.url + this.uri, options)
|
|
@@ -335,7 +334,6 @@ export default class ecurl {
|
|
|
335
334
|
["Cache-Control"]: 'no-cache, no-store, must-revalidate',
|
|
336
335
|
["Expires"]: 0,
|
|
337
336
|
mode: "cors",
|
|
338
|
-
_post: post
|
|
339
337
|
}
|
|
340
338
|
|
|
341
339
|
//api_logger
|
|
@@ -418,6 +416,8 @@ export default class ecurl {
|
|
|
418
416
|
delete this.fetchConf.options.Expires
|
|
419
417
|
delete this.fetchConf.options.mode
|
|
420
418
|
delete this.fetchConf.options["Cache-Control"]
|
|
419
|
+
delete this.fetchConf.options["Content-Type"]
|
|
420
|
+
delete this.fetchConf.options.token
|
|
421
421
|
reportApiError(this.fetchConf, msg)
|
|
422
422
|
LibProgress.hide()
|
|
423
423
|
}
|
package/modules/lib/version.tsx
CHANGED
|
@@ -40,21 +40,19 @@ export default class m extends LibComponent<LibVersionProps, LibVersionState> {
|
|
|
40
40
|
|
|
41
41
|
static onDone(res: any, msg: string): void {
|
|
42
42
|
const { title, version, android, ios } = res
|
|
43
|
-
console.log(res)
|
|
44
43
|
function isAvailableNewVersion(newVersion: string): boolean {
|
|
45
44
|
let oldVersion = m.appVersion()
|
|
46
45
|
return newVersion > oldVersion
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
if (isAvailableNewVersion(version)) {
|
|
50
|
-
console.log("IS AVAILABLE", version)
|
|
51
49
|
LibNavigation.backToRoot()
|
|
52
50
|
LibNavigation.replace("lib/version", { res, msg: msg == 'success' ? 'Update to a new version now' : msg })
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
}
|
|
56
54
|
static check(): void {
|
|
57
|
-
new LibCurl("public_version
|
|
55
|
+
new LibCurl("public_version", null, m.onDone)
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
render(): any {
|