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.3.2 to 6.4.0

dist/cognitoUser.model.d.ts

152

.eslintrc.js
module.exports = {
overrides: [
{
files: ['*.ts'],
env: {
browser: true,
es6: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
},
plugins: ['@typescript-eslint', 'eslint-plugin-import', 'eslint-plugin-jsdoc', 'eslint-plugin-prefer-arrow'],
rules: {
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': [
'error',
{
types: {
Object: {
message: 'Avoid using the `Object` type. Did you mean `object`?'
},
Function: {
message: 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.'
},
Boolean: {
message: 'Avoid using the `Boolean` type. Did you mean `boolean`?'
},
Number: {
message: 'Avoid using the `Number` type. Did you mean `number`?'
},
String: {
message: 'Avoid using the `String` type. Did you mean `string`?'
},
Symbol: {
message: 'Avoid using the `Symbol` type. Did you mean `symbol`?'
}
}
}
],
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: { delimiter: 'semi', requireLast: true },
singleline: { delimiter: 'semi', requireLast: false }
}
],
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-inferrable-types': ['error', { ignoreParameters: true }],
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }],
'@typescript-eslint/semi': ['error', 'always', { omitLastInOneLineBlock: true }],
'@typescript-eslint/triple-slash-reference': [
'error',
{ path: 'always', types: 'prefer-import', lib: 'always' }
],
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unified-signatures': 'error',
'arrow-body-style': 'error',
'arrow-parens': ['off', 'always'],
'brace-style': ['error', '1tbs'],
'comma-dangle': ['error', 'never'],
complexity: 'off',
'constructor-super': 'error',
curly: 'off',
'eol-last': 'error',
eqeqeq: ['error', 'always'],
'guard-for-in': 'error',
'max-classes-per-file': 'off',
'max-len': ['error', { code: 120, tabWidth: 2 }],
'new-parens': 'off',
'newline-per-chained-call': 'off',
'no-bitwise': 'off',
'no-caller': 'error',
'no-case-declarations': 'off',
'no-cond-assign': 'error',
'no-console': ['error', { allow: ['log'] }],
'no-debugger': 'error',
'no-empty': 'error',
'no-eval': 'error',
'no-extra-semi': 'error',
'no-fallthrough': 'error',
'no-invalid-this': 'error',
'no-irregular-whitespace': 'error',
'no-multiple-empty-lines': 'error',
'no-new-wrappers': 'error',
'no-restricted-imports': ['error', 'rxjs/Rx'],
'no-shadow': 'off',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'off',
'no-unsafe-finally': 'error',
'no-unused-labels': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'one-var': 'off',
'prefer-const': 'error',
'quote-props': ['error', 'as-needed'],
radix: 'error',
'space-before-function-paren': ['error', 'never'],
'space-in-parens': ['error', 'never'],
'spaced-comment': ['error', 'always', { markers: ['/'] }],
'use-isnan': 'error',
'valid-typeof': 'error'
}
}
]
root: true,
env: {
browser: true,
es6: true,
node: true,
commonjs: true
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-explicit-any': 0
}
};

@@ -43,3 +43,2 @@ "use strict";

