react-obfuscate-email
Advanced tools
Comparing version 1.0.15 to 1.0.16
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Email = void 0; | ||
const tslib_1 = require("tslib"); | ||
const react_1 = tslib_1.__importStar(require("react")); | ||
const react_1 = __importStar(require("react")); | ||
const utils_1 = require("./utils"); | ||
@@ -22,3 +55,3 @@ function obfuscateEmail(email) { | ||
function Email(_a) { | ||
var { bcc = [], body = "", cc = [], children, email, subject = "" } = _a, props = tslib_1.__rest(_a, ["bcc", "body", "cc", "children", "email", "subject"]); | ||
var { bcc = [], body = "", cc = [], children, email, subject = "" } = _a, props = __rest(_a, ["bcc", "body", "cc", "children", "email", "subject"]); | ||
const [hovered, setHovered] = (0, react_1.useState)(false); | ||
@@ -25,0 +58,0 @@ const emailUrl = new URL(`mailto:${email}`); |
{ | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"license": "MIT", | ||
@@ -23,4 +23,3 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"react": ">=16", | ||
"tslib": ">=2" | ||
"react": ">=16" | ||
}, | ||
@@ -38,7 +37,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/core": "^7.17.12", | ||
"@storybook/addon-actions": "^6.4.22", | ||
"@storybook/addon-docs": "^6.4.22", | ||
"@storybook/addon-essentials": "^6.4.22", | ||
"@storybook/react": "^6.4.22", | ||
"@babel/core": "^7.18.2", | ||
"@storybook/addon-actions": "^6.5.5", | ||
"@storybook/addon-docs": "^6.5.5", | ||
"@storybook/addon-essentials": "^6.5.5", | ||
"@storybook/react": "^6.5.5", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
@@ -48,9 +47,9 @@ "@testing-library/react": "^12.1.5", | ||
"@types/react": "^18.0.9", | ||
"@typescript-eslint/eslint-plugin": "^5.25.0", | ||
"@typescript-eslint/parser": "^5.25.0", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"babel-loader": "^8.2.5", | ||
"del-cli": "^4.0.1", | ||
"eslint": "^8.15.0", | ||
"eslint": "^8.16.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-react": "^7.29.4", | ||
"eslint-plugin-react": "^7.30.0", | ||
"jest": "^27.5.1", | ||
@@ -61,4 +60,3 @@ "prettier": "^2.6.2", | ||
"ts-jest": "^27.1.4", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.6.4" | ||
"typescript": "^4.7.2" | ||
}, | ||
@@ -65,0 +63,0 @@ "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)", |
9870
1
22
107