@byloth/vuert
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -5,8 +5,8 @@ var N = Object.defineProperty; | ||
import { getCurrentScope as A, inject as I, ref as V, computed as k, nextTick as F, defineComponent as $, shallowRef as E, onMounted as P, onUnmounted as C, openBlock as D, createBlock as U, resolveDynamicComponent as R, withCtx as B, renderSlot as H, createCommentVNode as L } from "vue"; | ||
import { RuntimeException as d, ValueException as w, FatalErrorException as K } from "@byloth/exceptions"; | ||
const O = { $vuert: Symbol("[vuert]: vuert") }, b = class { | ||
import { RuntimeException as u, ValueException as w, FatalErrorException as K } from "@byloth/exceptions"; | ||
const O = { $vuert: Symbol("[vuert]: vuert") }, d = class d { | ||
constructor(e) { | ||
i(this, "_subscribers"); | ||
i(this, "_options"); | ||
this._subscribers = [], this._options = { ...b.DEFAULT_OPTS, ...e }; | ||
this._subscribers = [], this._options = { ...d.DEFAULT_OPTS, ...e }; | ||
} | ||
@@ -22,3 +22,3 @@ static get DEFAULT_OPTS() { | ||
if (!o.length) | ||
throw new d("Unable to handle the emitted alert properly. There wasn't found any supported subscribers."); | ||
throw new u("Unable to handle the emitted alert properly. There wasn't found any supported subscribers."); | ||
return Promise.any(o); | ||
@@ -33,5 +33,4 @@ } | ||
}; | ||
let u = b; | ||
i(u, "VERSION", "1.0.4"); | ||
let j; | ||
i(d, "VERSION", "1.0.4"); | ||
let b = d, j; | ||
const M = (t) => { | ||
@@ -41,3 +40,3 @@ j = t; | ||
install: ({ config: e, provide: s }) => { | ||
const c = new u(t); | ||
const c = new b(t); | ||
M(c), e.globalProperties.$vuert = c, s(O.$vuert, c); | ||
@@ -48,3 +47,3 @@ } | ||
if (!t) | ||
throw new d( | ||
throw new u( | ||
"`useVuert()` was called but there was not active Vuert. Did you forget to install `Vuert` plugin in your App?" | ||
@@ -100,3 +99,3 @@ ); | ||
if (!this._isOpen.value) | ||
throw new d("Unable to close the alert. It has already been closed or not even opened."); | ||
throw new u("Unable to close the alert. It has already been closed or not even opened."); | ||
this._timeoutId !== void 0 && (clearTimeout(this._timeoutId), this._timeoutId = void 0), this._isOpen.value = !1; | ||
@@ -112,3 +111,3 @@ }; | ||
if (this._isOpen.value) | ||
throw new d("Unable to open the alert. It has already been opened."); | ||
throw new u("Unable to open the alert. It has already been opened."); | ||
this._isOpen.value = !0; | ||
@@ -190,5 +189,5 @@ } | ||
X as createVuert, | ||
u as default, | ||
b as default, | ||
_ as useVuert | ||
}; | ||
//# sourceMappingURL=vuert.js.map |
{ | ||
"name": "@byloth/vuert", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "The headless alerts, notifications & popups library for Vue.js craftsmen. ℹ", | ||
@@ -66,18 +66,17 @@ "keywords": [ | ||
"devDependencies": { | ||
"@byloth/eslint-config-typescript": "^2.5.2", | ||
"@byloth/eslint-config-vue": "^2.5.2", | ||
"@byloth/eslint-config-typescript": "^2.6.0", | ||
"@byloth/eslint-config-vue": "^2.6.0", | ||
"@fortawesome/fontawesome-free": "^6.4.0", | ||
"@typescript-eslint/eslint-plugin": "^5.59.9", | ||
"@typescript-eslint/parser": "^5.59.9", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"@vitejs/plugin-vue": "^4.2.3", | ||
"eslint": "^8.42.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-vue": "^9.14.1", | ||
"sass": "^1.63.3", | ||
"typescript": "^5.1.3", | ||
"vite": "^4.3.9", | ||
"vitepress": "^1.0.0-beta.2", | ||
"eslint": "^8.45.0", | ||
"eslint-plugin-vue": "^9.15.1", | ||
"sass": "^1.63.6", | ||
"typescript": "^5.1.6", | ||
"vite": "^4.4.4", | ||
"vitepress": "^1.0.0-beta.5", | ||
"vue-eslint-parser": "^9.3.1", | ||
"vue-tsc": "^1.6.5" | ||
"vue-tsc": "^1.8.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
14
84609
560