@cloudpss/compress 0.4.13 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/benchmark.js +20 -11
- package/dist/gzip/index.js +2 -2
- package/dist/gzip/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/src/gzip/index.ts +2 -2
- package/src/index.ts +1 -1
- package/yarn-error.log +4520 -0
- package/dist/zstd/index-browser.d.ts +0 -2
- package/dist/zstd/index-browser.js +0 -3
- package/dist/zstd/index-browser.js.map +0 -1
- package/dist/zstd/index.d.ts +0 -4
- package/dist/zstd/index.js +0 -38
- package/dist/zstd/index.js.map +0 -1
- package/dist/zstd/wasm/compress.d.ts +0 -2
- package/dist/zstd/wasm/compress.js +0 -28
- package/dist/zstd/wasm/compress.js.map +0 -1
- package/dist/zstd/wasm/decompress.d.ts +0 -2
- package/dist/zstd/wasm/decompress.js +0 -32
- package/dist/zstd/wasm/decompress.js.map +0 -1
- package/dist/zstd/wasm/module.d.ts +0 -2
- package/dist/zstd/wasm/module.js +0 -4
- package/dist/zstd/wasm/module.js.map +0 -1
- package/src/zstd/index-browser.ts +0 -2
- package/src/zstd/index.ts +0 -39
- package/src/zstd/wasm/compress.ts +0 -27
- package/src/zstd/wasm/decompress.ts +0 -32
- package/src/zstd/wasm/module.ts +0 -5
- package/wasm/zstd.g.d.ts +0 -17
- package/wasm/zstd.g.js +0 -27
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser.js","sourceRoot":"","sources":["../../src/zstd/index-browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/zstd/index.d.ts
DELETED
package/dist/zstd/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/** 导入库 */
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
3
|
-
async function importLib() {
|
|
4
|
-
try {
|
|
5
|
-
const { compress, decompress } = await import('@xingrz/cppzst');
|
|
6
|
-
return {
|
|
7
|
-
compress: async (data, level) => {
|
|
8
|
-
const buf = Buffer.from(data.buffer, data.byteOffset, data.length);
|
|
9
|
-
const result = await compress(buf, { level: level ?? 4 });
|
|
10
|
-
return new Uint8Array(result.buffer, result.byteOffset, result.length);
|
|
11
|
-
},
|
|
12
|
-
decompress: async (data) => {
|
|
13
|
-
const buf = Buffer.from(data.buffer, data.byteOffset, data.length);
|
|
14
|
-
const result = await decompress(buf);
|
|
15
|
-
return new Uint8Array(result.buffer, result.byteOffset, result.length);
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
catch (ex) {
|
|
20
|
-
const { compress, decompress } = await import('./index-browser.js');
|
|
21
|
-
return {
|
|
22
|
-
compress: (data, level) => Promise.resolve(compress(data, level)),
|
|
23
|
-
decompress: (data) => Promise.resolve(decompress(data)),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const lib = importLib();
|
|
28
|
-
/** 压缩 */
|
|
29
|
-
export async function compress(data, level) {
|
|
30
|
-
const { compress } = await lib;
|
|
31
|
-
return await compress(data, level);
|
|
32
|
-
}
|
|
33
|
-
/** 解压 */
|
|
34
|
-
export async function decompress(data) {
|
|
35
|
-
const { decompress } = await lib;
|
|
36
|
-
return await decompress(data);
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
package/dist/zstd/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/zstd/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,4EAA4E;AAC5E,KAAK,UAAU,SAAS;IACpB,IAAI;QACA,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,gB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,SAAS,EAAE,CAAC;AAExB,SAAS;AACT,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,IAAgB,EAAE,KAAc;IAC3D,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,GAAG,CAAC;IAC/B,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvC,CAAC;AAED,SAAS;AACT,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAgB;IAC7C,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC;IACjC,OAAO,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Module } from './module.js';
|
|
2
|
-
/** 压缩 */
|
|
3
|
-
export function compress(buf, level = 4) {
|
|
4
|
-
const bound = Module._ZSTD_compressBound(buf.byteLength);
|
|
5
|
-
const compressed = Module._malloc(bound);
|
|
6
|
-
const src = Module._malloc(buf.byteLength);
|
|
7
|
-
Module.HEAPU8.set(buf, src);
|
|
8
|
-
try {
|
|
9
|
-
/*
|
|
10
|
-
@See https://zstd.docsforge.com/dev/api/ZSTD_compress/
|
|
11
|
-
size_t ZSTD_compress( void* dst, size_t dstCapacity, const void* src, size_t srcSize, int compressionLevel);
|
|
12
|
-
Compresses `src` content as a single zstd compressed frame into already allocated `dst`.
|
|
13
|
-
Hint : compression runs faster if `dstCapacity` >= `ZSTD_compressBound(srcSize)`.
|
|
14
|
-
@return : compressed size written into `dst` (<= `dstCapacity),
|
|
15
|
-
or an error code if it fails (which can be tested using ZSTD_isError()).
|
|
16
|
-
*/
|
|
17
|
-
const sizeOrError = Module._ZSTD_compress(compressed, bound, src, buf.byteLength, level);
|
|
18
|
-
if (Module._ZSTD_isError(sizeOrError)) {
|
|
19
|
-
throw new Error(`Failed to compress with code ${sizeOrError}`);
|
|
20
|
-
}
|
|
21
|
-
return new Uint8Array(Module.HEAPU8.buffer, compressed, sizeOrError).slice();
|
|
22
|
-
}
|
|
23
|
-
finally {
|
|
24
|
-
Module._free(compressed);
|
|
25
|
-
Module._free(src);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=compress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compress.js","sourceRoot":"","sources":["../../../src/zstd/wasm/compress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,SAAS;AACT,MAAM,UAAU,QAAQ,CAAC,GAAe,EAAE,KAAK,GAAG,CAAC;IAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACzD,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5B,IAAI;QACA;;;;;;;UAOE;QACF,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACzF,IAAI,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,gCAAgC,WAAW,EAAE,CAAC,CAAC;SAClE;QACD,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,KAAK,EAAE,CAAC;KAChF;YAAS;QACN,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACzB,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KACrB;AACL,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Module } from './module.js';
|
|
2
|
-
// Use 1MB on default if it is failed to get content size.
|
|
3
|
-
const DEFAULT_HEAP_SIZE = 1024 * 1024;
|
|
4
|
-
/** 解压 */
|
|
5
|
-
export function decompress(buf) {
|
|
6
|
-
const src = Module._malloc(buf.byteLength);
|
|
7
|
-
Module.HEAP8.set(buf, src);
|
|
8
|
-
const contentSize = Module._ZSTD_getFrameContentSize(src, buf.byteLength);
|
|
9
|
-
const size = contentSize === -1 ? DEFAULT_HEAP_SIZE : contentSize;
|
|
10
|
-
const heap = Module._malloc(size);
|
|
11
|
-
try {
|
|
12
|
-
/*
|
|
13
|
-
@See https://zstd.docsforge.com/dev/api/ZSTD_decompress/
|
|
14
|
-
compressedSize : must be the exact size of some number of compressed and/or skippable frames.
|
|
15
|
-
dstCapacity is an upper bound of originalSize to regenerate.
|
|
16
|
-
If user cannot imply a maximum upper bound, it's better to use streaming mode to decompress data.
|
|
17
|
-
@return: the number of bytes decompressed into dst (<= dstCapacity), or an errorCode if it fails (which can be tested using ZSTD_isError()).
|
|
18
|
-
*/
|
|
19
|
-
const sizeOrError = Module._ZSTD_decompress(heap, size, src, buf.byteLength);
|
|
20
|
-
if (Module._ZSTD_isError(sizeOrError)) {
|
|
21
|
-
throw new Error(`Failed to compress with code ${sizeOrError}`);
|
|
22
|
-
}
|
|
23
|
-
// Copy buffer
|
|
24
|
-
// Uint8Array.prototype.slice() return copied buffer.
|
|
25
|
-
return new Uint8Array(Module.HEAPU8.buffer, heap, sizeOrError).slice();
|
|
26
|
-
}
|
|
27
|
-
finally {
|
|
28
|
-
Module._free(heap);
|
|
29
|
-
Module._free(src);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=decompress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decompress.js","sourceRoot":"","sources":["../../../src/zstd/wasm/decompress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,0DA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MAAM,MAAM,GAAG,MAAM,YAAY,EAAE,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/src/zstd/index.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/** 导入库 */
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
3
|
-
async function importLib(): Promise<typeof import('./index.js')> {
|
|
4
|
-
try {
|
|
5
|
-
const { compress, decompress } = await import('@xingrz/cppzst');
|
|
6
|
-
return {
|
|
7
|
-
compress: async (data, level) => {
|
|
8
|
-
const buf = Buffer.from(data.buffer, data.byteOffset, data.length);
|
|
9
|
-
const result = await compress(buf, { level: level ?? 4 });
|
|
10
|
-
return new Uint8Array(result.buffer, result.byteOffset, result.length);
|
|
11
|
-
},
|
|
12
|
-
decompress: async (data) => {
|
|
13
|
-
const buf = Buffer.from(data.buffer, data.byteOffset, data.length);
|
|
14
|
-
const result = await decompress(buf);
|
|
15
|
-
return new Uint8Array(result.buffer, result.byteOffset, result.length);
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
} catch (ex) {
|
|
19
|
-
const { compress, decompress } = await import('./index-browser.js');
|
|
20
|
-
return {
|
|
21
|
-
compress: (data, level) => Promise.resolve(compress(data, level)),
|
|
22
|
-
decompress: (data) => Promise.resolve(decompress(data)),
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const lib = importLib();
|
|
28
|
-
|
|
29
|
-
/** 压缩 */
|
|
30
|
-
export async function compress(data: Uint8Array, level?: number): Promise<Uint8Array> {
|
|
31
|
-
const { compress } = await lib;
|
|
32
|
-
return await compress(data, level);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** 解压 */
|
|
36
|
-
export async function decompress(data: Uint8Array): Promise<Uint8Array> {
|
|
37
|
-
const { decompress } = await lib;
|
|
38
|
-
return await decompress(data);
|
|
39
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Module } from './module.js';
|
|
2
|
-
|
|
3
|
-
/** 压缩 */
|
|
4
|
-
export function compress(buf: Uint8Array, level = 4): Uint8Array {
|
|
5
|
-
const bound = Module._ZSTD_compressBound(buf.byteLength);
|
|
6
|
-
const compressed = Module._malloc(bound);
|
|
7
|
-
const src = Module._malloc(buf.byteLength);
|
|
8
|
-
Module.HEAPU8.set(buf, src);
|
|
9
|
-
try {
|
|
10
|
-
/*
|
|
11
|
-
@See https://zstd.docsforge.com/dev/api/ZSTD_compress/
|
|
12
|
-
size_t ZSTD_compress( void* dst, size_t dstCapacity, const void* src, size_t srcSize, int compressionLevel);
|
|
13
|
-
Compresses `src` content as a single zstd compressed frame into already allocated `dst`.
|
|
14
|
-
Hint : compression runs faster if `dstCapacity` >= `ZSTD_compressBound(srcSize)`.
|
|
15
|
-
@return : compressed size written into `dst` (<= `dstCapacity),
|
|
16
|
-
or an error code if it fails (which can be tested using ZSTD_isError()).
|
|
17
|
-
*/
|
|
18
|
-
const sizeOrError = Module._ZSTD_compress(compressed, bound, src, buf.byteLength, level);
|
|
19
|
-
if (Module._ZSTD_isError(sizeOrError)) {
|
|
20
|
-
throw new Error(`Failed to compress with code ${sizeOrError}`);
|
|
21
|
-
}
|
|
22
|
-
return new Uint8Array(Module.HEAPU8.buffer, compressed, sizeOrError).slice();
|
|
23
|
-
} finally {
|
|
24
|
-
Module._free(compressed);
|
|
25
|
-
Module._free(src);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Module } from './module.js';
|
|
2
|
-
|
|
3
|
-
// Use 1MB on default if it is failed to get content size.
|
|
4
|
-
const DEFAULT_HEAP_SIZE = 1024 * 1024;
|
|
5
|
-
|
|
6
|
-
/** 解压 */
|
|
7
|
-
export function decompress(buf: Uint8Array): Uint8Array {
|
|
8
|
-
const src = Module._malloc(buf.byteLength);
|
|
9
|
-
Module.HEAP8.set(buf, src);
|
|
10
|
-
const contentSize = Module._ZSTD_getFrameContentSize(src, buf.byteLength);
|
|
11
|
-
const size = contentSize === -1 ? DEFAULT_HEAP_SIZE : contentSize;
|
|
12
|
-
const heap = Module._malloc(size);
|
|
13
|
-
try {
|
|
14
|
-
/*
|
|
15
|
-
@See https://zstd.docsforge.com/dev/api/ZSTD_decompress/
|
|
16
|
-
compressedSize : must be the exact size of some number of compressed and/or skippable frames.
|
|
17
|
-
dstCapacity is an upper bound of originalSize to regenerate.
|
|
18
|
-
If user cannot imply a maximum upper bound, it's better to use streaming mode to decompress data.
|
|
19
|
-
@return: the number of bytes decompressed into dst (<= dstCapacity), or an errorCode if it fails (which can be tested using ZSTD_isError()).
|
|
20
|
-
*/
|
|
21
|
-
const sizeOrError = Module._ZSTD_decompress(heap, size, src, buf.byteLength);
|
|
22
|
-
if (Module._ZSTD_isError(sizeOrError)) {
|
|
23
|
-
throw new Error(`Failed to compress with code ${sizeOrError}`);
|
|
24
|
-
}
|
|
25
|
-
// Copy buffer
|
|
26
|
-
// Uint8Array.prototype.slice() return copied buffer.
|
|
27
|
-
return new Uint8Array(Module.HEAPU8.buffer, heap, sizeOrError).slice();
|
|
28
|
-
} finally {
|
|
29
|
-
Module._free(heap);
|
|
30
|
-
Module._free(src);
|
|
31
|
-
}
|
|
32
|
-
}
|
package/src/zstd/wasm/module.ts
DELETED
package/wasm/zstd.g.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* eslint-disable jsdoc/require-jsdoc */
|
|
2
|
-
import { Opaque } from 'type-fest';
|
|
3
|
-
type Ptr = Opaque<number, 'void*'>;
|
|
4
|
-
type Module = {
|
|
5
|
-
readonly HEAP8: Int8Array;
|
|
6
|
-
readonly HEAPU8: Uint8Array;
|
|
7
|
-
|
|
8
|
-
_ZSTD_isError(code: number): number;
|
|
9
|
-
_ZSTD_compressBound(size: number): number;
|
|
10
|
-
_ZSTD_compress(outPtr: Ptr, outSize: number, inPtr: Ptr, inSize: number, level: number): number;
|
|
11
|
-
_ZSTD_getFrameContentSize(src: number, size: number): number;
|
|
12
|
-
_ZSTD_decompress(outPtr: Ptr, outSize: number, inPtr: Ptr, inSize: number): number;
|
|
13
|
-
_malloc(size: number): Ptr;
|
|
14
|
-
_free(ptr: Ptr): void;
|
|
15
|
-
};
|
|
16
|
-
export default function createModule(): Promise<Module>;
|
|
17
|
-
export const VERSION: string;
|