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

@gmana/utils

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmana/utils - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

119

dist/index.d.ts

@@ -769,2 +769,119 @@ import { ClassValue } from 'clsx';

type VCardOptions = {
version?: number;
};
type IAddress = {
type: 'HOME' | 'WORK';
label: string;
street: string;
city: string;
stateProvince: string;
postalCode: string;
countryRegion: string;
countryCode?: string;
};
/**
* VCard class.
*/
declare class VCard {
private version;
private formattedVCardString;
constructor(opts?: VCardOptions);
addName(lastName: string, firstName: string, middleName?: string, namePrefix?: string, nameSuffix?: string): this;
addPhoneticName(lastName?: string, firstName?: string): this;
addOrganization(name: string, department?: string, title?: string): this;
addPhoneticOrganization(name: string): this;
addNickName(nickname: string): this;
addBirthday(birthday: Date): this;
addAddressHome({ street, city, stateProvince, postalCode, countryRegion, countryCode }: IAddress): this;
addAddressWork({ street, city, stateProvince, postalCode, countryRegion, countryCode }: IAddress): this;
addAddressSchool({ street, city, stateProvince, postalCode, countryRegion, countryCode }: IAddress): this;
addAddressOther({ street, city, stateProvince, postalCode, countryRegion, countryCode }: IAddress): this;
addPhoneCell(phoneNumber: string): this;
addPhoneHome(phoneNumber: string): this;
addPhoneWork(phoneNumber: string): this;
addPhonePager(phoneNumber: string): this;
addPhoneOther(phoneNumber: string): this;
addRelativeFather(phoneNumber: string): this;
addRelativeMother(phoneNumber: string): this;
addRelativeBrother(phoneNumber: string): this;
addRelativeSister(phoneNumber: string): this;
addUrl(url: string): this;
addUrlWork(url: string): this;
addUrlHome(url: string): this;
addUrlBlog(url: string): this;
addUrlSchool(url: string): this;
addInstantMessageFacebook(username: string): this;
addInstantMessageSkype(username: string): this;
addInstantMessageGoogleTalk(username: string): this;
addAnniversary(anniversary: Date): this;
addOther(other: Date): this;
addFacebook(username: string): this;
addTwitter(username: string): this;
addLinkedIn(username: string): this;
addFlickr(username: string): this;
addMySpace(username: string): this;
addWeibo(username: string): this;
addEmailHome(email: string): this;
addEmailWork(email: string): this;
addEmailSchool(email: string): this;
addEmailOther(email: string): this;
/**
* `unstable`
* Adds a gender property to the vCard.
* @param gender The gender to add, either "M" for male or "F" for female.
*/
addGender(gender: 'F' | 'M'): this;
/**
* `unstable`
* Adds a UID property to the vCard.
*
* @param uid The UID to add to the vCard.
*/
addUID(uid: string): this;
/**
* `unstable`
* Adds a logo with the given URL and media type to the vCard.
* Can encode the logo in base64 by passing true to the base64 parameter.
*/
addLogo(url: string, mediaType: string, base64?: boolean): this;
/**
* `unstable`
* Adds a photo with the given URL and media type to the vCard.
* Can encode the photo in base64 by passing true to the base64 parameter.
*/
addPhoto(url: string, mediaType: string, base64?: boolean): this;
/**
* `unstable`
* Adds a role property to the vCard.
*
* @param role The role to add to the vCard.
*/
addRole(role: string): this;
addNote(note: string): this;
build(): string;
/**
* Encodes the given value for use in a vCard string.
*/
private e;
/**
* Returns a newline character sequence based on the OS.
*/
private nl;
/**
* Formats the given Date object into a string for use in the vCard.
*/
private formatDate;
/**
* Formats the photo data into a string for use in the vCard.
* Handles different photo types, URLs, media types, and base64 encoding.
*/
private getFormattedPhoto;
/**
* Returns the encoding prefix to use based on the vCard version.
*/
private encodingPrefix;
}
declare const vcard: VCard;
declare function wait(ms?: number): Promise<unknown>;

