mysqlsyncr 1.0.96 → 1.0.98
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/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/index.js +1 -0
package/dist/index.cjs
CHANGED
|
@@ -3567,7 +3567,7 @@ var findDifferences = function findDifferences(expected, current) {
|
|
|
3567
3567
|
return differences;
|
|
3568
3568
|
};
|
|
3569
3569
|
|
|
3570
|
-
var applyDifferences
|
|
3570
|
+
var applyDifferences = /*#__PURE__*/function () {
|
|
3571
3571
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(connection, database, differences) {
|
|
3572
3572
|
var _iterator, _step, _loop, _ret;
|
|
3573
3573
|
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
@@ -4209,7 +4209,7 @@ var compareAllDatabases = /*#__PURE__*/function () {
|
|
|
4209
4209
|
logDifferences(differences, _database2, false);
|
|
4210
4210
|
logger('Applying differences for', _database2);
|
|
4211
4211
|
_context.next = 93;
|
|
4212
|
-
return applyDifferences
|
|
4212
|
+
return applyDifferences(connection, _database2, differences);
|
|
4213
4213
|
case 93:
|
|
4214
4214
|
allDifferences[_database2] = differences;
|
|
4215
4215
|
_context.next = 99;
|
|
@@ -4480,7 +4480,7 @@ var startApiServer = function startApiServer(port, argv) {
|
|
|
4480
4480
|
_context6.prev = 4;
|
|
4481
4481
|
console.log('Applying the database structure based on JSON dumps');
|
|
4482
4482
|
_context6.next = 8;
|
|
4483
|
-
return applyDifferences
|
|
4483
|
+
return applyDifferences(checker.connection, database, diffs);
|
|
4484
4484
|
case 8:
|
|
4485
4485
|
res.json({
|
|
4486
4486
|
message: 'Apply completed successfully'
|
package/dist/index.js
CHANGED
|
@@ -3564,7 +3564,7 @@ var findDifferences = function findDifferences(expected, current) {
|
|
|
3564
3564
|
return differences;
|
|
3565
3565
|
};
|
|
3566
3566
|
|
|
3567
|
-
var applyDifferences
|
|
3567
|
+
var applyDifferences = /*#__PURE__*/function () {
|
|
3568
3568
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(connection, database, differences) {
|
|
3569
3569
|
var _iterator, _step, _loop, _ret;
|
|
3570
3570
|
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
@@ -4206,7 +4206,7 @@ var compareAllDatabases = /*#__PURE__*/function () {
|
|
|
4206
4206
|
logDifferences(differences, _database2, false);
|
|
4207
4207
|
logger('Applying differences for', _database2);
|
|
4208
4208
|
_context.next = 93;
|
|
4209
|
-
return applyDifferences
|
|
4209
|
+
return applyDifferences(connection, _database2, differences);
|
|
4210
4210
|
case 93:
|
|
4211
4211
|
allDifferences[_database2] = differences;
|
|
4212
4212
|
_context.next = 99;
|
|
@@ -4477,7 +4477,7 @@ var startApiServer = function startApiServer(port, argv) {
|
|
|
4477
4477
|
_context6.prev = 4;
|
|
4478
4478
|
console.log('Applying the database structure based on JSON dumps');
|
|
4479
4479
|
_context6.next = 8;
|
|
4480
|
-
return applyDifferences
|
|
4480
|
+
return applyDifferences(checker.connection, database, diffs);
|
|
4481
4481
|
case 8:
|
|
4482
4482
|
res.json({
|
|
4483
4483
|
message: 'Apply completed successfully'
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import path from 'path';
|
|
|
7
7
|
import { cli } from './cli.js';
|
|
8
8
|
import { dumpAllDatabases, getDatabasesFromExistingDumps } from './dump.js';
|
|
9
9
|
import { compareAllDatabases } from './compare.js';
|
|
10
|
+
import { applyDifferences } from './apply.js';
|
|
10
11
|
import { startApiServer } from './socketServer.js'; // Import the new socket server
|
|
11
12
|
import open from 'open';
|
|
12
13
|
import { fileURLToPath } from 'node:url';
|