-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Labels
Description
Environment
nodejs
v1.8.0
Reproduction
const storage = createStorage();
await storage.setItem('123', '456')
const item = await storage.getItem('123');
console.log(item, typeof item)
// 456, number
// instead of: "456", string
Describe the bug
Storage convert string into number for no reason
EDIT:After investigation, it's probably due to destr
https://github.com/unjs/unstorage/blob/main/src/storage.ts#L173C9-L173C21
Additional context
No response
Logs
No response
kingyue737