-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
49 lines (46 loc) · 1.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var version = require('../../package').version,
core = require('gengojs-core'),
pack = require('gengojs-default-pack');
exports.default = (function () {
'use strict'
/**
* Global scope
* @private
*/
;
var global;
/**
* @method gengo
* @description Main function for Gengo.
* @param {Object} options The configuration options.
* @return {Function} The middleware for express.
* @public
*/
var gengo = function gengo(options) {
var plugins = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
global = core(options, plugins, pack());
return global.ship.bind(global);
};
/**
* @method clone
* @description Returns the API.
* @return {Function} The API.
* @public
*/
gengo.clone = function () {
return global.assign.apply(global, arguments);
};
/**
* version.
* @type {String}
* @public
*/
gengo.version = version;
// Export
return gengo;
})();
//# sourceMappingURL=../source maps/express/index.js.map