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

@therms/web-js

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@therms/web-js - npm Package Compare versions

Comparing version 2.8.3 to 2.9.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [2.9.0](http://bitbucket.org/thermsio/web-js/compare/v2.8.3...v2.9.0) (2023-01-18)
### Features
* **CORE-2778:** add getInitials; ([4d89402](http://bitbucket.org/thermsio/web-js/commits/4d8940209b2ccd12d7550aa16faaf338b770f78c))
## [2.8.3](http://bitbucket.org/thermsio/web-js/compare/v2.8.2...v2.8.3) (2022-12-26)

@@ -2,0 +9,0 @@

3

dist/cjs.d.ts

@@ -122,2 +122,3 @@ import { CookieAttributes } from "js-cookie";

declare function removeFileNameExtension(filename: string): string;
declare const getInitials: (name?: string) => string;
declare function isEmail(email: string): boolean;

@@ -159,2 +160,2 @@ declare function isHexColor(str: string): boolean;

declare const globalVent: any;
export { Timezone, timezones, checkIsBrowserVisible, onBrowserVisibilityChange, setBrowserTitle, flashBrowserTitle, b2bComms, downloadBase64AsPdf, deleteCookie, getCookie, setCookie, formatAddress, getColorContrast, randomHEXColor, dateWithinRange, getNumberWithOrdinal, humanizeMinutes, humanizeMillis, roundToNearestMin, setLocaleFirstDayOfWeek, deepClone, deepFreeze, deepMerge, Device, requestGeolocation, requestNotifications, requestPush, requestCamera, requestMicrophone, checkDevicePermissions, getDevice, isMobileDevice, addStringBeforeFileNameExtension, getFileNameExtension, removeFileNameExtension, isEmail, isHexColor, isIsoDate, isUrl, isPlural, pluralize, PromiseTimeoutError, PromiseController, retryPromise, sleep, Vent, globalVent };
export { Timezone, timezones, checkIsBrowserVisible, onBrowserVisibilityChange, setBrowserTitle, flashBrowserTitle, b2bComms, downloadBase64AsPdf, deleteCookie, getCookie, setCookie, formatAddress, getColorContrast, randomHEXColor, dateWithinRange, getNumberWithOrdinal, humanizeMinutes, humanizeMillis, roundToNearestMin, setLocaleFirstDayOfWeek, deepClone, deepFreeze, deepMerge, Device, requestGeolocation, requestNotifications, requestPush, requestCamera, requestMicrophone, checkDevicePermissions, getDevice, isMobileDevice, addStringBeforeFileNameExtension, getFileNameExtension, removeFileNameExtension, getInitials, isEmail, isHexColor, isIsoDate, isUrl, isPlural, pluralize, PromiseTimeoutError, PromiseController, retryPromise, sleep, Vent, globalVent };

@@ -767,2 +767,15 @@ 'use strict';

const getInitials = (name) => {
if (!name)
return '';
return name
.split(' ')
.map((word, index) => {
if (index > 1)
return undefined;
return word[0].toUpperCase();
})
.join('');
};
function isEmail(email) {

@@ -896,2 +909,3 @@ const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

exports.getFileNameExtension = getFileNameExtension;
exports.getInitials = getInitials;
exports.getNumberWithOrdinal = getNumberWithOrdinal;

@@ -898,0 +912,0 @@ exports.globalVent = globalVent;

@@ -122,2 +122,3 @@ import { CookieAttributes } from "js-cookie";

declare function removeFileNameExtension(filename: string): string;
declare const getInitials: (name?: string) => string;
declare function isEmail(email: string): boolean;

@@ -159,2 +160,2 @@ declare function isHexColor(str: string): boolean;

declare const globalVent: any;
export { Timezone, timezones, checkIsBrowserVisible, onBrowserVisibilityChange, setBrowserTitle, flashBrowserTitle, b2bComms, downloadBase64AsPdf, deleteCookie, getCookie, setCookie, formatAddress, getColorContrast, randomHEXColor, dateWithinRange, getNumberWithOrdinal, humanizeMinutes, humanizeMillis, roundToNearestMin, setLocaleFirstDayOfWeek, deepClone, deepFreeze, deepMerge, Device, requestGeolocation, requestNotifications, requestPush, requestCamera, requestMicrophone, checkDevicePermissions, getDevice, isMobileDevice, addStringBeforeFileNameExtension, getFileNameExtension, removeFileNameExtension, isEmail, isHexColor, isIsoDate, isUrl, isPlural, pluralize, PromiseTimeoutError, PromiseController, retryPromise, sleep, Vent, globalVent };
export { Timezone, timezones, checkIsBrowserVisible, onBrowserVisibilityChange, setBrowserTitle, flashBrowserTitle, b2bComms, downloadBase64AsPdf, deleteCookie, getCookie, setCookie, formatAddress, getColorContrast, randomHEXColor, dateWithinRange, getNumberWithOrdinal, humanizeMinutes, humanizeMillis, roundToNearestMin, setLocaleFirstDayOfWeek, deepClone, deepFreeze, deepMerge, Device, requestGeolocation, requestNotifications, requestPush, requestCamera, requestMicrophone, checkDevicePermissions, getDevice, isMobileDevice, addStringBeforeFileNameExtension, getFileNameExtension, removeFileNameExtension, getInitials, isEmail, isHexColor, isIsoDate, isUrl, isPlural, pluralize, PromiseTimeoutError, PromiseController, retryPromise, sleep, Vent, globalVent };

@@ -757,2 +757,15 @@ import Cookie from 'js-cookie';

const getInitials = (name) => {
if (!name)
return '';
return name
.split(' ')
.map((word, index) => {
if (index > 1)
return undefined;
return word[0].toUpperCase();
})
.join('');
};
function isEmail(email) {

@@ -867,3 +880,3 @@ const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

export { PromiseController, PromiseTimeoutError, Timezone, Vent, addStringBeforeFileNameExtension, b2bComms, checkDevicePermissions, checkIsBrowserVisible, dateWithinRange, deepClone, deepFreeze, deepMerge, deleteCookie, downloadBase64AsPdf, flashBrowserTitle, formatAddress, getColorContrast, getCookie, getDevice, getFileNameExtension, getNumberWithOrdinal, globalVent, humanizeMillis, humanizeMinutes, isEmail, isHexColor, isIsoDate, isMobileDevice, isPlural, isUrl, onBrowserVisibilityChange, pluralize, randomHEXColor, removeFileNameExtension, requestCamera, requestGeolocation, requestMicrophone, requestNotifications, requestPush, retryPromise, roundToNearestMin, setBrowserTitle, setCookie, setLocaleFirstDayOfWeek, sleep, timezones };
export { PromiseController, PromiseTimeoutError, Timezone, Vent, addStringBeforeFileNameExtension, b2bComms, checkDevicePermissions, checkIsBrowserVisible, dateWithinRange, deepClone, deepFreeze, deepMerge, deleteCookie, downloadBase64AsPdf, flashBrowserTitle, formatAddress, getColorContrast, getCookie, getDevice, getFileNameExtension, getInitials, getNumberWithOrdinal, globalVent, humanizeMillis, humanizeMinutes, isEmail, isHexColor, isIsoDate, isMobileDevice, isPlural, isUrl, onBrowserVisibilityChange, pluralize, randomHEXColor, removeFileNameExtension, requestCamera, requestGeolocation, requestMicrophone, requestNotifications, requestPush, retryPromise, roundToNearestMin, setBrowserTitle, setCookie, setLocaleFirstDayOfWeek, sleep, timezones };
//# sourceMappingURL=index.js.map
{
"license": "UNLICENSED",
"name": "@therms/web-js",
"version": "2.8.3",
"version": "2.9.0",
"description": "Common web/JS tools & utilities",

@@ -6,0 +6,0 @@ "main": "./dist/cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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