Socket
Socket
Sign inDemoInstall

@lokalise/events-common

Package Overview
Dependencies
1
Maintainers
11
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lokalise/events-common

This library abstracts common models for working with queues and topics.


Version published
Maintainers
11
Install size
10.2 kB
Created

Readme

Source

Common events library

This library abstracts common models for working with queues and topics.

Getting Started

Install all dependencies:

npm install

Run all tests:

npm run test

Usage:

Use base event schema with you defined event payload. Example:

export type IMPORT_CONTENT_PAYLOAD_SCHEMA = z.object({
    youField: z.string(),
})

export const IMPORT_CONTENT_SCHEMA = z.intersection(
	BASE_EVENT_SCHEMA,
	z.object({
		payload: IMPORT_CONTENT_PAYLOAD_SCHEMA,
	}),
)

In this example BASE_EVENT_SCHEMA payload will be overridden by IMPORT_CONTENT_PAYLOAD_SCHEMA

FAQs

Last updated on 17 Nov 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc