electron-json-storage icon indicating copy to clipboard operation
electron-json-storage copied to clipboard

Bug in method getAll

Open koalex opened this issue 2 years ago • 0 comments

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.

koalex avatar Feb 25 '23 20:02 koalex