Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
shaara-core
Advanced tools
Provide the Kernel of Shaara.
The job of the Kernel is to orchestrate the application and it's various components. The base of it is to handle services.
Basic Example :
import Shaara from "shaara-core";
const kernel = await Shaara.Kernel.create({
getEnvironment: () => {
return "test";
},
getParameters: () => {
return {
databaseUsername: "foo",
databasePassword: "bar",
}
},
getServices: (services, parameters, env) => {
// parameters contains the parameters given in getParameters
// env contains the current environment.
return {
"random.service": randomService
}
}
});
A service is a simple object that do whatever you want. It's completely
user defined. It must be registered using the getServices
function.
Return the current environment. If not specified, reads process.env.NODE_ENV.
Return a list of parameters.
getServices(services : {[key: string]: Object}, parameters : Object, env : string)
Return a list of service.
FAQs
Core of the Shaara framework
The npm package shaara-core receives a total of 4 weekly downloads. As such, shaara-core popularity was classified as not popular.
We found that shaara-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.