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

@directus/format-title

Package Overview
Dependencies
Maintainers
3
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus/format-title - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

8

dist/format-title.cjs.js

@@ -119,4 +119,3 @@ 'use strict';

'MySQL',
'PostgreSQL',
'WYSIWYG'
'PostgreSQL'
];

@@ -139,4 +138,6 @@

if (acronyms.includes(uppercaseStr)) return uppercaseStr;
// If the word is the first word in the sentence, but it's not a specially
// cased word, return the capitalized string
// cased word or an acronym, return the capitalized string
if (index === 0) return str;

@@ -146,3 +147,2 @@

if (conjunctions.includes(lowercaseStr)) return lowercaseStr;
if (acronyms.includes(uppercaseStr)) return uppercaseStr;

@@ -149,0 +149,0 @@ return str;

@@ -115,4 +115,3 @@ import decamelize from 'decamelize';

'MySQL',
'PostgreSQL',
'WYSIWYG'
'PostgreSQL'
];

@@ -135,4 +134,6 @@

if (acronyms.includes(uppercaseStr)) return uppercaseStr;
// If the word is the first word in the sentence, but it's not a specially
// cased word, return the capitalized string
// cased word or an acronym, return the capitalized string
if (index === 0) return str;

@@ -142,3 +143,2 @@

if (conjunctions.includes(lowercaseStr)) return lowercaseStr;
if (acronyms.includes(uppercaseStr)) return uppercaseStr;

@@ -145,0 +145,0 @@ return str;

{
"name": "@directus/format-title",
"version": "2.3.0",
"version": "2.3.1",
"description": "Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)",

@@ -5,0 +5,0 @@ "main": "dist/format-title.cjs.js",

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

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