@@ -779,2 +896,2 @@

export { A, B, BACKSPACE, C, D, DELETE, DOWN_ARROW, E, END, ENTER, ESCAPE, F, G, type Geo, H, HOME, I, IdGenerator, InMemoryCache, J, K, L, LEFT_ARROW, LOCALHOST_GEO_DATA, M, N, O, P, PAGE_DOWN, PAGE_UP, Q, R, RIGHT_ARROW, S, SPACE, type StringValue, T, TAB, U, UP_ARROW, V, W, X, Y, Z, baseX, bytesToSize, camelCase, capitalize, cn, colorLuminance, colors, compactObject, copyToClipboard, countries, cubeIn, cubeOut, currencies, darken, debounce, debug, decode, download, downloadCanvas, durationFormat, encode, error, fetcher, fetcherA, flatten, formatCurrency, formatDate, formatDateFromTo, formatNumber, getColor, getDateTimeLocal, getDefault, getDomainWithoutWWW, getGeoData, getImageInContent, getRandomInitials, getRandomInt, getURL, getZDefaults, hash, hexToHsl, hexToRgb, idV1, idV2, info, isBoolean, isBrowser, isEmpty, isFunction, isNavigator, isNumber, isObject, isString, isSymbol, isTokenExpired, isUndef, isUrl, kebabCase, lighten, limitInput, limitText, log, lowerCase, lowerCaseLetters, maxLength, maxNumber, ms, nFormatter, numberToWord, numberToWordKm, numbers, onlyDecimal, onlyNumeric, sentenceCase, shuffle, slugify, snakeCase, specialCharacters, specialCharactersExtra, startCase, statusTagColorList, tagColor, toASCII, toCamelCase, toCapitalize, toKebabCase, toKhmer, toPixel, toSentenceCase, toSnakeCase, toString, toTitleCase, truncate, upperCaseLetters, upperFirst, wait, warn, words };
export { A, B, BACKSPACE, C, D, DELETE, DOWN_ARROW, E, END, ENTER, ESCAPE, F, G, type Geo, H, HOME, I, IdGenerator, InMemoryCache, J, K, L, LEFT_ARROW, LOCALHOST_GEO_DATA, M, N, O, P, PAGE_DOWN, PAGE_UP, Q, R, RIGHT_ARROW, S, SPACE, type StringValue, T, TAB, U, UP_ARROW, V, W, X, Y, Z, baseX, bytesToSize, camelCase, capitalize, cn, colorLuminance, colors, compactObject, copyToClipboard, countries, cubeIn, cubeOut, currencies, darken, debounce, debug, decode, download, downloadCanvas, durationFormat, encode, error, fetcher, fetcherA, flatten, formatCurrency, formatDate, formatDateFromTo, formatNumber, getColor, getDateTimeLocal, getDefault, getDomainWithoutWWW, getGeoData, getImageInContent, getRandomInitials, getRandomInt, getURL, getZDefaults, hash, hexToHsl, hexToRgb, idV1, idV2, info, isBoolean, isBrowser, isEmpty, isFunction, isNavigator, isNumber, isObject, isString, isSymbol, isTokenExpired, isUndef, isUrl, kebabCase, lighten, limitInput, limitText, log, lowerCase, lowerCaseLetters, maxLength, maxNumber, ms, nFormatter, numberToWord, numberToWordKm, numbers, onlyDecimal, onlyNumeric, sentenceCase, shuffle, slugify, snakeCase, specialCharacters, specialCharactersExtra, startCase, statusTagColorList, tagColor, toASCII, toCamelCase, toCapitalize, toKebabCase, toKhmer, toPixel, toSentenceCase, toSnakeCase, toString, toTitleCase, truncate, upperCaseLetters, upperFirst, vcard, wait, warn, words };

2

package.json
{
"name": "@gmana/utils",
"version": "1.3.5",
"version": "1.3.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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