@tadashi/mask
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "@tadashi/mask", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "The simple and tiny script for input mask", | ||
@@ -19,5 +19,6 @@ "keywords": [ | ||
}, | ||
"main": "src/index.js", | ||
"type": "module", | ||
"main": "./src/mask.js", | ||
"browser": "./src/mask.js", | ||
"files": [ | ||
"dist", | ||
"src", | ||
@@ -30,35 +31,14 @@ "license", | ||
"coverage": "jest test --coverage --coverageReporters=lcov", | ||
"rm": "rm -rf dist", | ||
"rollup": "rollup -c", | ||
"build": "run-s test rm rollup", | ||
"prepublishOnly": "npm run build", | ||
"pretest": "xo", | ||
"test": "jest test" | ||
"eslint": "eslint --config .eslintrc.yml --ext .js --ignore-path .gitignore .", | ||
"pretest": "npm run eslint", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest --coverage --coverageReporters=lcov --coverageReporters=text" | ||
}, | ||
"xo": { | ||
"envs": [ | ||
"es6" | ||
], | ||
"globals": [ | ||
"beforeEach", | ||
"test", | ||
"expect", | ||
"document", | ||
"HTMLInputElement" | ||
], | ||
"esnext": true, | ||
"semicolon": false, | ||
"rules": { | ||
"capitalized-comments": 0, | ||
"unicorn/prevent-abbreviations": 0 | ||
} | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "7.13.10", | ||
"jest": "26.6.3", | ||
"npm-run-all": "4.1.5", | ||
"rollup": "2.41.1", | ||
"simulant": "0.2.2", | ||
"xo": "0.38.2" | ||
"eslint": "8.23.1", | ||
"eslint-config-xo": "0.42.0", | ||
"eslint-plugin-unicorn": "43.0.2", | ||
"jest": "29.0.3", | ||
"jest-environment-jsdom": "29.0.3", | ||
"simulant": "0.2.2" | ||
} | ||
} |
# Mask | ||
[![NPM version][npm-img]][npm] | ||
[![Build Status][ci-img]][ci] | ||
@@ -7,10 +8,13 @@ [![Coverage Status][coveralls-img]][coveralls] | ||
[ci-img]: https://github.com/lagden/mask/workflows/Node.js%20CI/badge.svg | ||
[ci]: https://github.com/lagden/mask/actions?query=workflow%3A%22Node.js+CI%22 | ||
[coveralls-img]: https://coveralls.io/repos/github/lagden/mask/badge.svg?branch=master | ||
[coveralls]: https://coveralls.io/github/lagden/mask?branch=master | ||
[xo-img]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg | ||
[xo]: https://github.com/sindresorhus/xo | ||
[npm-img]: https://img.shields.io/npm/v/@tadashi/mask.svg | ||
[npm]: https://www.npmjs.com/package/@tadashi/mask | ||
[ci-img]: https://github.com/lagden/mask/actions/workflows/nodejs.yml/badge.svg | ||
[ci]: https://github.com/lagden/mask/actions/workflows/nodejs.yml | ||
[coveralls-img]: https://coveralls.io/repos/github/lagden/mask/badge.svg?branch=master | ||
[coveralls]: https://coveralls.io/github/lagden/mask?branch=master | ||
[xo-img]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg | ||
[xo]: https://github.com/sindresorhus/xo | ||
The simple and tiny script for input mask | ||
@@ -34,3 +38,4 @@ | ||
<script type="module"> | ||
import Mask from 'https://unpkg.com/@tadashi/mask@{version}/src/index.js' | ||
import Mask from 'https://unpkg.com/@tadashi/mask@{version}/src/mask.js' | ||
const mask = new Mask(telefone) | ||
@@ -37,0 +42,0 @@ </script> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
47
Yes
6249
4
112
1