@vueuse/integrations
Advanced tools
Comparing version 4.3.5 to 4.3.6
@@ -18,2 +18,3 @@ ;(function (window) { | ||
VueDemi.Vue = Vue | ||
VueDemi.Vue2 = Vue | ||
VueDemi.version = Vue.version | ||
@@ -33,2 +34,3 @@ } else { | ||
VueDemi.Vue = Vue | ||
VueDemi.Vue2 = undefined | ||
VueDemi.version = Vue.version | ||
@@ -35,0 +37,0 @@ VueDemi.set = function(target, key, val) { |
@@ -1,1 +0,1 @@ | ||
!function(e){if(!e.VueDemi){var t={},n=e.Vue;if(n)if("2."===n.version.slice(0,2)){var o=e.VueCompositionAPI;if(o){for(var r in o)t[r]=o[r];t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.Vue=n,t.version=n.version}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.")}else if("3."===n.version.slice(0,2)){for(var r in n)t[r]=n[r];t.isVue2=!1,t.isVue3=!0,t.install=function(){},t.Vue=n,t.version=n.version,t.set=function(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)},t.del=function(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}}else console.error("[vue-demi] Vue version "+n.version+" is unsupported.");else console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`.");e.VueDemi=t}}(window),function(e,t,n,o,r,u,s,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(n),d=i(r),c=i(u),f=i(s),v=i(a);function m(e,{doNotParse:n=!1,autoUpdateDependencies:r=!1}={},u=new d.default){const s=r?[...e||[]]:e;let a=u.getAll({doNotParse:!0});const i=t.ref(0),l=()=>{const e=u.getAll({doNotParse:!0});(function(e,t,n){if(!e)return!0;for(const o of e)if(t[o]!==n[o])return!0;return!1})(s||null,e,a)&&i.value++,a=e};return o.tryOnMounted((()=>{u.addChangeListener(l)})),o.tryOnUnmounted((()=>{u.removeChangeListener(l)})),{get:(...e)=>(r&&s&&!s.includes(e[0])&&s.push(e[0]),i.value,u.get(e[0],Object.assign({doNotParse:n},e[1]))),getAll:(...e)=>(i.value,u.getAll(Object.assign({doNotParse:n},e[0]))),set:(...e)=>u.set(...e),remove:(...e)=>u.remove(...e),addChangeListener:(...e)=>u.addChangeListener(...e),removeChangeListener:(...e)=>u.removeChangeListener(...e)}}e.createCookies=function(e){const t=new d.default(e?e.headers.cookie:null);return(e,{doNotParse:n=!1,autoUpdateDependencies:o=!1}={})=>m(e,{doNotParse:n,autoUpdateDependencies:o},t)},e.useAxios=function(e,...n){let o={},r=l.default;n.length>0&&("request"in n[0]?r=n[0]:o=n[0]),n.length>1&&"request"in n[1]&&(r=n[1]);const u=t.ref(null),s=t.ref(void 0),a=t.ref(!1),i=t.ref(!1),d=t.ref(),c=l.default.CancelToken.source();return r(e,Object.assign(Object.assign({},o),{cancelToken:c.token})).then((e=>{u.value=e,s.value=e.data,a.value=!0})).catch((e=>{d.value=e,a.value=!0})),{response:u,data:s,error:d,finished:a,cancel:e=>{c.cancel(e),i.value=!0},canceled:i}},e.useCookies=m,e.useJwt=function(e,n={}){const o=t.ref(e),{onError:r,fallbackValue:u=null}=n,s=(e,t)=>{try{return c.default(e,t)}catch(e){return null==r||r(e),u}};return{header:t.computed((()=>s(o.value,{header:!0}))),payload:t.computed((()=>s(o.value)))}},e.useNProgress=function(e=null,n){const r=t.isRef(e)?e:t.ref(e),u=t.computed({set:e=>e?f.default.start():f.default.done(),get:()=>o.isNumber(r.value)&&r.value<1});n&&f.default.configure(n);const s=f.default.set;return f.default.set=e=>(r.value=e,s.call(f.default,e)),t.watchEffect((()=>{o.isNumber(r.value)&&s.call(f.default,r.value)})),o.tryOnUnmounted(f.default.remove),{isLoading:u,progress:r,start:f.default.start,done:f.default.done,remove:()=>{r.value=null,f.default.remove()}}},e.useQRCode=function(e,n){const r=t.ref(e),u=t.ref("");return t.watch(r,(async e=>{r.value&&o.isClient&&(u.value=await v.default.toDataURL(e,n))}),{immediate:!0}),u},Object.defineProperty(e,"__esModule",{value:!0})}(this.VueUse=this.VueUse||{},VueDemi,axios,VueUse,UniversalCookie,jwt_decode,nprogress,QRCode); | ||
!function(e){if(!e.VueDemi){var t={},n=e.Vue;if(n)if("2."===n.version.slice(0,2)){var o=e.VueCompositionAPI;if(o){for(var r in o)t[r]=o[r];t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.Vue=n,t.Vue2=n,t.version=n.version}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.")}else if("3."===n.version.slice(0,2)){for(var r in n)t[r]=n[r];t.isVue2=!1,t.isVue3=!0,t.install=function(){},t.Vue=n,t.Vue2=void 0,t.version=n.version,t.set=function(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)},t.del=function(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}}else console.error("[vue-demi] Vue version "+n.version+" is unsupported.");else console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`.");e.VueDemi=t}}(window),function(e,t,n,o,r,u,s,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(n),d=i(r),c=i(u),f=i(s),v=i(a);function m(e,{doNotParse:n=!1,autoUpdateDependencies:r=!1}={},u=new d.default){const s=r?[...e||[]]:e;let a=u.getAll({doNotParse:!0});const i=t.ref(0),l=()=>{const e=u.getAll({doNotParse:!0});(function(e,t,n){if(!e)return!0;for(const o of e)if(t[o]!==n[o])return!0;return!1})(s||null,e,a)&&i.value++,a=e};return o.tryOnMounted((()=>{u.addChangeListener(l)})),o.tryOnUnmounted((()=>{u.removeChangeListener(l)})),{get:(...e)=>(r&&s&&!s.includes(e[0])&&s.push(e[0]),i.value,u.get(e[0],Object.assign({doNotParse:n},e[1]))),getAll:(...e)=>(i.value,u.getAll(Object.assign({doNotParse:n},e[0]))),set:(...e)=>u.set(...e),remove:(...e)=>u.remove(...e),addChangeListener:(...e)=>u.addChangeListener(...e),removeChangeListener:(...e)=>u.removeChangeListener(...e)}}e.createCookies=function(e){const t=new d.default(e?e.headers.cookie:null);return(e,{doNotParse:n=!1,autoUpdateDependencies:o=!1}={})=>m(e,{doNotParse:n,autoUpdateDependencies:o},t)},e.useAxios=function(e,...n){let o={},r=l.default;n.length>0&&("request"in n[0]?r=n[0]:o=n[0]),n.length>1&&"request"in n[1]&&(r=n[1]);const u=t.ref(null),s=t.ref(void 0),a=t.ref(!1),i=t.ref(!1),d=t.ref(),c=l.default.CancelToken.source();return r(e,Object.assign(Object.assign({},o),{cancelToken:c.token})).then((e=>{u.value=e,s.value=e.data,a.value=!0})).catch((e=>{d.value=e,a.value=!0})),{response:u,data:s,error:d,finished:a,cancel:e=>{c.cancel(e),i.value=!0},canceled:i}},e.useCookies=m,e.useJwt=function(e,n={}){const o=t.ref(e),{onError:r,fallbackValue:u=null}=n,s=(e,t)=>{try{return c.default(e,t)}catch(e){return null==r||r(e),u}};return{header:t.computed((()=>s(o.value,{header:!0}))),payload:t.computed((()=>s(o.value)))}},e.useNProgress=function(e=null,n){const r=t.isRef(e)?e:t.ref(e),u=t.computed({set:e=>e?f.default.start():f.default.done(),get:()=>o.isNumber(r.value)&&r.value<1});n&&f.default.configure(n);const s=f.default.set;return f.default.set=e=>(r.value=e,s.call(f.default,e)),t.watchEffect((()=>{o.isNumber(r.value)&&s.call(f.default,r.value)})),o.tryOnUnmounted(f.default.remove),{isLoading:u,progress:r,start:f.default.start,done:f.default.done,remove:()=>{r.value=null,f.default.remove()}}},e.useQRCode=function(e,n){const r=t.ref(e),u=t.ref("");return t.watch(r,(async e=>{r.value&&o.isClient&&(u.value=await v.default.toDataURL(e,n))}),{immediate:!0}),u},Object.defineProperty(e,"__esModule",{value:!0})}(this.VueUse=this.VueUse||{},VueDemi,axios,VueUse,UniversalCookie,jwt_decode,nprogress,QRCode); |
{ | ||
"name": "@vueuse/integrations", | ||
"description": "Integration wrappers for utility libraries", | ||
"version": "4.3.5", | ||
"version": "4.3.6", | ||
"main": "./dist/index.cjs.js", | ||
@@ -30,3 +30,3 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@vueuse/shared": "4.3.5", | ||
"@vueuse/shared": "4.3.6", | ||
"vue-demi": "latest" | ||
@@ -33,0 +33,0 @@ }, |
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
39761
853
+ Added@vueuse/shared@4.3.6(transitive)
- Removed@vueuse/shared@4.3.5(transitive)
Updated@vueuse/shared@4.3.6