skapi-js 0.2.3 → 0.2.5
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/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/main/skapi.js +1 -1
- package/js/methods/database.js +6 -1
- package/package.json +1 -1
package/js/main/skapi.js
CHANGED
package/js/methods/database.js
CHANGED
|
@@ -128,7 +128,12 @@ function normalizeTypedString(v) {
|
|
|
128
128
|
case "!S%":
|
|
129
129
|
return value;
|
|
130
130
|
case "!N%":
|
|
131
|
-
|
|
131
|
+
let splitDec = value.split('.');
|
|
132
|
+
let calcNumb = Number(splitDec[0]) - 4503599627370496;
|
|
133
|
+
if (splitDec.length === 1) {
|
|
134
|
+
return calcNumb;
|
|
135
|
+
}
|
|
136
|
+
return parseFloat(calcNumb.toString() + '.' + splitDec[1]);
|
|
132
137
|
case "!B%":
|
|
133
138
|
return value === '1';
|
|
134
139
|
case "!L%":
|
package/package.json
CHANGED