Skip to content

Commit 6a43396

Browse files
committed
restored ES5 compatibility
1 parent 215e26a commit 6a43396

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"mocha": true
5656
},
5757
"parserOptions": {
58-
"ecmaVersion": 6
58+
"ecmaVersion": 5
5959
},
6060
"extends": "eslint:recommended"
6161
}

dist/kuzzle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/kuzzle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/kuzzleDataCollection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ KuzzleDataCollection.prototype.fetchAllDocuments = function (options, cb) {
319319
console.warn('KuzzleDataCollection.fetchAllDocuments may return extremely large amounts of documents, which may cause performance issues. Unless you know what you are doing, consider using KuzzleDataCollection.search or KuzzleDataCollection.scroll instead'); // eslint-disable-line no-console
320320
}
321321

322-
searchResult.documents.forEach(document => {
322+
searchResult.documents.forEach(function (document) {
323323
documents.push(document);
324324
});
325325
searchResult.next(getNextDocuments);

test/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
"no-new": 0,
66
"new-cap": 0,
77
"no-console": 0
8+
},
9+
"parserOptions": {
10+
"ecmaVersion": 6
811
}
912
}

0 commit comments

Comments
 (0)