Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cpr-mask

Package Overview
Dependencies
Maintainers
10
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpr-mask - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

5

lib/cpr-mask.helpers.js

@@ -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;

2

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc