Socket
Socket
Sign inDemoInstall

@tadashi/mask

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.1.0

6

dist/index.js
let _cc = 0;
const _id = () => `c_${Math.trunc(Date.now() / 1000)}_${_cc++ & 0xFF}`;
const _id = () => `c_${Number(_cc++).toString(26)}_${Math.trunc(Date.now() / 1000)}`;

@@ -65,4 +65,4 @@ const map = new Map();

this.input = input;
// Problema no ESM - https://github.com/standard-things/esm/issues/866
// this.mask = input.dataset?.mask ?? mask
// this.mask = input.dataset?.mask ?? this.opts.mask
this.mask = input.dataset.mask || this.opts.mask;

@@ -69,0 +69,0 @@

@@ -7,3 +7,3 @@ (function (global, factory) {

let _cc = 0;
const _id = () => `c_${Math.trunc(Date.now() / 1000)}_${_cc++ & 0xFF}`;
const _id = () => `c_${Number(_cc++).toString(26)}_${Math.trunc(Date.now() / 1000)}`;

@@ -71,4 +71,4 @@ const map = new Map();

this.input = input;
// Problema no ESM - https://github.com/standard-things/esm/issues/866
// this.mask = input.dataset?.mask ?? mask
// this.mask = input.dataset?.mask ?? this.opts.mask
this.mask = input.dataset.mask || this.opts.mask;

@@ -75,0 +75,0 @@

{
"name": "@tadashi/mask",
"version": "2.0.1",
"version": "2.1.0",
"description": "The simple and tiny script for input mask",

@@ -17,20 +17,5 @@ "keywords": [

"name": "Thiago Lagden",
"email": "lagden@gmail.com",
"url": "https://lagden.in"
"email": "lagden@gmail.com"
},
"main": "dist/index.umd.js",
"repository": "lagden/mask",
"scripts": {
"pretest": "xo",
"test": "ava --serial -t",
"precoverage": "npm run pretest",
"coverage": "nyc --all -s ava --serial -t",
"coverage:report": "nyc report --reporter=lcovonly",
"coverage:summary": "nyc report --reporter=text-summary",
"postcoverage": "npm run coverage:report && npm run coverage:summary",
"rollup": "rollup -c",
"prebuild": "npm test && rm -rf dist",
"build": "npm run rollup",
"prepare": "npm run build"
},
"main": "src/index.js",
"files": [

@@ -42,2 +27,12 @@ "dist",

],
"repository": "lagden/mask",
"scripts": {
"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"
},
"xo": {

@@ -61,36 +56,10 @@ "envs": [

},
"esm": {
"cjs": {
"dedefault": true
}
},
"ava": {
"files": [
"test/**/*",
"!test/helpers/**/*"
],
"require": [
"./test/helpers/setup-browser-env.js",
"esm"
],
"babel": {
"testOptions": {
"presets": [
[
"module:@ava/babel/stage-4"
]
]
}
}
},
"devDependencies": {
"@ava/babel": "1.0.1",
"ava": "3.13.0",
"esm": "3.2.25",
"jsdom": "16.4.0",
"nyc": "15.1.0",
"rollup": "2.32.1",
"simulant": "0.2.2",
"xo": "0.34.1"
"@babel/preset-env": "7.13.10",
"babel-jest": "26.6.3",
"jest": "26.6.3",
"npm-run-all": "4.1.5",
"rollup": "2.41.0",
"xo": "0.38.2"
}
}

@@ -5,3 +5,2 @@ # Mask

[![Coverage Status][coveralls-img]][coveralls]
[![devDependency Status][devDep-img]][devDep]
[![XO code style][xo-img]][xo]

@@ -13,4 +12,2 @@

[coveralls]: https://coveralls.io/github/lagden/mask?branch=master
[devDep-img]: https://david-dm.org/lagden/mask/dev-status.svg
[devDep]: https://david-dm.org/lagden/mask#info=devDependencies
[xo-img]: https://img.shields.io/badge/code_style-XO-5ed9c7.svg

@@ -17,0 +14,0 @@ [xo]: https://github.com/sindresorhus/xo

'use strict'
let _cc = 0
const _id = () => `c_${Math.trunc(Date.now() / 1000)}_${_cc++ & 0xFF}`
const _id = () => `c_${Number(_cc++).toString(26)}_${Math.trunc(Date.now() / 1000)}`

@@ -67,4 +67,4 @@ const map = new Map()

this.input = input
// Problema no ESM - https://github.com/standard-things/esm/issues/866
// this.mask = input.dataset?.mask ?? mask
// this.mask = input.dataset?.mask ?? this.opts.mask
this.mask = input.dataset.mask || this.opts.mask

@@ -71,0 +71,0 @@

Sorry, the diff of this file is not supported yet

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