Skip to content

Commit

Permalink
#1047@patch: Fixes documentation for packages in README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Sep 7, 2023
1 parent 6b17546 commit 941db0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ This package makes it possible to use Happy DOM with [Jest](https://jestjs.io/).

### [![Published on npm](https://img.shields.io/npm/v/@happy-dom/global-registrator.svg)](https://www.npmjs.com/package/@happy-dom/global-registrator) [global-registrator](https://github.com/capricorn86/happy-dom/tree/master/packages/global-registrator)

A utility that registers Happy DOM globally, which makes it possible to use Happy DOM for testing in a Node environment.

---

### [![Published on npm](https://img.shields.io/npm/v/@happy-dom/uncaught-exception-observer.svg)](https://www.npmjs.com/package/@happy-dom/uncaught-exception-observer) [global-registrator](https://github.com/capricorn86/happy-dom/tree/master/packages/uncaught-exception-observer)
### [![Published on npm](https://img.shields.io/npm/v/@happy-dom/uncaught-exception-observer.svg)](https://www.npmjs.com/package/@happy-dom/uncaught-exception-observer) [uncaught-exception-observer](https://github.com/capricorn86/happy-dom/tree/master/packages/uncaught-exception-observer)

A utility that registers Happy DOM globally, which makes it possible to use Happy DOM for testing in a Node environment.
A utility for observing uncaught exceptions thrown in Happy DOM and dispatch them as events on the Happy DOM window.

# Performance

Expand Down
2 changes: 1 addition & 1 deletion packages/uncaught-exception-observer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The goal of [Happy DOM](https://github.com/capricorn86/happy-dom) is to emulate

[Happy DOM](https://github.com/capricorn86/happy-dom) focuses heavily on performance and can be used as an alternative to [JSDOM](https://github.com/jsdom/jsdom).

This package contains a tool that observes uncaught exceptions and Promise rejections in [Happy DOM](https://github.com/capricorn86/happy-dom). It will dispatch uncaught errors as events on the [Happy DOM](https://github.com/capricorn86/happy-dom) Window instance.
This package contains a tool that can observe uncaught exceptions and Promise rejections in [Happy DOM](https://github.com/capricorn86/happy-dom). It will dispatch uncaught errors as events on the [Happy DOM](https://github.com/capricorn86/happy-dom) Window instance.

Uncaught exceptions and rejections must be listened to on the NodeJS process at a global level. This tool will therefore not work in all environments as there may already be listeners added by other libraries on the NodeJS process that may conflict.

Expand Down
2 changes: 1 addition & 1 deletion packages/uncaught-exception-observer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://github.com/capricorn86/happy-dom/tree/master/packages/uncaught-exception-observer",
"repository": "https://github.com/capricorn86/happy-dom",
"author": "David Ortner",
"description": "Observes uncaught exceptions thrown in Happy DOM and dispatches them as events on the Happy DOM window.",
"description": "A utility for observing uncaught exceptions thrown in Happy DOM and dispatch them as events on the Happy DOM window.",
"main": "lib/index.js",
"type": "module",
"exports": {
Expand Down

0 comments on commit 941db0f

Please sign in to comment.