You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@tramvai/tools-migrate

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.126 to 0.5.127

2

lib/api.js

@@ -110,3 +110,3 @@ "use strict";

catch (error) {
log.error(error, `Ошибка при выполнении миграции для файла ${fileInfo.path}`);
log.error(error, `Migration error for file ${fileInfo.path}`);
}

@@ -113,0 +113,0 @@ }

@@ -24,6 +24,6 @@ "use strict";

const tramvaiJSONPath = yield api_1.getTramvaiJSONPath(cwd);
// игнорируем проверку миграций в самой репе трамвая,
// или отсутствует `tramvai.json`,
// или если выставлена переменная окружения,
// или мы выполняем установку внутри CI,
// ignore the migration check in the tramvai repository,
// or is absent `tramvai.json`,
// or if the environment variable is set,
// or we do the installation inside the CI,
if (cwdPackageName === 'tramvai' ||

@@ -35,3 +35,3 @@ !tramvaiJSONPath ||

}
log.info('Проверка миграций');
log.info('Checking migrations');
const files = yield fast_glob_1.default([

@@ -46,6 +46,6 @@ `${constants_1.TRAMVAI_BASE_PATH}*/__migrations__/*.js`,

if (!files.length) {
log.info('Миграции не найдены, завершаем');
log.info('Migrations are not found. The migration process is completed');
return;
}
log.debug('Найдены миграции');
log.debug('Migrations found');
log.debug(files);

@@ -57,3 +57,3 @@ const appliedFilename = path_1.resolve(cwd, constants_1.APPLIED_FILENAME);

let save;
log.info('Начинаем выполнять миграции');
log.info('Starting to perform migrations');
for (const fileInfo of files) {

@@ -68,3 +68,3 @@ const packageName = getPackageName(fileInfo.path);

if (!appliedMigrations.includes(fileInfo.name)) {
log.info(`Выполняем миграцию '${fileInfo.name}' из модуля '${packageName}'`);
log.info(`Running migration '${fileInfo.name}' from module '${packageName}'`);
if (!api) {

@@ -82,12 +82,12 @@ // eslint-disable-next-line no-await-in-loop

catch (error) {
log.error(error, `Ошибка при выполнении миграции '${fileInfo.name}' из модуля '${packageName}'`);
log.error(error, `Migration error '${fileInfo.name}' from module '${packageName}'`);
}
}
}
log.info('Все миграции выполнены, сохраняем информацию о выполненных миграциях');
log.info('All migrations are completed, save the information about the completed migrations');
yield (save === null || save === void 0 ? void 0 : save());
yield fs_extra_1.writeJSON(appliedFilename, appliedInfo);
log.info('Миграции успешно выполнены');
log.info('Migrations successfully completed');
}))();
tslib_1.__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@tramvai/tools-migrate",
"version": "0.5.126",
"version": "0.5.127",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc