summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/zlib.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-12 00:12:10 +0100
committerGitHub <noreply@github.com>2024-09-12 01:12:10 +0200
commit3f6605d123ea5c07c7e0bdb7fd5b06676aa8c8e0 (patch)
tree73ce583e791d3fdc5ea8f6501111ca641e29b33b /ext/node/polyfills/zlib.ts
parent05bd547238006f089f05ef046470e00c94317da6 (diff)
feat(ext/node): export missing constants from 'zlib' module (#25584)
That puts us at 99.5% compatibility for this module.
Diffstat (limited to 'ext/node/polyfills/zlib.ts')
-rw-r--r--ext/node/polyfills/zlib.ts78
1 files changed, 61 insertions, 17 deletions
diff --git a/ext/node/polyfills/zlib.ts b/ext/node/polyfills/zlib.ts
index a19474cfc..3fe5f8bbd 100644
--- a/ext/node/polyfills/zlib.ts
+++ b/ext/node/polyfills/zlib.ts
@@ -78,20 +78,15 @@ export class ZlibBase {
export { constants };
export default {
- Options,
- BrotliOptions,
+ brotliCompress,
BrotliCompress,
+ brotliCompressSync,
+ brotliDecompress,
BrotliDecompress,
- Deflate,
- DeflateRaw,
- Gunzip,
- Gzip,
- Inflate,
- InflateRaw,
- Unzip,
- ZlibBase,
- constants,
+ brotliDecompressSync,
+ BrotliOptions,
codes,
+ constants,
createBrotliCompress,
createBrotliDecompress,
createDeflate,
@@ -101,24 +96,73 @@ export default {
createInflate,
createInflateRaw,
createUnzip,
- brotliCompress,
- brotliCompressSync,
- brotliDecompress,
- brotliDecompressSync,
deflate,
- deflateSync,
+ Deflate,
+ DEFLATE: constants.DEFLATE,
deflateRaw,
+ DeflateRaw,
+ DEFLATERAW: constants.DEFLATERAW,
deflateRawSync,
+ deflateSync,
gunzip,
+ Gunzip,
+ GUNZIP: constants.GUNZIP,
gunzipSync,
gzip,
+ Gzip,
+ GZIP: constants.GZIP,
gzipSync,
inflate,
- inflateSync,
+ Inflate,
+ INFLATE: constants.INFLATE,
inflateRaw,
+ InflateRaw,
+ INFLATERAW: constants.INFLATERAW,
inflateRawSync,
+ inflateSync,
+ Options,
unzip,
+ Unzip,
+ UNZIP: constants.UNZIP,
unzipSync,
+ Z_BEST_COMPRESSION: constants.Z_BEST_COMPRESSION,
+ Z_BEST_SPEED: constants.Z_BEST_SPEED,
+ Z_BLOCK: constants.Z_BLOCK,
+ Z_BUF_ERROR: constants.Z_BUF_ERROR,
+ Z_DATA_ERROR: constants.Z_DATA_ERROR,
+ Z_DEFAULT_CHUNK: constants.Z_DEFAULT_CHUNK,
+ Z_DEFAULT_COMPRESSION: constants.Z_DEFAULT_COMPRESSION,
+ Z_DEFAULT_LEVEL: constants.Z_DEFAULT_LEVEL,
+ Z_DEFAULT_MEMLEVEL: constants.Z_DEFAULT_MEMLEVEL,
+ Z_DEFAULT_STRATEGY: constants.Z_DEFAULT_STRATEGY,
+ Z_DEFAULT_WINDOWBITS: constants.Z_DEFAULT_WINDOWBITS,
+ Z_ERRNO: constants.Z_ERRNO,
+ Z_FILTERED: constants.Z_FILTERED,
+ Z_FINISH: constants.Z_FINISH,
+ Z_FIXED: constants.Z_FIXED,
+ Z_FULL_FLUSH: constants.Z_FULL_FLUSH,
+ Z_HUFFMAN_ONLY: constants.Z_HUFFMAN_ONLY,
+ Z_MAX_CHUNK: constants.Z_MAX_CHUNK,
+ Z_MAX_LEVEL: constants.Z_MAX_LEVEL,
+ Z_MAX_MEMLEVEL: constants.Z_MAX_MEMLEVEL,
+ Z_MAX_WINDOWBITS: constants.Z_MAX_WINDOWBITS,
+ Z_MEM_ERROR: constants.Z_MEM_ERROR,
+ Z_MIN_CHUNK: constants.Z_MIN_CHUNK,
+ Z_MIN_LEVEL: constants.Z_MIN_LEVEL,
+ Z_MIN_MEMLEVEL: constants.Z_MIN_MEMLEVEL,
+ Z_MIN_WINDOWBITS: constants.Z_MIN_WINDOWBITS,
+ Z_NEED_DICT: constants.Z_NEED_DICT,
+ Z_NO_COMPRESSION: constants.Z_NO_COMPRESSION,
+ Z_NO_FLUSH: constants.Z_NO_FLUSH,
+ Z_OK: constants.Z_OK,
+ Z_PARTIAL_FLUSH: constants.Z_PARTIAL_FLUSH,
+ Z_RLE: constants.Z_RLE,
+ Z_STREAM_END: constants.Z_STREAM_END,
+ Z_STREAM_ERROR: constants.Z_STREAM_ERROR,
+ Z_SYNC_FLUSH: constants.Z_SYNC_FLUSH,
+ Z_VERSION_ERROR: constants.Z_VERSION_ERROR,
+ ZLIB_VERNUM: constants.ZLIB_VERNUM,
+ ZlibBase,
};
export {