electron-userland / electron-json-storage

:package: Easily write and read user settings in Electron apps
1.43k stars 79 forks source link

Bug in method getAll #202

Open koalex opened 1 year ago

koalex commented 1 year ago

Method getAll return is not valid keys if key includes dot. Example:

storage.setSync('x-access-token.sig', { a: 1 }); // or async

storage.getAll((err, data) => {
  // data should be:  { 'x-access-token.sig': { a: 1 } };

  // but received: { sig: { a: 1 } }
});

Methods getSync & get works correctly.