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
Tool for executing code migrations for the tramvai modules.
How does it work:
__migrations__
contains migrations files for the executionpackage.json
, tramvai.json
and project source code.tramvai-migrate-applied.json
to the project rootTo disable migration add environment variable SKIP_TRAMVAI_MIGRATIONS
.
You can add new migration with command yarn generate:migration
. You will need to specify package name for the migration and the migration name itself.
Also add to this package's package.json
folder with the built migrations to the field files
if it wasn't specified before:
"files": [
"lib",
"__migrations__"
],
Migration is a function that accepts special api using which it implements changes to the source code or configs.
export interface Api {
packageJSON: PackageJSON; // object represented root package.json
tramvaiJSON: TramvaiJSON; // object represented tramvai.json
transform: (transformer: Transform, pathTransformer?: PathTransformer) => Promise<void>; // function that accepts transform function for `jscodeshift` and transform function for the file renames
}
Code transformations is done with jscodeshift
Rules:
null | undefined
or original source from the transform function in cases when migration doesn't change source code. Otherwise it will lead to unnecessary fs writing.j(source)
to make searches and transformsFAQs
Tool for executing code migrations for the tramvai modules.
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.