@rudderstack/analytics-js 3.11.5 → 3.11.6
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/CHANGELOG.md +7 -0
- package/dist/npm/legacy/bundled/cjs/index.cjs +3 -17
- package/dist/npm/legacy/bundled/esm/index.mjs +3 -17
- package/dist/npm/legacy/bundled/umd/index.js +3 -17
- package/dist/npm/legacy/cjs/index.cjs +3 -17
- package/dist/npm/legacy/content-script/cjs/index.cjs +3 -17
- package/dist/npm/legacy/content-script/esm/index.mjs +3 -17
- package/dist/npm/legacy/content-script/umd/index.js +3 -17
- package/dist/npm/legacy/esm/index.mjs +3 -17
- package/dist/npm/legacy/umd/index.js +3 -17
- package/dist/npm/modern/bundled/cjs/index.cjs +3 -17
- package/dist/npm/modern/bundled/esm/index.mjs +3 -17
- package/dist/npm/modern/bundled/umd/index.js +3 -17
- package/dist/npm/modern/cjs/index.cjs +3 -17
- package/dist/npm/modern/content-script/cjs/index.cjs +3 -17
- package/dist/npm/modern/content-script/esm/index.mjs +3 -17
- package/dist/npm/modern/content-script/umd/index.js +3 -17
- package/dist/npm/modern/esm/index.mjs +3 -17
- package/dist/npm/modern/umd/index.js +3 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [3.11.6](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.11.5...@rudderstack/analytics-js@3.11.6) (2024-11-21)
|
6
|
+
|
7
|
+
### Dependency Updates
|
8
|
+
|
9
|
+
* `@rudderstack/analytics-js-cookies` updated to version `0.4.8`
|
10
|
+
* `@rudderstack/analytics-js-common` updated to version `3.14.5`
|
11
|
+
* `@rudderstack/analytics-js-plugins` updated to version `3.6.9`
|
5
12
|
## [3.11.5](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.11.4...@rudderstack/analytics-js@3.11.5) (2024-11-21)
|
6
13
|
|
7
14
|
### Dependency Updates
|
@@ -837,10 +837,6 @@ var isFunction=function isFunction(value){return typeof value==='function'&&Bool
|
|
837
837
|
* @param value input value
|
838
838
|
* @returns boolean
|
839
839
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
840
|
-
* Checks if the input is a BigInt
|
841
|
-
* @param value input value
|
842
|
-
* @returns True if the input is a BigInt
|
843
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
844
840
|
* A function to check given value is defined
|
845
841
|
* @param value input value
|
846
842
|
* @returns boolean
|
@@ -919,23 +915,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
919
915
|
* @param {boolean} excludeNull if it should exclude nul or not
|
920
916
|
* @param {function} logger optional logger methods for warning
|
921
917
|
* @returns string
|
922
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
923
|
-
// Using a regular function to use `this` for the parent context
|
924
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
925
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
926
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
927
|
-
// @ts-ignore-next-line
|
928
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
929
|
-
}// Check for circular references (if the value is already in the ancestors)
|
930
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
931
|
-
ancestors.push(value);return value;};};/**
|
918
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
932
919
|
* Recursively traverses an object similar to JSON.stringify,
|
933
920
|
* sanitizing BigInts and circular references
|
934
921
|
* @param value Input object
|
935
922
|
* @param logger Logger instance
|
936
923
|
* @returns Sanitized value
|
937
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
938
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
924
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
939
925
|
|
940
926
|
// if yes make them null instead of omitting in overloaded cases
|
941
927
|
/*
|
@@ -1022,7 +1008,7 @@ var MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
1022
1008
|
* @returns Instance of Error with message prepended with issue
|
1023
1009
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1024
1010
|
|
1025
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1011
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1026
1012
|
|
1027
1013
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1028
1014
|
|
@@ -835,10 +835,6 @@ var isFunction=function isFunction(value){return typeof value==='function'&&Bool
|
|
835
835
|
* @param value input value
|
836
836
|
* @returns boolean
|
837
837
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
838
|
-
* Checks if the input is a BigInt
|
839
|
-
* @param value input value
|
840
|
-
* @returns True if the input is a BigInt
|
841
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
842
838
|
* A function to check given value is defined
|
843
839
|
* @param value input value
|
844
840
|
* @returns boolean
|
@@ -917,23 +913,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
917
913
|
* @param {boolean} excludeNull if it should exclude nul or not
|
918
914
|
* @param {function} logger optional logger methods for warning
|
919
915
|
* @returns string
|
920
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
921
|
-
// Using a regular function to use `this` for the parent context
|
922
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
923
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
924
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
925
|
-
// @ts-ignore-next-line
|
926
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
927
|
-
}// Check for circular references (if the value is already in the ancestors)
|
928
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
929
|
-
ancestors.push(value);return value;};};/**
|
916
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
930
917
|
* Recursively traverses an object similar to JSON.stringify,
|
931
918
|
* sanitizing BigInts and circular references
|
932
919
|
* @param value Input object
|
933
920
|
* @param logger Logger instance
|
934
921
|
* @returns Sanitized value
|
935
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
936
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
922
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
937
923
|
|
938
924
|
// if yes make them null instead of omitting in overloaded cases
|
939
925
|
/*
|
@@ -1020,7 +1006,7 @@ var MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
1020
1006
|
* @returns Instance of Error with message prepended with issue
|
1021
1007
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1022
1008
|
|
1023
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1009
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1024
1010
|
|
1025
1011
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1026
1012
|
|
@@ -841,10 +841,6 @@
|
|
841
841
|
* @param value input value
|
842
842
|
* @returns boolean
|
843
843
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
844
|
-
* Checks if the input is a BigInt
|
845
|
-
* @param value input value
|
846
|
-
* @returns True if the input is a BigInt
|
847
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
848
844
|
* A function to check given value is defined
|
849
845
|
* @param value input value
|
850
846
|
* @returns boolean
|
@@ -923,23 +919,13 @@
|
|
923
919
|
* @param {boolean} excludeNull if it should exclude nul or not
|
924
920
|
* @param {function} logger optional logger methods for warning
|
925
921
|
* @returns string
|
926
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
927
|
-
// Using a regular function to use `this` for the parent context
|
928
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
929
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
930
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
931
|
-
// @ts-ignore-next-line
|
932
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
933
|
-
}// Check for circular references (if the value is already in the ancestors)
|
934
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
935
|
-
ancestors.push(value);return value;};};/**
|
922
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
936
923
|
* Recursively traverses an object similar to JSON.stringify,
|
937
924
|
* sanitizing BigInts and circular references
|
938
925
|
* @param value Input object
|
939
926
|
* @param logger Logger instance
|
940
927
|
* @returns Sanitized value
|
941
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
942
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
928
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
943
929
|
|
944
930
|
// if yes make them null instead of omitting in overloaded cases
|
945
931
|
/*
|
@@ -1026,7 +1012,7 @@
|
|
1026
1012
|
* @returns Instance of Error with message prepended with issue
|
1027
1013
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1028
1014
|
|
1029
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1015
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1030
1016
|
|
1031
1017
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1032
1018
|
|
@@ -837,10 +837,6 @@ var isFunction=function isFunction(value){return typeof value==='function'&&Bool
|
|
837
837
|
* @param value input value
|
838
838
|
* @returns boolean
|
839
839
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
840
|
-
* Checks if the input is a BigInt
|
841
|
-
* @param value input value
|
842
|
-
* @returns True if the input is a BigInt
|
843
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
844
840
|
* A function to check given value is defined
|
845
841
|
* @param value input value
|
846
842
|
* @returns boolean
|
@@ -919,23 +915,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
919
915
|
* @param {boolean} excludeNull if it should exclude nul or not
|
920
916
|
* @param {function} logger optional logger methods for warning
|
921
917
|
* @returns string
|
922
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
923
|
-
// Using a regular function to use `this` for the parent context
|
924
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
925
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
926
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
927
|
-
// @ts-ignore-next-line
|
928
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
929
|
-
}// Check for circular references (if the value is already in the ancestors)
|
930
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
931
|
-
ancestors.push(value);return value;};};/**
|
918
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
932
919
|
* Recursively traverses an object similar to JSON.stringify,
|
933
920
|
* sanitizing BigInts and circular references
|
934
921
|
* @param value Input object
|
935
922
|
* @param logger Logger instance
|
936
923
|
* @returns Sanitized value
|
937
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
938
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
924
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
939
925
|
|
940
926
|
// if yes make them null instead of omitting in overloaded cases
|
941
927
|
/*
|
@@ -1022,7 +1008,7 @@ var MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
1022
1008
|
* @returns Instance of Error with message prepended with issue
|
1023
1009
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1024
1010
|
|
1025
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1011
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1026
1012
|
|
1027
1013
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1028
1014
|
|
@@ -837,10 +837,6 @@ var isFunction=function isFunction(value){return typeof value==='function'&&Bool
|
|
837
837
|
* @param value input value
|
838
838
|
* @returns boolean
|
839
839
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
840
|
-
* Checks if the input is a BigInt
|
841
|
-
* @param value input value
|
842
|
-
* @returns True if the input is a BigInt
|
843
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
844
840
|
* A function to check given value is defined
|
845
841
|
* @param value input value
|
846
842
|
* @returns boolean
|
@@ -919,23 +915,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
919
915
|
* @param {boolean} excludeNull if it should exclude nul or not
|
920
916
|
* @param {function} logger optional logger methods for warning
|
921
917
|
* @returns string
|
922
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
923
|
-
// Using a regular function to use `this` for the parent context
|
924
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
925
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
926
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
927
|
-
// @ts-ignore-next-line
|
928
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
929
|
-
}// Check for circular references (if the value is already in the ancestors)
|
930
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
931
|
-
ancestors.push(value);return value;};};/**
|
918
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
932
919
|
* Recursively traverses an object similar to JSON.stringify,
|
933
920
|
* sanitizing BigInts and circular references
|
934
921
|
* @param value Input object
|
935
922
|
* @param logger Logger instance
|
936
923
|
* @returns Sanitized value
|
937
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
938
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
924
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
939
925
|
|
940
926
|
// if yes make them null instead of omitting in overloaded cases
|
941
927
|
/*
|
@@ -1022,7 +1008,7 @@ var MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
1022
1008
|
* @returns Instance of Error with message prepended with issue
|
1023
1009
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1024
1010
|
|
1025
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1011
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1026
1012
|
|
1027
1013
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1028
1014
|
|
@@ -835,10 +835,6 @@ var isFunction=function isFunction(value){return typeof value==='function'&&Bool
|
|
835
835
|
* @param value input value
|
836
836
|
* @returns boolean
|
837
837
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
838
|
-
* Checks if the input is a BigInt
|
839
|
-
* @param value input value
|
840
|
-
* @returns True if the input is a BigInt
|
841
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
842
838
|
* A function to check given value is defined
|
843
839
|
* @param value input value
|
844
840
|
* @returns boolean
|
@@ -917,23 +913,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
917
913
|
* @param {boolean} excludeNull if it should exclude nul or not
|
918
914
|
* @param {function} logger optional logger methods for warning
|
919
915
|
* @returns string
|
920
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
921
|
-
// Using a regular function to use `this` for the parent context
|
922
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
923
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
924
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
925
|
-
// @ts-ignore-next-line
|
926
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
927
|
-
}// Check for circular references (if the value is already in the ancestors)
|
928
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
929
|
-
ancestors.push(value);return value;};};/**
|
916
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
930
917
|
* Recursively traverses an object similar to JSON.stringify,
|
931
918
|
* sanitizing BigInts and circular references
|
932
919
|
* @param value Input object
|
933
920
|
* @param logger Logger instance
|
934
921
|
* @returns Sanitized value
|
935
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
936
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
922
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
937
923
|
|
938
924
|
// if yes make them null instead of omitting in overloaded cases
|
939
925
|
/*
|
@@ -1020,7 +1006,7 @@ var MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
1020
1006
|
* @returns Instance of Error with message prepended with issue
|
1021
1007
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1022
1008
|
|
1023
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1009
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1024
1010
|
|
1025
1011
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1026
1012
|
|
@@ -841,10 +841,6 @@
|
|
841
841
|
* @param value input value
|
842
842
|
* @returns boolean
|
843
843
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
844
|
-
* Checks if the input is a BigInt
|
845
|
-
* @param value input value
|
846
|
-
* @returns True if the input is a BigInt
|
847
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
848
844
|
* A function to check given value is defined
|
849
845
|
* @param value input value
|
850
846
|
* @returns boolean
|
@@ -923,23 +919,13 @@
|
|
923
919
|
* @param {boolean} excludeNull if it should exclude nul or not
|
924
920
|
* @param {function} logger optional logger methods for warning
|
925
921
|
* @returns string
|
926
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
927
|
-
// Using a regular function to use `this` for the parent context
|
928
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
929
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
930
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
931
|
-
// @ts-ignore-next-line
|
932
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
933
|
-
}// Check for circular references (if the value is already in the ancestors)
|
934
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
935
|
-
ancestors.push(value);return value;};};/**
|
922
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
936
923
|
* Recursively traverses an object similar to JSON.stringify,
|
937
924
|
* sanitizing BigInts and circular references
|
938
925
|
* @param value Input object
|
939
926
|
* @param logger Logger instance
|
940
927
|
* @returns Sanitized value
|
941
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
942
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
928
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
943
929
|
|
944
930
|
// if yes make them null instead of omitting in overloaded cases
|
945
931
|
/*
|
@@ -1026,7 +1012,7 @@
|
|
1026
1012
|
* @returns Instance of Error with message prepended with issue
|
1027
1013
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1028
1014
|
|
1029
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1015
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1030
1016
|
|
1031
1017
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1032
1018
|
|
@@ -835,10 +835,6 @@ var isFunction=function isFunction(value){return typeof value==='function'&&Bool
|
|
835
835
|
* @param value input value
|
836
836
|
* @returns boolean
|
837
837
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
838
|
-
* Checks if the input is a BigInt
|
839
|
-
* @param value input value
|
840
|
-
* @returns True if the input is a BigInt
|
841
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
842
838
|
* A function to check given value is defined
|
843
839
|
* @param value input value
|
844
840
|
* @returns boolean
|
@@ -917,23 +913,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
917
913
|
* @param {boolean} excludeNull if it should exclude nul or not
|
918
914
|
* @param {function} logger optional logger methods for warning
|
919
915
|
* @returns string
|
920
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
921
|
-
// Using a regular function to use `this` for the parent context
|
922
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
923
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
924
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
925
|
-
// @ts-ignore-next-line
|
926
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
927
|
-
}// Check for circular references (if the value is already in the ancestors)
|
928
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
929
|
-
ancestors.push(value);return value;};};/**
|
916
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
930
917
|
* Recursively traverses an object similar to JSON.stringify,
|
931
918
|
* sanitizing BigInts and circular references
|
932
919
|
* @param value Input object
|
933
920
|
* @param logger Logger instance
|
934
921
|
* @returns Sanitized value
|
935
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
936
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
922
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
937
923
|
|
938
924
|
// if yes make them null instead of omitting in overloaded cases
|
939
925
|
/*
|
@@ -1020,7 +1006,7 @@ var MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
1020
1006
|
* @returns Instance of Error with message prepended with issue
|
1021
1007
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1022
1008
|
|
1023
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1009
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1024
1010
|
|
1025
1011
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1026
1012
|
|
@@ -841,10 +841,6 @@
|
|
841
841
|
* @param value input value
|
842
842
|
* @returns boolean
|
843
843
|
*/var isNullOrUndefined=function isNullOrUndefined(value){return isNull(value)||isUndefined(value);};/**
|
844
|
-
* Checks if the input is a BigInt
|
845
|
-
* @param value input value
|
846
|
-
* @returns True if the input is a BigInt
|
847
|
-
*/var isBigInt=function isBigInt(value){return typeof value==='bigint';};/**
|
848
844
|
* A function to check given value is defined
|
849
845
|
* @param value input value
|
850
846
|
* @returns boolean
|
@@ -923,23 +919,13 @@
|
|
923
919
|
* @param {boolean} excludeNull if it should exclude nul or not
|
924
920
|
* @param {function} logger optional logger methods for warning
|
925
921
|
* @returns string
|
926
|
-
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
927
|
-
// Using a regular function to use `this` for the parent context
|
928
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
929
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
930
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
931
|
-
// @ts-ignore-next-line
|
932
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
933
|
-
}// Check for circular references (if the value is already in the ancestors)
|
934
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
935
|
-
ancestors.push(value);return value;};};/**
|
922
|
+
*/var stringifyWithoutCircular=function stringifyWithoutCircular(value,excludeNull,excludeKeys,logger){try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger===null||logger===void 0||logger.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
936
923
|
* Recursively traverses an object similar to JSON.stringify,
|
937
924
|
* sanitizing BigInts and circular references
|
938
925
|
* @param value Input object
|
939
926
|
* @param logger Logger instance
|
940
927
|
* @returns Sanitized value
|
941
|
-
*/var getSanitizedValue=function getSanitizedValue(value,logger){
|
942
|
-
var newValue=replacer.call(value,'',value);return newValue;};
|
928
|
+
*/var getSanitizedValue=function getSanitizedValue(value,logger){return value;};
|
943
929
|
|
944
930
|
// if yes make them null instead of omitting in overloaded cases
|
945
931
|
/*
|
@@ -1026,7 +1012,7 @@
|
|
1026
1012
|
* @returns Instance of Error with message prepended with issue
|
1027
1013
|
*/var getMutatedError=function getMutatedError(err,issue){var finalError=err;if(!isTypeOfError(err)){finalError=new Error("".concat(issue,": ").concat(stringifyWithoutCircular(err)));}else {finalError.message="".concat(issue,": ").concat(err.message);}return finalError;};var dispatchErrorEvent=function dispatchErrorEvent(error){if(isTypeOfError(error)){var _error$stack;error.stack="".concat((_error$stack=error.stack)!==null&&_error$stack!==void 0?_error$stack:'',"\n").concat(MANUAL_ERROR_IDENTIFIER);}globalThis.dispatchEvent(new ErrorEvent('error',{error:error}));};
|
1028
1014
|
|
1029
|
-
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.
|
1015
|
+
var APP_NAME='RudderLabs JavaScript SDK';var APP_VERSION='3.11.6';var APP_NAMESPACE='com.rudderlabs.javascript';var MODULE_TYPE='npm';var ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';var ADBLOCK_PAGE_NAME='ad-block page request';var ADBLOCK_PAGE_PATH='/ad-blocked';var GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';var CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
1030
1016
|
|
1031
1017
|
var QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';var QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';var QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';var QUERY_PARAM_USER_ID_KEY='ajs_uid';var QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
1032
1018
|
|
@@ -273,10 +273,6 @@ const isFunction=value=>typeof value==='function'&&Boolean(value.constructor&&va
|
|
273
273
|
* @param value input value
|
274
274
|
* @returns boolean
|
275
275
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
276
|
-
* Checks if the input is a BigInt
|
277
|
-
* @param value input value
|
278
|
-
* @returns True if the input is a BigInt
|
279
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
280
276
|
* A function to check given value is defined
|
281
277
|
* @param value input value
|
282
278
|
* @returns boolean
|
@@ -355,23 +351,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
355
351
|
* @param {boolean} excludeNull if it should exclude nul or not
|
356
352
|
* @param {function} logger optional logger methods for warning
|
357
353
|
* @returns string
|
358
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
359
|
-
// Using a regular function to use `this` for the parent context
|
360
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
361
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
362
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
363
|
-
// @ts-ignore-next-line
|
364
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
365
|
-
}// Check for circular references (if the value is already in the ancestors)
|
366
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
367
|
-
ancestors.push(value);return value;};};/**
|
354
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
368
355
|
* Recursively traverses an object similar to JSON.stringify,
|
369
356
|
* sanitizing BigInts and circular references
|
370
357
|
* @param value Input object
|
371
358
|
* @param logger Logger instance
|
372
359
|
* @returns Sanitized value
|
373
|
-
*/const getSanitizedValue=(value,logger)=>
|
374
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
360
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
375
361
|
|
376
362
|
// if yes make them null instead of omitting in overloaded cases
|
377
363
|
/*
|
@@ -458,7 +444,7 @@ const MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
458
444
|
* @returns Instance of Error with message prepended with issue
|
459
445
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
460
446
|
|
461
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
447
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
462
448
|
|
463
449
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
464
450
|
|
@@ -269,10 +269,6 @@ const isFunction=value=>typeof value==='function'&&Boolean(value.constructor&&va
|
|
269
269
|
* @param value input value
|
270
270
|
* @returns boolean
|
271
271
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
272
|
-
* Checks if the input is a BigInt
|
273
|
-
* @param value input value
|
274
|
-
* @returns True if the input is a BigInt
|
275
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
276
272
|
* A function to check given value is defined
|
277
273
|
* @param value input value
|
278
274
|
* @returns boolean
|
@@ -351,23 +347,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
351
347
|
* @param {boolean} excludeNull if it should exclude nul or not
|
352
348
|
* @param {function} logger optional logger methods for warning
|
353
349
|
* @returns string
|
354
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
355
|
-
// Using a regular function to use `this` for the parent context
|
356
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
357
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
358
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
359
|
-
// @ts-ignore-next-line
|
360
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
361
|
-
}// Check for circular references (if the value is already in the ancestors)
|
362
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
363
|
-
ancestors.push(value);return value;};};/**
|
350
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
364
351
|
* Recursively traverses an object similar to JSON.stringify,
|
365
352
|
* sanitizing BigInts and circular references
|
366
353
|
* @param value Input object
|
367
354
|
* @param logger Logger instance
|
368
355
|
* @returns Sanitized value
|
369
|
-
*/const getSanitizedValue=(value,logger)=>
|
370
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
356
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
371
357
|
|
372
358
|
// if yes make them null instead of omitting in overloaded cases
|
373
359
|
/*
|
@@ -454,7 +440,7 @@ const MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
454
440
|
* @returns Instance of Error with message prepended with issue
|
455
441
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
456
442
|
|
457
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
443
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
458
444
|
|
459
445
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
460
446
|
|
@@ -275,10 +275,6 @@
|
|
275
275
|
* @param value input value
|
276
276
|
* @returns boolean
|
277
277
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
278
|
-
* Checks if the input is a BigInt
|
279
|
-
* @param value input value
|
280
|
-
* @returns True if the input is a BigInt
|
281
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
282
278
|
* A function to check given value is defined
|
283
279
|
* @param value input value
|
284
280
|
* @returns boolean
|
@@ -357,23 +353,13 @@
|
|
357
353
|
* @param {boolean} excludeNull if it should exclude nul or not
|
358
354
|
* @param {function} logger optional logger methods for warning
|
359
355
|
* @returns string
|
360
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
361
|
-
// Using a regular function to use `this` for the parent context
|
362
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
363
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
364
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
365
|
-
// @ts-ignore-next-line
|
366
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
367
|
-
}// Check for circular references (if the value is already in the ancestors)
|
368
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
369
|
-
ancestors.push(value);return value;};};/**
|
356
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
370
357
|
* Recursively traverses an object similar to JSON.stringify,
|
371
358
|
* sanitizing BigInts and circular references
|
372
359
|
* @param value Input object
|
373
360
|
* @param logger Logger instance
|
374
361
|
* @returns Sanitized value
|
375
|
-
*/const getSanitizedValue=(value,logger)=>
|
376
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
362
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
377
363
|
|
378
364
|
// if yes make them null instead of omitting in overloaded cases
|
379
365
|
/*
|
@@ -460,7 +446,7 @@
|
|
460
446
|
* @returns Instance of Error with message prepended with issue
|
461
447
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
462
448
|
|
463
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
449
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
464
450
|
|
465
451
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
466
452
|
|
@@ -273,10 +273,6 @@ const isFunction=value=>typeof value==='function'&&Boolean(value.constructor&&va
|
|
273
273
|
* @param value input value
|
274
274
|
* @returns boolean
|
275
275
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
276
|
-
* Checks if the input is a BigInt
|
277
|
-
* @param value input value
|
278
|
-
* @returns True if the input is a BigInt
|
279
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
280
276
|
* A function to check given value is defined
|
281
277
|
* @param value input value
|
282
278
|
* @returns boolean
|
@@ -346,23 +342,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
346
342
|
* @param {boolean} excludeNull if it should exclude nul or not
|
347
343
|
* @param {function} logger optional logger methods for warning
|
348
344
|
* @returns string
|
349
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
350
|
-
// Using a regular function to use `this` for the parent context
|
351
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
352
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
353
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
354
|
-
// @ts-ignore-next-line
|
355
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
356
|
-
}// Check for circular references (if the value is already in the ancestors)
|
357
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
358
|
-
ancestors.push(value);return value;};};/**
|
345
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
359
346
|
* Recursively traverses an object similar to JSON.stringify,
|
360
347
|
* sanitizing BigInts and circular references
|
361
348
|
* @param value Input object
|
362
349
|
* @param logger Logger instance
|
363
350
|
* @returns Sanitized value
|
364
|
-
*/const getSanitizedValue=(value,logger)=>
|
365
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
351
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
366
352
|
|
367
353
|
// if yes make them null instead of omitting in overloaded cases
|
368
354
|
/*
|
@@ -449,7 +435,7 @@ const MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
449
435
|
* @returns Instance of Error with message prepended with issue
|
450
436
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
451
437
|
|
452
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
438
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
453
439
|
|
454
440
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
455
441
|
|
@@ -273,10 +273,6 @@ const isFunction=value=>typeof value==='function'&&Boolean(value.constructor&&va
|
|
273
273
|
* @param value input value
|
274
274
|
* @returns boolean
|
275
275
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
276
|
-
* Checks if the input is a BigInt
|
277
|
-
* @param value input value
|
278
|
-
* @returns True if the input is a BigInt
|
279
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
280
276
|
* A function to check given value is defined
|
281
277
|
* @param value input value
|
282
278
|
* @returns boolean
|
@@ -355,23 +351,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
355
351
|
* @param {boolean} excludeNull if it should exclude nul or not
|
356
352
|
* @param {function} logger optional logger methods for warning
|
357
353
|
* @returns string
|
358
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
359
|
-
// Using a regular function to use `this` for the parent context
|
360
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
361
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
362
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
363
|
-
// @ts-ignore-next-line
|
364
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
365
|
-
}// Check for circular references (if the value is already in the ancestors)
|
366
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
367
|
-
ancestors.push(value);return value;};};/**
|
354
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
368
355
|
* Recursively traverses an object similar to JSON.stringify,
|
369
356
|
* sanitizing BigInts and circular references
|
370
357
|
* @param value Input object
|
371
358
|
* @param logger Logger instance
|
372
359
|
* @returns Sanitized value
|
373
|
-
*/const getSanitizedValue=(value,logger)=>
|
374
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
360
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
375
361
|
|
376
362
|
// if yes make them null instead of omitting in overloaded cases
|
377
363
|
/*
|
@@ -458,7 +444,7 @@ const MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
458
444
|
* @returns Instance of Error with message prepended with issue
|
459
445
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
460
446
|
|
461
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
447
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
462
448
|
|
463
449
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
464
450
|
|
@@ -269,10 +269,6 @@ const isFunction=value=>typeof value==='function'&&Boolean(value.constructor&&va
|
|
269
269
|
* @param value input value
|
270
270
|
* @returns boolean
|
271
271
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
272
|
-
* Checks if the input is a BigInt
|
273
|
-
* @param value input value
|
274
|
-
* @returns True if the input is a BigInt
|
275
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
276
272
|
* A function to check given value is defined
|
277
273
|
* @param value input value
|
278
274
|
* @returns boolean
|
@@ -351,23 +347,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
351
347
|
* @param {boolean} excludeNull if it should exclude nul or not
|
352
348
|
* @param {function} logger optional logger methods for warning
|
353
349
|
* @returns string
|
354
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
355
|
-
// Using a regular function to use `this` for the parent context
|
356
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
357
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
358
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
359
|
-
// @ts-ignore-next-line
|
360
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
361
|
-
}// Check for circular references (if the value is already in the ancestors)
|
362
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
363
|
-
ancestors.push(value);return value;};};/**
|
350
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
364
351
|
* Recursively traverses an object similar to JSON.stringify,
|
365
352
|
* sanitizing BigInts and circular references
|
366
353
|
* @param value Input object
|
367
354
|
* @param logger Logger instance
|
368
355
|
* @returns Sanitized value
|
369
|
-
*/const getSanitizedValue=(value,logger)=>
|
370
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
356
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
371
357
|
|
372
358
|
// if yes make them null instead of omitting in overloaded cases
|
373
359
|
/*
|
@@ -454,7 +440,7 @@ const MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
454
440
|
* @returns Instance of Error with message prepended with issue
|
455
441
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
456
442
|
|
457
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
443
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
458
444
|
|
459
445
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
460
446
|
|
@@ -275,10 +275,6 @@
|
|
275
275
|
* @param value input value
|
276
276
|
* @returns boolean
|
277
277
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
278
|
-
* Checks if the input is a BigInt
|
279
|
-
* @param value input value
|
280
|
-
* @returns True if the input is a BigInt
|
281
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
282
278
|
* A function to check given value is defined
|
283
279
|
* @param value input value
|
284
280
|
* @returns boolean
|
@@ -357,23 +353,13 @@
|
|
357
353
|
* @param {boolean} excludeNull if it should exclude nul or not
|
358
354
|
* @param {function} logger optional logger methods for warning
|
359
355
|
* @returns string
|
360
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
361
|
-
// Using a regular function to use `this` for the parent context
|
362
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
363
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
364
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
365
|
-
// @ts-ignore-next-line
|
366
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
367
|
-
}// Check for circular references (if the value is already in the ancestors)
|
368
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
369
|
-
ancestors.push(value);return value;};};/**
|
356
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
370
357
|
* Recursively traverses an object similar to JSON.stringify,
|
371
358
|
* sanitizing BigInts and circular references
|
372
359
|
* @param value Input object
|
373
360
|
* @param logger Logger instance
|
374
361
|
* @returns Sanitized value
|
375
|
-
*/const getSanitizedValue=(value,logger)=>
|
376
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
362
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
377
363
|
|
378
364
|
// if yes make them null instead of omitting in overloaded cases
|
379
365
|
/*
|
@@ -460,7 +446,7 @@
|
|
460
446
|
* @returns Instance of Error with message prepended with issue
|
461
447
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
462
448
|
|
463
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
449
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
464
450
|
|
465
451
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
466
452
|
|
@@ -269,10 +269,6 @@ const isFunction=value=>typeof value==='function'&&Boolean(value.constructor&&va
|
|
269
269
|
* @param value input value
|
270
270
|
* @returns boolean
|
271
271
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
272
|
-
* Checks if the input is a BigInt
|
273
|
-
* @param value input value
|
274
|
-
* @returns True if the input is a BigInt
|
275
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
276
272
|
* A function to check given value is defined
|
277
273
|
* @param value input value
|
278
274
|
* @returns boolean
|
@@ -342,23 +338,13 @@ while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();
|
|
342
338
|
* @param {boolean} excludeNull if it should exclude nul or not
|
343
339
|
* @param {function} logger optional logger methods for warning
|
344
340
|
* @returns string
|
345
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
346
|
-
// Using a regular function to use `this` for the parent context
|
347
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
348
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
349
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
350
|
-
// @ts-ignore-next-line
|
351
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
352
|
-
}// Check for circular references (if the value is already in the ancestors)
|
353
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
354
|
-
ancestors.push(value);return value;};};/**
|
341
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
355
342
|
* Recursively traverses an object similar to JSON.stringify,
|
356
343
|
* sanitizing BigInts and circular references
|
357
344
|
* @param value Input object
|
358
345
|
* @param logger Logger instance
|
359
346
|
* @returns Sanitized value
|
360
|
-
*/const getSanitizedValue=(value,logger)=>
|
361
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
347
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
362
348
|
|
363
349
|
// if yes make them null instead of omitting in overloaded cases
|
364
350
|
/*
|
@@ -445,7 +431,7 @@ const MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
|
|
445
431
|
* @returns Instance of Error with message prepended with issue
|
446
432
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
447
433
|
|
448
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
434
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
449
435
|
|
450
436
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
451
437
|
|
@@ -275,10 +275,6 @@
|
|
275
275
|
* @param value input value
|
276
276
|
* @returns boolean
|
277
277
|
*/const isNullOrUndefined=value=>isNull(value)||isUndefined(value);/**
|
278
|
-
* Checks if the input is a BigInt
|
279
|
-
* @param value input value
|
280
|
-
* @returns True if the input is a BigInt
|
281
|
-
*/const isBigInt=value=>typeof value==='bigint';/**
|
282
278
|
* A function to check given value is defined
|
283
279
|
* @param value input value
|
284
280
|
* @returns boolean
|
@@ -348,23 +344,13 @@
|
|
348
344
|
* @param {boolean} excludeNull if it should exclude nul or not
|
349
345
|
* @param {function} logger optional logger methods for warning
|
350
346
|
* @returns string
|
351
|
-
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}}
|
352
|
-
// Using a regular function to use `this` for the parent context
|
353
|
-
return function replacer(key,value){if(isBigInt(value)){return '[BigInt]';// Replace BigInt values
|
354
|
-
}// `this` is the object that value is contained in, i.e., its direct parent.
|
355
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
356
|
-
// @ts-ignore-next-line
|
357
|
-
while(ancestors.length>0&&ancestors[ancestors.length-1]!==this){ancestors.pop();// Remove ancestors that are no longer part of the chain
|
358
|
-
}// Check for circular references (if the value is already in the ancestors)
|
359
|
-
if(ancestors.includes(value)){return '[Circular Reference]';}// Add current value to ancestors
|
360
|
-
ancestors.push(value);return value;};};/**
|
347
|
+
*/const stringifyWithoutCircular=(value,excludeNull,excludeKeys,logger)=>{try{return JSON.stringify(value,getCircularReplacer(excludeNull,excludeKeys,logger));}catch(err){logger?.warn(JSON_STRINGIFY_WARNING,err);return null;}};/**
|
361
348
|
* Recursively traverses an object similar to JSON.stringify,
|
362
349
|
* sanitizing BigInts and circular references
|
363
350
|
* @param value Input object
|
364
351
|
* @param logger Logger instance
|
365
352
|
* @returns Sanitized value
|
366
|
-
*/const getSanitizedValue=(value,logger)=>
|
367
|
-
const newValue=replacer.call(value,'',value);return newValue;};
|
353
|
+
*/const getSanitizedValue=(value,logger)=>value;
|
368
354
|
|
369
355
|
// if yes make them null instead of omitting in overloaded cases
|
370
356
|
/*
|
@@ -451,7 +437,7 @@
|
|
451
437
|
* @returns Instance of Error with message prepended with issue
|
452
438
|
*/const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
|
453
439
|
|
454
|
-
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.
|
440
|
+
const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.6';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
|
455
441
|
|
456
442
|
const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
|
457
443
|
|