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.2.0 to 2.2.1

4

dist/format-title.cjs.js

@@ -137,2 +137,6 @@ 'use strict';

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

@@ -139,0 +143,0 @@ if (conjunctions.includes(lowercaseStr)) return lowercaseStr;

@@ -133,2 +133,6 @@ import decamelize from 'decamelize';

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

@@ -135,0 +139,0 @@ if (conjunctions.includes(lowercaseStr)) return lowercaseStr;

2

package.json
{
"name": "@directus/format-title",
"version": "2.2.0",
"version": "2.2.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