-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode-ipc.js
37 lines (25 loc) · 2.89 KB
/
node-ipc.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
'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var colors = require('colors'),
LogColors = require('./entities/LogColors.js'),
IPC = require('./services/IPC.js');
var IPCModule = function (_IPC) {
_inherits(IPCModule, _IPC);
function IPCModule() {
_classCallCheck(this, IPCModule);
//include IPC to make extensible
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(IPCModule).call(this));
Object.defineProperty(_this, 'IPC', {
enumerable: true,
writable: false,
value: IPC
});
return _this;
}
return IPCModule;
}(IPC);
colors.setTheme(new LogColors());
module.exports = new IPCModule();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL25vZGUtaXBjL25vZGUtaXBjLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7OztBQUVBLElBQU0sU0FBUyxRQUFRLFFBQVIsQ0FBVDtJQUNGLFlBQVksUUFBUSx5QkFBUixDQUFaO0lBQ0EsTUFBTSxRQUFRLG1CQUFSLENBQU47O0lBRUU7OztBQUNGLGFBREUsU0FDRixHQUFhOzhCQURYLFdBQ1c7Ozs7MkVBRFg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