Skip to content

Commit 7162bc7

Browse files
authored
Merge pull request #10 from gsmithun4/development
minify fix
2 parents 036ec38 + 3af9131 commit 7162bc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/queryBuilder/queryBuilder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ const validateOps = () => {
6767
if (options.isCountryCodeMandatory) {
6868
validationObject.mobileNumber.isCountryCodeMandatory = options.isCountryCodeMandatory;
6969
}
70-
if (options.length?.min ) {
70+
if (options.length && options.length.min) {
7171
validationObject.mobileNumber.length.min = options.length.min;
7272
}
73-
if (options.length?.max ) {
73+
if (options.length && options.length.max) {
7474
validationObject.mobileNumber.length.max = options.length.max;
7575
}
7676
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"minify:index": "node-minify --compressor uglify-es --input 'index.js' --output 'index.js'",
1818
"test:coverage": "jest --coverage",
1919
"test:coverage-html": "jest --coverage --config='{ \"coverageReporters\": [\"html\", \"lcov\"] }'",
20-
"minify": " && && "
20+
"minify": "npm run minify:validator && npm run minify:check-service && npm run minify:skip-service && npm run minify:query-builder && npm run minify:index"
2121
},
2222
"keywords": [
2323
"request validation",

0 commit comments

Comments
 (0)