maskdata 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,108 +11,184 @@ const StringMask = require('./StringMask');
11
11
  const UuidMask = require('./UuidMask');
12
12
  const JsonGetSet = require('../helpers/jsonGetSet');
13
13
 
14
+ const typeToFunctionMap = {
15
+ card: [CardMask.maskCard, 'cardFields', 'cardMaskOptions'],
16
+ email: [EmailMask.maskEmail2, 'emailFields', 'emailMaskOptions'],
17
+ password: [PasswordMask.maskPassword, 'passwordFields', 'passwordMaskOptions'],
18
+ phone: [PhoneMask.maskPhone, 'phoneFields', 'phoneMaskOptions'],
19
+ string: [StringMask.maskString, 'stringFields', 'stringMaskOptions'],
20
+ uuid: [UuidMask.maskUuid, 'uuidFields', 'uuidMaskOptions']
21
+ };
22
+
14
23
  class JsonMask {
15
- static maskJSONFields(obj, options) {
16
- if(options) {
17
- options = MaskHelper.mapWithDefaultValues(options, Constants.defaultJsonMaskOptions);
18
- MaskHelper.validateJSONOptions(options);
19
- } else {
20
- options = Constants.defaultJsonMaskOptions;
21
- }
22
- let maskedObj = {};
23
- try {
24
- maskedObj = JSON.parse(JSON.stringify(obj));
25
- } catch (ex) {
26
- return obj;
27
- }
28
- const fields = options.fields;
29
- for(const field of fields) {
30
- try {
31
- if(field.includes('[*].')) {
32
- let [arrayFieldName, subField] = field.split('[*].');
33
- const arrayValue = JsonGetSet.get(maskedObj, arrayFieldName);
34
- for(const arrayElement of arrayValue) {
35
- const value = arrayElement[subField];
36
- if(value === undefined || value === null) {
37
- continue;
38
- } else {
39
- if(typeof(value) == 'string' && options.maxMaskedCharactersStr != -1 && options.maxMaskedCharactersStr < value.length) {
40
- JsonGetSet.set(arrayElement, subField, (`${options.maskWith}`.repeat(options.maxMaskedCharactersStr)))
41
- } else {
42
- JsonGetSet.set(arrayElement, subField, (`${options.maskWith}`.repeat(value.toString().length)));
43
- }
44
- }
45
- }
46
- } else if(field.includes('.*')) {
47
- let subField = field.split('.*')[0];
48
- const innerObject = JsonGetSet.get(maskedObj, subField);
49
- for(const innerObjectField of Object.keys(innerObject)) {
50
- const value = innerObject[innerObjectField];
51
- if(value === undefined || value === null) {
52
- continue;
53
- } else {
54
- if(typeof(value) == 'string' && options.maxMaskedCharactersStr != -1 && options.maxMaskedCharactersStr < value.length) {
55
- JsonGetSet.set(innerObject, innerObjectField, (`${options.maskWith}`.repeat(options.maxMaskedCharactersStr)))
56
- } else {
57
- JsonGetSet.set(innerObject, innerObjectField, (`${options.maskWith}`.repeat(value.toString().length)));
58
- }
59
- }
24
+ static maskJSONFields(obj, options) {
25
+ if (options) {
26
+ options = MaskHelper.mapWithDefaultValues(options, Constants.defaultJsonMaskOptions);
27
+ MaskHelper.validateJSONOptions(options);
28
+ } else {
29
+ options = Constants.defaultJsonMaskOptions;
30
+ }
31
+ let maskedObj = {};
32
+ try {
33
+ maskedObj = JSON.parse(JSON.stringify(obj));
34
+ } catch (ex) {
35
+ return obj;
36
+ }
37
+ const fields = options.fields;
38
+ for (const field of fields) {
39
+ try {
40
+ if (field.includes('[*].')) {
41
+ let [arrayFieldName, subField] = field.split('[*].');
42
+ const arrayValue = JsonGetSet.get(maskedObj, arrayFieldName);
43
+ for (const arrayElement of arrayValue) {
44
+ const value = arrayElement[subField];
45
+ if (value === undefined || value === null) {
46
+ continue;
47
+ } else {
48
+ if (
49
+ typeof value == 'string' &&
50
+ options.maxMaskedCharactersStr != -1 &&
51
+ options.maxMaskedCharactersStr < value.length
52
+ ) {
53
+ JsonGetSet.set(
54
+ arrayElement,
55
+ subField,
56
+ `${options.maskWith}`.repeat(options.maxMaskedCharactersStr)
57
+ );
58
+ } else {
59
+ JsonGetSet.set(
60
+ arrayElement,
61
+ subField,
62
+ `${options.maskWith}`.repeat(value.toString().length)
63
+ );
60
64
  }
65
+ }
66
+ }
67
+ } else if (field.includes('.*')) {
68
+ let subField = field.split('.*')[0];
69
+ const innerObject = JsonGetSet.get(maskedObj, subField);
70
+ for (const innerObjectField of Object.keys(innerObject)) {
71
+ const value = innerObject[innerObjectField];
72
+ if (value === undefined || value === null) {
73
+ continue;
61
74
  } else {
62
- const value = JsonGetSet.get(maskedObj, field);
63
- if(value === undefined || value === null) {
64
- continue;
65
- }
66
- if(typeof(value) == 'string' && options.maxMaskedCharactersStr != -1 && options.maxMaskedCharactersStr < value.length) {
67
- JsonGetSet.set(maskedObj, field, (`${options.maskWith}`.repeat(options.maxMaskedCharactersStr)))
68
- } else {
69
- JsonGetSet.set(maskedObj, field, (`${options.maskWith}`.repeat(value.toString().length)))
70
- }
75
+ if (
76
+ typeof value == 'string' &&
77
+ options.maxMaskedCharactersStr != -1 &&
78
+ options.maxMaskedCharactersStr < value.length
79
+ ) {
80
+ JsonGetSet.set(
81
+ innerObject,
82
+ innerObjectField,
83
+ `${options.maskWith}`.repeat(options.maxMaskedCharactersStr)
84
+ );
85
+ } else {
86
+ JsonGetSet.set(
87
+ innerObject,
88
+ innerObjectField,
89
+ `${options.maskWith}`.repeat(value.toString().length)
90
+ );
91
+ }
71
92
  }
72
- } catch(ex) { continue; }
93
+ }
94
+ } else {
95
+ const value = JsonGetSet.get(maskedObj, field);
96
+ if (value === undefined || value === null) {
97
+ continue;
98
+ }
99
+ if (
100
+ typeof value == 'string' &&
101
+ options.maxMaskedCharactersStr != -1 &&
102
+ options.maxMaskedCharactersStr < value.length
103
+ ) {
104
+ JsonGetSet.set(
105
+ maskedObj,
106
+ field,
107
+ `${options.maskWith}`.repeat(options.maxMaskedCharactersStr)
108
+ );
109
+ } else {
110
+ JsonGetSet.set(maskedObj, field, `${options.maskWith}`.repeat(value.toString().length));
111
+ }
73
112
  }
74
- return maskedObj;
75
- }
76
-
77
- static maskJSON2(obj, config) {
78
- const validatedConfig = MaskHelper.getValidatedJsonMask2Configs(config)
79
- let maskedObj = {};
80
- try {
81
- maskedObj = JSON.parse(JSON.stringify(obj));
82
113
  } catch (ex) {
83
- return obj;
84
- }
85
- for(const field of validatedConfig.cardFields) {
86
- const masked = CardMask.maskCard(JsonGetSet.get(maskedObj, field), validatedConfig.cardMaskOptions);
87
- JsonGetSet.set(maskedObj, field, masked);
114
+ continue;
88
115
  }
116
+ }
117
+ return maskedObj;
118
+ }
89
119
 
90
- for(const field of validatedConfig.emailFields) {
91
- const masked = EmailMask.maskEmail2(JsonGetSet.get(maskedObj, field), validatedConfig.emailMaskOptions);
92
- JsonGetSet.set(maskedObj, field, masked);
93
- }
120
+ static maskJSON2(obj, config) {
121
+ const validatedConfig = MaskHelper.getValidatedJsonMask2Configs(config);
122
+ let maskedObj = {};
123
+ try {
124
+ maskedObj = JSON.parse(JSON.stringify(obj));
125
+ } catch (ex) {
126
+ return obj;
127
+ }
94
128
 
95
- for(const field of validatedConfig.passwordFields) {
96
- const masked = PasswordMask.maskPassword(JsonGetSet.get(maskedObj, field), validatedConfig.passwordMaskOptions);
97
- JsonGetSet.set(maskedObj, field, masked);
129
+ for (const key of Object.keys(typeToFunctionMap)) {
130
+ for (const field of validatedConfig[typeToFunctionMap[key][1]]) {
131
+ this.mask(maskedObj, field, key, validatedConfig[typeToFunctionMap[key][2]]);
98
132
  }
133
+ }
134
+ return maskedObj;
135
+ }
99
136
 
100
- for(const field of validatedConfig.phoneFields) {
101
- const masked = PhoneMask.maskPhone(JsonGetSet.get(maskedObj, field), validatedConfig.phoneMaskOptions);
102
- JsonGetSet.set(maskedObj, field, masked);
103
- }
137
+ static mask(json, field, type, maskConfig) {
138
+ if (field.includes('.*') && !field.endsWith('.*')) {
139
+ console.warn('Ignoring the invalid field: ', field);
140
+ return;
141
+ }
104
142
 
105
- for(const field of validatedConfig.stringFields) {
106
- const masked = StringMask.maskString(JsonGetSet.get(maskedObj, field), validatedConfig.stringMaskOptions);
107
- JsonGetSet.set(maskedObj, field, masked);
143
+ if (field.includes('[*].')) {
144
+ const index = field.indexOf('[*]');
145
+ const left = field.substring(0, index);
146
+ const right = field.substring(index + 3);
147
+ const count = JsonGetSet.get(json, left);
148
+ if (count === undefined || count === null || count === '') return;
149
+ let i = 0;
150
+ for (let i = 0; i < count.length; i++) {
151
+ this.mask(json, `${left}[${i}]${right}`, type, maskConfig);
152
+ }
153
+ } else if (field.includes('.*')) {
154
+ const index = field.indexOf('.*');
155
+ const left = field.substring(0, index);
156
+ const keys = this.getNestedKeys(JsonGetSet.get(json, left), left);
157
+ for (const key of keys) {
158
+ this.mask(json, key, type, maskConfig);
108
159
  }
160
+ } else {
161
+ const value = JsonGetSet.get(json, field);
162
+ if (value !== null && value !== undefined) {
163
+ const masked = typeToFunctionMap[type][0](value, maskConfig);
164
+ JsonGetSet.set(json, field, masked);
165
+ return json;
166
+ }
167
+ }
168
+ }
109
169
 
110
- for(const field of validatedConfig.uuidFields) {
111
- const masked = UuidMask.maskUuid(JsonGetSet.get(maskedObj, field), validatedConfig.uuidMaskOptions);
112
- JsonGetSet.set(maskedObj, field, masked);
170
+ static getNestedKeys(obj, prefix = '') {
171
+ let keys = [];
172
+ if (typeof obj === 'string') {
173
+ keys.push(prefix);
174
+ return keys;
175
+ }
176
+ for (let key in obj) {
177
+ if (obj.hasOwnProperty(key)) {
178
+ const fullPath = prefix ? `${prefix}.${key}` : key;
179
+ if (typeof obj[key] === 'object' && !Array.isArray(obj[key])) {
180
+ keys = keys.concat(this.getNestedKeys(obj[key], fullPath));
181
+ } else if (Array.isArray(obj[key])) {
182
+ for (let i = 0; i < obj[key].length; i++) {
183
+ keys = keys.concat(this.getNestedKeys(obj[key][i], `${fullPath}[${i}]`));
184
+ }
185
+ } else {
186
+ keys.push(fullPath);
187
+ }
113
188
  }
114
- return maskedObj;
115
189
  }
190
+ return keys;
191
+ }
116
192
  }
117
193
 
118
- module.exports = JsonMask
194
+ module.exports = JsonMask;
@@ -3,41 +3,42 @@ const MaskHelper = require('../helpers/MaskHelper');
3
3
  const Constants = require('../helpers/Constants');
4
4
 
5
5
  class PasswordMask {
6
- static maskPassword(password, options) {
7
- if(!password || typeof(password) === 'object') return password;
8
- password = password + ''
9
- if(options) {
10
- options = MaskHelper.mapWithDefaultValues(options, Constants.defaultPasswordMaskOptions);
11
- MaskHelper.validatePasswordOptions(options);
12
- } else {
13
- options = Constants.defaultPasswordMaskOptions;
14
- }
15
- let maskPasswordLength = password.length;
16
- if(password.length > options.maxMaskedCharacters) {
17
- maskPasswordLength = parseInt(options.maxMaskedCharacters);
18
- }
19
- const maskingCharacters = maskPasswordLength - options.unmaskedStartCharacters - options.unmaskedEndCharacters;
20
-
21
- if(maskingCharacters < 0) {
22
- if(maskPasswordLength <= options.unmaskedStartCharacters) {
23
- return password.substring(0, maskPasswordLength);
24
- } else {
25
- let maskedPassword = password.substring(0, options.unmaskedStartCharacters);
26
- const remainingChars = maskPasswordLength - options.unmaskedStartCharacters;
27
- for(let i = password.length-remainingChars; i < password.length; i++) {
28
- maskedPassword += password[i];
29
- }
30
- return maskedPassword;
31
- }
32
- }
33
- let maskedPassword = "";
34
- maskedPassword = password.substring(0, options.unmaskedStartCharacters);
35
- maskedPassword += `${options.maskWith}`.repeat(maskingCharacters)
36
- for(let i = password.length-options.unmaskedEndCharacters; i < password.length; i++) {
6
+ static maskPassword(password, options) {
7
+ if (!password || typeof password === 'object') return password;
8
+ password = password + '';
9
+ if (options) {
10
+ options = MaskHelper.mapWithDefaultValues(options, Constants.defaultPasswordMaskOptions);
11
+ MaskHelper.validatePasswordOptions(options);
12
+ } else {
13
+ options = Constants.defaultPasswordMaskOptions;
14
+ }
15
+ let maskPasswordLength = password.length;
16
+ if (password.length > options.maxMaskedCharacters) {
17
+ maskPasswordLength = parseInt(options.maxMaskedCharacters);
18
+ }
19
+ const maskingCharacters =
20
+ maskPasswordLength - options.unmaskedStartCharacters - options.unmaskedEndCharacters;
21
+
22
+ if (maskingCharacters < 0) {
23
+ if (maskPasswordLength <= options.unmaskedStartCharacters) {
24
+ return password.substring(0, maskPasswordLength);
25
+ } else {
26
+ let maskedPassword = password.substring(0, options.unmaskedStartCharacters);
27
+ const remainingChars = maskPasswordLength - options.unmaskedStartCharacters;
28
+ for (let i = password.length - remainingChars; i < password.length; i++) {
37
29
  maskedPassword += password[i];
38
- }
30
+ }
39
31
  return maskedPassword;
32
+ }
33
+ }
34
+ let maskedPassword = '';
35
+ maskedPassword = password.substring(0, options.unmaskedStartCharacters);
36
+ maskedPassword += `${options.maskWith}`.repeat(maskingCharacters);
37
+ for (let i = password.length - options.unmaskedEndCharacters; i < password.length; i++) {
38
+ maskedPassword += password[i];
40
39
  }
40
+ return maskedPassword;
41
+ }
41
42
  }
42
43
 
43
- module.exports = PasswordMask
44
+ module.exports = PasswordMask;
@@ -3,21 +3,25 @@ const MaskHelper = require('../helpers/MaskHelper');
3
3
  const Constants = require('../helpers/Constants');
4
4
 
5
5
  class PhoneMask {
6
- static maskPhone(phone, options) {
7
- if(!phone || typeof(phone) === 'object') return phone;
8
- phone += '';
9
- if(options) {
10
- options = MaskHelper.mapWithDefaultValues(options, Constants.defaultPhoneMaskOptions);
11
- MaskHelper.validatePhoneOptions(options);
12
- } else {
13
- options = Constants.defaultPhoneMaskOptions;
14
- }
15
- let maskLength = phone.length - options.unmaskedStartDigits - options.unmaskedEndDigits;
16
- if((options.unmaskedStartDigits + options.unmaskedEndDigits) >= phone.length) {
17
- return phone;
18
- }
19
- return phone.substring(0, options.unmaskedStartDigits) + `${options.maskWith}`.repeat(maskLength) + phone.substring(phone.length-options.unmaskedEndDigits);
6
+ static maskPhone(phone, options) {
7
+ if (!phone || typeof phone === 'object') return phone;
8
+ phone += '';
9
+ if (options) {
10
+ options = MaskHelper.mapWithDefaultValues(options, Constants.defaultPhoneMaskOptions);
11
+ MaskHelper.validatePhoneOptions(options);
12
+ } else {
13
+ options = Constants.defaultPhoneMaskOptions;
20
14
  }
15
+ let maskLength = phone.length - options.unmaskedStartDigits - options.unmaskedEndDigits;
16
+ if (options.unmaskedStartDigits + options.unmaskedEndDigits >= phone.length) {
17
+ return phone;
18
+ }
19
+ return (
20
+ phone.substring(0, options.unmaskedStartDigits) +
21
+ `${options.maskWith}`.repeat(maskLength) +
22
+ phone.substring(phone.length - options.unmaskedEndDigits)
23
+ );
24
+ }
21
25
  }
22
26
 
23
- module.exports = PhoneMask
27
+ module.exports = PhoneMask;
@@ -3,42 +3,41 @@ const MaskHelper = require('../helpers/MaskHelper');
3
3
  const Constants = require('../helpers/Constants');
4
4
 
5
5
  class StringMask {
6
- static maskString(str, options) {
7
- if(!str || typeof(str) === 'object') return str;
8
- str = str + '';
9
- if(options) {
10
- options = MaskHelper.mapWithDefaultValues(options, Constants.defaultStringMaskOptions);
11
- MaskHelper.validateStringOptions(options);
12
- } else {
13
- options = Constants.defaultStringMaskOptions;
14
- }
15
- let values = options.values;
16
- if(options.maskAll === true) {
17
- let result = '';
18
- if(options.maskSpace === true) {
19
- result = options.maskWith.repeat(str.length);
20
- } else {
21
- for(let eachChar of str) {
22
- if(eachChar === ' ') {
23
- result += ' ';
24
- } else {
25
- result += options.maskWith;
26
- }
27
- }
28
- }
29
- return result;
30
- }
31
- else if(options.maskOnlyFirstOccurance == true) {
32
- for(const value of Object.values(values)) {
33
- str = str.replace(value, `${options.maskWith}`.repeat(value.length));
34
- }
35
- } else {
36
- for(const value of Object.values(values)) {
37
- str = str.replace(new RegExp(value, 'g'), `${options.maskWith}`.repeat(value.length));
6
+ static maskString(str, options) {
7
+ if (!str || typeof str === 'object') return str;
8
+ str = str + '';
9
+ if (options) {
10
+ options = MaskHelper.mapWithDefaultValues(options, Constants.defaultStringMaskOptions);
11
+ MaskHelper.validateStringOptions(options);
12
+ } else {
13
+ options = Constants.defaultStringMaskOptions;
14
+ }
15
+ let values = options.values;
16
+ if (options.maskAll === true) {
17
+ let result = '';
18
+ if (options.maskSpace === true) {
19
+ result = options.maskWith.repeat(str.length);
20
+ } else {
21
+ for (let eachChar of str) {
22
+ if (eachChar === ' ') {
23
+ result += ' ';
24
+ } else {
25
+ result += options.maskWith;
38
26
  }
39
27
  }
40
- return str;
28
+ }
29
+ return result;
30
+ } else if (options.maskOnlyFirstOccurance == true) {
31
+ for (const value of Object.values(values)) {
32
+ str = str.replace(value, `${options.maskWith}`.repeat(value.length));
33
+ }
34
+ } else {
35
+ for (const value of Object.values(values)) {
36
+ str = str.replace(new RegExp(value, 'g'), `${options.maskWith}`.repeat(value.length));
37
+ }
41
38
  }
39
+ return str;
40
+ }
42
41
  }
43
42
 
44
- module.exports = StringMask
43
+ module.exports = StringMask;
@@ -5,30 +5,37 @@ const Constants = require('../helpers/Constants');
5
5
  const uuidFormat = /[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/g;
6
6
 
7
7
  class UuidMask {
8
- static maskUuid(uuid, options) {
9
- if(!uuid || typeof(uuid) !== 'string' || !uuid.match(uuidFormat) || uuid.length !== 36) return uuid;
10
- if(!options) {
11
- options = Constants.defaultUuidMaskOptions;
12
- } else {
13
- options = MaskHelper.mapWithDefaultValues(options, Constants.defaultUuidMaskOptions);
14
- MaskHelper.validateUuidMaskOptions(options);
15
- }
8
+ static maskUuid(uuid, options) {
9
+ if (!uuid || typeof uuid !== 'string' || !uuid.match(uuidFormat) || uuid.length !== 36)
10
+ return uuid;
11
+ if (!options) {
12
+ options = Constants.defaultUuidMaskOptions;
13
+ } else {
14
+ options = MaskHelper.mapWithDefaultValues(options, Constants.defaultUuidMaskOptions);
15
+ MaskHelper.validateUuidMaskOptions(options);
16
+ }
16
17
 
17
- const toBeProcessedUuid = uuid.replaceAll("-", "");
18
+ const toBeProcessedUuid = uuid.replaceAll('-', '');
18
19
 
19
- const start = toBeProcessedUuid.slice(0, options.unmaskedStartCharacters);
20
- const end = toBeProcessedUuid.slice(32-options.unmaskedEndCharacters);
21
- const maskLength = toBeProcessedUuid.length - options.unmaskedStartCharacters - options.unmaskedEndCharacters;
22
- const tempMaskedUuid = start + (options.maskWith.repeat(maskLength)) + end;
20
+ const start = toBeProcessedUuid.slice(0, options.unmaskedStartCharacters);
21
+ const end = toBeProcessedUuid.slice(32 - options.unmaskedEndCharacters);
22
+ const maskLength =
23
+ toBeProcessedUuid.length - options.unmaskedStartCharacters - options.unmaskedEndCharacters;
24
+ const tempMaskedUuid = start + options.maskWith.repeat(maskLength) + end;
23
25
 
24
- let maskedUuid = tempMaskedUuid.slice(0, 8) + "-"
25
- + tempMaskedUuid.slice(8, 12) + "-"
26
- + tempMaskedUuid.slice(12, 16) + "-"
27
- + tempMaskedUuid.slice(16, 20) + "-"
28
- + tempMaskedUuid.slice(20);
26
+ let maskedUuid =
27
+ tempMaskedUuid.slice(0, 8) +
28
+ '-' +
29
+ tempMaskedUuid.slice(8, 12) +
30
+ '-' +
31
+ tempMaskedUuid.slice(12, 16) +
32
+ '-' +
33
+ tempMaskedUuid.slice(16, 20) +
34
+ '-' +
35
+ tempMaskedUuid.slice(20);
29
36
 
30
- return maskedUuid;
31
- }
37
+ return maskedUuid;
38
+ }
32
39
  }
33
40
 
34
- module.exports = UuidMask
41
+ module.exports = UuidMask;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maskdata",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Node module to mask various kinds of data in the required formats",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -10,7 +10,8 @@
10
10
  },
11
11
  "scripts": {
12
12
  "test": "mocha tests/test*.js --timeout 5000 --exit",
13
- "coverage": "nyc --reporter=html --reporter=text npm run test"
13
+ "coverage": "nyc --reporter=html --reporter=text npm run test",
14
+ "format": "prettier --write '**/*.{ts,js,json}'"
14
15
  },
15
16
  "keywords": [
16
17
  "mask",
@@ -27,19 +28,25 @@
27
28
  "mask object",
28
29
  "Get json fields",
29
30
  "Set json fields",
30
- "Replcae json fields"
31
+ "Replcae json fields",
32
+ "email",
33
+ "phone",
34
+ "uuid",
35
+ "string",
36
+ "sensitive"
31
37
  ],
32
38
  "author": "sumukha.hs<sumukha.hs369@gmail.com>",
33
- "homepage": "https://github.com/Sumukha1496/maskdata#readme",
39
+ "homepage": "https://www.npmjs.com/package/maskdata?activeTab=readme",
34
40
  "license": "MIT",
35
41
  "dependencies": {
36
42
  "lodash": "^4.17.21"
37
43
  },
38
44
  "devDependencies": {
39
- "chai": "^4.3.7",
45
+ "chai": "^4.3.10",
40
46
  "mocha": "^10.2.0",
41
- "mocha-junit-reporter": "^2.2.0",
47
+ "mocha-junit-reporter": "^2.2.1",
42
48
  "nyc": "^15.1.0",
43
- "typescript": "^4.9.5"
49
+ "prettier": "^3.0.3",
50
+ "typescript": "^5.2.2"
44
51
  }
45
52
  }