
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@lidofinance/api-logger
Advanced tools
API logger, which hides secrets
yarn add @lidofinance/api-logger
You just need to initialize it with secrets you want to hide, usually it's all secrets from serverRuntimeConfig
for
next.js, after that, you are free to use it as regular console.log
.
import getConfig from 'next/config';
import { serverLoggerFactory } from '@lidofinance/api-logger';
const { serverRuntimeConfig } = getConfig();
const {
infuraApiKey,
alchemyApiKey,
subgraphMainnet,
subgraphGoerli,
} = serverRuntimeConfig;
export const serverLogger = serverLoggerFactory([
infuraApiKey,
alchemyApiKey,
subgraphMainnet,
subgraphGoerli,
]);
serverLogger.log('Something common')
serverLogger.error(new Error('Some error'))
FAQs
API logger, which hides secrets
We found that @lidofinance/api-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.