We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6db88e6 commit 4bb1ec5Copy full SHA for 4bb1ec5
1 file changed
src/js/lz4.js
@@ -164,7 +164,7 @@ let decodeValue = function(key, inputArray) {
164
return {
165
encode: function(key, dataIn) {
166
if ( typeof dataIn !== 'string' || dataIn.length < 4096 ) {
167
- return Promise.resolve({ key, dataIn });
+ return Promise.resolve({ key, data: dataIn });
168
}
169
ttlManage(1);
170
return init().then(( ) => {
@@ -178,7 +178,7 @@ return {
178
},
179
decode: function(key, dataIn) {
180
if ( dataIn instanceof Blob === false ) {
181
182
183
184
return Promise.all([
0 commit comments