refactor: 'flate
This commit is contained in:
parent
8741a342d7
commit
229028821c
11
packages/core/src/flate.js
Normal file
11
packages/core/src/flate.js
Normal 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,
|
||||
});
|
||||
}
|
|
@ -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';
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user