mysqlsyncr 1.0.66 → 1.0.68
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 +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
- package/src/socketServer.js +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4264,6 +4264,7 @@ var startApiServer = function startApiServer(port, argv) {
|
|
|
4264
4264
|
extended: true
|
|
4265
4265
|
}));
|
|
4266
4266
|
var __dirname = process.platform === "win32" ? process.cwd().replace(/\\/g, '/') : process.cwd();
|
|
4267
|
+
console.log("Serving UI from ".concat(path.join(__dirname, './ui/dist/spa')));
|
|
4267
4268
|
app.use(express["static"](path.join(__dirname, './ui/dist/spa')));
|
|
4268
4269
|
app.post('/api/getDatabasesFromExistingDumps', /*#__PURE__*/function () {
|
|
4269
4270
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(req, res) {
|
|
@@ -5220,9 +5221,9 @@ var compare = /*#__PURE__*/function () {
|
|
|
5220
5221
|
// Only run this if this is the main module
|
|
5221
5222
|
var isMain = function () {
|
|
5222
5223
|
try {
|
|
5223
|
-
console.log('Checking if this is the main module');
|
|
5224
|
-
console.log(require.main === module)
|
|
5225
|
-
console.log(require.main);
|
|
5224
|
+
// console.log('Checking if this is the main module');
|
|
5225
|
+
// console.log(require.main === module)
|
|
5226
|
+
// console.log(require.main);
|
|
5226
5227
|
return require.main === module;
|
|
5227
5228
|
} catch (e) {
|
|
5228
5229
|
return false;
|
package/dist/index.js
CHANGED
|
@@ -4261,6 +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
|
+
console.log("Serving UI from ".concat(join(__dirname, './ui/dist/spa')));
|
|
4264
4265
|
app.use(express["static"](join(__dirname, './ui/dist/spa')));
|
|
4265
4266
|
app.post('/api/getDatabasesFromExistingDumps', /*#__PURE__*/function () {
|
|
4266
4267
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(req, res) {
|
|
@@ -5217,9 +5218,9 @@ var compare = /*#__PURE__*/function () {
|
|
|
5217
5218
|
// Only run this if this is the main module
|
|
5218
5219
|
var isMain = function () {
|
|
5219
5220
|
try {
|
|
5220
|
-
console.log('Checking if this is the main module');
|
|
5221
|
-
console.log(require.main === module)
|
|
5222
|
-
console.log(require.main);
|
|
5221
|
+
// console.log('Checking if this is the main module');
|
|
5222
|
+
// console.log(require.main === module)
|
|
5223
|
+
// console.log(require.main);
|
|
5223
5224
|
return require.main === module;
|
|
5224
5225
|
} catch (e) {
|
|
5225
5226
|
return false;
|
package/package.json
CHANGED
package/src/socketServer.js
CHANGED
|
@@ -38,7 +38,7 @@ export const startApiServer = (port, argv) => {
|
|
|
38
38
|
const __dirname = process.platform === "win32"
|
|
39
39
|
? process.cwd().replace(/\\/g, '/')
|
|
40
40
|
: process.cwd();
|
|
41
|
-
|
|
41
|
+
console.log(`Serving UI from ${join(__dirname, './ui/dist/spa')}`);
|
|
42
42
|
app.use(express.static(join(__dirname, './ui/dist/spa')));
|
|
43
43
|
|
|
44
44
|
app.post('/api/getDatabasesFromExistingDumps', async (req, res) => {
|