Skip to content

Commit c0990a1

Browse files
committed
Merge remote-tracking branch 'origin/develop' into factory-method-refactor
2 parents 702b318 + 475b4b8 commit c0990a1

File tree

9 files changed

+22
-12
lines changed

9 files changed

+22
-12
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
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install:
1818
- npm install
1919
env:
2020
global:
21-
secure: J5FHR91BBBrVqS5QMl+ZC3Oi2UgyQpW5SlKhfCwXJU2rz8XHNWajT5hjihlNiE6SVuUDVNflCcJI7DRD7+hwCt+G0rL9UuLnkKuMGVuVc/vMAjYpjRoVgWHk4KSwN4qWYcbF0k9d5POelI36xFnuQM0ttb3kDi/8T1s26Vsqw2Db1YDoK94ZkqO633gwwmr9RX05+sLXIuKai1bfIjUGU3YTusY0hDVw78Sg+/o1qCHNVwLDutpae/wLypO1/hujgh8SjIkAQBa/yp1gT2W+ykIaApk8eZn630usVttdToDgh2Z5+RLcgHOMi/p2/NvB/XKDq+sYh55tuKtdzu6MNx1vEVolcfiPkI0yPzwAs1IgTxAtGpKVkRlIZNMyksAQBikLqI6iFJHqYcPDHo+R+IwrXXSwZL/gbcfAtLiYWx1JnZHL8KfFz5KvRtINA4iEopzTQrOPJibFYNMWMyybvx7cHe4SAbtZxKq6cCt3fUzvwzfTIQ8m5k6y+w/bOiYY/HV8zvNw5bCS1N6h/6u8mmZMw3wv9N9eQz+h2BKwSziWt27CXcUKl6HhHklR7zj3/b7HwKW1o7Y0cixTl8kUBC8k+093Mhg4FmJWEAacfXVzRDs5nEejronmNUTi8hnpsSBeNMQnuD99zQp+eIi5PjfZ9DsCCM85cYb/LG1HyLs=
21+
secure: I4D0AX3ftua5iHdzj5NHm3Tzdr5ZVR0UTDOKzo6IhjqZOmcFsowD047nRHkSa9iMcefij/lVCgBvHdIIxNPQeJkOCssHapjKzOsppjW4rW2qfrwKmEQa/rpzdV4tXPuiX/JWspWc4Ll7rAQZJESLesp3ksoWafvViluJ7PY9OOXwIGPY7fdd6DO4yP795NwnigxBZ0ZJ3A0icbczntSZQztCxaVEHtNgy7W9MYJ3nLINsbiQN8FRa1UgvPdecgw05ST7mW82QK8y+ajR1YwG+/M8HWBxHuLPuLxN87UCPX6qe9upHPU9/RQvm7L4SoLckqcxJDtPoFueZf6pn1PN18Jp3b0D7frUJaY1qMx1x4KvYNQlgvJhZlEOtbvdolVecbL5sIYv7un/BzCAhe456WyB2LRBG/qPSzKdqrmsUWS5vVOdIMPqRLvC5GU/UC6pbVWIOytwcFYPs4xHyViyTpBQnlvF9oSx+D0RW726vKUEWPCG00KaNH9TY2BW3Ircvss8wc53/zRIG6xyppkoy9MbLPRV3tgfBXtr0ytKRBh4WbdCpTHl5CfDS2iuk49H0ZqnaG/8izmylqZXdZSKxdXCBcDv/6bV12qRWDzdBALaAthhR9mkjtpg6YKdNTcLpdkCCejiuoBsnI9Des9F6tOLAff8hLjv2xkgnrdbfzM=
2222
deploy:
2323
provider: npm
2424
skip_cleanup: true

deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! /bin/bash
2+
set -e
23

34
if [ "${TRAVIS_BRANCH}" = "master" -a "${TRAVIS_PULL_REQUEST}" = "false" ]
45
then

dist/kuzzle.js

Lines changed: 3 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.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kuzzle-sdk",
3-
"version": "2.3.0",
3+
"version": "2.3.3",
44
"description": "Official Javascript SDK for Kuzzle",
55
"author": "The Kuzzle Team <[email protected]>",
66
"repository": {
@@ -29,8 +29,9 @@
2929
"dependencies": {
3030
"bluebird": "3.4.6",
3131
"bufferutil": "^1.2.1",
32-
"uuid": "3.0.0",
32+
"eslint-loader": "^1.6.1",
3333
"utf-8-validate": "^1.2.1",
34+
"uuid": "3.0.0",
3435
"ws": "^1.1.1"
3536
},
3637
"devDependencies": {

src/Collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Collection.prototype.fetchAllDocuments = function (options, cb) {
319319
console.warn('Collection.fetchAllDocuments may return extremely large amounts of documents, which may cause performance issues. Unless you know what you are doing, consider using Collection.search or Collection.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
}

webpack.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
var webpack = require('webpack');
2-
var path = require('path');
1+
var
2+
webpack = require('webpack'),
3+
path = require('path'),
4+
version = require('./package.json').version;
35

46
module.exports = {
57
entry: './src/kuzzle.js',
68
output: {
79
path: './dist',
810
filename: 'kuzzle.js',
11+
library: 'Kuzzle',
912
libraryTarget: 'umd'
1013
},
1114
watch: false,
1215
debug: false,
1316
devtool: 'source-map',
1417
node: {
1518
console: false,
16-
global: false,
19+
global: true,
1720
process: false,
1821
Buffer: false,
1922
__filename: false,
@@ -24,7 +27,7 @@ module.exports = {
2427
loaders: [
2528
{
2629
test: /\.js$/,
27-
loader: 'eslint',
30+
loader: 'eslint-loader',
2831
include: path.resolve(__dirname, './src/'),
2932
exclude: /node_modules/
3033
}
@@ -40,6 +43,7 @@ module.exports = {
4043
new webpack.DefinePlugin({
4144
global: 'window'
4245
}),
46+
new webpack.BannerPlugin('Kuzzle javascript SDK version ' + version),
4347
new webpack.optimize.UglifyJsPlugin({
4448
compressor: {
4549
warnings: false

0 commit comments

Comments
 (0)