esoftplay 0.0.130-e → 0.0.130-f

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.
@@ -16,11 +16,11 @@ export default function m(defaultUrl?: string): void {
16
16
  url = url.replace((domain + uri), (domain + uri + 'deeplink/'))
17
17
  url = url.replace(/^[a-z]+\:\/\//g, protocol + "://")
18
18
  function removeLastDot(url: string) {
19
- if (url.substr(url.length - 1, 1) == '.') {
20
- url = url.substring(0, url.length - 1)
21
- return removeLastDot(url)
19
+ if (url.endsWith('.')) {
20
+ url = url.slice(0, -1);
21
+ return removeLastDot(url);
22
22
  }
23
- return url
23
+ return url;
24
24
  }
25
25
  new LibCurl().custom(removeLastDot(url), null,
26
26
  (res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.130-e",
3
+ "version": "0.0.130-f",
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",