@kyvg/vue3-notification
Advanced tools
Comparing version 2.2.3 to 2.2.5
@@ -568,9 +568,12 @@ 'use strict'; | ||
}; | ||
function install(app, args = {}) { | ||
Object.entries(args).forEach((entry) => params.set(...entry)); | ||
const name = args.name || 'notify'; | ||
app.config.globalProperties['$' + name] = notify; | ||
app.component(args.componentName || 'notifications', script); | ||
} | ||
var index = { | ||
install: (app, args = {}) => { | ||
Object.entries(args).forEach((entry) => params.set(...entry)); | ||
const name = args.name || 'notify'; | ||
app.config.globalProperties['$' + name] = notify; | ||
app.component(args.componentName || 'notifications', script); | ||
}, | ||
install, | ||
}; | ||
@@ -577,0 +580,0 @@ |
@@ -564,9 +564,12 @@ import { defineComponent, TransitionGroup, openBlock, createBlock, withCtx, renderSlot, resolveDynamicComponent, Fragment, renderList, createCommentVNode, createVNode } from 'vue'; | ||
}; | ||
function install(app, args = {}) { | ||
Object.entries(args).forEach((entry) => params.set(...entry)); | ||
const name = args.name || 'notify'; | ||
app.config.globalProperties['$' + name] = notify; | ||
app.component(args.componentName || 'notifications', script); | ||
} | ||
var index = { | ||
install: (app, args = {}) => { | ||
Object.entries(args).forEach((entry) => params.set(...entry)); | ||
const name = args.name || 'notify'; | ||
app.config.globalProperties['$' + name] = notify; | ||
app.component(args.componentName || 'notifications', script); | ||
}, | ||
install, | ||
}; | ||
@@ -573,0 +576,0 @@ |
{ | ||
"name": "@kyvg/vue3-notification", | ||
"description": "Vue.js Notification Library", | ||
"version": "2.2.3", | ||
"version": "2.2.5", | ||
"author": "kyvg", | ||
@@ -12,3 +12,3 @@ "private": false, | ||
"build": "rm -rf dist/ && rollup -c", | ||
"release": "npm run build && npm run build:dts && rm --rf dist/src/", | ||
"release": "npm run build && npm run build:dts", | ||
"build:demo": "vite build", | ||
@@ -21,3 +21,3 @@ "build:dts": "api-extractor run --local --verbose && tail -n +7 src/globalExtensions.ts >> dist/index.d.ts", | ||
"lint": "eslint ./src/index.ts", | ||
"preversion": "npm run test && npm run build && git add -A dist" | ||
"preversion": "npm run test && npm run release && git add -A dist" | ||
}, | ||
@@ -24,0 +24,0 @@ "types": "dist/index.d.ts", |
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
50831
6
1141