Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@newheap/nh-toastr

Latest version: v0.2.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: ph_lars
2 Stars
0 Forks
6 Versions
929 Downloads
C# Repo language

Scan summary

@newheap/nh-toastr was last scanned on 30 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 0.2.0.
  • Downloads: 929 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 30 Nov 2026 No rules fired
0.1.0 6 Nov 2026 No rules fired
0.0.8 3 Nov 2026 No rules fired
0.0.7 14 Sep 2026 Not shown
0.0.6 20 Aug 2026 Not shown

No rules fired in 0.2.0

Findings

Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@newheap/nh-toastr

NewHeap toast notifications for Angular applications.

Installation

The package is public on npmjs.org and installs without a registry token. An optional project .npmrc can make the public source explicit:

registry=https://registry.npmjs.org/
@newheap:registry=https://registry.npmjs.org/

Install the package:

npm install @newheap/nh-toastr

View available versions on npmjs.org. For NuGet, npm and AI-plugin installation, see Consume public packages.

Compatibility

The package supports Angular 20.3.28 through Angular 22 and @ngx-translate/core 17 or 18. It is built on the oldest supported Angular baseline so the published partial-Ivy output remains consumable across that range.

Usage

Register the provider in the root application module:

import { provideNhToastr } from '@newheap/nh-toastr';

@NgModule({
  providers: [
    provideNhToastr({ /* options */ })
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

Add the toast container once to the root application template:

<div class="container">
  <router-outlet></router-outlet>
</div>
<nh-toastr-container></nh-toastr-container>

Toasts are visible only while a container is rendered. In development mode the service warns once in the console when a toast is shown without one.

Inject the service where a notification is needed:

import { NhToastrService } from '@newheap/nh-toastr';

@Component({
  selector: 'my-component'
})
export class MyComponent {
  private readonly toastr = inject(NhToastrService);

  showToast(): void {
    this.toastr.success('Hello world');
  }
}
Action button

Pass action per toast through the override parameter to render a real button, such as "Undo", inside the toast. Clicking it emits action.value on the toast's onAction and dismisses the toast; set dismiss: false to keep it open. The click never counts as a tap, so onTap and tapToDismiss are not involved. Pass a translated label, as for the message.

const toast = this.toastr.success(
  this.translate.instant('project.status-update-succeeded', { key: project.key }),
  undefined,
  { timeOut: 10000, action: { label: this.translate.instant('project.undo'), value: previousStatus } }
);

toast?.onAction.subscribe(status => this.restoreStatus(project, status as ProjectStatus));

The timeout pauses while the pointer is over the toast or keyboard focus is inside it, so keyboard users can reach the button; a longer timeOut than the default five seconds gives them time to get there. Theme the button with the --nh-toastr-action-* custom properties (color, background, hover-background, border-color, border-width, radius, padding, font-size, font-weight and min-height), and place it with --nh-toastr-actions-justify and --nh-toastr-actions-margin-top; its focus outline uses --nh-toastr-focus-color.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @newheap/nh-toastr

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229