Skip to content

Commit 4bb1ec5

Browse files
committed
1 parent 6db88e6 commit 4bb1ec5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/lz4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ let decodeValue = function(key, inputArray) {
164164
return {
165165
encode: function(key, dataIn) {
166166
if ( typeof dataIn !== 'string' || dataIn.length < 4096 ) {
167-
return Promise.resolve({ key, dataIn });
167+
return Promise.resolve({ key, data: dataIn });
168168
}
169169
ttlManage(1);
170170
return init().then(( ) => {
@@ -178,7 +178,7 @@ return {
178178
},
179179
decode: function(key, dataIn) {
180180
if ( dataIn instanceof Blob === false ) {
181-
return Promise.resolve({ key, dataIn });
181+
return Promise.resolve({ key, data: dataIn });
182182
}
183183
ttlManage(1);
184184
return Promise.all([

0 commit comments

Comments
 (0)