react-secure-storage
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -57,7 +57,5 @@ "use strict"; | ||
try { | ||
var _bytes$toString; | ||
var bytes = _aes.default.decrypt(value, this.secureKey); | ||
return (_bytes$toString = bytes.toString(_encUtf.default)) !== null && _bytes$toString !== void 0 ? _bytes$toString : null; | ||
return bytes.toString(_encUtf.default) || null; | ||
} catch (ex) { | ||
@@ -64,0 +62,0 @@ return null; |
{ | ||
"name": "react-secure-storage", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "This libraries is used to securely store data in local storage", | ||
@@ -5,0 +5,0 @@ "author": "Sushin Pv", |
@@ -155,3 +155,3 @@ [![npm](https://img.shields.io/npm/v/react-secure-storage.svg)](https://www.npmjs.com/package/react-secure-storage) [![downloads](https://img.shields.io/npm/dm/react-secure-storage.svg)](http://npm-stat.com/charts.html?package=react-secure-storage) | ||
## Whats new in 1.3.1? | ||
## Whats new in 1.3.2? | ||
@@ -158,0 +158,0 @@ Regular bug fixes and https://github.com/sushinpv/react-secure-storage/issues/39 is resolved |
@@ -32,3 +32,3 @@ import Utf8 from "crypto-js/enc-utf8"; | ||
var bytes = AES.decrypt(value, this.secureKey); | ||
return bytes.toString(Utf8) ?? null; | ||
return bytes.toString(Utf8) || null; | ||
} catch (ex) { | ||
@@ -35,0 +35,0 @@ return null; |
92654
1566