mysqlsyncr 1.0.50 → 1.0.52

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/index.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysqlsyncr",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -60,6 +60,14 @@ const compare = async (config, output) => {
60
60
  }
61
61
 
62
62
  // Export the DBStructureChecker class
63
+ // Modify the exports section to support both formats
64
+ const exports = { DBStructureChecker, dumpAllDatabases, compare, startApiServer };
65
+
66
+ if (typeof module !== 'undefined' && module.exports) {
67
+ // CommonJS
68
+ module.exports = exports;
69
+ }
70
+ // ES modules
63
71
  export { DBStructureChecker, dumpAllDatabases, compare, startApiServer };
64
72
 
65
73
  // Only run this if this is the main module