New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More ā†’
Socket
Sign inDemoInstall
Socket

express-zod-api

Package Overview
Dependencies
Maintainers
0
Versions
428
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-zod-api - npm Package Versions

13
ā€¦
43

22.2.0

Diff

robintail
published 22.1.1 ā€¢

robintail
published 22.1.0 ā€¢

robintail
published 22.0.0 ā€¢

robintail
published 22.0.0-beta.5 ā€¢

robintail
published 21.11.1 ā€¢

Changelog

Source

v21.11.1

  • Common styling methods (coloring) are extracted from the built-in logger instance:
    • This measure is to reduce memory consumption when using a child logger.
robintail
published 22.0.0-beta.4 ā€¢

robintail
published 22.0.0-beta.3 ā€¢

robintail
published 21.11.0 ā€¢

Changelog

Source

v21.11.0

  • New public property ctx is available on instances of BuiltinLogger:
    • When using the built-in logger and childLoggerProvider config option, the ctx property contains the argument that was used for creating the child logger using its .child() method;
    • It can be utilized for accessing its requestId property for purposes other than logging;
    • The default value of ctx is an empty object (when the instance is not a child logger).
import { BuiltinLogger, createConfig, createMiddleware } from "express-zod-api";

// Declaring the logger type in use
declare module "express-zod-api" {
  interface LoggerOverrides extends BuiltinLogger {}
}

// Configuring child logger provider
const config = createConfig({
  childLoggerProvider: ({ parent }) =>
    parent.child({ requestId: randomUUID() }),
});

// Accessing child logger context
createMiddleware({
  handler: async ({ logger }) => {
    doSomething(logger.ctx.requestId); // <ā€”
  },
});
robintail
published 21.10.0 ā€¢

Changelog

Source

v21.10.0

  • New Integration option: serverUrl, string, optional, the API URL for the generated client:
    • Currently used for generating example implementation;
    • Default value remains https://example.com;
  • Using new URL() for constructing the final request URL in the example implementation of the generated client:
    • That enables handling serverUrl both with and without trailing slash;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc