refactor: 'flate

This commit is contained in:
cha0s 2022-04-04 10:13:09 -05:00
parent 8741a342d7
commit 229028821c
3 changed files with 15 additions and 23 deletions

View File

@ -0,0 +1,11 @@
import {deflateSync, inflateSync} from 'zlib';
export function inflate(buffer) {
return inflateSync(buffer);
}
export function deflate(buffer) {
return deflateSync(buffer, {
level: 9,
});
}

View File

@ -1,15 +1,11 @@
export {
default as fastApply,
} from './fast-apply';
export * from './flate';
export {
default as mapValuesAsync,
} from './map-values-async';
export {
mergeDiff,
mergeDiffArray,
mergeDiffObject,
mergeDiffPrimitive,
} from './merge-diff';
export * from './merge-diff';
export {
default as Property,
} from './property';

View File

@ -1,3 +1,4 @@
import {deflate, inflate} from '@avocado/core';
import {Atlas} from '@avocado/graphics';
import {
floodwalk2D,
@ -7,23 +8,7 @@ import {
} from '@avocado/math';
import {JsonResource} from '@avocado/resource';
import {Synchronized} from '@avocado/s13n';
import {
compose,
// deflate,
EventEmitter,
// inflate,
} from '@flecks/core';
import {deflateSync, inflateSync} from 'zlib';
export function inflate(buffer) {
return inflateSync(buffer);
}
export function deflate(buffer) {
return deflateSync(buffer, {
level: 9,
});
}
import {compose, EventEmitter} from '@flecks/core';
// TODO: rows, with nulls