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.
koatty_apollo
Advanced tools
Apollo Plugin for Koatty.
npm i koatty_apollo
1、项目中增加plugin
koatty plugin apollo;
2、修改 plugin/ApolloPlugin.ts:
import { Koatty, Plugin, IPlugin } from "koatty";
import Apollo from "koatty_apollo";
@Plugin()
export class ApolloPlugin implements IPlugin {
run(options: any, app: Koatty) {
return Apollo(options, app);
}
}
3、项目plugin配置 config/plugin.ts:
list: ["ApolloPlugin"], //加载的插件列表,执行顺序按照数组元素顺序
config: { //插件配置
...,
ApolloPlugin: {
host: 'http://127.0.0.1:8080', //your-config-server-url
appId: 'test', //your-config-appId
clusterName: 'default', //cluster-name
namespace: 'application', //your-config-namespace
enableUpdateNotification: true, // boolean=true set to false to disable update notification.
enableFetch: true, //boolean=false set to true to enable the feature
fetchTimeout: 30000, // number=30000 timeout in milliseconds before the initial fetch or interval fetch result in an FETCH_TIMEOUT error.
fetchInterval: 3 * 60 * 1000, // number = 3 * 60 * 1000 interval in milliseconds to pull the new configurations.Defaults to 5 minutes.Setting this option to 0 will disable the feature.
fetchCachedConfig: true, // boolean = true whether refresh configurations by fetching the restful API with caches.Defaults to true.If you want to always fetch the latest configurations(not recommend), set the option to false
}
}
FAQs
Apollo Plugin for Koatty.
The npm package koatty_apollo receives a total of 5 weekly downloads. As such, koatty_apollo popularity was classified as not popular.
We found that koatty_apollo 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.