@danielhaim/titlecaser 1.2.47 → 1.2.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -236,43 +236,45 @@ $ npm run test
236
236
  $ npm run test
237
237
  ```
238
238
 
239
- ```bash
239
+ ```bash
240
240
  Test Basic Options
241
- ✓ Default title case conversion (2 ms)
242
- ✓ Customized title case conversion (1 ms)
243
- ✓ AP-style title case conversion with replacements (1 ms)
241
+ ✓ Default title case conversion
242
+ ✓ Customized title case conversion
243
+ ✓ AP-style title case conversion with replacements
244
244
  ✓ AP-style title case conversion with replacements
245
- ✓ Capitalize suffix word in sentence (1 ms)
245
+ ✓ Capitalize suffix word in sentence
246
246
 
247
247
  Test Methods
248
248
  ✓ removeReplaceTerm
249
249
  ✓ setReplaceTerms
250
250
 
251
251
  Test Variation Stability
252
- ✓ Hyphenated, colon, and short word replacements (1 ms)
252
+ ✓ Hyphenated, colon, and short word replacements
253
253
  ✓ Capitalization and word replacements
254
254
  ✓ AP-style title case with possessive and colon
255
255
  ✓ AP-style title case with lowercase back/front-end terms
256
256
  ✓ Chicago style title case with comparison and colon
257
- ✓ APA style title case with colon (3 ms)
258
- ✓ Wikipedia style title case with acronym and hyphen (1 ms)
257
+ ✓ APA style title case with colon
258
+ ✓ Wikipedia style title case with acronym and hyphen
259
259
  ✓ APA style title case with colon and apostrophe
260
260
  ✓ Chicago style title case with custom term replacements
261
- ✓ AP-style capitalization test with special terms and colon (1 ms)
261
+ ✓ AP-style capitalization test with special terms and colon
262
262
  ✓ NYT-style capitalization test with special terms and colon
263
- ✓ APA style capitalization test with short conjunction terms and colon (1 ms)
263
+ ✓ APA style capitalization test with short conjunction terms and colon
264
264
  ✓ Correct phrase casing list testing
265
- ✓ Wikipedia style capitalization test with special term and colon (1 ms)
265
+ ✓ Wikipedia style capitalization test with special term and colon
266
266
 
267
267
  Test Reserved Words
268
268
  ✓ Reserved word
269
269
  ✓ Reserved word with colon
270
270
  ✓ Reserved word, posessive
271
- ✓ Hyphenated reserved word (1 ms)
271
+ ✓ Hyphenated reserved word
272
272
  ✓ Hyphenated reserved word, possessive
273
273
  ✓ HTML line break nl2br, <br /> tag
274
+ ✓ HTML line break nl2br, <br /> tag
275
+ ✓ HTML line break nl2br, <br /> tag
274
276
  ✓ Ampersand in a sentence should return & and not &Amp;
275
- ✓ Untrimmed white spaces (1 ms)
277
+ ✓ Untrimmed white spaces
276
278
  ```
277
279
 
278
280
  ## Resources
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielhaim/titlecaser",
3
- "version": "1.2.47",
3
+ "version": "1.2.48",
4
4
  "description": "Converts a string to title case with multiple style options, ability to ignore certain words, and handle acronyms",
5
5
  "keywords": [
6
6
  "title case",
@@ -51,11 +51,13 @@
51
51
  "tree": "tree -I 'node_modules'"
52
52
  },
53
53
  "devDependencies": {
54
- "@babel/cli": "^7.21.0",
55
- "@babel/core": "^7.21.4",
56
- "@babel/plugin-transform-modules-commonjs": "^7.21.2",
57
- "@babel/preset-env": "^7.21.4",
58
- "@babel/runtime-corejs3": "^7.21.0",
54
+ "@babel/cli": "^7.21.5",
55
+ "@babel/core": "^7.22.1",
56
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
57
+ "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
58
+ "@babel/plugin-transform-modules-commonjs": "^7.21.5",
59
+ "@babel/preset-env": "^7.22.4",
60
+ "@babel/runtime-corejs3": "^7.22.3",
59
61
  "@jest/expect": "^29.5.0",
60
62
  "babel-jest": "^29.5.0",
61
63
  "babel-loader": "^9.1.2",
@@ -63,13 +65,13 @@
63
65
  "exports-loader": "^4.0.0",
64
66
  "jest": "^29.5.0",
65
67
  "jest-environment-jsdom": "^29.5.0",
66
- "jest-environment-puppeteer": "^8.0.6",
67
- "jest-puppeteer": "^8.0.6",
68
- "puppeteer": "^19.8.5",
69
- "puppeteer-core": "^19.8.5",
70
- "terser-webpack-plugin": "^5.3.7",
71
- "webpack": "^5.78.0",
72
- "webpack-cli": "^5.0.1",
68
+ "jest-environment-puppeteer": "^9.0.0",
69
+ "jest-puppeteer": "^9.0.0",
70
+ "puppeteer": "^20.5.0",
71
+ "puppeteer-core": "^20.5.0",
72
+ "terser-webpack-plugin": "^5.3.9",
73
+ "webpack": "^5.86.0",
74
+ "webpack-cli": "^5.1.4",
73
75
  "webpack-node-externals": "^3.0.0"
74
76
  },
75
77
  "publishConfig": {
@@ -78,7 +78,7 @@ export const correctTitleCasingList = [
78
78
  'ProTools', 'QuickTime', 'AdWords', 'AdSense', 'TikTok', 'Slack', 'Trello',
79
79
  'Zoom', 'Twitch', 'Snapchat', 'WhatsApp', 'Telegram', 'Discord', 'Reddit',
80
80
  'Quora', 'StackOverflow', 'StackExchange', 'Coca-Cola',
81
- 'AWS', 'GCP', 'VMware', 'CVS', 'ESL', 'EE',
81
+ 'AWS', 'GCP', 'VMware', 'CVS', 'ESL', 'EE', 'CW', 'EE',
82
82
 
83
83
  // Sports
84
84
  'NBA', 'NCAA', 'NFL', 'WWE', 'WWF', 'FIFA',