Socket
Socket
Sign inDemoInstall

react-obfuscate-email

Package Overview
Dependencies
3
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

4

dist/react-obfuscate-email.umd.js

@@ -1,5 +0,5 @@

(function(n,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],a):(n=typeof globalThis<"u"?globalThis:n||self,a(n["React Obfuscate Email"]={},n.React))})(this,function(n,a){"use strict";const o=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(a);function l(e){const[,t]=e;return typeof t=="string"&&t.length>0}function d([e,t]){return Array.isArray(t)?[e,t.join(",")]:[e,t]}function m(e){return Object.entries(e).map(d).filter(l).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).join("&")}function p(e){const[t,r]=e.split("@");return o.default.createElement(o.default.Fragment,null,o.default.createElement("style",{dangerouslySetInnerHTML:{__html:`
(function(r,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r["React Obfuscate Email"]={},r.React))})(this,function(r,n){"use strict";function f(t){const[,e]=t;return typeof e=="string"&&e.length>0}function l([t,e]){return Array.isArray(e)?[t,e.join(",")]:[t,e]}function m(t){return Object.entries(t).map(l).filter(f).map(([e,o])=>`${e}=${encodeURIComponent(o)}`).join("&")}function d(t){const[e,o]=t.split("@");return n.createElement(n.Fragment,null,n.createElement("style",{dangerouslySetInnerHTML:{__html:`
a>span.roe::after {
content: "@";
}
`}}),t,o.default.createElement("span",{className:"roe"}),r)}function y({bcc:e=[],body:t="",cc:r=[],children:i,email:u,subject:g="",...h}){const[s,E]=a.useState(!1),c=new URL(`mailto:${u}`);c.search=m({bcc:e,body:t,cc:r,subject:g});function f(){E(!0)}const _=i||u,b=i||p(u);return o.default.createElement("a",{href:s?c.href:"#",onFocus:f,onMouseOver:f,...h},s?_:b)}n.Email=y,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
`}}),e,n.createElement("span",{className:"roe"}),o)}function p({bcc:t=[],body:e="",cc:o=[],children:i,email:a,subject:h="",...y}){const[s,E]=n.useState(!1),u=new URL(`mailto:${a}`);u.search=m({bcc:t,body:e,cc:o,subject:h});function c(){E(!0)}const g=i||a,T=i||d(a);return n.createElement("a",{href:s?u.href:"#",onFocus:c,onMouseOver:c,...y},s?g:T)}r.Email=p,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
import { AnchorHTMLAttributes, DetailedHTMLProps, ReactNode } from "react";
declare type Props = DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & {
export interface EmailProps extends DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
bcc?: string[];

@@ -9,4 +9,3 @@ body?: string;

subject?: string;
};
export declare function Email({ bcc, body, cc, children, email, subject, ...props }: Props): JSX.Element;
export {};
}
export declare function Email({ bcc, body, cc, children, email, subject, ...props }: EmailProps): JSX.Element;
export { Email } from "./Email";
export type { EmailProps } from "./Email";
{
"version": "1.1.1",
"version": "1.1.2",
"license": "MIT",

@@ -20,2 +20,11 @@ "main": "dist/react-obfuscate-email.umd.js",

},
"scripts": {
"build": "del-cli dist && vite build",
"watch": "tsc --watch",
"lint": "eslint src",
"test": "jest",
"prepublishOnly": "npm run build",
"storybook": "start-storybook --docs --no-manager-cache --port 6006",
"build-docs": "build-storybook --docs --output-dir=docs"
},
"peerDependencies": {

@@ -34,29 +43,29 @@ "react": ">=16"

"devDependencies": {
"@babel/core": "^7.20.2",
"@mdx-js/react": "^2.1.5",
"@storybook/addon-actions": "^6.5.13",
"@storybook/addon-docs": "^6.5.12",
"@storybook/addon-essentials": "^6.5.13",
"@storybook/react": "^6.5.13",
"@babel/core": "^7.21.0",
"@mdx-js/react": "^2.3.0",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-docs": "^6.5.16",
"@storybook/addon-essentials": "^6.5.16",
"@storybook/react": "^6.5.16",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.2.3",
"@types/react": "^18.0.25",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.43.0",
"@vitejs/plugin-react": "^2.2.0",
"@types/jest": "^29.4.0",
"@types/react": "^18.0.28",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vitejs/plugin-react": "^3.1.0",
"babel-loader": "^8.2.5",
"del-cli": "^5.0.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-react": "^7.31.10",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"prettier": "^2.7.1",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-react": "^7.32.2",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"prettier": "^2.8.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ts-jest": "^29.0.3",
"typescript": "^4.9.3",
"vite": "^3.2.3",
"vite-plugin-dts": "^1.7.1"
"ts-jest": "^29.0.5",
"typescript": "^4.9.5",
"vite": "^4.1.4",
"vite-plugin-dts": "^2.1.0"
},

@@ -74,11 +83,3 @@ "description": "[![React Obfuscate Email](https://badgen.net/npm/v/react-obfuscate-email)](https://www.npmjs.com/package/react-obfuscate-email) [![CI](https://github.com/MauricioRobayo/react-obfuscate-email/actions/workflows/main.yml/badge.svg)](https://github.com/MauricioRobayo/react-obfuscate-email/actions/workflows/main.yml) [![codecov](https://codecov.io/gh/MauricioRobayo/react-obfuscate-email/branch/main/graph/badge.svg?token=gkrRmHZHGB)](https://codecov.io/gh/MauricioRobayo/react-obfuscate-email) [![CodeFactor](https://www.codefactor.io/repository/github/mauriciorobayo/react-obfuscate-email/badge)](https://www.codefactor.io/repository/github/mauriciorobayo/react-obfuscate-email) [![bundlephobia](https://badgen.net/bundlephobia/minzip/react-obfuscate-email)](https://bundlephobia.com/package/react-obfuscate-email)",

},
"homepage": "https://mauriciorobayo.github.io/react-obfuscate-email",
"scripts": {
"build": "del-cli dist && vite build",
"watch": "tsc --watch",
"lint": "eslint src",
"test": "jest",
"storybook": "start-storybook --docs --no-manager-cache --port 6006",
"build-docs": "build-storybook --docs --output-dir=docs"
}
}
"homepage": "https://mauriciorobayo.github.io/react-obfuscate-email"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc