Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nextcloud/event-bus

Package Overview
Dependencies
Maintainers
13
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextcloud/event-bus - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

3

dist/Event.d.ts

@@ -1,2 +0,1 @@

export interface Event {
}
export type Event = object | number | string | boolean | null | undefined;

@@ -0,1 +1,3 @@

import { EventHandler } from "./EventHandler";
import { Event } from "./Event";
export type { EventBus } from './EventBus';

@@ -18,3 +20,3 @@ export type { EventHandler } from "./EventHandler";

*/
export declare function subscribe(name: string, handler: (string: any) => void): void;
export declare function subscribe(name: string, handler: EventHandler): void;
/**

@@ -28,3 +30,3 @@ * Unregister a previously registered event listener

*/
export declare function unsubscribe(name: string, handler: (string: any) => void): void;
export declare function unsubscribe(name: string, handler: EventHandler): void;
/**

@@ -36,2 +38,2 @@ * Emit an event

*/
export declare function emit(name: string, event: object): void;
export declare function emit(name: string, event: Event): void;
{
"name": "@nextcloud/event-bus",
"version": "3.1.0",
"version": "3.2.0",
"description": "A simple event bus to communicate between Nextcloud components.",

@@ -23,2 +23,3 @@ "main": "dist/index.cjs",

"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watchAll"

@@ -37,19 +38,22 @@ },

"dependencies": {
"semver": "^7.5.1"
"@types/node": "^20.12.7",
"semver": "^7.6.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-typescript": "^11.1.1",
"@types/semver": "^7.5.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"rollup": "^2.79.1",
"tslib": "^2.5.0",
"typedoc": "^0.24.7",
"typescript": "^5.0.4"
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-typescript": "^11.1.6",
"@types/semver": "^7.5.8",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"rollup": "^4.16.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
},
"engines": {
"node": "^16.0.0",
"npm": "^7.0.0 || ^8.0.0"
"node": "^20.0.0",
"npm": "^10.0.0"
}
}
# @nextcloud/event-bus
[![Build Status](https://img.shields.io/github/actions/workflow/status/nextcloud/nextcloud-event-bus/node.yml?branch=master)](https://github.com/nextcloud/nextcloud-event-bus/actions/workflows/node.yml?query=branch%3Amaster)
[![npm](https://img.shields.io/npm/v/@nextcloud/event-bus.svg)](https://www.npmjs.com/package/@nextcloud/event-bus)
[![Build Status](https://img.shields.io/github/actions/workflow/status/nextcloud/nextcloud-event-bus/node.yml?branch=master)](https://github.com/nextcloud/nextcloud-event-bus/actions/workflows/node.yml?query=branch%3Amaster) [![Code coverage](https://img.shields.io/codecov/c/gh/nextcloud/nextcloud-event-bus/master)](https://app.codecov.io/gh/nextcloud/nextcloud-event-bus) [![npm](https://img.shields.io/npm/v/@nextcloud/event-bus.svg)](https://www.npmjs.com/package/@nextcloud/event-bus)
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud.github.io/nextcloud-event-bus/)

@@ -45,4 +44,5 @@

- `nextcloud:unified-search:closed`
- `files:file:uploading`
- `files:file:uploaded`
- `files:node:uploading`
- `files:node:uploaded`
- `files:node:deleted`
- `contacts:contact:deleted`

@@ -49,0 +49,0 @@ - `calendar:event:created`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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