Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
github.com/blndgs/model
Reusing data types, domain model or Shared Kernel
in DDD parlance.
This uses Protobuf definitions and holds the equivalent code for both
Golang and Typescript that can be used in userland code.
If you don’t have buf installed, follow the installation guide from buf.build.
buf generate
All models are currently defined in the asset.proto
file. It is a relatively
small model.
If adding lots of models, might make sense to split into a new file.
The below steps are needed to successfully update and distribute the models:
.proto
file.buf lint
buf format -w
.buf generate
buf.gen.yaml
to include the task.package.json
On every PR and Push, Github actions runs multiple tasks, one of which runs
buf generate
on the CI runner and checks if there is a diff between the generated
code you are submitting and what it generates. If there is a diff, the CI run fails.
This ensures bad code isn't mistakenly committed and we can safely distribute the changes to everyone
For the test run the following command:
go test ./...
FAQs
Unknown package
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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.