Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

idea-toolbox

Package Overview
Dependencies
Maintainers
2
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idea-toolbox - npm Package Compare versions

Comparing version 6.5.7 to 6.5.8

2

dist/index.js

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -28,5 +28,5 @@ "use strict";

const e = [];
if (utils_1.isEmpty(this.name))
if ((0, utils_1.isEmpty)(this.name))
e.push('name');
if (utils_1.isEmpty(this.email, 'email'))
if ((0, 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 => utils_1.loopStringEnumValues(languagesOfSpecificService).some(x => x === l)))
if (!this.available.every(l => (0, 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 (!utils_1.loopStringEnumValues(RCResourceFormats).some(x => x === this.format))
if (!(0, 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 utils_1.isEmpty(field, type);
return (0, utils_1.isEmpty)(field, type);
}

@@ -98,0 +98,0 @@ /**

@@ -12,3 +12,3 @@ "use strict";

const isDate_1 = __importDefault(require("validator/lib/isDate"));
const marked_1 = __importDefault(require("marked"));
const marked_1 = require("marked");
/**

@@ -113,15 +113,15 @@ * Utilities (static) functions, to support IDEA's projects.

else if (field instanceof Date)
return !isDate_1.default(field.toISOString().slice(0, 10));
return !(0, isDate_1.default)(field.toISOString().slice(0, 10));
else
return Object.keys(field).length <= 0;
case 'date':
return !isDate_1.default(new Date(field)?.toISOString().slice(0, 10));
return !(0, isDate_1.default)(new Date(field)?.toISOString().slice(0, 10));
case 'email':
return !isEmail_1.default(field);
return !(0, isEmail_1.default)(field);
case 'phone':
return !isMobilePhone_1.default(field, 'any');
return !(0, isMobilePhone_1.default)(field, 'any');
case 'url':
return !isURL_1.default(field);
return !(0, isURL_1.default)(field);
case 'domain':
return !isFQDN_1.default(field, { require_tld: false });
return !(0, isFQDN_1.default)(field, { require_tld: false });
default:

@@ -199,4 +199,4 @@ return true;

return '';
return marked_1.default(mdString, { gfm: true, breaks: true });
return (0, marked_1.marked)(mdString, { gfm: true, breaks: true });
}
exports.mdToHtml = mdToHtml;
{
"name": "idea-toolbox",
"version": "6.5.7",
"version": "6.5.8",
"description": "IDEA's utility functions",

@@ -30,3 +30,3 @@ "main": "dist/index.js",

"dependencies": {
"marked": "^2.1.3",
"marked": "^4.0.10",
"validator": "^13.7.0"

@@ -37,5 +37,5 @@ },

"@types/aws-lambda": "^8.10.72",
"@types/marked": "^3.0.1",
"@types/marked": "^4.0.1",
"@types/node": "^14.14.26",
"@types/validator": "^13.6.3",
"@types/validator": "^13.7.1",
"@typescript-eslint/eslint-plugin": "^4.31.1",

@@ -42,0 +42,0 @@ "@typescript-eslint/parser": "^4.31.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc