@@ -43,15 +43,15 @@ for (var bk = 0; bk < bkeys.length; bk++) {
43
43
44
44
// translation table for return codes.
45
45
const codes = {
46
- Z_OK : binding . Z_OK ,
47
- Z_STREAM_END : binding . Z_STREAM_END ,
48
- Z_NEED_DICT : binding . Z_NEED_DICT ,
49
- Z_ERRNO : binding . Z_ERRNO ,
50
- Z_STREAM_ERROR : binding . Z_STREAM_ERROR ,
51
- Z_DATA_ERROR : binding . Z_DATA_ERROR ,
52
- Z_MEM_ERROR : binding . Z_MEM_ERROR ,
53
- Z_BUF_ERROR : binding . Z_BUF_ERROR ,
54
- Z_VERSION_ERROR : binding . Z_VERSION_ERROR
46
+ Z_OK : binding . Z_OK ,
47
+ Z_STREAM_END : binding . Z_STREAM_END ,
48
+ Z_NEED_DICT : binding . Z_NEED_DICT ,
49
+ Z_ERRNO : binding . Z_ERRNO ,
50
+ Z_STREAM_ERROR : binding . Z_STREAM_ERROR ,
51
+ Z_DATA_ERROR : binding . Z_DATA_ERROR ,
52
+ Z_MEM_ERROR : binding . Z_MEM_ERROR ,
53
+ Z_BUF_ERROR : binding . Z_BUF_ERROR ,
54
+ Z_VERSION_ERROR : binding . Z_VERSION_ERROR
55
55
} ;
56
56
57
57
const ckeys = Object . keys ( codes ) ;
@@ -64,6 +64,10 @@ Object.defineProperty(exports, 'codes', {
64
64
enumerable : true , value : Object . freeze ( codes ) , writable : false
65
65
} ) ;
66
66
67
+ Object . defineProperty ( exports , 'constants' , {
68
+ configurable : false , enumerable : true , value : binding
69
+ } ) ;
70
+
67
71
exports . Deflate = Deflate ;
68
72
exports . Inflate = Inflate ;
69
73
exports . Gzip = Gzip ;
0 commit comments