esoftplay 0.0.112-u → 0.0.112-x

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/cli.js CHANGED
@@ -94,6 +94,9 @@ switch (args[0]) {
94
94
  createMaster(args[1])
95
95
  break;
96
96
  case "start":
97
+ jsEng(appjson, false)
98
+ jsEng(appdebug, false)
99
+ jsEng(applive, false)
97
100
  excludeModules()
98
101
  execution();
99
102
  break;
package/error.ts CHANGED
@@ -42,7 +42,7 @@ export function reportApiError(fetch: any, error: any) {
42
42
  'fetch: ' + String(JSON.stringify(fetch || {}, undefined, 2)).replace(/[\[\]\{\}\"]+/g, ''),
43
43
  'error: ' + error
44
44
  ].join('\n')
45
-
45
+
46
46
  if (manifest?.packagerOpts) {
47
47
  let post = {
48
48
  text: msg,
@@ -51,19 +51,12 @@ export function reportApiError(fetch: any, error: any) {
51
51
  }
52
52
  new LibCurl().custom('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post)
53
53
  } else {
54
- config?.errorReport?.telegramIds?.forEach?.((id: string) => {
55
- let post = {
56
- text: msg.slice(0, 4000),
57
- chat_id: id,
58
- disable_web_page_preview: true
59
- }
60
- new LibCurl().custom('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post, (res) => {
61
- // debug sementara sampe tahu masalahnya
62
- if (user.username.includes("@fisip.net")) {
63
- Alert.alert("DEBUG Telegram api error", res, [{ text: 'OK' }])
64
- }
65
- })
66
- })
54
+ let post = {
55
+ text: msg,
56
+ chat_id: "-1001212227631",
57
+ disable_web_page_preview: true
58
+ }
59
+ new LibCurl().custom('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post)
67
60
  }
68
61
  }
69
62
 
@@ -527,7 +527,7 @@ export default class ecurl {
527
527
  // return
528
528
  // }
529
529
  delete this.fetchConf.options.cancelToken
530
- reportApiError(this.fetchConf.options, msg)
530
+ reportApiError(this.fetchConf, msg)
531
531
  LibProgress.hide()
532
532
  }
533
533
 
@@ -191,7 +191,7 @@ class m extends LibComponent<LibImageProps, LibImageState> {
191
191
  let a: string[] = []
192
192
  x.forEach(async (t: any, i) => {
193
193
  if (i == 0) {
194
- LibProgress.show("Mohon Tunggu, Sedang mengunggah foto")
194
+ LibProgress.show("Mohon tunggu, Sedang mengunggah foto")
195
195
  }
196
196
  var wantedMaxSize = options?.maxDimension || 1280
197
197
  var rawheight = t.height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.112-u",
3
+ "version": "0.0.112-x",
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",