You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to see two methods added to this class parse(string) and stringify(data). And those methods should just return their JSON method by default and should be used to parse/stringify the store.
The following two places would be updated to use this.parse or this.stringify
This would allow the user to extend the service class and use their own parser. My specific example for this is using JSON Compression to compress the store before storing it in storage and decompress the store when pulling it out of storage.
The text was updated successfully, but these errors were encountered:
I would like to see two methods added to this class
parse(string)
andstringify(data)
. And those methods should just return their JSON method by default and should be used to parse/stringify the store.The following two places would be updated to use
this.parse
orthis.stringify
feathers-localstorage/lib/index.js
Line 50 in 573ebcf
feathers-localstorage/lib/index.js
Line 32 in 573ebcf
This would allow the user to extend the service class and use their own parser. My specific example for this is using JSON Compression to compress the store before storing it in storage and decompress the store when pulling it out of storage.
The text was updated successfully, but these errors were encountered: