esoftplay 0.0.225 → 0.0.227

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.
Binary file
package/bin/cli.js CHANGED
@@ -1421,7 +1421,7 @@ function build() {
1421
1421
  // also print to stdout for convenience
1422
1422
  const message = " ✅ Build Success by " + os.userInfo().username + '@' + os.hostname() + "\n" + allOutputString
1423
1423
  let tmId = "-1001429450501"
1424
- command("curl -d \"text=" + message + "&disable_web_page_preview=true&chat_id=" + tmId + "\" 'https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage'")
1424
+ command("curl -d \"text=" + encodeURIComponent(message) + "&disable_web_page_preview=true&chat_id=" + tmId + "\" 'https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage'")
1425
1425
  if (fs.existsSync('./build/post.js'))
1426
1426
  command('bun ./build/post.js')
1427
1427
  configAvailable(false)
package/esp.ts CHANGED
@@ -133,7 +133,7 @@ const esp = {
133
133
  }
134
134
  function sprintf(string: string, index: number): string {
135
135
  if (stringToBe[index] != undefined) {
136
- string = string.replace("%s", stringToBe[index])
136
+ string = string?.replace?.("%s", stringToBe[index])
137
137
  if (string?.includes?.("%s")) {
138
138
  return sprintf(string, index + 1)
139
139
  }
@@ -1,7 +1,7 @@
1
1
  // withHooks
2
2
  //noPage
3
3
  import esp from 'esoftplay/esp';
4
- import React, { useRef } from 'react';
4
+ import { useRef } from 'react';
5
5
  import { Image, ImageStyle, View } from 'react-native';
6
6
 
7
7
  export interface LibImage_shadowArgs {
@@ -10,6 +10,7 @@ export interface LibImage_shadowArgs {
10
10
  export interface LibImage_shadowProps {
11
11
  style: ImageStyle,
12
12
  source: any,
13
+ darkMode?: boolean,
13
14
  shadowRadius?: number,
14
15
  blurRadius?: number
15
16
  }
@@ -26,7 +27,7 @@ export default function m(props: LibImage_shadowProps): any {
26
27
  <View style={{ ...props.style, height: Number(height) + extra_height, width }} >
27
28
  <Image source={props.source} blurRadius={props.blurRadius || 8} style={{ height, width, ...props.style, marginTop: extra_height }} />
28
29
  <View style={{ position: 'absolute', bottom: -1, left: 0, right: 0, height: 0.55 * width, width }} >
29
- <LibPicture source={esp.assets('blur.png')} style={{ width: '100%', height: '100%' }} />
30
+ <LibPicture source={esp.assets(props.darkMode ? 'blur_dark.png' : 'blur.png')} style={{ width: '100%', height: '100%' }} />
30
31
  </View>
31
32
  <LibPicture source={props.source} style={{ height, width, ...props.style, position: 'absolute' }} />
32
33
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.225",
3
+ "version": "0.0.227",
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",