New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

string-masking

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-masking - npm Package Compare versions

Comparing version
1.1.3
to
1.1.4
+8
-7
index.js
function stringMask(string,digit){
try{
let model = {}
let note = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
if(!string || digit == undefined ){
model.status = "failure"
model.response = "Ethier string, digit or both are missing or misplaced."
model.NOTE = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
model.NOTE = note
return (model)

@@ -19,3 +20,3 @@ }

model.response = "Blank string cannot be processed"
model.NOTE = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
model.NOTE = note
return (model)

@@ -26,3 +27,3 @@ }

model.response = "Entered string length cannot be equal to greater than the digit count"
model.NOTE = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
model.NOTE = note
return (model)

@@ -36,3 +37,3 @@ }

model.response = "Entered strings length is too less for this operation."
model.NOTE = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
model.NOTE = note
return (model)

@@ -69,3 +70,3 @@ }

model.response = "unmasking value can not be blank"
model.NOTE = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
model.NOTE = note
// console.log(model)

@@ -88,3 +89,3 @@ return (model)

model.response = "Entered string length cannot be equal to greater than the digit count"
model.NOTE = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
model.NOTE = note
return (model)

@@ -113,3 +114,3 @@ }

model.response = "Something went wrong, Please check the syntax."
model.NOTE = "Please email us on rohansolse@gmail.comfor NPM related suggestions/bugs(with input)."
model.NOTE = note
return (model)

@@ -116,0 +117,0 @@ }

{
"name": "string-masking",
"version": "1.1.3",
"version": "1.1.4",
"description": "to mask string",

@@ -5,0 +5,0 @@ "main": "index.js",