mysqlsyncr 1.0.60 → 1.0.62
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 -1
- package/dist/index.js +3 -1
- package/package.json +2 -2
- package/src/index.js +2 -0
- package/src/socketServer.js +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4261,7 +4261,7 @@ var startApiServer = function startApiServer(port, argv) {
|
|
|
4261
4261
|
extended: true
|
|
4262
4262
|
}));
|
|
4263
4263
|
var __dirname = process.platform === "win32" ? process.cwd().replace(/\\/g, '/') : process.cwd();
|
|
4264
|
-
app.use(express["static"](path.join(__dirname, '
|
|
4264
|
+
app.use(express["static"](path.join(__dirname, './ui/dist/spa')));
|
|
4265
4265
|
app.post('/api/getDatabasesFromExistingDumps', /*#__PURE__*/function () {
|
|
4266
4266
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(req, res) {
|
|
4267
4267
|
var config, databases;
|
|
@@ -5217,6 +5217,8 @@ var compare = /*#__PURE__*/function () {
|
|
|
5217
5217
|
// Only run this if this is the main module
|
|
5218
5218
|
var isMain = function () {
|
|
5219
5219
|
try {
|
|
5220
|
+
console.log('Checking if this is the main module');
|
|
5221
|
+
console.log(require.main);
|
|
5220
5222
|
return require.main === module;
|
|
5221
5223
|
} catch (e) {
|
|
5222
5224
|
return false;
|
package/dist/index.js
CHANGED
|
@@ -4258,7 +4258,7 @@ var startApiServer = function startApiServer(port, argv) {
|
|
|
4258
4258
|
extended: true
|
|
4259
4259
|
}));
|
|
4260
4260
|
var __dirname = process.platform === "win32" ? process.cwd().replace(/\\/g, '/') : process.cwd();
|
|
4261
|
-
app.use(express["static"](join(__dirname, '
|
|
4261
|
+
app.use(express["static"](join(__dirname, './ui/dist/spa')));
|
|
4262
4262
|
app.post('/api/getDatabasesFromExistingDumps', /*#__PURE__*/function () {
|
|
4263
4263
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(req, res) {
|
|
4264
4264
|
var config, databases;
|
|
@@ -5214,6 +5214,8 @@ var compare = /*#__PURE__*/function () {
|
|
|
5214
5214
|
// Only run this if this is the main module
|
|
5215
5215
|
var isMain = function () {
|
|
5216
5216
|
try {
|
|
5217
|
+
console.log('Checking if this is the main module');
|
|
5218
|
+
console.log(require.main);
|
|
5217
5219
|
return require.main === module;
|
|
5218
5220
|
} catch (e) {
|
|
5219
5221
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysqlsyncr",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "rollup -c"
|
|
19
19
|
},
|
|
20
20
|
"bin": {
|
|
21
|
-
"mysqlsyncr": "
|
|
21
|
+
"mysqlsyncr": "dist/index.cjs"
|
|
22
22
|
},
|
|
23
23
|
"author": "",
|
|
24
24
|
"license": "ISC",
|
package/src/index.js
CHANGED
|
@@ -64,6 +64,8 @@ export { DBStructureChecker, dumpAllDatabases, compare, startApiServer };
|
|
|
64
64
|
// Only run this if this is the main module
|
|
65
65
|
const isMain = (() => {
|
|
66
66
|
try {
|
|
67
|
+
console.log('Checking if this is the main module');
|
|
68
|
+
console.log(require.main);
|
|
67
69
|
return require.main === module;
|
|
68
70
|
} catch (e) {
|
|
69
71
|
return false;
|
package/src/socketServer.js
CHANGED
|
@@ -40,7 +40,7 @@ export const startApiServer = (port, argv) => {
|
|
|
40
40
|
? process.cwd().replace(/\\/g, '/')
|
|
41
41
|
: process.cwd();
|
|
42
42
|
|
|
43
|
-
app.use(express.static(join(__dirname, '
|
|
43
|
+
app.use(express.static(join(__dirname, './ui/dist/spa')));
|
|
44
44
|
|
|
45
45
|
app.post('/api/getDatabasesFromExistingDumps', async (req, res) => {
|
|
46
46
|
let { config } = req.body;
|