Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "toast-me", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Creates toast messages", | ||
@@ -17,9 +17,9 @@ "main": "lib/toast-me.min.js", | ||
"keywords": [ | ||
"webpack", | ||
"es6", | ||
"library", | ||
"universal", | ||
"umd", | ||
"react", | ||
"vue", | ||
"web", | ||
"bubble", | ||
"toast", | ||
"commonjs", | ||
"popup", | ||
"notify", | ||
@@ -26,0 +26,0 @@ "error", |
@@ -185,2 +185,7 @@ # toast-me | ||
``` | ||
This method has separate simplified alias | ||
```js | ||
import { removeAllToasts } from 'toast-me'; | ||
removeAllToasts('bottom') | ||
``` | ||
@@ -187,0 +192,0 @@ ## Contributing |
// @flow | ||
import ToastMeClass, { ToastOptions } from './toastMe'; | ||
import ToastMeClass, { ToastOptions, removeAllToasts } from './toastMe'; | ||
@@ -9,2 +9,3 @@ import type { ToastActionType, ToastOptionsType } from './types'; | ||
ToastMeClass, | ||
removeAllToasts, | ||
}; | ||
@@ -11,0 +12,0 @@ |
@@ -129,2 +129,9 @@ // @flow | ||
export { ToastOptions }; | ||
function removeAllToasts(options: ContainerOptionsType) { | ||
ToastMeClass.removeAll(options); | ||
} | ||
export { | ||
ToastOptions, | ||
removeAllToasts, | ||
}; |
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
352093
214
234