Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: capricorn86/happy-dom
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.0.1
Choose a base ref
...
head repository: capricorn86/happy-dom
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v11.0.2
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Sep 7, 2023

  1. Copy the full SHA
    941db0f View commit details
  2. Merge pull request #1048 from capricorn86/task/1047-fix-documentation…

    …-for-packages
    
    #1047@patch: Fixes documentation for packages in README.md.
    capricorn86 authored Sep 7, 2023
    Copy the full SHA
    c534f30 View commit details
Showing with 6 additions and 4 deletions.
  1. +4 −2 README.md
  2. +1 −1 packages/uncaught-exception-observer/README.md
  3. +1 −1 packages/uncaught-exception-observer/package.json
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion packages/uncaught-exception-observer/README.md
Original file line number Diff line number Diff line change
@@ -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.

2 changes: 1 addition & 1 deletion packages/uncaught-exception-observer/package.json
Original file line number Diff line number Diff line change
@@ -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": {