Skip to content

Commit 2d876b4

Browse files
committed
Fixes the exported content and constructor.
1 parent b572618 commit 2d876b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class JsonDriver {
2424

2525
this._options = Object.assign( {
2626
charset: 'utf-8'
27-
}, options );
27+
}, options || {} );
2828

2929
this._data = null;
3030
}
@@ -173,4 +173,5 @@ module.exports = {
173173

174174
return new JsonDriver( connection.Database, options );
175175
}
176+
176177
};

0 commit comments

Comments
 (0)