@brazilian-utils/format-cpf
Advanced tools
Comparing version 0.1.6 to 0.1.8
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@brazilian-utils/helper-only-numbers"),require("@brazilian-utils/helper-is-last-char")):"function"==typeof define&&define.amd?define(["@brazilian-utils/helper-only-numbers","@brazilian-utils/helper-is-last-char"],r):e.formatCpf=r(null,null)}(this,function(e,r){e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var n=11,i=[2,5],t=[8];return function(u){if(!u)return"";var l=e(u);return l.slice(0,n).split("").reduce(function(e,n,u){var a=""+e+n;if(!r(u,l)){if(i.includes(u))return a+".";if(t.includes(u))return a+"-"}return a},"")}}); | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@brazilian-utils/helper-only-numbers"),require("@brazilian-utils/helper-is-last-char")):"function"==typeof define&&define.amd?define(["@brazilian-utils/helper-only-numbers","@brazilian-utils/helper-is-last-char"],r):e.formatCpf=r(e.onlyNumbers,e.isLastChar)}(this,function(e,r){e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var i=11,n=[2,5],t=[8];return function(u){if(!u)return"";var l=e(u);return l.slice(0,i).split("").reduce(function(e,i,u){var a=""+e+i;if(!r(u,l)){if(n.includes(u))return a+".";if(t.includes(u))return a+"-"}return a},"")}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@brazilian-utils/format-cpf", | ||
"description": "Return CPF formatted with mask.", | ||
"version": "0.1.6", | ||
"version": "0.1.8", | ||
"main": "dist/index.js", | ||
@@ -31,11 +31,12 @@ "umd:main": "dist/index.umd.js", | ||
"devDependencies": { | ||
"microbundle": "^0.5.1" | ||
"microbundle": "^0.6.0" | ||
}, | ||
"dependencies": { | ||
"@brazilian-utils/helper-is-last-char": "^0.1.5", | ||
"@brazilian-utils/helper-only-numbers": "^0.1.3" | ||
"@brazilian-utils/helper-is-last-char": "^0.1.7", | ||
"@brazilian-utils/helper-only-numbers": "^0.1.5" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
}, | ||
"gitHead": "be32f1e24005a065474b554e05bbc1d38cc12323" | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8306
9
1