logrocket-react
Advanced tools
Comparing version 0.0.1 to 0.0.2
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = setupReact; | ||
var _EventPluginHub = require('react-dom/lib/EventPluginHub'); | ||
@@ -9,16 +14,19 @@ | ||
_EventPluginHub2.default.injection.injectEventPluginsByName({ | ||
'ResponderEventPlugin': { | ||
extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent) { | ||
var currentElement = targetInst._currentElement._owner; | ||
function setupReact() { | ||
_EventPluginHub2.default.injection.injectEventPluginsByName({ | ||
'ResponderEventPlugin': { | ||
extractEvents: function extractEvents(topLevelType, targetInst, nativeEvent) { | ||
var currentElement = targetInst._currentElement._owner; | ||
var names = []; | ||
while (currentElement) { | ||
names.push(currentElement._currentElement.type.displayName); | ||
currentElement = currentElement._currentElement._owner; | ||
var names = []; | ||
while (currentElement) { | ||
names.push(currentElement._currentElement.type.displayName); | ||
currentElement = currentElement._currentElement._owner; | ||
} | ||
nativeEvent.__lrName = names; | ||
} | ||
nativeEvent.__lrName = names; | ||
} | ||
} | ||
}); | ||
}); | ||
} | ||
module.exports = exports['default']; |
{ | ||
"name": "logrocket-react", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "React library for [LogRocket](https://logrocket.com/).", | ||
@@ -24,6 +24,2 @@ "main": "dist/index.js", | ||
}, | ||
"dependencies": { | ||
"react": "15", | ||
"react-dom": "15" | ||
}, | ||
"devDependencies": { | ||
@@ -68,3 +64,7 @@ "babel-cli": "^6.11.4", | ||
"react": "^15.0.0-0 || 15.x" | ||
}, | ||
"dependencies": { | ||
"react": "15", | ||
"react-dom": "15" | ||
} | ||
} |
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
4238
23