Skip to content

Commit

Permalink
Merge pull request #2 from moleculerjs/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
dkuida authored Nov 18, 2018
2 parents e8e457d + 2071fcf commit f1ee95a
Show file tree
Hide file tree
Showing 52 changed files with 501 additions and 368 deletions.
14 changes: 13 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ module.exports = {
"security/detect-non-literal-require": ["off"],
"security/detect-non-literal-fs-filename": ["off"],
"no-process-exit": ["off"],
"node/no-unpublished-require": 0
"node/no-unpublished-require": 0,
"space-before-function-paren": [
"warn",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"object-curly-spacing": [
"warn",
"always"
]
}
};
15 changes: 4 additions & 11 deletions dev/dev.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
"use strict";

const ApiGateway = require
const ServiceBroker = require("../src/service-broker");
const util = require("util");

const broker = new ServiceBroker({
nodeID: "dev",// + process.pid,
//transporter: "mqtt://localhost:1833",
transporter: {
type: "MQTT",
options: {
host: "localhost",
qos: 1,
topicSeparator: "/"
}
},
transporter: "TCP",
metrics: true,
//logLevel: "debug",
//logObjectPrinter: o => util.inspect(o, { depth: 4, colors: true, breakLength: 50 }), // `breakLength: 50` activates multi-line object
Expand All @@ -22,7 +14,8 @@ const broker = new ServiceBroker({
broker.createService({
name: "test",
actions: {
hello(ctx) {
async hello(ctx) {
await this.broker.cacher.del('test.*');
return "Hello Moleculer";
}
}
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ declare namespace Moleculer {
}

interface BrokerTransitOptions {
disableReconnect?: boolean;
maxQueueSize?: number;
}

Expand Down
Loading

0 comments on commit f1ee95a

Please sign in to comment.