@ninetailed/experience.js-react 7.12.0 → 7.12.1
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/index.cjs.js +4 -1
- package/index.esm.js +4 -1
- package/package.json +4 -4
package/index.cjs.js
CHANGED
|
@@ -100,6 +100,7 @@ function __rest(s, e) {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
function formatProfileForHook(profile) {
|
|
103
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
103
104
|
const profileStateWithoutExperiences = __rest(profile, ["experiences"]);
|
|
104
105
|
return Object.assign(Object.assign({}, profileStateWithoutExperiences), {
|
|
105
106
|
loading: profile.status === 'loading'
|
|
@@ -530,7 +531,9 @@ const Experience = _a => {
|
|
|
530
531
|
const componentElement = componentRef.current;
|
|
531
532
|
if (componentElement && !(componentElement instanceof Element)) {
|
|
532
533
|
const isObject = typeof componentElement === 'object' && componentElement !== null;
|
|
533
|
-
const constructorName = isObject ?
|
|
534
|
+
const constructorName = isObject ?
|
|
535
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
536
|
+
componentElement.constructor.name : '';
|
|
534
537
|
const isConstructorNameNotObject = constructorName && constructorName !== 'Object';
|
|
535
538
|
logger.warn(`The component ref being in Experience is an invalid element. Expected an Element but got ${typeof componentElement}${isConstructorNameNotObject ? ` of type ${constructorName}` : ''}. This component won't be observed.`);
|
|
536
539
|
return () => {
|
package/index.esm.js
CHANGED
|
@@ -78,6 +78,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
78
78
|
|
|
79
79
|
const _excluded$3 = ["experiences"];
|
|
80
80
|
function formatProfileForHook(profile) {
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
81
82
|
const profileStateWithoutExperiences = _objectWithoutPropertiesLoose(profile, _excluded$3);
|
|
82
83
|
return Object.assign({}, profileStateWithoutExperiences, {
|
|
83
84
|
loading: profile.status === 'loading'
|
|
@@ -514,7 +515,9 @@ const Experience = _ref2 => {
|
|
|
514
515
|
const componentElement = componentRef.current;
|
|
515
516
|
if (componentElement && !(componentElement instanceof Element)) {
|
|
516
517
|
const isObject = typeof componentElement === 'object' && componentElement !== null;
|
|
517
|
-
const constructorName = isObject ?
|
|
518
|
+
const constructorName = isObject ?
|
|
519
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
520
|
+
componentElement.constructor.name : '';
|
|
518
521
|
const isConstructorNameNotObject = constructorName && constructorName !== 'Object';
|
|
519
522
|
logger.warn(`The component ref being in Experience is an invalid element. Expected an Element but got ${typeof componentElement}${isConstructorNameNotObject ? ` of type ${constructorName}` : ''}. This component won't be observed.`);
|
|
520
523
|
return () => {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js-react",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.1",
|
|
4
4
|
"description": "Ninetailed SDK for React",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@ninetailed/experience.js": "7.12.
|
|
7
|
-
"@ninetailed/experience.js-shared": "7.12.
|
|
8
|
-
"@ninetailed/experience.js-plugin-analytics": "7.12.
|
|
6
|
+
"@ninetailed/experience.js": "7.12.1",
|
|
7
|
+
"@ninetailed/experience.js-shared": "7.12.1",
|
|
8
|
+
"@ninetailed/experience.js-plugin-analytics": "7.12.1",
|
|
9
9
|
"radash": "10.9.0",
|
|
10
10
|
"react-is": "18.2.0"
|
|
11
11
|
},
|