1 | ;
|
2 |
|
3 | const _ = require('lodash');
|
4 |
|
5 | class Service {
|
6 | constructor(options, context) {
|
7 | this.options = _.defaults(options || {}, this.defaultOptions);
|
8 | this.context = context || {};
|
9 | }
|
10 |
|
11 | get defaultOptions() {
|
12 | return {};
|
13 | }
|
14 |
|
15 | dispose() {
|
16 | return Promise.resolve();
|
17 | }
|
18 | }
|
19 |
|
20 | module.exports = Service;
|