mp-js-api 0.0.19 → 0.0.20

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.
@@ -71,7 +71,7 @@ function escapeApostrophes(obj) {
71
71
  return obj; // Return value if it's neither an array nor an object
72
72
  }
73
73
  function toCamelCase(str, { capitalIds = false } = {}) {
74
- str = str.replace('-', '');
74
+ // str = str.replace('-', '');
75
75
  str = str.toLowerCase();
76
76
  // str = str.replace(/^_?[A-Z]{1,3}/, match => match.toLowerCase()); // Don't convert if start with ID, HS, SMS, etc
77
77
  str = str.replace(/(?<!^_|^)[^a-zA-Z0-9_][^\W_]/g, match => match?.toUpperCase()); // capitalize after non word char
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-js-api",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Node MinistryPlatform API",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -69,7 +69,7 @@ export function escapeApostrophes<T>(obj: T) {
69
69
 
70
70
 
71
71
  export function toCamelCase(str: string, { capitalIds = false }: { capitalIds?: boolean; } = {}) {
72
- str = str.replace('-', '');
72
+ // str = str.replace('-', '');
73
73
  str = str.toLowerCase();
74
74
  // str = str.replace(/^_?[A-Z]{1,3}/, match => match.toLowerCase()); // Don't convert if start with ID, HS, SMS, etc
75
75
  str = str.replace(/(?<!^_|^)[^a-zA-Z0-9_][^\W_]/g, match => match?.toUpperCase()); // capitalize after non word char