@auroradao/datastream-connection
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [1.6.0](https://github.com/AuroraDAO/datastream-client-js/compare/v1.5.0...v1.6.0) (2019-04-17) | ||
### Features | ||
* allow token config and setters for key/token ([94fe260](https://github.com/AuroraDAO/datastream-client-js/commit/94fe260)) | ||
* upgrade to typescript 3.4 ([feee265](https://github.com/AuroraDAO/datastream-client-js/commit/feee265)) | ||
# [1.5.0](https://github.com/AuroraDAO/datastream-client-js/compare/v1.4.1...v1.5.0) (2019-04-08) | ||
@@ -8,0 +20,0 @@ |
@@ -273,3 +273,3 @@ "use strict"; | ||
} | ||
if (!config.auto) { | ||
if (!config.auto && !force) { | ||
return Infinity; | ||
@@ -346,2 +346,5 @@ } | ||
}, | ||
reconnect: function () { | ||
reconnect(true); | ||
}, | ||
send: function (message, shouldBufferRequest) { | ||
@@ -376,2 +379,7 @@ if (!message.request) { | ||
}, | ||
reset: function () { | ||
if (state === STATE.FATAL) { | ||
state = STATE.IDLE; | ||
} | ||
}, | ||
}; | ||
@@ -378,0 +386,0 @@ return connection; |
@@ -18,2 +18,3 @@ "use strict"; | ||
key: config.key, | ||
token: config.token, | ||
}), | ||
@@ -20,0 +21,0 @@ }); }, |
{ | ||
"name": "@auroradao/datastream-connection", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Internal package called by @auroradao/datastream-client which maintains the provided connector.", | ||
@@ -27,6 +27,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@auroradao/datastream-types": "^1.5.0", | ||
"@auroradao/datastream-types": "^1.6.0", | ||
"task-handler": "^2.12.0" | ||
}, | ||
"gitHead": "a508ba1a3dec99b777eee3a543fa004973d93140" | ||
"gitHead": "f4a268a015106bbaf2fd634e40227f864cddbf48" | ||
} |
@@ -435,3 +435,3 @@ import * as $Datastream from '@auroradao/datastream-types'; | ||
} | ||
if (!config.auto) { | ||
if (!config.auto && !force) { | ||
// do not allow reconnect | ||
@@ -535,2 +535,6 @@ return Infinity; | ||
reconnect() { | ||
reconnect(true); | ||
}, | ||
/** | ||
@@ -608,2 +612,12 @@ * | ||
}, | ||
/** | ||
* Resets a FATAL state if it exists and is only applicable when the `token` or `key` has been | ||
* changed. | ||
*/ | ||
reset() { | ||
if (state === STATE.FATAL) { | ||
state = STATE.IDLE; | ||
} | ||
}, | ||
}; | ||
@@ -610,0 +624,0 @@ |
@@ -13,3 +13,3 @@ import * as $Datastream from '@auroradao/datastream-types'; | ||
handshake: ( | ||
config: $Datastream.Configuration | ||
config: $Datastream.Configuration, | ||
): $Datastream.Request<'handshake'> => ({ | ||
@@ -22,4 +22,5 @@ request: 'handshake', | ||
key: config.key, | ||
token: config.token, | ||
}), | ||
}), | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147764
46
1477