New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eventric/mastertour

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eventric/mastertour - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

3

dist/compareStrings.d.ts

@@ -1,1 +0,2 @@

export default function (a?: string, b?: string): number;
export declare function compareStrings(a?: string, b?: string): number;
export default compareStrings;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function default_1(a, b) {
exports.compareStrings = void 0;
function compareStrings(a, b) {
if (a === void 0) { a = ""; }

@@ -8,4 +9,8 @@ if (b === void 0) { b = ""; }

b = b.toString().toUpperCase();
return a.localeCompare(b, undefined, { ignorePunctuation: false, numeric: true });
return a.localeCompare(b, undefined, {
ignorePunctuation: false,
numeric: true,
});
}
exports.default = default_1;
exports.compareStrings = compareStrings;
exports.default = compareStrings;

@@ -1,2 +0,2 @@

export default function formatAddress({ addressLine1, city, state, zip, zipcode, country, }: {
export declare function formatAddress({ addressLine1, city, state, zip, zipcode, country, }: {
addressLine1?: string;

@@ -9,1 +9,2 @@ city?: string;

}): string | null;
export default formatAddress;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatAddress = void 0;
function formatAddress(_a) {

@@ -28,3 +29,3 @@ var addressLine1 = _a.addressLine1, city = _a.city, state = _a.state, zip = _a.zip, zipcode = _a.zipcode, country = _a.country;

if (address.length) {
return (address.trim());
return address.trim();
}

@@ -38,2 +39,3 @@ else if (address.length) {

}
exports.formatAddress = formatAddress;
exports.default = formatAddress;
import { Attachment } from "./types/mtDataTypes";
export default function getAttachmentPath(attachment: Attachment, { sep, includeFilename, }?: {
export declare function getAttachmentPath(attachment: Attachment, { sep, includeFilename, }?: {
sep?: string;
includeFilename?: boolean;
}): string;
export default getAttachmentPath;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAttachmentPath = void 0;
function getAttachmentPath(attachment, _a) {

@@ -13,2 +14,3 @@ var _b = _a === void 0 ? {} : _a, _c = _b.sep, sep = _c === void 0 ? "/" : _c, _d = _b.includeFilename, includeFilename = _d === void 0 ? true : _d;

}
exports.getAttachmentPath = getAttachmentPath;
exports.default = getAttachmentPath;
import { Day } from "./types/mtDataTypes";
export default function getClosestDay(days: Day[]): false | Day;
export declare function getClosestDay(days: Day[]): false | Day;
export default getClosestDay;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getClosestDay = void 0;
var moment_1 = __importDefault(require("moment"));

@@ -25,2 +26,3 @@ function getClosestDay(days) {

}
exports.getClosestDay = getClosestDay;
exports.default = getClosestDay;
import { Company, Contact } from "./types/mtDataTypes";
export default function getContactInfo(item: Contact | Company, t?: (arg: string) => string): ({
export declare function getContactInfo(item: Contact | Company, t?: (arg: string) => string): ({
href: string;

@@ -18,1 +18,2 @@ type: string;

})[];
export default getContactInfo;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getContactInfo = void 0;
var getPhoneEmailUrl_1 = __importDefault(require("./getPhoneEmailUrl"));

@@ -33,2 +34,3 @@ function getContactInfo(item, t) {

}
exports.getContactInfo = getContactInfo;
exports.default = getContactInfo;

@@ -1,4 +0,5 @@

export default function getDatesBetweenDates({ startDate, endDate, }: {
export declare function getDatesBetweenDates({ startDate, endDate, }: {
startDate: Date;
endDate: Date;
}): Date[];
export default getDatesBetweenDates;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getDatesBetweenDates = void 0;
var moment_1 = __importDefault(require("moment"));

@@ -18,2 +19,3 @@ function getDatesBetweenDates(_a) {

}
exports.getDatesBetweenDates = getDatesBetweenDates;
exports.default = getDatesBetweenDates;

@@ -8,3 +8,3 @@ import { Contact, Company, EmailData, PhoneData, UrlData } from "./types/mtDataTypes";

};
export default function getPhoneEmailUrl(item: Contact | Company): PhoneEmailUrl;
export {};
export declare function getPhoneEmailUrl(item: Contact | Company): PhoneEmailUrl;
export default getPhoneEmailUrl;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getPhoneEmailUrl = void 0;
var hasOwnProperty_1 = __importDefault(require("./hasOwnProperty"));

@@ -43,2 +44,3 @@ function getPhoneEmailUrl(item) {

}
exports.getPhoneEmailUrl = getPhoneEmailUrl;
exports.default = getPhoneEmailUrl;

@@ -1,11 +0,11 @@

import compareStrings from "./compareStrings";
import formatAddress from "./formatAddress";
import getAttachmentPath from "./getAttachmentPath";
import getClosestDay from "./getClosestDay";
import getContactInfo from "./getContactInfo";
import getDatesBetweenDates from "./getDatesBetweenDates";
import getPhoneEmailUrl from "./getPhoneEmailUrl";
import hasOwnProperty from "./hasOwnProperty";
import initials from "./initials";
import isValidTimeZone from "./isValidTimeZone";
export { compareStrings, formatAddress, getAttachmentPath, getClosestDay, getContactInfo, getDatesBetweenDates, getPhoneEmailUrl, hasOwnProperty, initials, isValidTimeZone, };
export * from "./compareStrings";
export * from "./formatAddress";
export * from "./getAttachmentPath";
export * from "./getClosestDay";
export * from "./getContactInfo";
export * from "./getDatesBetweenDates";
export * from "./getPhoneEmailUrl";
export * from "./hasOwnProperty";
export * from "./initials";
export * from "./isValidTimeZone";
export * from "./types/mtDataTypes";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
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);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidTimeZone = exports.initials = exports.hasOwnProperty = exports.getPhoneEmailUrl = exports.getDatesBetweenDates = exports.getContactInfo = exports.getClosestDay = exports.getAttachmentPath = exports.formatAddress = exports.compareStrings = void 0;
var compareStrings_1 = __importDefault(require("./compareStrings"));
exports.compareStrings = compareStrings_1.default;
var formatAddress_1 = __importDefault(require("./formatAddress"));
exports.formatAddress = formatAddress_1.default;
var getAttachmentPath_1 = __importDefault(require("./getAttachmentPath"));
exports.getAttachmentPath = getAttachmentPath_1.default;
var getClosestDay_1 = __importDefault(require("./getClosestDay"));
exports.getClosestDay = getClosestDay_1.default;
var getContactInfo_1 = __importDefault(require("./getContactInfo"));
exports.getContactInfo = getContactInfo_1.default;
var getDatesBetweenDates_1 = __importDefault(require("./getDatesBetweenDates"));
exports.getDatesBetweenDates = getDatesBetweenDates_1.default;
var getPhoneEmailUrl_1 = __importDefault(require("./getPhoneEmailUrl"));
exports.getPhoneEmailUrl = getPhoneEmailUrl_1.default;
var hasOwnProperty_1 = __importDefault(require("./hasOwnProperty"));
exports.hasOwnProperty = hasOwnProperty_1.default;
var initials_1 = __importDefault(require("./initials"));
exports.initials = initials_1.default;
var isValidTimeZone_1 = __importDefault(require("./isValidTimeZone"));
exports.isValidTimeZone = isValidTimeZone_1.default;
__exportStar(require("./compareStrings"), exports);
__exportStar(require("./formatAddress"), exports);
__exportStar(require("./getAttachmentPath"), exports);
__exportStar(require("./getClosestDay"), exports);
__exportStar(require("./getContactInfo"), exports);
__exportStar(require("./getDatesBetweenDates"), exports);
__exportStar(require("./getPhoneEmailUrl"), exports);
__exportStar(require("./hasOwnProperty"), exports);
__exportStar(require("./initials"), exports);
__exportStar(require("./isValidTimeZone"), exports);
__exportStar(require("./types/mtDataTypes"), exports);

@@ -1,4 +0,5 @@

export default function initials({ incomingString, initialsCount, }: {
export declare function initials({ incomingString, initialsCount, }: {
incomingString: string;
initialsCount?: number;
}): string;
export default initials;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initials = void 0;
function initials(_a) {

@@ -16,3 +17,5 @@ var incomingString = _a.incomingString, _b = _a.initialsCount, initialsCount = _b === void 0 ? 3 : _b;

if (incomingString) {
var incomingStringNoSpecialChars = incomingString.replace(/[^\w\s(&)]+/g, "").trim();
var incomingStringNoSpecialChars = incomingString
.replace(/[^\w\s(&)]+/g, "")
.trim();
var incomingStringSplitted = incomingStringNoSpecialChars.split(" ");

@@ -48,2 +51,3 @@ var matchRegex_1 = /[A-Z0-9(&)]/;

}
exports.initials = initials;
exports.default = initials;

@@ -1,2 +0,2 @@

declare const _default: (zone: string) => boolean;
export default _default;
export declare function isValidTimeZone(zone: string): boolean;
export default isValidTimeZone;

@@ -6,4 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidTimeZone = void 0;
var moment_timezone_1 = __importDefault(require("moment-timezone"));
exports.default = (function (zone) {
function isValidTimeZone(zone) {
var invalidTimeZone = [

@@ -27,2 +28,4 @@ "cet",

return !!moment_timezone_1.default.tz.zone(zone);
});
}
exports.isValidTimeZone = isValidTimeZone;
exports.default = isValidTimeZone;
{
"name": "@eventric/mastertour",
"version": "1.0.18",
"version": "1.0.19",
"description": "A library for interacting programmatically with the Master Tour platform",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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