getFullAddress(display = {}) {
var _a, _b, _c, _d, _e, _f, _g;
display = Object.assign({

@@ -54,5 +53,5 @@ address: true,

let res = '';
if (((_a = this.address) === null || _a === void 0 ? void 0 : _a.trim()) && display.address)
if (this.address?.trim() && display.address)
res = res.concat(this.address.trim());
if (((_b = this.address2) === null || _b === void 0 ? void 0 : _b.trim()) && display.address2) {
if (this.address2?.trim() && display.address2) {
if (res.length)

@@ -63,3 +62,3 @@ res = res.concat(` (${this.address2.trim()})`);

}
if (((_c = this.city) === null || _c === void 0 ? void 0 : _c.trim()) && display.city) {
if (this.city?.trim() && display.city) {
if (res.length)

@@ -70,4 +69,4 @@ res = res.concat(`, ${this.city.trim()}`);

}
if (((_d = this.postcode) === null || _d === void 0 ? void 0 : _d.trim()) && display.postcode) {
if (((_e = this.city) === null || _e === void 0 ? void 0 : _e.trim()) && display.city)
if (this.postcode?.trim() && display.postcode) {
if (this.city?.trim() && display.city)
res = res.concat(` ${this.postcode.trim()}`);

@@ -79,3 +78,3 @@ else if (res.length)

}
if (((_f = this.province) === null || _f === void 0 ? void 0 : _f.trim()) && display.province) {
if (this.province?.trim() && display.province) {
if (res.length)

@@ -86,3 +85,3 @@ res = res.concat(` (${this.province.trim()})`);

}
if (((_g = this.country) === null || _g === void 0 ? void 0 : _g.trim()) && display.country) {
if (this.country?.trim() && display.country) {
if (res.length)

@@ -89,0 +88,0 @@ res = res.concat(` - ${this.country.trim()}`);

import { epochDateTime } from './epoch';
/**
* @deprecated
*/
export interface Cacheable {

@@ -3,0 +6,0 @@ /**

@@ -6,2 +6,3 @@ import { Cacheable } from './cacheable.model';

* An abstract class to inherit to manage a resource model.
* @deprecated
*/

@@ -8,0 +9,0 @@ export declare abstract class CacheableResource extends Resource implements Cacheable {

@@ -7,2 +7,3 @@ "use strict";

* An abstract class to inherit to manage a resource model.
* @deprecated
*/

@@ -9,0 +10,0 @@ class CacheableResource extends resource_model_1.Resource {

@@ -53,3 +53,3 @@ export declare enum Countries {

'Congo' = "CG",
'Congo, the Democratic Republic of the' = "CD",
'Congo, the Democratic Reof the' = "CD",
'Cook Islands' = "CK",

@@ -107,3 +107,3 @@ 'Costa Rica' = "CR",

'Indonesia' = "ID",
'Iran, Islamic Republic of' = "IR",
'Iran, Islamic Reof' = "IR",
'Iraq' = "IQ",

@@ -121,4 +121,4 @@ 'Ireland' = "IE",

'Kiribati' = "KI",
"Korea, Democratic People's Republic of" = "KP",
'Korea, Republic of' = "KR",
"Korea, Democratic People's Reof" = "KP",
'Korea, Reof' = "KR",
'Kuwait' = "KW",

@@ -136,3 +136,3 @@ 'Kyrgyzstan' = "KG",

'Macao' = "MO",
'Macedonia, the Former Yugoslav Republic of' = "MK",
'Macedonia, the Former Yugoslav Reof' = "MK",
'Madagascar' = "MG",

@@ -151,3 +151,3 @@ 'Malawi' = "MW",

'Micronesia, Federated States of' = "FM",
'Moldova, Republic of' = "MD",
'Moldova, Reof' = "MD",
'Monaco' = "MC",

@@ -226,3 +226,3 @@ 'Mongolia' = "MN",

'Tajikistan' = "TJ",
'Tanzania, United Republic of' = "TZ",
'Tanzania, United Reof' = "TZ",
'Thailand' = "TH",

@@ -248,3 +248,3 @@ 'Timor-Leste' = "TL",

'Vanuatu' = "VU",
'Venezuela, Bolivarian Republic of' = "VE",
'Venezuela, Bolivarian Reof' = "VE",
'Viet Nam' = "VN",

@@ -251,0 +251,0 @@ 'Virgin Islands, British' = "VG",

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

Countries["Congo"] = "CG";
Countries["Congo, the Democratic Republic of the"] = "CD";
Countries["Congo, the Democratic Reof the"] = "CD";
Countries["Cook Islands"] = "CK";

@@ -111,3 +111,3 @@ Countries["Costa Rica"] = "CR";

Countries["Indonesia"] = "ID";
Countries["Iran, Islamic Republic of"] = "IR";
Countries["Iran, Islamic Reof"] = "IR";
Countries["Iraq"] = "IQ";

@@ -125,4 +125,4 @@ Countries["Ireland"] = "IE";

Countries["Kiribati"] = "KI";
Countries["Korea, Democratic People's Republic of"] = "KP";
Countries["Korea, Republic of"] = "KR";
Countries["Korea, Democratic People's Reof"] = "KP";
Countries["Korea, Reof"] = "KR";
Countries["Kuwait"] = "KW";

@@ -140,3 +140,3 @@ Countries["Kyrgyzstan"] = "KG";

Countries["Macao"] = "MO";
Countries["Macedonia, the Former Yugoslav Republic of"] = "MK";
Countries["Macedonia, the Former Yugoslav Reof"] = "MK";
Countries["Madagascar"] = "MG";

@@ -155,3 +155,3 @@ Countries["Malawi"] = "MW";

Countries["Micronesia, Federated States of"] = "FM";
Countries["Moldova, Republic of"] = "MD";
Countries["Moldova, Reof"] = "MD";
Countries["Monaco"] = "MC";

@@ -230,3 +230,3 @@ Countries["Mongolia"] = "MN";

Countries["Tajikistan"] = "TJ";
Countries["Tanzania, United Republic of"] = "TZ";
Countries["Tanzania, United Reof"] = "TZ";
Countries["Thailand"] = "TH";

@@ -252,3 +252,3 @@ Countries["Timor-Leste"] = "TL";

Countries["Vanuatu"] = "VU";
Countries["Venezuela, Bolivarian Republic of"] = "VE";
Countries["Venezuela, Bolivarian Reof"] = "VE";
Countries["Viet Nam"] = "VN";

@@ -255,0 +255,0 @@ Countries["Virgin Islands, British"] = "VG";

@@ -1,55 +0,56 @@

export * from './address.model';
export * from './amazonTranslateLanguages.enum';
export * from './announcement.model';
export * from './APIRequestLog.model';
export * from './appointment.model';
export * from './attachment.model';
export * from './booleanChoices.enum';
export * from './cacheable.model';
export * from './cacheableResource.model';
export * from './calendar.model';
export * from './check.model';
export * from './clientInfo.model';
export * from './contactRequest.model';
export * from './contacts.model';
export * from './countries.enum';
export * from './customBlockMeta.model';
export * from './customFieldMeta.model';
export * from './customFieldTypes.enum';
export * from './customSectionMeta.model';
export * from './delta.model';
export * from './emailChangeRequest.model';
export * from './emailData.model';
export * from './epoch';
export * from './errorReport.model';
export * from './errorWhitelisted.model';
export * from './invitation.model';
export * from './ionicons.enum';
export * from './label.model';
export * from './labelVariable.model';
export * from './languages.model';
export * from './languages.enum';
export * from './limitCounter.model';
export * from './markdown';
export * from './membership.model';
export * from './notification.model';
export * from './pdfTemplate.model';
export * from './projectPlan.model';
export * from './projectSubscription.model';
export * from './pushNotificationsDevice.model';
export * from './pushNotificationsPlatforms.enum';
export * from './RCAttachedResource.model';
export * from './RCConfiguredFolder.model';
export * from './RCFolder.model';
export * from './RCResource.model';
export * from './resource.model';
export * from './sentiment.enum';
export * from './signature.model';
export * from './signedURL.model';
export * from './stringVariable.model';
export * from './suggestion.model';
export * from './team.model';
export * from './teamModules.model';
export * from './timeInterval.model';
export * from './user.model';
export * from './utils';
export * from './src/address.model';
export * from './src/amazonTranslateLanguages.enum';
export * from './src/announcement.model';
export * from './src/APIRequestLog.model';
export * from './src/appointment.model';
export * from './src/attachment.model';
export * from './src/booleanChoices.enum';
export * from './src/cacheable.model';
export * from './src/cacheableResource.model';
export * from './src/calendar.model';
export * from './src/check.model';
export * from './src/clientInfo.model';
export * from './src/cognitoUser.model';
export * from './src/contactRequest.model';
export * from './src/contacts.model';
export * from './src/countries.enum';
export * from './src/customBlockMeta.model';
export * from './src/customFieldMeta.model';
export * from './src/customFieldTypes.enum';
export * from './src/customSectionMeta.model';
export * from './src/delta.model';
export * from './src/emailChangeRequest.model';
export * from './src/emailData.model';
export * from './src/epoch';
export * from './src/errorReport.model';
export * from './src/errorWhitelisted.model';
export * from './src/invitation.model';
export * from './src/ionicons.enum';
export * from './src/label.model';
export * from './src/labelVariable.model';
export * from './src/languages.model';
export * from './src/languages.enum';
export * from './src/limitCounter.model';
export * from './src/markdown';
export * from './src/membership.model';
export * from './src/notification.model';
export * from './src/pdfTemplate.model';
export * from './src/projectPlan.model';
export * from './src/projectSubscription.model';
export * from './src/pushNotificationsDevice.model';
export * from './src/pushNotificationsPlatforms.enum';
export * from './src/RCAttachedResource.model';
export * from './src/RCConfiguredFolder.model';
export * from './src/RCFolder.model';
export * from './src/RCResource.model';
export * from './src/resource.model';
export * from './src/sentiment.enum';
export * from './src/signature.model';
export * from './src/signedURL.model';
export * from './src/stringVariable.model';
export * from './src/suggestion.model';
export * from './src/team.model';
export * from './src/teamModules.model';
export * from './src/timeInterval.model';
export * from './src/user.model';
export * from './src/utils';

@@ -10,59 +10,60 @@ "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);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./address.model"), exports);
__exportStar(require("./amazonTranslateLanguages.enum"), exports);
__exportStar(require("./announcement.model"), exports);
__exportStar(require("./APIRequestLog.model"), exports);
__exportStar(require("./appointment.model"), exports);
__exportStar(require("./attachment.model"), exports);
__exportStar(require("./booleanChoices.enum"), exports);
__exportStar(require("./cacheable.model"), exports);
__exportStar(require("./cacheableResource.model"), exports);
__exportStar(require("./calendar.model"), exports);
__exportStar(require("./check.model"), exports);
__exportStar(require("./clientInfo.model"), exports);
__exportStar(require("./contactRequest.model"), exports);
__exportStar(require("./contacts.model"), exports);
__exportStar(require("./countries.enum"), exports);
__exportStar(require("./customBlockMeta.model"), exports);
__exportStar(require("./customFieldMeta.model"), exports);
__exportStar(require("./customFieldTypes.enum"), exports);
__exportStar(require("./customSectionMeta.model"), exports);
__exportStar(require("./delta.model"), exports);
__exportStar(require("./emailChangeRequest.model"), exports);
__exportStar(require("./emailData.model"), exports);
__exportStar(require("./epoch"), exports);
__exportStar(require("./errorReport.model"), exports);
__exportStar(require("./errorWhitelisted.model"), exports);
__exportStar(require("./invitation.model"), exports);
__exportStar(require("./ionicons.enum"), exports);
__exportStar(require("./label.model"), exports);
__exportStar(require("./labelVariable.model"), exports);
__exportStar(require("./languages.model"), exports);
__exportStar(require("./languages.enum"), exports);
__exportStar(require("./limitCounter.model"), exports);
__exportStar(require("./markdown"), exports);
__exportStar(require("./membership.model"), exports);
__exportStar(require("./notification.model"), exports);
__exportStar(require("./pdfTemplate.model"), exports);
__exportStar(require("./projectPlan.model"), exports);
__exportStar(require("./projectSubscription.model"), exports);
__exportStar(require("./pushNotificationsDevice.model"), exports);
__exportStar(require("./pushNotificationsPlatforms.enum"), exports);
__exportStar(require("./RCAttachedResource.model"), exports);
__exportStar(require("./RCConfiguredFolder.model"), exports);
__exportStar(require("./RCFolder.model"), exports);
__exportStar(require("./RCResource.model"), exports);
__exportStar(require("./resource.model"), exports);
__exportStar(require("./sentiment.enum"), exports);
__exportStar(require("./signature.model"), exports);
__exportStar(require("./signedURL.model"), exports);
__exportStar(require("./stringVariable.model"), exports);
__exportStar(require("./suggestion.model"), exports);
__exportStar(require("./team.model"), exports);
__exportStar(require("./teamModules.model"), exports);
__exportStar(require("./timeInterval.model"), exports);
__exportStar(require("./user.model"), exports);
__exportStar(require("./utils"), exports);
__exportStar(require("./src/address.model"), exports);
__exportStar(require("./src/amazonTranslateLanguages.enum"), exports);
__exportStar(require("./src/announcement.model"), exports);
__exportStar(require("./src/APIRequestLog.model"), exports);
__exportStar(require("./src/appointment.model"), exports);
__exportStar(require("./src/attachment.model"), exports);
__exportStar(require("./src/booleanChoices.enum"), exports);
__exportStar(require("./src/cacheable.model"), exports);
__exportStar(require("./src/cacheableResource.model"), exports);
__exportStar(require("./src/calendar.model"), exports);
__exportStar(require("./src/check.model"), exports);
__exportStar(require("./src/clientInfo.model"), exports);
__exportStar(require("./src/cognitoUser.model"), exports);
__exportStar(require("./src/contactRequest.model"), exports);
__exportStar(require("./src/contacts.model"), exports);
__exportStar(require("./src/countries.enum"), exports);
__exportStar(require("./src/customBlockMeta.model"), exports);
__exportStar(require("./src/customFieldMeta.model"), exports);
__exportStar(require("./src/customFieldTypes.enum"), exports);
__exportStar(require("./src/customSectionMeta.model"), exports);
__exportStar(require("./src/delta.model"), exports);
__exportStar(require("./src/emailChangeRequest.model"), exports);
__exportStar(require("./src/emailData.model"), exports);
__exportStar(require("./src/epoch"), exports);
__exportStar(require("./src/errorReport.model"), exports);
__exportStar(require("./src/errorWhitelisted.model"), exports);
__exportStar(require("./src/invitation.model"), exports);
__exportStar(require("./src/ionicons.enum"), exports);
__exportStar(require("./src/label.model"), exports);
__exportStar(require("./src/labelVariable.model"), exports);
__exportStar(require("./src/languages.model"), exports);
__exportStar(require("./src/languages.enum"), exports);
__exportStar(require("./src/limitCounter.model"), exports);
__exportStar(require("./src/markdown"), exports);
__exportStar(require("./src/membership.model"), exports);
__exportStar(require("./src/notification.model"), exports);
__exportStar(require("./src/pdfTemplate.model"), exports);
__exportStar(require("./src/projectPlan.model"), exports);
__exportStar(require("./src/projectSubscription.model"), exports);
__exportStar(require("./src/pushNotificationsDevice.model"), exports);
__exportStar(require("./src/pushNotificationsPlatforms.enum"), exports);
__exportStar(require("./src/RCAttachedResource.model"), exports);
__exportStar(require("./src/RCConfiguredFolder.model"), exports);
__exportStar(require("./src/RCFolder.model"), exports);
__exportStar(require("./src/RCResource.model"), exports);
__exportStar(require("./src/resource.model"), exports);
__exportStar(require("./src/sentiment.enum"), exports);
__exportStar(require("./src/signature.model"), exports);
__exportStar(require("./src/signedURL.model"), exports);
__exportStar(require("./src/stringVariable.model"), exports);
__exportStar(require("./src/suggestion.model"), exports);
__exportStar(require("./src/team.model"), exports);
__exportStar(require("./src/teamModules.model"), exports);
__exportStar(require("./src/timeInterval.model"), exports);
__exportStar(require("./src/user.model"), exports);
__exportStar(require("./src/utils"), exports);

@@ -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 @@ /**

@@ -9,2 +9,3 @@ import { markdown } from './markdown';

* @returns cleaned date
* @deprecated
*/

@@ -19,2 +20,3 @@ export declare function ISODateToItalianFormat(ds: string): string;

* @returns the date converted
* @deprecated
*/

@@ -56,3 +58,3 @@ export declare function dateToLocale(date: Date, lang: string, short?: boolean, noYear?: boolean): string;

*/
export declare function logger(context: string, err?: Error, content?: any, important?: boolean): void;
export declare function logger(context: string, err?: Error | null | undefined, content?: any, important?: boolean): void;
/**

@@ -59,0 +61,0 @@ * Get an array to iterate containing the keys of a string enum.

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.mdToHtml = exports.loopNumericEnumValues = exports.loopNumericEnumKeys = exports.getStringEnumKeyByValue = exports.loopStringEnumValues = exports.loopStringEnumKeys = exports.logger = exports.isEmpty = exports.joinArraysOnKeys = exports.cleanStr = exports.dateToLocale = exports.ISODateToItalianFormat = void 0;
const isEmail_1 = require("validator/lib/isEmail");
const isMobilePhone_1 = require("validator/lib/isMobilePhone");
const isURL_1 = require("validator/lib/isURL");
const isEmail_1 = __importDefault(require("validator/lib/isEmail"));
const isMobilePhone_1 = __importDefault(require("validator/lib/isMobilePhone"));
const isURL_1 = __importDefault(require("validator/lib/isURL"));
const Marked = require("marked");

@@ -15,2 +18,3 @@ /**

* @returns cleaned date
* @deprecated
*/

@@ -28,2 +32,3 @@ function ISODateToItalianFormat(ds) {

* @returns the date converted
* @deprecated
*/

@@ -116,7 +121,7 @@ function dateToLocale(date, lang, short, noYear) {

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);
default:

@@ -123,0 +128,0 @@ return true;

{
"name": "idea-toolbox",
"version": "6.3.2",
"version": "6.4.0",
"description": "IDEA's utility functions",
"engines": {
"node": ">=6.0.0"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"lint": "eslint --ext .ts",
"compile": "tsc --build",
"docs": "typedoc",
"build": "./build.sh",

@@ -30,17 +30,18 @@ "publishPackage": "./build.sh && npm publish"

"dependencies": {
"marked": "^2.0.1",
"validator": "^13.5.2"
"marked": "^2.1.3",
"validator": "^13.6.0"
},
"devDependencies": {
"@types/marked": "^2.0.0",
"@types/validator": "^13.1.2",
"@typescript-eslint/eslint-plugin": "4.3.0",
"@typescript-eslint/parser": "4.3.0",
"eslint": "^7.6.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.9",
"eslint-plugin-prefer-arrow": "^1.2.2",
"typedoc": "^0.17.8",
"typescript": "^3.9.7"
"@tsconfig/node14": "^1.0.0",
"@types/aws-lambda": "^8.10.72",
"@types/marked": "^3.0.1",
"@types/node": "^14.14.26",
"@types/validator": "^13.6.3",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"aws-sdk": "^2.989.0",
"eslint": "^7.32.0",
"typedoc": "^0.22.4",
"typescript": "^4.4.3"
}
}
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