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 +3 -0
- package/error.ts +7 -14
- package/modules/lib/curl.ts +1 -1
- package/modules/lib/image.tsx +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
|
package/modules/lib/curl.ts
CHANGED
package/modules/lib/image.tsx
CHANGED
|
@@ -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
|
|
194
|
+
LibProgress.show("Mohon tunggu, Sedang mengunggah foto")
|
|
195
195
|
}
|
|
196
196
|
var wantedMaxSize = options?.maxDimension || 1280
|
|
197
197
|
var rawheight = t.height
|