Skip to content

Commit 51a43ba

Browse files
authored
Update all dependencies and fix AQMP test timeout (#157)
1 parent c2da00d commit 51a43ba

File tree

7 files changed

+1425
-1139
lines changed

7 files changed

+1425
-1139
lines changed

.github/stale.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
wget https://github.com/nats-io/nats-server/releases/download/v2.0.0/nats-server-v2.0.0-linux-amd64.zip
2424
unzip nats-server-v2.0.0-linux-amd64.zip
2525
nats-server-v2.0.0-linux-amd64/nats-server </dev/null &>/dev/null &
26-
- run: sleep 60
26+
- run: sleep 30
2727
- run: npm ci
2828
- run: npm test

.istanbul.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.nycrc

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"verbose": false,
3+
"tempDirectory": "./coverage/.tmp",
4+
"semistandard": {
5+
"env": [
6+
"mocha"
7+
]
8+
},
9+
"extension": [
10+
".ts",
11+
".tsx",
12+
".js"
13+
],
14+
"exclude": [
15+
"**/test/*"
16+
],
17+
"print": "detail",
18+
"reporter": [
19+
"html",
20+
"text",
21+
"text-summary",
22+
"lcov"
23+
],
24+
"watermarks": {
25+
"statements": [
26+
70,
27+
90
28+
],
29+
"lines": [
30+
70,
31+
90
32+
],
33+
"functions": [
34+
70,
35+
90
36+
],
37+
"branches": [
38+
70,
39+
90
40+
]
41+
}
42+
}

lib/core.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module.exports = app => {
1616
app.on('sync-in', (rawData) => {
1717
const { event, path, data, context } = app.sync.deserialize(rawData);
1818
const service = app.service(path);
19-
const hook = context ? Object.assign({
20-
app, service
21-
}, context) : context;
19+
const hook = context
20+
? Object.assign({ app, service }, context)
21+
: context;
2222

2323
if (service) {
2424
debug(`Dispatching sync-in event '${path} ${event}'`);
@@ -40,7 +40,8 @@ module.exports = app => {
4040
}
4141

4242
const context = hooks.isHookObject(ctx)
43-
? _.omit(ctx, 'app', 'service') : ctx;
43+
? _.omit(ctx, 'app', 'service')
44+
: ctx;
4445

4546
debug(`Sending sync-out event '${path} ${event}'`);
4647

0 commit comments

Comments
 (0)