idea-toolbox
Advanced tools
Comparing version 6.5.6 to 6.5.7
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -28,5 +28,5 @@ "use strict"; | ||
const e = []; | ||
if ((0, utils_1.isEmpty)(this.name)) | ||
if (utils_1.isEmpty(this.name)) | ||
e.push('name'); | ||
if ((0, utils_1.isEmpty)(this.email, 'email')) | ||
if (utils_1.isEmpty(this.email, 'email')) | ||
e.push('email'); | ||
@@ -33,0 +33,0 @@ return e; |
@@ -19,3 +19,3 @@ "use strict"; | ||
e.push('default'); | ||
if (!this.available.every(l => (0, utils_1.loopStringEnumValues)(languagesOfSpecificService).some(x => x === l))) | ||
if (!this.available.every(l => utils_1.loopStringEnumValues(languagesOfSpecificService).some(x => x === l))) | ||
e.push('available'); | ||
@@ -22,0 +22,0 @@ return e; |
@@ -46,3 +46,3 @@ "use strict"; | ||
e.push('name'); | ||
if (!(0, utils_1.loopStringEnumValues)(RCResourceFormats).some(x => x === this.format)) | ||
if (!utils_1.loopStringEnumValues(RCResourceFormats).some(x => x === this.format)) | ||
e.push('format'); | ||
@@ -49,0 +49,0 @@ return e; |
@@ -95,3 +95,3 @@ "use strict"; | ||
iE(field, type) { | ||
return (0, utils_1.isEmpty)(field, type); | ||
return utils_1.isEmpty(field, type); | ||
} | ||
@@ -98,0 +98,0 @@ /** |
@@ -112,15 +112,15 @@ "use strict"; | ||
else if (field instanceof Date) | ||
return !(0, isDate_1.default)(field.toISOString()); | ||
return !isDate_1.default(field.toISOString().slice(0, 10)); | ||
else | ||
return Object.keys(field).length <= 0; | ||
case 'date': | ||
return !(0, isDate_1.default)(field); | ||
return !isDate_1.default(new Date(field)?.toISOString().slice(0, 10)); | ||
case 'email': | ||
return !(0, isEmail_1.default)(field); | ||
return !isEmail_1.default(field); | ||
case 'phone': | ||
return !(0, isMobilePhone_1.default)(field, 'any'); | ||
return !isMobilePhone_1.default(field, 'any'); | ||
case 'url': | ||
return !(0, isURL_1.default)(field); | ||
return !isURL_1.default(field); | ||
case 'domain': | ||
return !(0, isFQDN_1.default)(field, { require_tld: false }); | ||
return !isFQDN_1.default(field, { require_tld: false }); | ||
default: | ||
@@ -198,4 +198,4 @@ return true; | ||
return ''; | ||
return (0, marked_1.default)(mdString, { gfm: true, breaks: true }); | ||
return marked_1.default(mdString, { gfm: true, breaks: true }); | ||
} | ||
exports.mdToHtml = mdToHtml; |
{ | ||
"name": "idea-toolbox", | ||
"version": "6.5.6", | ||
"version": "6.5.7", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
239825