Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@tramvai/tools-migrate
Advanced tools
Утилита для выполнения миграции для трамвайный модулей.
Принцип работы:
__migrations__
находятся файлы миграций для выполненияДля отключения миграций можно проставить переменную окружения SKIP_TRAMVAI_MIGRATIONS
.
Добавить новую миграцию можно с помощью команды yarn generate:migration
после чего потребуется указать имя пакета для которого предназначена миграция и имя новой миграции. Также для этого пакета потребуется добавить в package.json
в поле files
папку с собранными миграциями, если они не были указаны ранее:
"files": [
"lib",
"__migrations__"
],
Миграция представляет собой функцию, принимающую специальное апи с помощью которого можно осуществлять изменения кода или конфигов.
export interface Api {
packageJSON: PackageJSON; // объект-представление корневого package.json
tramvaiJSON: TramvaiJSON; // объект-представление файла tramvai.json или platform.json
transform: (transformer: Transform, pathTransformer?: PathTransformer) => Promise<void>; // функция принимающая функцию-траснформер для jscodeshift и функцию-трансформер для переименования файлов
}
Трансформация кода осуществляется с помощью jscodeshift
FAQs
Tool for executing code migrations for the tramvai modules.
The npm package @tramvai/tools-migrate receives a total of 590 weekly downloads. As such, @tramvai/tools-migrate popularity was classified as not popular.
We found that @tramvai/tools-migrate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.