Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-i13n

Package Overview
Dependencies
Maintainers
9
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i13n - npm Package Compare versions

Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.9

dist-es/hooks/useIsomorphicLayoutEffect.js

4

dist-es/components/core/CoreComponent.js

@@ -38,3 +38,5 @@ /**

useEffect(() => {
executeEvent === null || executeEvent === void 0 ? void 0 : executeEvent('created', {});
executeEvent === null || executeEvent === void 0 ? void 0 : executeEvent('created', {
i13nNode
});
}, []); // auto bind click event

@@ -41,0 +43,0 @@

@@ -5,5 +5,6 @@ /**

*/
import { useLayoutEffect, useRef } from 'react';
import { useRef } from 'react';
import { IS_DEBUG_MODE } from '../utils/variables';
import DebugDashboard from '../libs/DebugDashboard';
import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';

@@ -15,3 +16,3 @@ var useDebugDashboard = (_ref) => {

var debugDashboard = useRef();
useLayoutEffect(() => {
useIsomorphicLayoutEffect(() => {
if (IS_DEBUG_MODE) {

@@ -18,0 +19,0 @@ debugDashboard.current = new DebugDashboard(node);

@@ -55,3 +55,5 @@ "use strict";

(0, _react.useEffect)(function () {
executeEvent === null || executeEvent === void 0 ? void 0 : executeEvent('created', {});
executeEvent === null || executeEvent === void 0 ? void 0 : executeEvent('created', {
i13nNode: i13nNode
});
}, []); // auto bind click event

@@ -58,0 +60,0 @@

@@ -12,2 +12,4 @@ "use strict";

var _useIsomorphicLayoutEffect = _interopRequireDefault(require("./useIsomorphicLayoutEffect"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -22,3 +24,3 @@

var debugDashboard = (0, _react.useRef)();
(0, _react.useLayoutEffect)(function () {
(0, _useIsomorphicLayoutEffect["default"])(function () {
if (_variables.IS_DEBUG_MODE) {

@@ -25,0 +27,0 @@ debugDashboard.current = new _DebugDashboard["default"](node);

{
"name": "react-i13n",
"description": "React I13n provides a performant and scalable solution to application instrumentation.",
"version": "3.0.0-alpha.8",
"version": "3.0.0-alpha.9",
"main": "index.js",

@@ -51,4 +51,4 @@ "module": "index.es.js",

"es5-shim": "^4.5.12",
"eslint": "^7.0.0",
"eslint-config-airbnb": "^18.2.0",
"eslint": "^8.2.0",
"eslint-config-airbnb": "^19.0.0",
"eslint-plugin-import": "^2.16.0",

@@ -66,6 +66,6 @@ "eslint-plugin-jsx-a11y": "^6.2.1",

"grunt-saucelabs": "^9.0.0",
"grunt-webpack": "^3.1.3",
"grunt-webpack": "^5.0.0",
"intersection-observer": "^0.12.0",
"jest": "^27.0.1",
"jest-junit": "^12.0.0",
"jest-junit": "^13.0.0",
"minimist": "^1.2.0",

@@ -79,5 +79,5 @@ "mocha": "^9.0.1",

"react-dom": "^16.8.3 || ^17.0.0",
"webpack": "^4.0.0",
"webpack-dev-server": "^3.2.1",
"xunit-file": "^1.0.0"
"webpack": "^5.64.4",
"webpack-dev-server": "^4.0.0",
"xunit-file": "^2.0.0"
},

@@ -84,0 +84,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc