@dhis2/app-service-alerts
Advanced tools
Comparing version 3.11.0 to 3.11.1
@@ -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({ |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41164
1314