backendless 7.0.3 → 7.0.5
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/backendless.js +13 -5
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/logging/index.js +12 -4
- package/lib/logging/index.js +12 -4
- package/package.json +1 -1
- package/src/logging/index.js +10 -2
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 7.0.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 7.0.5
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -7155,9 +7155,17 @@ var Logging = /*#__PURE__*/function () {
|
|
|
7155
7155
|
}, {
|
|
7156
7156
|
key: "checkMessagesLen",
|
|
7157
7157
|
value: function checkMessagesLen() {
|
|
7158
|
-
|
|
7159
|
-
|
|
7158
|
+
var _this3 = this;
|
|
7159
|
+
if (this.checkMessagesLenTimer) {
|
|
7160
|
+
clearTimeout(this.checkMessagesLenTimer);
|
|
7160
7161
|
}
|
|
7162
|
+
this.checkMessagesLenTimer = setTimeout(function () {
|
|
7163
|
+
if (_this3.messages.length >= _this3.numOfMessages) {
|
|
7164
|
+
_this3.flush();
|
|
7165
|
+
} else {
|
|
7166
|
+
_this3.startFlushInterval();
|
|
7167
|
+
}
|
|
7168
|
+
}, 0);
|
|
7161
7169
|
}
|
|
7162
7170
|
}, {
|
|
7163
7171
|
key: "checkMessagesLimit",
|
|
@@ -7169,10 +7177,10 @@ var Logging = /*#__PURE__*/function () {
|
|
|
7169
7177
|
}, {
|
|
7170
7178
|
key: "startFlushInterval",
|
|
7171
7179
|
value: function startFlushInterval() {
|
|
7172
|
-
var
|
|
7180
|
+
var _this4 = this;
|
|
7173
7181
|
if (!this.flushInterval) {
|
|
7174
7182
|
this.flushInterval = setTimeout(function () {
|
|
7175
|
-
return
|
|
7183
|
+
return _this4.flush();
|
|
7176
7184
|
}, this.timeFrequency * 1000);
|
|
7177
7185
|
}
|
|
7178
7186
|
}
|