Skip to content

Commit 164c25d

Browse files
committed
[deps] dependencies update
1 parent ac452a9 commit 164c25d

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,29 @@
3939
"main": "index.js",
4040
"license": "Apache-2.0",
4141
"dependencies": {
42-
"@babel/core": "^7.4.0",
43-
"@babel/preset-env": "^7.4.2",
44-
"babel-loader": "^8.0.5",
42+
"@babel/core": "^7.5.5",
43+
"@babel/preset-env": "^7.5.5",
44+
"babel-loader": "^8.0.6",
4545
"min-req-promise": "^1.0.1",
46-
"ora": "^3.2.0",
47-
"webpack": "^4.29.6",
46+
"ora": "^3.4.0",
47+
"webpack": "^4.38.0",
4848
"ws": "^6.2.0"
4949
},
5050
"devDependencies": {
51-
"codecov": "^3.2.0",
51+
"codecov": "^3.5.0",
5252
"cucumber": "^5.1.0",
53-
"eslint": "^5.15.3",
53+
"eslint": "^6.1.0",
5454
"eslint-friendly-formatter": "^4.0.1",
55-
"eslint-loader": "^2.1.2",
56-
"mocha": "6.0.2",
55+
"eslint-loader": "^2.2.1",
56+
"mocha": "6.2.0",
5757
"mock-require": "^3.0.3",
58-
"nyc": "^13.3.0",
59-
"proxyquire": "^2.1.0",
58+
"nyc": "^14.1.1",
59+
"proxyquire": "^2.1.1",
6060
"retry": "^0.12.0",
6161
"rewire": "^4.0.1",
6262
"should": "13.2.3",
6363
"should-sinon": "0.0.6",
64-
"sinon": "^7.3.0"
64+
"sinon": "^7.3.2"
6565
},
6666
"engines": {
6767
"node": ">= 6.9.1"

src/Kuzzle.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,11 @@ Discarded request: ${JSON.stringify(request)}`));
557557
throw new Error('Invalid offline queue request. One or more missing properties: requestId, action, controller.');
558558
}
559559

560-
return uniqueQueue.hasOwnProperty(query.request.requestId) ? false : (uniqueQueue[query.request.requestId] = true);
560+
return Object.prototype.hasOwnProperty.call(
561+
uniqueQueue,
562+
query.request.requestId)
563+
? false
564+
: (uniqueQueue[query.request.requestId] = true);
561565
});
562566

563567
dequeuingProcess();

src/protocols/abstract/common.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class AbstractWrapper extends KuzzleEventEmitter {
1919
this.state = 'offline';
2020

2121
Object.keys(options).forEach(opt => {
22-
if (this.hasOwnProperty(opt) && Object.getOwnPropertyDescriptor(this, opt).writable) {
22+
if ( Object.prototype.hasOwnProperty.call(this, opt)
23+
&& Object.getOwnPropertyDescriptor(this, opt).writable
24+
) {
2325
this[opt] = options[opt];
2426
}
2527
});

src/protocols/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class HttpWrapper extends KuzzleAbstractProtocol {
149149
else if (key === 'volatile') {
150150
payload.headers['x-kuzzle-volatile'] = JSON.stringify(value);
151151
}
152-
else if (payload.hasOwnProperty(key)) {
152+
else if (Object.prototype.hasOwnProperty.call(payload, key)) {
153153
payload[key] = value;
154154
}
155155
else if (value !== undefined && value !== null) {

test/kuzzle/constructor.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const
1313
RealTimeController = require('../../src/controllers/realtime'),
1414
{
1515
SocketIO,
16-
WebSocket,
16+
WebSocket, // eslint-disable-line no-redeclare
1717
Http
1818
} = require('../../src/protocols'),
1919
ProtocolMock = require('../mocks/protocol.mock');

0 commit comments

Comments
 (0)