🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@globalbrain/sefirot

Package Overview
Dependencies
Maintainers
1
Versions
301
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globalbrain/sefirot - npm Package Compare versions

Comparing version

to
0.45.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# [0.45.0](https://github.com/globalbrain/sefirot/compare/v0.44.0...v0.45.0) (2021-03-16)
### Features
* **alert:** improve composition ([#47](https://github.com/globalbrain/sefirot/issues/47)) ([#48](https://github.com/globalbrain/sefirot/issues/48)) ([8961c67](https://github.com/globalbrain/sefirot/commit/8961c67c3012ac741d25759d8dd07b826d2ecaea))
# [0.44.0](https://github.com/globalbrain/sefirot/compare/v0.43.0...v0.44.0) (2021-03-15)

@@ -2,0 +8,0 @@

18

lib/composables/Alert.ts
import { Values } from '../types/Utils'
import { useStore } from './Store'
import { ButtonAction } from './Action'

@@ -20,4 +21,17 @@

export function useAlert(alert: Alert): Alert {
return alert
export function useAlert(alert: Alert) {
const store = useStore()
function open(): void {
store.dispatch('alert/open', alert)
}
function close(): void {
store.dispatch('alert/close')
}
return {
open,
close
}
}

2

package.json
{
"name": "@globalbrain/sefirot",
"version": "0.44.0",
"version": "0.45.0",
"description": "Vue Components for Global Brain Design System.",

@@ -5,0 +5,0 @@ "files": [