diff --git a/dist/mage-db-sync.js b/dist/mage-db-sync.js index 31f8138..e6cfccf 100644 --- a/dist/mage-db-sync.js +++ b/dist/mage-db-sync.js @@ -8,6 +8,7 @@ const fs_1 = tslib_1.__importDefault(require("fs")); const get_installed_path_1 = require("get-installed-path"); const console_1 = require("./utils/console"); const versionCheck_1 = tslib_1.__importDefault(require("./utils/versionCheck")); +const kleur_1 = tslib_1.__importDefault(require("kleur")); (0, get_installed_path_1.getInstalledPath)('mage-db-sync').then((path) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { // Lets make sure all required files are in place before running the tool let npmPath = path; @@ -35,10 +36,12 @@ const versionCheck_1 = tslib_1.__importDefault(require("./utils/versionCheck")); const packageJson = require('../package.json'); let versionCheck = new versionCheck_1.default(); yield versionCheck.getToolVersions(); - let description = `Magento Database Synchronizer, based on Magerun - ${packageJson.version}\nGithub Page: https://github.com/jellesiderius/mage-db-sync\nDocs: https://github.com/jellesiderius/mage-db-sync/wiki\nReport an issue: https://github.com/jellesiderius/mage-db-sync/issues`; + let description = `Magento Database Synchronizer, based on Magerun - ${packageJson.version}\n• Github Page: https://github.com/jellesiderius/mage-db-sync\n• Docs: https://github.com/jellesiderius/mage-db-sync/wiki\n• Report an issue: https://github.com/jellesiderius/mage-db-sync/issues`; if (versionCheck.config.currentVersion < versionCheck.config.latestVersion) { description = `${description}\nRun 'mage-db-sync self-update' to download the newest version: ${versionCheck.config.latestVersion}`; } + description += `\n\n${kleur_1.default.bgYellow(kleur_1.default.bold('Sponsored by:'))} +• HYPR (https://www.hypershop.nl)`; let deleteFiles = [ `${npmPath}/dist/controllers/importController.js`, `${npmPath}/dist/commands/importCommand.js` diff --git a/dist/mage-db-sync.js.map b/dist/mage-db-sync.js.map index 8c7902a..1da1cbb 100644 --- a/dist/mage-db-sync.js.map +++ b/dist/mage-db-sync.js.map @@ -1 +1 @@ -{"version":3,"file":"mage-db-sync.js","sourceRoot":"","sources":["../src/mage-db-sync.ts"],"names":[],"mappings":";;;AA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;IAE/B,IAAI,WAAW,GAAG;QACd,GAAG,OAAO,uCAAuC;QACjD,GAAG,OAAO,iCAAiC;KAC9C,CAAC;IAEF,+CAA+C;IAC/C,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5B,WAAW,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACzB,IAAI,YAAE,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE;gBAC1B,YAAE,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,CAAC,CAAA;aAC3B;YAED,IAAI,YAAE,CAAC,UAAU,CAAC,GAAG,IAAI,MAAM,CAAC,EAAE;gBAC9B,YAAE,CAAC,UAAU,CAAC,GAAG,IAAI,MAAM,CAAC,CAAA;aAC/B;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,mBAAO;SACF,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;SAC5B,KAAK,CAAC,qBAAqB,CAAC;SAC5B,WAAW,CAAC,WAAW,CAAC,CAAA;IAE7B,mBAAO,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,mBAAO,CAAC,IAAI,EAAE,CAAA;IAClB,CAAC,CAAC,CAAA;IAEF,mBAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAE3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE;QAC/B,mBAAO,CAAC,UAAU,EAAE,CAAA;QACpB,OAAO,CAAC,IAAI,EAAE,CAAA;KACjB;AACL,CAAC,CAAA,CAAC,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 04b531b..f24ac13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mage-db-sync", - "version": "1.1.7", + "version": "1.1.8", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index e487a5b..3226175 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mage-db-sync", - "version": "1.1.7", + "version": "1.1.8", "description": "Database synchronizer for Magento, based on Magerun", "author": { "name": "Jelle Siderius" diff --git a/src/mage-db-sync.ts b/src/mage-db-sync.ts index 63cc401..01914c7 100644 --- a/src/mage-db-sync.ts +++ b/src/mage-db-sync.ts @@ -5,6 +5,7 @@ import fs from 'fs'; import {getInstalledPath} from 'get-installed-path' import {error} from "./utils/console"; import VersionCheck from "./utils/versionCheck"; +import kleur from "kleur"; getInstalledPath('mage-db-sync').then(async (path: any) => { // Lets make sure all required files are in place before running the tool @@ -37,11 +38,14 @@ getInstalledPath('mage-db-sync').then(async (path: any) => { const packageJson = require('../package.json') let versionCheck = new VersionCheck(); await versionCheck.getToolVersions(); - let description = `Magento Database Synchronizer, based on Magerun - ${packageJson.version}\nGithub Page: https://github.com/jellesiderius/mage-db-sync\nDocs: https://github.com/jellesiderius/mage-db-sync/wiki\nReport an issue: https://github.com/jellesiderius/mage-db-sync/issues`; + let description = `Magento Database Synchronizer, based on Magerun - ${packageJson.version}\n• Github Page: https://github.com/jellesiderius/mage-db-sync\n• Docs: https://github.com/jellesiderius/mage-db-sync/wiki\n• Report an issue: https://github.com/jellesiderius/mage-db-sync/issues`; if (versionCheck.config.currentVersion < versionCheck.config.latestVersion) { description = `${description}\nRun 'mage-db-sync self-update' to download the newest version: ${versionCheck.config.latestVersion}`; } + description += `\n\n${kleur.bgYellow(kleur.bold('Sponsored by:'))} +• HYPR (https://www.hypershop.nl)`; + let deleteFiles = [ `${npmPath}/dist/controllers/importController.js`, `${npmPath}/dist/commands/importCommand.js`