maskdata 1.3.4 → 1.3.5

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.
@@ -42,7 +42,7 @@ class StringMask {
42
42
  }
43
43
 
44
44
  static maskStringV2(string, options) {
45
- if (!string || typeof string === 'object') return string;
45
+ if (string === null || string === undefined || typeof string === 'object') return string;
46
46
  string = string + '';
47
47
  if (options) {
48
48
  options = MaskHelper.mapWithDefaultValues(options, Constants.defaultStringMaskV2Options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maskdata",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
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",
@@ -45,7 +45,7 @@
45
45
  "homepage": "https://www.npmjs.com/package/maskdata?activeTab=readme",
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
- "lodash": "^4.17.21"
48
+ "lodash": "^4.17.23"
49
49
  },
50
50
  "devDependencies": {
51
51
  "chai": "^4.3.10",