murmuration 2.0.17 → 2.0.19

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
@@ -464,4 +464,4 @@ It is possible to use the same custom migration class for multiple custom migrat
464
464
 
465
465
  ## Contact
466
466
 
467
- - james.smith@djalbat.com
467
+ * james.smith@djalbat.com
@@ -1,11 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  function camelCaseToSnakeCase(string) {
4
- return string.replace(/([A-Z])/g, (match, character) => `_${character.toLowerCase()}`);
4
+ return string.replace(/([A-Z])/g, (match, character) => {
5
+ const lowerCaseCharacter = character.toLowerCase(),
6
+ characters = `_${lowerCaseCharacter}`
7
+
8
+ return characters;
9
+ });
5
10
  }
6
11
 
7
12
  function snakeCaseToCamelCase(string) {
8
- return string.replace(/_(.)/g, (match, character) => character.toUpperCase());
13
+ return string.replace(/_(.)/g, (match, character) => {
14
+ const upperCaseCharacter = character.toUpperCase();
15
+
16
+ return upperCaseCharacter;
17
+ });
9
18
  }
10
19
 
11
20
  module.exports = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "murmuration",
3
3
  "author": "James Smith",
4
- "version": "2.0.17",
4
+ "version": "2.0.19",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/murmuration",
7
7
  "description": "Database statements, transactions and migrations.",