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

@quilted/events

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quilted/events - npm Package Compare versions

Comparing version 0.1.17 to 0.1.18

2

build/typescript/emitter.d.ts

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

import type { AbortBehavior } from './abort';
import type { AbortBehavior } from './abort.ts';
export type EmitterHandler<T = unknown> = (event: T) => void;

@@ -3,0 +3,0 @@ export interface Emitter<Events = {}> {

@@ -1,9 +0,9 @@

export { on } from './on';
export { once } from './once';
export { AbortError, NestedAbortController, anyAbortSignal, raceAgainstAbortSignal, type AbortBehavior, } from './abort';
export { addListener } from './listeners';
export { createEmitter, createEmitterWithInternals } from './emitter';
export type { Emitter, EmitterHandler, EmitterInternalEvents, EmitterWithInternals, } from './emitter';
export { TimedAbortController, sleep } from './timeouts';
export type { EventTarget, EventTargetOn, EventTargetAddEventListener, EventTargetFunction, } from './types';
export { on } from './on.ts';
export { once } from './once.ts';
export { AbortError, NestedAbortController, anyAbortSignal, raceAgainstAbortSignal, type AbortBehavior, } from './abort.ts';
export { addListener } from './listeners.ts';
export { createEmitter, createEmitterWithInternals } from './emitter.ts';
export type { Emitter, EmitterHandler, EmitterInternalEvents, EmitterWithInternals, } from './emitter.ts';
export { TimedAbortController, sleep } from './timeouts.ts';
export type { EventTarget, EventTargetOn, EventTargetAddEventListener, EventTargetFunction, } from './types.ts';
//# sourceMappingURL=index.d.ts.map

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

import type { EventTarget } from './types';
import type { EventTarget } from './types.ts';
export declare function addListener(target: EventTarget<any>, name: string | symbol, listener: (...args: any[]) => void, flags?: {

@@ -3,0 +3,0 @@ once?: boolean;

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

import type { AbortBehavior } from './abort';
import type { EventTarget } from './types';
import type { AbortBehavior } from './abort.ts';
import type { EventTarget } from './types.ts';
export declare function on<EventMap = Record<string, unknown>, Event extends keyof EventMap = keyof EventMap, Target extends EventTarget<EventMap> = EventTarget<EventMap>>(emitter: Target, event: Event, options?: {

@@ -4,0 +4,0 @@ signal?: AbortSignal;

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

import type { AbortBehavior } from './abort';
import type { EventTarget } from './types';
import type { AbortBehavior } from './abort.ts';
import type { EventTarget } from './types.ts';
export declare function once<EventMap = Record<string, unknown>, Event extends keyof EventMap = keyof EventMap, Target extends EventTarget<EventMap> = EventTarget<EventMap>>(target: Target, event: Event): Promise<EventMap[Event]>;

@@ -4,0 +4,0 @@ export declare function once<EventMap = Record<string, unknown>, Event extends keyof EventMap = keyof EventMap, Target extends EventTarget<EventMap> = EventTarget<EventMap>, Abort extends AbortBehavior = 'returns'>(target: Target, event: Event, options: {

# @quilted/events
## 0.1.18
### Patch Changes
- [#536](https://github.com/lemonmade/quilt/pull/536) [`cf6e2de1`](https://github.com/lemonmade/quilt/commit/cf6e2de186d8644fad9afcedda85c05002e909e1) Thanks [@lemonmade](https://github.com/lemonmade)! - Update to TypeScript 5.0
## 0.1.17

@@ -4,0 +10,0 @@

@@ -5,3 +5,3 @@ {

"type": "module",
"version": "0.1.17",
"version": "0.1.18",
"license": "MIT",

@@ -8,0 +8,0 @@ "engines": {

@@ -1,4 +0,4 @@

import {on as onEvent} from './on';
import {once as onceEvent} from './once';
import type {AbortBehavior} from './abort';
import {on as onEvent} from './on.ts';
import {once as onceEvent} from './once.ts';
import type {AbortBehavior} from './abort.ts';

@@ -5,0 +5,0 @@ export type EmitterHandler<T = unknown> = (event: T) => void;

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

export {on} from './on';
export {once} from './once';
export {on} from './on.ts';
export {once} from './once.ts';
export {

@@ -9,5 +9,5 @@ AbortError,

type AbortBehavior,
} from './abort';
export {addListener} from './listeners';
export {createEmitter, createEmitterWithInternals} from './emitter';
} from './abort.ts';
export {addListener} from './listeners.ts';
export {createEmitter, createEmitterWithInternals} from './emitter.ts';
export type {

@@ -18,4 +18,4 @@ Emitter,

EmitterWithInternals,
} from './emitter';
export {TimedAbortController, sleep} from './timeouts';
} from './emitter.ts';
export {TimedAbortController, sleep} from './timeouts.ts';
export type {

@@ -26,2 +26,2 @@ EventTarget,

EventTargetFunction,
} from './types';
} from './types.ts';

@@ -5,3 +5,3 @@ import type {

EventTargetAddEventListener,
} from './types';
} from './types.ts';

@@ -8,0 +8,0 @@ export function addListener(

@@ -1,5 +0,5 @@

import {addListener} from './listeners';
import type {AbortBehavior} from './abort';
import {AbortError, NestedAbortController} from './abort';
import type {EventTarget} from './types';
import {addListener} from './listeners.ts';
import type {AbortBehavior} from './abort.ts';
import {AbortError, NestedAbortController} from './abort.ts';
import type {EventTarget} from './types.ts';

@@ -6,0 +6,0 @@ // @see https://github.com/nodejs/node/blob/master/lib/events.js#L1012-L1019

@@ -1,5 +0,5 @@

import {addListener} from './listeners';
import type {AbortBehavior} from './abort';
import {AbortError, NestedAbortController} from './abort';
import type {EventTarget} from './types';
import {addListener} from './listeners.ts';
import type {AbortBehavior} from './abort.ts';
import {AbortError, NestedAbortController} from './abort.ts';
import type {EventTarget} from './types.ts';

@@ -6,0 +6,0 @@ export async function once<

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

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