mysqlsyncr 1.0.46 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/compare.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysqlsyncr",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/compare.js CHANGED
@@ -24,7 +24,7 @@ export const compareAllDatabases = async (connection, inputDir, update = false,
24
24
 
25
25
  // Note missing databases and prepare to create them
26
26
  for (const database of expectedDatabases) {
27
- if(options.database && options.database !== database){
27
+ if(options && options.database && options.database !== database){
28
28
  continue;
29
29
  }
30
30
 
@@ -56,7 +56,7 @@ export const compareAllDatabases = async (connection, inputDir, update = false,
56
56
  }
57
57
 
58
58
  for (const database of expectedDatabases) {
59
- if(options.database && options.database !== database){
59
+ if(options && options.database && options.database !== database){
60
60
  continue;
61
61
  }
62
62
  if(missingDatabases.includes(database)){