Comparing version 2.2.4 to 2.2.5
@@ -283,6 +283,5 @@ "use strict"; | ||
function maskToValue() { | ||
var maskValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; | ||
var maskPattern = arguments.length > 1 ? arguments[1] : undefined; | ||
function maskToValue(value, maskPattern) { | ||
var filler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : " "; | ||
var maskValue = value || ''; | ||
var whitedValue = maskValue.split("").filter(function (char, index) { | ||
@@ -289,0 +288,0 @@ return /[A1W*]/.test(maskPattern[index]) || maskPattern[index] === undefined; |
{ | ||
"name": "cpr-mask", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "A masking component for react", | ||
@@ -5,0 +5,0 @@ "main": "lib/cpr-mask.component.js", |
@@ -237,3 +237,4 @@ import { find } from 'lodash'; | ||
export function maskToValue(maskValue = "", maskPattern, filler = " ") { | ||
export function maskToValue(value, maskPattern, filler = " ") { | ||
const maskValue = value || ''; | ||
let whitedValue = maskValue.split("").filter((char, index) => { | ||
@@ -240,0 +241,0 @@ return (/[A1W*]/.test(maskPattern[index]) || maskPattern[index] === undefined) |
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
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
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
0
76663