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.
- package/package.json +1 -1
- package/src/index.js +8 -0
package/package.json
CHANGED
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
|