Socket
Socket
Sign inDemoInstall

logrocket-react

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logrocket-react - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0-beta.0

11

dist/index.js

@@ -24,18 +24,17 @@ 'use strict';

ResponderEventPlugin: {
extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent) {
if (topLevelType !== 'click' || !targetInst) {
extractEvents: function extractEvents(topLevelType, targetInst, fiberNode, nativeEvent) {
if (topLevelType !== 'click' || !fiberNode) {
return;
}
var currentElement = targetInst._debugOwner;
var currentElement = fiberNode;
var names = [];
while (currentElement) {
var name = currentElement.type.displayName || currentElement.type.name;
var name = typeof currentElement.elementType === 'function' && currentElement.elementType.displayName;
if (name) {
names.push(name);
}
currentElement = currentElement._debugOwner;
currentElement = currentElement.return;
}
// eslint-disable-next-line no-param-reassign

@@ -42,0 +41,0 @@ nativeEvent.__lrName = names;

{
"name": "logrocket-react",
"version": "3.0.1",
"version": "4.0.0-beta.0",
"description": "React library for [LogRocket](https://logrocket.com/).",

@@ -20,6 +20,4 @@ "main": "dist/index.js",

"test": "node_modules/.bin/karma start",
"test:16.5": "npm run react:clean && npm i react@16.5 react-dom@16.5 --no-save && npm test",
"test:16.8": "npm run react:clean && npm i react@16.8 react-dom@16.8 --no-save && npm test",
"test:16.9": "npm run react:clean && npm i react@16.9 react-dom@16.9 --no-save && npm test",
"test:all": "DEV=true npm run test:16.5 && npm run test:16.8 && npm run test:16.9"
"test:16.10": "npm run react:clean && npm i react@16.10 react-dom@16.10 --no-save && npm test",
"test:all": "DEV=true npm run test:16.10"
},

@@ -64,5 +62,5 @@ "devDependencies": {

"peerDependencies": {
"react": ">=16.5",
"react-dom": ">=16.5"
"react": ">=16.10",
"react-dom": ">=16.10"
}
}

@@ -12,3 +12,6 @@ # LogRocket React plugin

### If using React >16.5
### If using React 16.10
`npm i --save logrocket-react@4`
### If using React 16.5 - 16.9
`npm i --save logrocket-react@3`

@@ -15,0 +18,0 @@

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