mysqlsyncr 1.0.64 → 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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysqlsyncr",
3
- "version": "1.0.64",
3
+ "version": "1.0.68",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
package/src/index.js CHANGED
@@ -64,9 +64,9 @@ 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 === module)
69
- console.log(require.main);
67
+ // console.log('Checking if this is the main module');
68
+ // console.log(require.main === module)
69
+ // console.log(require.main);
70
70
  return require.main === module;
71
71
  } catch (e) {
72
72
  return false;
@@ -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) => {