esoftplay 0.0.269-beta6ae30d2 → 0.0.269-beta8d1f009

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/build.js CHANGED
@@ -218,7 +218,8 @@ if (fs.existsSync(packjson)) {
218
218
  }
219
219
  }`
220
220
 
221
- writeFileSyncWithLog(easjson, easconfg);
221
+ if (!fs.existsSync(easjson))
222
+ writeFileSyncWithLog(easjson, easconfg);
222
223
 
223
224
 
224
225
  const metroConfig = `// Learn more https://docs.expo.io/guides/customizing-metro
@@ -6,6 +6,7 @@ import { LibCrypt } from 'esoftplay/cache/lib/crypt/import';
6
6
  import { reportApiError } from "esoftplay/error";
7
7
  import { File } from 'expo-file-system';
8
8
 
9
+ //api_logger_import
9
10
 
10
11
  /** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/curl.md) untuk melihat dokumentasi*/
11
12
  export default class m {
@@ -386,7 +387,9 @@ export default class m {
386
387
  await this.setHeader();
387
388
  if (!upload)
388
389
  this.header["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8"
389
-
390
+ else
391
+ delete this.header["Content-Type"]
392
+
390
393
  let options: any = {
391
394
  method: !this.post ? "GET" : "POST",
392
395
  headers: this.header,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.269-beta6ae30d2",
3
+ "version": "0.0.269-beta8d1f009",
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",