This is an automated email from the ASF dual-hosted git repository.

jky pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flagon-useralejs.git

commit ededce7f5b97b5d898b1c59dfdd10c7413e2318f
Author: Jason Young <[email protected]>
AuthorDate: Fri Jan 26 10:53:42 2024 -0500

    Mark page load as custom
---
 build/UserALEWebExtension/background.js |  3 ---
 build/UserALEWebExtension/content.js    |  4 ----
 build/UserALEWebExtension/options.js    |  1 -
 build/userale-2.4.0.js                  | 17 ++++++++---------
 build/userale-2.4.0.min.js              |  3 ++-
 journey/userale.journey.cy.js           |  2 +-
 src/main.js                             |  1 -
 7 files changed, 11 insertions(+), 20 deletions(-)

diff --git a/build/UserALEWebExtension/background.js 
b/build/UserALEWebExtension/background.js
index 126c474..e5c2d63 100644
--- a/build/UserALEWebExtension/background.js
+++ b/build/UserALEWebExtension/background.js
@@ -64,7 +64,6 @@ var ADD_LOG = prefix + 'ADD_LOG';
  * limitations under the License.
  */
 
-
 /**
  * Creates a function to normalize the timestamp of the provided event.
  * @param  {Object} e An event containing a timeStamp property.
@@ -324,7 +323,6 @@ function createVersionParts(count) {
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 detect();
 
 /**
@@ -451,7 +449,6 @@ function sendLogs(logs, config, retries) {
  * limitations under the License.
  */
 
-
 // inherent dependency on globals.js, loaded by the webext
 
 // browser is defined in firefox, but not in chrome. In chrome, they use
diff --git a/build/UserALEWebExtension/content.js 
b/build/UserALEWebExtension/content.js
index 2ec7e1f..b14ae76 100644
--- a/build/UserALEWebExtension/content.js
+++ b/build/UserALEWebExtension/content.js
@@ -431,7 +431,6 @@ function createVersionParts(count) {
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 var browser$1 = detect();
 var logs$1;
 var config$1;
@@ -768,7 +767,6 @@ function detectBrowser() {
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 var events;
 var bufferBools;
 var bufferedEvents;
@@ -1033,7 +1031,6 @@ function setup(config) {
         started = config.on = true;
         packageCustomLog({
           type: 'load',
-          logType: 'raw',
           details: {
             pageLoadTime: endLoadTimestamp - startLoadTimestamp
           }
@@ -1075,7 +1072,6 @@ function options(newConfig) {
  * limitations under the License.
  */
 
-
 // browser is defined in firefox, but not in chrome. In chrome, they use
 // the 'chrome' global instead. Let's map it to browser so we don't have
 // to have if-conditions all over the place.
diff --git a/build/UserALEWebExtension/options.js 
b/build/UserALEWebExtension/options.js
index 1495455..8a40ae3 100644
--- a/build/UserALEWebExtension/options.js
+++ b/build/UserALEWebExtension/options.js
@@ -62,7 +62,6 @@ var CONFIG_CHANGE = prefix + 'CONFIG_CHANGE';
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-
 if (chrome) {
   browser = chrome;
 }
diff --git a/build/userale-2.4.0.js b/build/userale-2.4.0.js
index 6b89cc4..8b89a2d 100644
--- a/build/userale-2.4.0.js
+++ b/build/userale-2.4.0.js
@@ -22,14 +22,14 @@
   (global = typeof globalThis !== 'undefined' ? globalThis : global || self, 
factory(global.userale = {}));
 })(this, (function (exports) { 'use strict';
 
-  function _typeof(o) {
+  function _typeof(obj) {
     "@babel/helpers - typeof";
 
-    return _typeof = "function" == typeof Symbol && "symbol" == typeof 
Symbol.iterator ? function (o) {
-      return typeof o;
-    } : function (o) {
-      return o && "function" == typeof Symbol && o.constructor === Symbol && o 
!== Symbol.prototype ? "symbol" : typeof o;
-    }, _typeof(o);
+    return _typeof = "function" == typeof Symbol && "symbol" == typeof 
Symbol.iterator ? function (obj) {
+      return typeof obj;
+    } : function (obj) {
+      return obj && "function" == typeof Symbol && obj.constructor === Symbol 
&& obj !== Symbol.prototype ? "symbol" : typeof obj;
+    }, _typeof(obj);
   }
 
   var version$1 = "2.4.0";
@@ -416,7 +416,6 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
-
   var browser = detect();
   var logs$1;
   var config$1;
@@ -765,7 +764,6 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
-
   var events;
   var bufferBools;
   var bufferedEvents;
@@ -1095,7 +1093,6 @@
           exports.started = config.on = true;
           packageCustomLog({
             type: 'load',
-            logType: 'raw',
             details: {
               pageLoadTime: endLoadTimestamp - startLoadTimestamp
             }
@@ -1169,4 +1166,6 @@
   exports.stop = stop;
   exports.version = version;
 
+  Object.defineProperty(exports, '__esModule', { value: true });
+
 }));
diff --git a/build/userale-2.4.0.min.js b/build/userale-2.4.0.min.js
index 81d0c30..cdea5db 100644
--- a/build/userale-2.4.0.min.js
+++ b/build/userale-2.4.0.min.js
@@ -15,4 +15,5 @@
  * limitations under the License.
  * @preserved
  */
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof 
module?t(exports):"function"==typeof 
define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof 
globalThis?globalThis:e||self).userale={})}(this,(function(e){"use 
strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof 
Symbol.iterator?function(e){return typeof e}:function(e){return 
e&&"function"==typeof 
Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof 
e},t(e)}var n="2.4.0",o=null;fu [...]
+
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof 
module?t(exports):"function"==typeof 
define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof 
globalThis?globalThis:e||self).userale={})}(this,(function(e){"use 
strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof 
Symbol.iterator?function(e){return typeof e}:function(e){return 
e&&"function"==typeof 
Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof 
e},t(e)}var n="2.4.0",o=null;fu [...]
diff --git a/journey/userale.journey.cy.js b/journey/userale.journey.cy.js
index 52537a2..cb8d28d 100644
--- a/journey/userale.journey.cy.js
+++ b/journey/userale.journey.cy.js
@@ -28,7 +28,7 @@ describe('Userale logging', () => {
             const pageLoadLog = body[0]
             expect(pageLoadLog['details']['pageLoadTime']).to.be.greaterThan(0)
             expect(pageLoadLog).to.contain({
-                logType: 'raw',
+                logType: 'custom',
                 type: 'load'
             })
         })
diff --git a/src/main.js b/src/main.js
index 6d09c71..38d74aa 100644
--- a/src/main.js
+++ b/src/main.js
@@ -69,7 +69,6 @@ function setup(config) {
                 started = config.on = true;
                 packageCustomLog({
                     type: 'load',
-                    logType: 'raw',
                     details: {pageLoadTime: endLoadTimestamp - 
startLoadTimestamp}
                     }, () => {},false)
             } else {

Reply via email to