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.0.0-preview-20230807215208 to 0.0.0-preview-20230807232217

2

CHANGELOG.md
# @quilted/events
## 0.0.0-preview-20230807215208
## 0.0.0-preview-20230807232217

@@ -5,0 +5,0 @@ ### Major Changes

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

"type": "module",
"version": "0.0.0-preview-20230807215208",
"version": "0.0.0-preview-20230807232217",
"license": "MIT",

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

@@ -9,7 +9,7 @@ # `@quilted/events`

# npm
npm install @quilted/graphql --save
npm install @quilted/events --save
# pnpm
pnpm install @quilted/graphql --save
pnpm install @quilted/events --save
# yarn
yarn add @quilted/graphql
yarn add @quilted/events
```

@@ -19,3 +19,3 @@

## Emitting and listening for events
### Emitting and listening for events

@@ -55,3 +55,3 @@ This library provides an `EventEmitter` class, which is the main utility you’ll use to work with events. It’s similar to the browser’s [`EventTarget` interface](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), but instead of accepting only callbacks to listen for events, it turns events into other JavaScript types.

Both `on()` and `once()` accept a [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) option as their second argument, which allows you to cancel the listener. By default, aborting `on()` will cause the async generator to end stop yielding values, and will cause `once()` to resolve its promise with `undefined`. However, you can also pass an `abort` option set to `'reject'` in order to have these method instead reject with `AbortError`s:
Both `on()` and `once()` accept an [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) option as their second argument, which allows you to cancel the listener. By default, aborting `on()` will cause the async generator to end stop yielding values, and will cause `once()` to resolve its promise with `undefined`. However, you can also pass an `abort` option set to `'reject'` in order to have these method instead reject with `AbortError`s:

@@ -58,0 +58,0 @@ ```ts

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