logrocket-react
Advanced tools
Comparing version 0.0.5 to 1.0.0
@@ -8,11 +8,9 @@ 'use strict'; | ||
var _EventPluginHub = require('react-dom/lib/EventPluginHub'); | ||
var _reactDom = require('react-dom'); | ||
var _EventPluginHub2 = _interopRequireDefault(_EventPluginHub); | ||
var hub = _reactDom.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.EventPluginHub; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function setupReact() { | ||
_EventPluginHub2.default.injection.injectEventPluginsByName({ | ||
'ResponderEventPlugin': { | ||
hub.injection.injectEventPluginsByName({ | ||
ResponderEventPlugin: { | ||
extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent) { | ||
@@ -23,13 +21,14 @@ if (topLevelType !== 'topClick' || !targetInst) { | ||
var currentElement = targetInst._currentElement._owner; | ||
var currentElement = targetInst._debugOwner; | ||
var names = []; | ||
while (currentElement) { | ||
var name = currentElement._currentElement.type.displayName || currentElement._currentElement.type.name; | ||
var name = currentElement.type.displayName || currentElement.type.name; | ||
if (name) { | ||
names.push(name); | ||
} | ||
currentElement = currentElement._currentElement._owner; | ||
currentElement = currentElement._debugOwner; | ||
} | ||
// eslint-disable-next-line no-param-reassign | ||
nativeEvent.__lrName = names; | ||
@@ -36,0 +35,0 @@ } |
{ | ||
"name": "logrocket-react", | ||
"version": "0.0.5", | ||
"version": "1.0.0", | ||
"description": "React library for [LogRocket](https://logrocket.com/).", | ||
@@ -20,5 +20,3 @@ "main": "dist/index.js", | ||
"test": "./node_modules/.bin/karma start", | ||
"test:15.4": "npm run react:clean && yarn add react@15.4 react-dom@15.4 && npm test", | ||
"test:15": "npm run react:clean && yarn add react@15 react-dom@15 && npm test", | ||
"test:14": "npm run react:clean && yarn add react@0.14 react-dom@0.14 && npm test" | ||
"test:16": "npm run react:clean && yarn add react@16 react-dom@16 && npm test" | ||
}, | ||
@@ -29,3 +27,3 @@ "devDependencies": { | ||
"babel-eslint": "^7.0.0", | ||
"babel-loader": "^7.0.0", | ||
"babel-loader": "7.1.1", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
@@ -37,36 +35,36 @@ "babel-plugin-add-react-displayname": "^0.0.4", | ||
"babel-preset-stage-3": "^6.17.0", | ||
"chai": "^3.5.0", | ||
"enzyme": "^2.8.2", | ||
"chai": "^4.1.2", | ||
"enzyme": "3.2.0", | ||
"enzyme-adapter-react-16": "^1.1.0", | ||
"eslint": "^3.8.1", | ||
"eslint-config-airbnb": "^14.1.0", | ||
"eslint-plugin-jsx-a11y": "^5.0.1", | ||
"eslint-plugin-mocha": "^4.9.0", | ||
"eslint-plugin-react": "^7.0.0", | ||
"json-loader": "^0.5.4", | ||
"karma": "^1.7.0", | ||
"karma-browserstack-launcher": "^1.2.0", | ||
"karma-chrome-launcher": "^2.1.1", | ||
"eslint-config-airbnb": "^16.1.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.2", | ||
"eslint-plugin-mocha": "^4.11.0", | ||
"eslint-plugin-react": "^7.4.0", | ||
"json-loader": "^0.5.7", | ||
"karma": "^1.7.1", | ||
"karma-browserstack-launcher": "^1.3.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-firefox-launcher": "^1.0.1", | ||
"karma-junit-reporter": "^1.2.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-mocha-reporter": "^2.2.3", | ||
"karma-mocha-reporter": "^2.2.5", | ||
"karma-safari-launcher": "^1.0.0", | ||
"karma-sinon": "^1.0.5", | ||
"karma-webpack": "^2.0.3", | ||
"mocha": "^3.3.0", | ||
"karma-webpack": "^2.0.6", | ||
"mocha": "^4.0.1", | ||
"mocha-circleci-reporter": "^0.0.2", | ||
"react-addons-test-utils": "^15.5.1", | ||
"react-test-renderer": "^15.5.4", | ||
"rimraf": "^2.6.1", | ||
"sinon": "^2.2.0", | ||
"sinon": "^4.1.2", | ||
"webpack": "^1.5.1" | ||
}, | ||
"peerDependencies": { | ||
"react": "^15.0.0-0 || 15.x", | ||
"react-dom": "^15.0.0-0 || 15.x" | ||
"react": "16.x", | ||
"react-dom": "16.x" | ||
}, | ||
"dependencies": { | ||
"react": "15", | ||
"react-dom": "15" | ||
"react": "16", | ||
"react-dom": "16" | ||
} | ||
} |
@@ -1,4 +0,8 @@ | ||
# LogRocket React | ||
# LogRocket React plugin | ||
The LogRocket React plugin allows you to search for sessions in which the user clicks a specific component in your app: | ||
![](https://cl.ly/3e203c0G151G/Image%202017-06-05%20at%209.46.04%20PM.png) | ||
## Resources | ||
* [Documentation](https://docs.logrocket.com/docs/react) | ||
* [Documentation](https://docs.logrocket.com/docs/react-plugin) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5
1
9
4438
+ Addedreact@16.14.0(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedscheduler@0.19.1(transitive)
- Removedasap@2.0.6(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpromise@7.3.1(transitive)
- Removedreact@15.7.0(transitive)
- Removedreact-dom@15.7.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.39(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)
Updatedreact@16
Updatedreact-dom@16