Comparing version 0.3.1 to 0.3.2
@@ -1,2 +0,2 @@ | ||
function n(n,t){void 0===t&&(t="");var e=new RegExp("[^"+t+"\\d]*","g");return n.trim().replace(e,"").slice(0,9)}function t(t,e,i){void 0===e&&(e="-"),void 0===i&&(i="*");var r=n(t,i).split("");return[0,1,2,3,3,4,5,5,6,7,8,9,10].reduce(function(n,t,i){return r.length?n.concat(3===i||6===i?e:r.shift()||" "):n},[]).join("").trim()}function e(t,e){return void 0===e&&(e="*"),n(t).split("").map(function(n,t,i){return t<5?t===i.length-1?n:e:n}).join("")}function i(n,t){return void 0===t&&(t="-"),new RegExp("^(?!666|000|9\\d{2})\\d{3}"+t+"{0,1}(?!00)\\d{2}"+t+"{0,1}(?!0{4})\\d{4}$").test(n)}export{n as clean,t as format,e as mask,i as validate}; | ||
function n(n,t){void 0===t&&(t="");var e=new RegExp("[^"+t+"\\d]*","g");return n.trim().replace(e,"").slice(0,9)}function t(t,e,i){void 0===e&&(e="-"),void 0===i&&(i="*");var r=n(t,i).split("");return[0,1,2,3,3,4,5,5,6,7,8,9,10].reduce(function(n,t,i){return r.length?n.concat(3===i||6===i?e:r.shift()||" "):n},[]).join("").trim()}function e(t,e){return void 0===e&&(e="*"),n(t,e).split("").map(function(n,t,i){return t<5?t===i.length-1?n:e:n}).join("")}function i(n,t){return void 0===t&&(t="-"),new RegExp("^(?!666|000|9\\d{2})\\d{3}"+t+"{0,1}(?!00)\\d{2}"+t+"{0,1}(?!0{4})\\d{4}$").test(n)}export{n as clean,t as format,e as mask,i as validate}; | ||
//# sourceMappingURL=parse-ssn.es.js.map |
@@ -1,2 +0,2 @@ | ||
function t(t,n){void 0===n&&(n="");var e=new RegExp("[^"+n+"\\d]*","g");return t.trim().replace(e,"").slice(0,9)}exports.clean=t,exports.format=function(n,e,r){void 0===e&&(e="-"),void 0===r&&(r="*");var i=t(n,r).split("");return[0,1,2,3,3,4,5,5,6,7,8,9,10].reduce(function(t,n,r){return i.length?t.concat(3===r||6===r?e:i.shift()||" "):t},[]).join("").trim()},exports.mask=function(n,e){return void 0===e&&(e="*"),t(n).split("").map(function(t,n,r){return n<5?n===r.length-1?t:e:t}).join("")},exports.validate=function(t,n){return void 0===n&&(n="-"),new RegExp("^(?!666|000|9\\d{2})\\d{3}"+n+"{0,1}(?!00)\\d{2}"+n+"{0,1}(?!0{4})\\d{4}$").test(t)}; | ||
function t(t,n){void 0===n&&(n="");var e=new RegExp("[^"+n+"\\d]*","g");return t.trim().replace(e,"").slice(0,9)}exports.clean=t,exports.format=function(n,e,r){void 0===e&&(e="-"),void 0===r&&(r="*");var i=t(n,r).split("");return[0,1,2,3,3,4,5,5,6,7,8,9,10].reduce(function(t,n,r){return i.length?t.concat(3===r||6===r?e:i.shift()||" "):t},[]).join("").trim()},exports.mask=function(n,e){return void 0===e&&(e="*"),t(n,e).split("").map(function(t,n,r){return n<5?n===r.length-1?t:e:t}).join("")},exports.validate=function(t,n){return void 0===n&&(n="-"),new RegExp("^(?!666|000|9\\d{2})\\d{3}"+n+"{0,1}(?!00)\\d{2}"+n+"{0,1}(?!0{4})\\d{4}$").test(t)}; | ||
//# sourceMappingURL=parse-ssn.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(n.parseSsn={})}(this,function(n){function e(n,e){void 0===e&&(e="");var t=new RegExp("[^"+e+"\\d]*","g");return n.trim().replace(t,"").slice(0,9)}n.clean=e,n.format=function(n,t,i){void 0===t&&(t="-"),void 0===i&&(i="*");var o=e(n,i).split("");return[0,1,2,3,3,4,5,5,6,7,8,9,10].reduce(function(n,e,i){return o.length?n.concat(3===i||6===i?t:o.shift()||" "):n},[]).join("").trim()},n.mask=function(n,t){return void 0===t&&(t="*"),e(n).split("").map(function(n,e,i){return e<5?e===i.length-1?n:t:n}).join("")},n.validate=function(n,e){return void 0===e&&(e="-"),new RegExp("^(?!666|000|9\\d{2})\\d{3}"+e+"{0,1}(?!00)\\d{2}"+e+"{0,1}(?!0{4})\\d{4}$").test(n)}}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(n.parseSsn={})}(this,function(n){function e(n,e){void 0===e&&(e="");var t=new RegExp("[^"+e+"\\d]*","g");return n.trim().replace(t,"").slice(0,9)}n.clean=e,n.format=function(n,t,i){void 0===t&&(t="-"),void 0===i&&(i="*");var o=e(n,i).split("");return[0,1,2,3,3,4,5,5,6,7,8,9,10].reduce(function(n,e,i){return o.length?n.concat(3===i||6===i?t:o.shift()||" "):n},[]).join("").trim()},n.mask=function(n,t){return void 0===t&&(t="*"),e(n,t).split("").map(function(n,e,i){return e<5?e===i.length-1?n:t:n}).join("")},n.validate=function(n,e){return void 0===e&&(e="-"),new RegExp("^(?!666|000|9\\d{2})\\d{3}"+e+"{0,1}(?!00)\\d{2}"+e+"{0,1}(?!0{4})\\d{4}$").test(n)}}); | ||
//# sourceMappingURL=parse-ssn.umd.js.map |
{ | ||
"name": "parse-ssn", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Tiny utils to handle formatting, masking, and validating of US Social Security numbers.", | ||
@@ -5,0 +5,0 @@ "source": "index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
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
12083
0