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

@directus/format-title

Package Overview
Dependencies
Maintainers
2
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 9.6.0 to 9.7.0

19

dist/format-title.bundler.js

@@ -175,4 +175,9 @@ var prepositions = [

'3D',
'4K',
'5K',
'8K',
'CTA',
'DateTime',
'GitHub',
'HD',
'ID',

@@ -187,6 +192,7 @@ 'IDs',

'iPod',
'LDAP',
'LinkedIn',
'macOS',
'M2M',
'M2O',
'macOS',
'McDonalds',

@@ -198,12 +204,7 @@ 'MySQL',

'PostgreSQL',
'YouTube',
'UUID',
'SEO',
'CTA',
'4K',
'HD',
'UHD',
'5K',
'8K',
'LDAP',
'UUID',
'XSS',
'YouTube',
];

@@ -210,0 +211,0 @@

@@ -177,4 +177,9 @@ 'use strict';

'3D',
'4K',
'5K',
'8K',
'CTA',
'DateTime',
'GitHub',
'HD',
'ID',

@@ -189,6 +194,7 @@ 'IDs',

'iPod',
'LDAP',
'LinkedIn',
'macOS',
'M2M',
'M2O',
'macOS',
'McDonalds',

@@ -200,12 +206,7 @@ 'MySQL',

'PostgreSQL',
'YouTube',
'UUID',
'SEO',
'CTA',
'4K',
'HD',
'UHD',
'5K',
'8K',
'LDAP',
'UUID',
'XSS',
'YouTube',
];

@@ -212,0 +213,0 @@

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

