vasern / vasern

Vasern is a fast, lightweight and open source data storage for React Native

Home Page:https://vasern.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numbers inserted as strings

dmitryuck opened this issue · comments

when I try to insert object like this {"code": "en", "name": "English", "index": 145634}
then read it from store "index" returns as string "145634"

if change this line in sources numbers saving as numbers
Document.js - line 208: content[k] = kValue;//.toString();

Hey Dmitry, thanks for reporting the issue. I'll make a fix ASAP!

This issue has been around a for while. It used to be kValue (without toString), which caused some other issues that I forgot. I've pushed an update to fix this one.

Note that there isn't a type number. Numbers are in int or double only. Otherwise, it might parse the result as string

Let me know if the issue still persists