@directus/format-title
Advanced tools
Comparing version 3.2.0 to 9.0.0-beta.11
@@ -62,3 +62,3 @@ var prepositions = [ | ||
'with regard to', | ||
'with respect to' | ||
'with respect to', | ||
]; | ||
@@ -91,3 +91,3 @@ | ||
'now', | ||
'except' | ||
'except', | ||
]; | ||
@@ -168,3 +168,3 @@ | ||
'WWE', | ||
'WWF' | ||
'WWF', | ||
]; | ||
@@ -235,3 +235,3 @@ | ||
if (!separator) | ||
separator = new RegExp('/\s|-|_| ', 'g'); | ||
separator = new RegExp('/s|-|_| ', 'g'); | ||
return decamelize(title) | ||
@@ -238,0 +238,0 @@ .split(separator) |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global = global || self, global.formatTitle = factory()); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.formatTitle = factory()); | ||
}(this, (function () { 'use strict'; | ||
@@ -68,3 +68,3 @@ | ||
'with regard to', | ||
'with respect to' | ||
'with respect to', | ||
]; | ||
@@ -97,3 +97,3 @@ | ||
'now', | ||
'except' | ||
'except', | ||
]; | ||
@@ -174,3 +174,3 @@ | ||
'WWE', | ||
'WWF' | ||
'WWF', | ||
]; | ||
@@ -241,3 +241,3 @@ | ||
if (!separator) | ||
separator = new RegExp('/\s|-|_| ', 'g'); | ||
separator = new RegExp('/s|-|_| ', 'g'); | ||
return decamelize(title) | ||
@@ -244,0 +244,0 @@ .split(separator) |
@@ -76,4 +76,4 @@ "use strict"; | ||
'WWE', | ||
'WWF' | ||
'WWF', | ||
]; | ||
//# sourceMappingURL=acronyms.js.map |
@@ -28,4 +28,4 @@ "use strict"; | ||
'now', | ||
'except' | ||
'except', | ||
]; | ||
//# sourceMappingURL=conjunctions.js.map |
@@ -44,3 +44,3 @@ "use strict"; | ||
if (!separator) | ||
separator = new RegExp('/\s|-|_| ', 'g'); | ||
separator = new RegExp('/s|-|_| ', 'g'); | ||
return decamelize(title) | ||
@@ -47,0 +47,0 @@ .split(separator) |
@@ -64,4 +64,4 @@ "use strict"; | ||
'with regard to', | ||
'with respect to' | ||
'with respect to', | ||
]; | ||
//# sourceMappingURL=prepositions.js.map |
{ | ||
"name": "@directus/format-title", | ||
"version": "3.2.0", | ||
"version": "9.0.0-beta.11", | ||
"description": "Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)", | ||
@@ -34,11 +34,4 @@ "keywords": [ | ||
"test:watch": "jest --coverage --watch", | ||
"test:prod": "npm run lint && npm run test -- --no-cache", | ||
"release": "npm version -m \":rocket: Release %s\"" | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"lint-staged": { | ||
"{src,test}/**/*.ts": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"jest": { | ||
@@ -71,31 +64,9 @@ "transform": { | ||
}, | ||
"prettier": { | ||
"semi": true, | ||
"singleQuote": true, | ||
"printWidth": 100 | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.3.5", | ||
"@types/jest": "^25.2.1", | ||
"@types/node": "^14.0.1", | ||
"colors": "^1.4.0", | ||
"husky": "^4.2.5", | ||
"jest": "^26.0.1", | ||
"jest-config": "^26.0.1", | ||
"lint-staged": "^10.2.2", | ||
"lodash.camelcase": "^4.3.0", | ||
"prettier": "^2.0.5", | ||
"jest": "^26.5.3", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.9.1", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-sourcemaps": "^0.6.2", | ||
"rollup-plugin-typescript2": "^0.27.0", | ||
"ts-jest": "^25.5.1", | ||
"ts-node": "^8.10.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.8.3" | ||
"rollup": "^2.30.0", | ||
"typescript": "^4.0.3" | ||
}, | ||
"dependencies": {} | ||
"gitHead": "9c5b95b392f274980432bf67bf792befc3594ed6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
36837
2