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

@dhis2/app-service-alerts

Package Overview
Dependencies
Maintainers
0
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2/app-service-alerts - npm Package Compare versions

Comparing version 3.11.0 to 3.11.1

11

build/cjs/useAlert.js

@@ -26,6 +26,13 @@ "use strict";

if (plugin && parentAlertsAdd && !showAlertsInPlugin) {
alertRef.current = parentAlertsAdd({
var _parentAlertsAdd;
// Functions passed through post-robot are asynchronous
(_parentAlertsAdd = parentAlertsAdd({
message: resolvedMessage,
options: resolvedOptions
}, alertRef);
}, alertRef // Conditional chaining gives backwards compatibility
// with cli-app-scripts < 12
)) === null || _parentAlertsAdd === void 0 ? void 0 : _parentAlertsAdd.then(newAlert => {
alertRef.current = newAlert;
});
} else {

@@ -32,0 +39,0 @@ alertRef.current = add({

@@ -17,6 +17,13 @@ import { useContext, useRef, useCallback } from 'react';

if (plugin && parentAlertsAdd && !showAlertsInPlugin) {
alertRef.current = parentAlertsAdd({
var _parentAlertsAdd;
// Functions passed through post-robot are asynchronous
(_parentAlertsAdd = parentAlertsAdd({
message: resolvedMessage,
options: resolvedOptions
}, alertRef);
}, alertRef // Conditional chaining gives backwards compatibility
// with cli-app-scripts < 12
)) === null || _parentAlertsAdd === void 0 ? void 0 : _parentAlertsAdd.then(newAlert => {
alertRef.current = newAlert;
});
} else {

@@ -23,0 +30,0 @@ alertRef.current = add({

2

package.json
{
"name": "@dhis2/app-service-alerts",
"version": "3.11.0",
"version": "3.11.1",
"main": "./build/cjs/index.js",

@@ -5,0 +5,0 @@ "module": "./build/es/index.js",

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