var e=["about","above","across","after","against","along","among","around","at","because of","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","despite","down","during","except","excepting","for","from","in","in front of","inside","in spite of","instead of","into","like","near","of","off","on","onto","out","outside","over","past","regarding","since","through","throughout","to","toward","under","underneath","until","up","upon","up to","with","within","without","with regard to","with respect to"],t=["and","that","but","or","as","if","when","than","because","while","where","after","so","though","since","until","whether","before","although","nor","like","once","unless","now","except"],o=["2D","3D","4WD","API","BASIC","BIOS","CCTV","CC","CCV","CD","CD-ROM","COBOL","CIA","CMS","CSS","CSV","CV","DIY","DVD","DB","DNA","E3","EIN","ESPN","FAQ","FAQs","FTP","FPS","FORTRAN","FBI","HTML","HTTP","ID","IP","ISO","JS","JSON","LASER","M2M","M2MM","M2O","MMORPG","NAFTA","NASA","NDA","O2M","PDF","PHP","POP","RAM","RNGR","ROM","RPG","RTFM","RTS","SCUBA","SITCOM","SKU","SMTP","SQL","SSN","SWAT","TBS","TTL","TV","TNA","UI","URL","USB","UWP","VIP","W3C","WYSIWYG","WWW","WWE","WWF"],n=["2FA","3D","DateTime","GitHub","ID","IDs","iMac","IMAX","iOS","IP","iPad","iPhone","iPod","LinkedIn","macOS","M2M","M2O","McDonalds","MySQL","O2M","PDFs","pH","PostgreSQL","YouTube","UUID","SEO","CTA","4K","HD","UHD","5K","8K","LDAP"];function r(r,i,a){const s=r.toLowerCase(),u=r.toUpperCase();for(const e of n)if(e.toLowerCase()===s)return e;return o.includes(u)?u:0===i||i===a.length-1?r:e.includes(s)||t.includes(s)?s:r}function i(e,t){return`${e} ${t}`}function a(e){return e.charAt(0).toUpperCase()+e.substring(1)}function s(e,t){return t||(t=new RegExp("/s|-|_| ","g")),(o=e,o.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").toLowerCase()).split(t).map(a).map(r).reduce(i);var o}export{s as default};
var e=["about","above","across","after","against","along","among","around","at","because of","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","despite","down","during","except","excepting","for","from","in","in front of","inside","in spite of","instead of","into","like","near","of","off","on","onto","out","outside","over","past","regarding","since","through","throughout","to","toward","under","underneath","until","up","upon","up to","with","within","without","with regard to","with respect to"],t=["and","that","but","or","as","if","when","than","because","while","where","after","so","though","since","until","whether","before","although","nor","like","once","unless","now","except"],o=["2D","3D","4WD","API","BASIC","BIOS","CCTV","CC","CCV","CD","CD-ROM","COBOL","CIA","CMS","CSS","CSV","CV","DIY","DVD","DB","DNA","E3","EIN","ESPN","FAQ","FAQs","FTP","FPS","FORTRAN","FBI","HTML","HTTP","ID","IP","ISO","JS","JSON","LASER","M2M","M2MM","M2O","MMORPG","NAFTA","NASA","NDA","O2M","PDF","PHP","POP","RAM","RNGR","ROM","RPG","RTFM","RTS","SCUBA","SITCOM","SKU","SMTP","SQL","SSN","SWAT","TBS","TTL","TV","TNA","UI","URL","USB","UWP","VIP","W3C","WYSIWYG","WWW","WWE","WWF"],n=["2FA","3D","4K","5K","8K","CTA","DateTime","GitHub","HD","ID","IDs","iMac","IMAX","iOS","IP","iPad","iPhone","iPod","LDAP","LinkedIn","M2M","M2O","macOS","McDonalds","MySQL","O2M","PDFs","pH","PostgreSQL","SEO","UHD","UUID","XSS","YouTube"];function r(r,i,a){const s=r.toLowerCase(),u=r.toUpperCase();for(const e of n)if(e.toLowerCase()===s)return e;return o.includes(u)?u:0===i||i===a.length-1?r:e.includes(s)||t.includes(s)?s:r}function i(e,t){return`${e} ${t}`}function a(e){return e.charAt(0).toUpperCase()+e.substring(1)}function s(e,t){return t||(t=new RegExp("/s|-|_| ","g")),(o=e,o.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").toLowerCase()).split(t).map(a).map(r).reduce(i);var o}export{s as default};
//# sourceMappingURL=format-title.esm.min.js.map

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

var formatTitle=function(){"use strict";var e=["about","above","across","after","against","along","among","around","at","because of","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","despite","down","during","except","excepting","for","from","in","in front of","inside","in spite of","instead of","into","like","near","of","off","on","onto","out","outside","over","past","regarding","since","through","throughout","to","toward","under","underneath","until","up","upon","up to","with","within","without","with regard to","with respect to"],t=["and","that","but","or","as","if","when","than","because","while","where","after","so","though","since","until","whether","before","although","nor","like","once","unless","now","except"],n=["2D","3D","4WD","API","BASIC","BIOS","CCTV","CC","CCV","CD","CD-ROM","COBOL","CIA","CMS","CSS","CSV","CV","DIY","DVD","DB","DNA","E3","EIN","ESPN","FAQ","FAQs","FTP","FPS","FORTRAN","FBI","HTML","HTTP","ID","IP","ISO","JS","JSON","LASER","M2M","M2MM","M2O","MMORPG","NAFTA","NASA","NDA","O2M","PDF","PHP","POP","RAM","RNGR","ROM","RPG","RTFM","RTS","SCUBA","SITCOM","SKU","SMTP","SQL","SSN","SWAT","TBS","TTL","TV","TNA","UI","URL","USB","UWP","VIP","W3C","WYSIWYG","WWW","WWE","WWF"],o=["2FA","3D","DateTime","GitHub","ID","IDs","iMac","IMAX","iOS","IP","iPad","iPhone","iPod","LinkedIn","macOS","M2M","M2O","McDonalds","MySQL","O2M","PDFs","pH","PostgreSQL","YouTube","UUID","SEO","CTA","4K","HD","UHD","5K","8K","LDAP"];function r(r,i,a){for(var u=r.toLowerCase(),s=r.toUpperCase(),c=0,S=o;c<S.length;c++){var d=S[c];if(d.toLowerCase()===u)return d}return n.includes(s)?s:0===i||i===a.length-1?r:e.includes(u)||t.includes(u)?u:r}function i(e,t){return"".concat(e," ").concat(t)}function a(e){return e.charAt(0).toUpperCase()+e.substring(1)}return function(e,t){return t||(t=new RegExp("/s|-|_| ","g")),(n=e,n.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").toLowerCase()).split(t).map(a).map(r).reduce(i);var n}}();
var formatTitle=function(){"use strict";var e=["about","above","across","after","against","along","among","around","at","because of","before","behind","below","beneath","beside","besides","between","beyond","but","by","concerning","despite","down","during","except","excepting","for","from","in","in front of","inside","in spite of","instead of","into","like","near","of","off","on","onto","out","outside","over","past","regarding","since","through","throughout","to","toward","under","underneath","until","up","upon","up to","with","within","without","with regard to","with respect to"],t=["and","that","but","or","as","if","when","than","because","while","where","after","so","though","since","until","whether","before","although","nor","like","once","unless","now","except"],n=["2D","3D","4WD","API","BASIC","BIOS","CCTV","CC","CCV","CD","CD-ROM","COBOL","CIA","CMS","CSS","CSV","CV","DIY","DVD","DB","DNA","E3","EIN","ESPN","FAQ","FAQs","FTP","FPS","FORTRAN","FBI","HTML","HTTP","ID","IP","ISO","JS","JSON","LASER","M2M","M2MM","M2O","MMORPG","NAFTA","NASA","NDA","O2M","PDF","PHP","POP","RAM","RNGR","ROM","RPG","RTFM","RTS","SCUBA","SITCOM","SKU","SMTP","SQL","SSN","SWAT","TBS","TTL","TV","TNA","UI","URL","USB","UWP","VIP","W3C","WYSIWYG","WWW","WWE","WWF"],o=["2FA","3D","4K","5K","8K","CTA","DateTime","GitHub","HD","ID","IDs","iMac","IMAX","iOS","IP","iPad","iPhone","iPod","LDAP","LinkedIn","M2M","M2O","macOS","McDonalds","MySQL","O2M","PDFs","pH","PostgreSQL","SEO","UHD","UUID","XSS","YouTube"];function r(r,i,a){for(var u=r.toLowerCase(),s=r.toUpperCase(),c=0,S=o;c<S.length;c++){var d=S[c];if(d.toLowerCase()===u)return d}return n.includes(s)?s:0===i||i===a.length-1?r:e.includes(u)||t.includes(u)?u:r}function i(e,t){return"".concat(e," ").concat(t)}function a(e){return e.charAt(0).toUpperCase()+e.substring(1)}return function(e,t){return t||(t=new RegExp("/s|-|_| ","g")),(n=e,n.replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1_$2").toLowerCase()).split(t).map(a).map(r).reduce(i);var n}}();
//# sourceMappingURL=format-title.global.min.js.map
{
"name": "@directus/format-title",
"version": "9.6.0",
"version": "9.7.0",
"description": "Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)",

@@ -60,3 +60,3 @@ "keywords": [

},
"gitHead": "eba2576227d493f87160973238bddadbf23bbe01"
"gitHead": "c1da41d6719d4efdc5d0196019fb7b2c6672c575"
}

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