@firebase/data-connect 0.7.1-eap-crashlytics.558ee841d → 0.7.1-eap-crashlytics.659b578fb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +6 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +6 -5
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +6 -5
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +12 -12
package/dist/index.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
|
|
|
8
8
|
var logger$1 = require('@firebase/logger');
|
|
9
9
|
|
|
10
10
|
const name = "@firebase/data-connect";
|
|
11
|
-
const version = "0.7.1-eap-crashlytics.
|
|
11
|
+
const version = "0.7.1-eap-crashlytics.659b578fb";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -1667,13 +1667,13 @@ class RESTTransport extends AbstractDataConnectTransport {
|
|
|
1667
1667
|
/** The Request ID of the first request over the stream */
|
|
1668
1668
|
const FIRST_REQUEST_ID = 1;
|
|
1669
1669
|
/** Time to wait before closing an idle connection (no active subscriptions). */
|
|
1670
|
-
const IDLE_CONNECTION_TIMEOUT_MS =
|
|
1670
|
+
const IDLE_CONNECTION_TIMEOUT_MS = 15 * 1000; // 15 seconds
|
|
1671
1671
|
/** Initial reconnect delay in ms */
|
|
1672
|
-
const INITIAL_RECONNECT_DELAY_MS = 1000;
|
|
1672
|
+
const INITIAL_RECONNECT_DELAY_MS = 1000; // 1 second
|
|
1673
1673
|
/** Max reconnect delay in ms */
|
|
1674
|
-
const MAX_RECONNECT_DELAY_MS =
|
|
1674
|
+
const MAX_RECONNECT_DELAY_MS = 30 * 1000; // 30 seconds
|
|
1675
1675
|
/** Max random jitter to add to reconnect delay in ms */
|
|
1676
|
-
const MAX_RECONNECT_JITTER_MS =
|
|
1676
|
+
const MAX_RECONNECT_JITTER_MS = 0.5 * 1000; // 0.5 seconds
|
|
1677
1677
|
/** Factor to multiply delay by on failure */
|
|
1678
1678
|
const RECONNECT_BACKOFF_FACTOR = 1.3;
|
|
1679
1679
|
/** Max number of reconnection attempts before giving up */
|
|
@@ -3137,6 +3137,7 @@ function makeMemoryCacheProvider() {
|
|
|
3137
3137
|
* See the License for the specific language governing permissions and
|
|
3138
3138
|
* limitations under the License.
|
|
3139
3139
|
*/
|
|
3140
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3140
3141
|
function registerDataConnect(variant) {
|
|
3141
3142
|
setSDKVersion(app.SDK_VERSION);
|
|
3142
3143
|
app._registerComponent(new component.Component('data-connect', (container, { instanceIdentifier: connectorConfigStr, options }) => {
|