Socket
Socket
Sign inDemoInstall

react-obfuscate

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-obfuscate - npm Package Compare versions

Comparing version 3.6.7 to 3.6.8

27

dist/obfuscate.js

@@ -136,16 +136,15 @@ "use strict";

} : {};
return (/*#__PURE__*/_react["default"].createElement(Component, _extends({
onFocus: function onFocus() {
return setHumanInteraction(true);
},
onMouseOver: function onMouseOver() {
return setHumanInteraction(true);
},
onContextMenu: function onContextMenu() {
return setHumanInteraction(true);
}
}, others, clickProps, {
style: obfuscatedStyle
}), renderedLink)
);
return /*#__PURE__*/_react["default"].createElement(Component, _extends({
onFocus: function onFocus() {
return setHumanInteraction(true);
},
onMouseOver: function onMouseOver() {
return setHumanInteraction(true);
},
onContextMenu: function onContextMenu() {
return setHumanInteraction(true);
}
}, others, clickProps, {
style: obfuscatedStyle
}), renderedLink);
};

@@ -152,0 +151,0 @@

{
"name": "react-obfuscate",
"version": "3.6.7",
"version": "3.6.8",
"description": "An intelligent React component to obfuscate any contact link",

@@ -38,27 +38,27 @@ "main": "dist/obfuscate.js",

"devDependencies": {
"@babel/cli": "7.10.1",
"@babel/core": "7.10.2",
"@babel/plugin-transform-spread": "7.10.1",
"@babel/preset-env": "7.10.2",
"@babel/preset-react": "7.10.1",
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@babel/cli": "7.11.6",
"@babel/core": "7.11.6",
"@babel/plugin-transform-spread": "7.11.0",
"@babel/preset-env": "7.11.5",
"@babel/preset-react": "7.10.4",
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.0.1",
"babel-jest": "26.3.0",
"coveralls": "3.1.0",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.2",
"enzyme-to-json": "3.4.4",
"eslint": "7.1.0",
"eslint-config-airbnb": "18.1.0",
"enzyme-adapter-react-16": "1.15.4",
"enzyme-to-json": "3.5.0",
"eslint": "7.6.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "3.1.3",
"eslint-plugin-react": "7.20.0",
"eslint-plugin-react-hooks": "4.0.2",
"husky": "4.2.5",
"jest": "26.0.1",
"lint-staged": "10.2.6",
"next": "9.4.4",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.20.5",
"eslint-plugin-react-hooks": "4.0.8",
"husky": "4.3.0",
"jest": "26.4.2",
"lint-staged": "10.2.11",
"next": "9.5.3",
"prettier": "2.0.5",

@@ -70,3 +70,3 @@ "prop-types": "15.7.2",

"react-test-renderer": "16.13.1",
"react-window-ui": "2.1.0"
"react-window-ui": "2.2.0"
},

@@ -73,0 +73,0 @@ "jest": {

@@ -134,2 +134,17 @@ # react-obfuscate

## Children
By default, objects **are not** reversed in the dom, but other types are. The `obfuscateChildren` prop set will disabled this functionality when set to `false`. If the child is an object, like html elements are, it will be rendered normally.
##### Example Use Case
```js
<Obfuscate email="hello@coston.io" aria-label="Email Me">
<svg width={24} height={21}>
<path
fill="#000"
d="M12 12.713L.0 3h23.97L12 12.713zm0 2.574L0 5.562V21h24V5"
/>
</svg>
</Obfuscate>
```
## Contributors

@@ -136,0 +151,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