@ninetailed/experience.js-gatsby 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/Tracker.js CHANGED
@@ -8,6 +8,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
8
8
 
9
9
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
10
 
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
12
  const usePrevious = value => {
12
13
  const ref = React.useRef();
13
14
  React.useEffect(() => {
package/gatsby-browser.js CHANGED
@@ -20,6 +20,7 @@ const createFunctionBody = serializedFunction => {
20
20
  return '"use strict";\n return ' + serializedFunction + ';';
21
21
  };
22
22
  const deserializeFunction = serializedFunction => {
23
+ // eslint-disable-next-line no-new-func
23
24
  return new Function(createFunctionBody(serializedFunction))();
24
25
  };
25
26
  const deserializePluginOptionFunctions = options => {
@@ -36,7 +37,9 @@ const deserializePluginOptionFunctions = options => {
36
37
  };
37
38
 
38
39
  let ninetailed;
39
- const isSerializedPreviewPlugin = options => {
40
+ const isSerializedPreviewPlugin = (
41
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
+ options) => {
40
43
  return !!(options && options.customOptions && options.serializedFunctionNames && options.customOptions.serializedFunctionNames);
41
44
  };
42
45
  const WrapRootElement = ({
package/gatsby-ssr.js CHANGED
@@ -13,7 +13,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
 
15
15
  const wrapRootElement = (args, options) => {
16
- const resolvedPlugins = loaders_ninetailedPlugins.plugins.map(({
16
+ const resolvedPlugins = loaders_ninetailedPlugins.plugins.map(
17
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
+ ({
17
19
  PluginCtor,
18
20
  options
19
21
  }) => new PluginCtor(options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js-gatsby",
3
- "version": "7.12.0",
3
+ "version": "7.12.1",
4
4
  "keywords": [
5
5
  "gatsby",
6
6
  "gatsby-plugin",
@@ -16,9 +16,9 @@
16
16
  "@nx/react": "16.6.0"
17
17
  },
18
18
  "dependencies": {
19
- "@ninetailed/experience.js": "7.12.0",
20
- "@ninetailed/experience.js-react": "7.12.0",
21
- "@ninetailed/experience.js-plugin-analytics": "7.12.0",
19
+ "@ninetailed/experience.js": "7.12.1",
20
+ "@ninetailed/experience.js-react": "7.12.1",
21
+ "@ninetailed/experience.js-plugin-analytics": "7.12.1",
22
22
  "gatsby-plugin-utils": "3.19.0",
23
23
  "lodash": "4.17.21"
24
24
  },