Skip to content

Commit 0c7f0d5

Browse files
author
Andrey Sidorov
committed
export constants from main module
1 parent b3c3194 commit 0c7f0d5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ exports.__defineGetter__('createPoolClusterPromise', function () {
4646
return require('./promise.js').createPoolCluster;
4747
});
4848

49-
module.exports.Types = require('./lib/constants/types.js');
49+
exports.__defineGetter__('Types', function () {
50+
return require('./lib/constants/types.js');
51+
});
52+
53+
exports.__defineGetter__('Charsets', function () {
54+
return require('./lib/constants/charsets.js');
55+
});
56+
57+
exports.__defineGetter__('CharsetToEncoding', function () {
58+
return require('./lib/constants/charset_encodings.js');
59+
});

0 commit comments

Comments
 (0)