payme-mini-app 0.1.12 → 0.1.13

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.
@@ -57,9 +57,9 @@ object JsonConvert {
57
57
  while (iterator.hasNext()) {
58
58
  val key = iterator.next() as String
59
59
  val value: Any = jsonObject.get(key)
60
- if (value is Float || value is Double) {
60
+ if (value is Float || value is Double || value is Number) {
61
61
  writableMap.putDouble(key, jsonObject.getDouble(key))
62
- } else if (value is Number) {
62
+ } else if (value is Int) {
63
63
  writableMap.putInt(key, jsonObject.getInt(key))
64
64
  } else if (value is Boolean) {
65
65
  writableMap.putBoolean(key, jsonObject.getBoolean(key))
@@ -81,9 +81,9 @@ object JsonConvert {
81
81
  val writableArray: WritableArray = Arguments.createArray()
82
82
  for (i in 0 until jsonArray.length()) {
83
83
  val value: Any = jsonArray.get(i)
84
- if (value is Float || value is Double) {
84
+ if (value is Float || value is Double || value is Number) {
85
85
  writableArray.pushDouble(jsonArray.getDouble(i))
86
- } else if (value is Number) {
86
+ } else if (value is Int) {
87
87
  writableArray.pushInt(jsonArray.getInt(i))
88
88
  } else if (value is Boolean) {
89
89
  writableArray.pushBoolean(jsonArray.getBoolean(i))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payme-mini-app",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",