File tree Expand file tree Collapse file tree 6 files changed +36
-9
lines changed
Expand file tree Collapse file tree 6 files changed +36
-9
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ script:
1818 - npm run reporter
1919 - npm run e2e
2020 - npm run specs
21+ - npm run build
2122
2223after_script : " cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
2324
Original file line number Diff line number Diff line change 1+ ## [ 2.1.5] - 2017-05-03
2+
3+ ### Bug Fixes
4+ - Calling login() with a callback (but no auth data) now behaves as you would expect.
5+ - Fix issue where client did not emit ` MAX_RECONNECTION_ATTEMPTS_REACHED ` event by [ @rbarroetavena ] ( @rbarroetavena ) .
6+
17## [ 2.1.4] - 2017-04-11
28
39### Enhancements
Original file line number Diff line number Diff line change @@ -358,6 +358,10 @@ process.off = noop;
358358process . removeListener = noop ;
359359process . removeAllListeners = noop ;
360360process . emit = noop ;
361+ process . prependListener = noop ;
362+ process . prependOnceListener = noop ;
363+
364+ process . listeners = function ( name ) { return [ ] }
361365
362366process . binding = function ( name ) {
363367 throw new Error ( 'process.binding is not supported' ) ;
@@ -1916,8 +1920,12 @@ Emitter(Client.prototype); // eslint-disable-line
19161920 * @public
19171921 * @returns {Client }
19181922 */
1919- Client . prototype . login = function ( authParams , callback ) {
1920- this . _connection . authenticate ( authParams || { } , callback ) ;
1923+ Client . prototype . login = function ( authParamsOrCallback , callback ) {
1924+ if ( typeof authParamsOrCallback === 'function' ) {
1925+ this . _connection . authenticate ( { } , authParamsOrCallback ) ;
1926+ } else {
1927+ this . _connection . authenticate ( authParamsOrCallback || { } , callback ) ;
1928+ }
19211929 return this ;
19221930} ;
19231931
Original file line number Diff line number Diff line change @@ -76,8 +76,12 @@ Emitter(Client.prototype); // eslint-disable-line
7676 * @public
7777 * @returns {Client }
7878 */
79- Client . prototype . login = function ( authParams , callback ) {
80- this . _connection . authenticate ( authParams || { } , callback ) ;
79+ Client . prototype . login = function ( authParamsOrCallback , callback ) {
80+ if ( typeof authParamsOrCallback === 'function' ) {
81+ this . _connection . authenticate ( { } , authParamsOrCallback ) ;
82+ } else {
83+ this . _connection . authenticate ( authParamsOrCallback || { } , callback ) ;
84+ }
8185 return this ;
8286} ;
8387
Original file line number Diff line number Diff line change 11{
22 "name" : " deepstream.io-client-js" ,
3- "version" : " 2.1.4 " ,
3+ "version" : " 2.1.5 " ,
44 "description" : " the javascript client for deepstream.io" ,
55 "main" : " dist/lib/client.js" ,
66 "types" : " src/client.d.ts" ,
2626 "login-e2e" : " npm run e2e -- --tags @login" ,
2727 "presence-e2e" : " npm run e2e -- --tags @presence" ,
2828 "specs" : " node ./node_modules/cucumber/bin/cucumber.js test-specs --require ./test-specs/steps" ,
29- "build" : " babel src -d dist/lib --presets es2015 && grunt build"
29+ "build" : " ./node_modules/.bin/ babel src -d dist/lib --presets es2015 && ./node_modules/.bin/ grunt build"
3030 },
3131 "repository" : {
3232 "type" : " git" ,
4747 "ws" : false
4848 },
4949 "devDependencies" : {
50+ "babel-cli" : " ^6.24.1" ,
51+ "grunt" : " ^1.0.1" ,
52+ "babel-preset-es2015" : " ^6.24.1" ,
53+ "babelify" : " ^7.3.0" ,
5054 "coveralls" : " ^2.11.16" ,
5155 "cucumber" : " ^1.3.1" ,
5256 "deepstream.io" : " git+https://github.com/deepstreamIO/deepstream.io.git" ,
5357 "deepstream.io-cache-redis" : " latest" ,
5458 "deepstream.io-msg-redis" : " latest" ,
59+ "derequire" : " ^2.0.6" ,
5560 "eslint-config-deepstream" : " ^2.1.1" ,
61+ "grunt-browserify" : " ^5.0.0" ,
62+ "grunt-cli" : " ^1.2.0" ,
63+ "grunt-contrib-uglify" : " ^2.3.0" ,
5664 "husky" : " ^0.13.2" ,
5765 "istanbul" : " ^0.4.5" ,
5866 "jasmine" : " ^2.5.3" ,
You can’t perform that action at this time.
0 commit comments