File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ var rightPad = require('right-pad');
88// This can be any kind of SystemJS compatible module.
99// We use Commonjs here, but ES6 or AMD would do just
1010// fine.
11- exports [ 'default' ] = function ( options ) {
11+ module . exports = function ( options ) {
1212
1313 var types = options . types ;
1414
@@ -92,5 +92,3 @@ exports['default'] = function (options) {
9292 }
9393 } ;
9494} ;
95-
96- module . exports = exports ;
Original file line number Diff line number Diff line change 33var engine = require ( './engine' ) ;
44var conventionalCommitTypes = require ( 'conventional-commit-types' ) ;
55
6- module . exports = engine ( {
6+ var engineInstance = engine ( {
77 types : conventionalCommitTypes . types
88} ) ;
9+
10+ var _extends = function ( target ) {
11+ for ( var i = 1 ; i < arguments . length ; i ++ ) {
12+ var source = arguments [ i ] ;
13+ for ( var key in source ) {
14+ target [ key ] = source [ key ] ;
15+ }
16+ }
17+
18+ return target ;
19+ } ;
20+
21+ exports [ 'default' ] = engineInstance ;
22+
23+ module . exports = _extends ( exports [ 'default' ] , exports ) ;
You can’t perform that action at this time.
0 commit comments