@vue/reactivity
Advanced tools
Comparing version 3.0.0-beta.3 to 3.0.0-beta.4
@@ -632,9 +632,7 @@ 'use strict'; | ||
} | ||
function createRef(value, shallow = false) { | ||
if (isRef(value)) { | ||
return value; | ||
function createRef(rawValue, shallow = false) { | ||
if (isRef(rawValue)) { | ||
return rawValue; | ||
} | ||
if (!shallow) { | ||
value = convert(value); | ||
} | ||
let value = shallow ? rawValue : convert(rawValue); | ||
const r = { | ||
@@ -647,4 +645,7 @@ _isRef: true, | ||
set value(newVal) { | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', { newValue: newVal } ); | ||
if (shared.hasChanged(toRaw(newVal), rawValue)) { | ||
rawValue = newVal; | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', { newValue: newVal } ); | ||
} | ||
} | ||
@@ -654,2 +655,5 @@ }; | ||
} | ||
function triggerRef(ref) { | ||
trigger(ref, "set" /* SET */, 'value', { newValue: ref.value } ); | ||
} | ||
function unref(ref) { | ||
@@ -764,2 +768,3 @@ return isRef(ref) ? ref.value : ref; | ||
exports.trigger = trigger; | ||
exports.triggerRef = triggerRef; | ||
exports.unref = unref; |
@@ -579,9 +579,7 @@ 'use strict'; | ||
} | ||
function createRef(value, shallow = false) { | ||
if (isRef(value)) { | ||
return value; | ||
function createRef(rawValue, shallow = false) { | ||
if (isRef(rawValue)) { | ||
return rawValue; | ||
} | ||
if (!shallow) { | ||
value = convert(value); | ||
} | ||
let value = shallow ? rawValue : convert(rawValue); | ||
const r = { | ||
@@ -594,4 +592,7 @@ _isRef: true, | ||
set value(newVal) { | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', void 0); | ||
if (shared.hasChanged(toRaw(newVal), rawValue)) { | ||
rawValue = newVal; | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', void 0); | ||
} | ||
} | ||
@@ -601,2 +602,5 @@ }; | ||
} | ||
function triggerRef(ref) { | ||
trigger(ref, "set" /* SET */, 'value', void 0); | ||
} | ||
function unref(ref) { | ||
@@ -705,2 +709,3 @@ return isRef(ref) ? ref.value : ref; | ||
exports.trigger = trigger; | ||
exports.triggerRef = triggerRef; | ||
exports.unref = unref; |
@@ -90,4 +90,6 @@ | ||
export declare function ref<T>(value: T): T extends Ref ? T : Ref<UnwrapRef<T>>; | ||
export declare function ref<T extends object>(value: T): T extends Ref ? T : Ref<UnwrapRef<T>>; | ||
export declare function ref<T>(value: T): Ref<UnwrapRef<T>>; | ||
export declare function ref<T = any>(): Ref<T | undefined>; | ||
@@ -168,6 +170,8 @@ | ||
export declare function toRefs<T extends object>(object: T): { | ||
export declare type ToRefs<T = any> = { | ||
[K in keyof T]: Ref<T[K]>; | ||
}; | ||
export declare function toRefs<T extends object>(object: T): ToRefs<T>; | ||
export declare function track(target: object, type: TrackOpTypes, key: unknown): void; | ||
@@ -190,2 +194,4 @@ | ||
export declare function triggerRef(ref: Ref): void; | ||
export declare function unref<T>(ref: T): T extends Ref<infer V> ? V : T; | ||
@@ -192,0 +198,0 @@ |
@@ -666,9 +666,7 @@ // Make a map and return a function for checking if a key | ||
} | ||
function createRef(value, shallow = false) { | ||
if (isRef(value)) { | ||
return value; | ||
function createRef(rawValue, shallow = false) { | ||
if (isRef(rawValue)) { | ||
return rawValue; | ||
} | ||
if (!shallow) { | ||
value = convert(value); | ||
} | ||
let value = shallow ? rawValue : convert(rawValue); | ||
const r = { | ||
@@ -681,4 +679,7 @@ _isRef: true, | ||
set value(newVal) { | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', { newValue: newVal } ); | ||
if (hasChanged(toRaw(newVal), rawValue)) { | ||
rawValue = newVal; | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', { newValue: newVal } ); | ||
} | ||
} | ||
@@ -688,2 +689,5 @@ }; | ||
} | ||
function triggerRef(ref) { | ||
trigger(ref, "set" /* SET */, 'value', { newValue: ref.value } ); | ||
} | ||
function unref(ref) { | ||
@@ -774,2 +778,2 @@ return isRef(ref) ? ref.value : ref; | ||
export { ITERATE_KEY, computed, customRef, effect, enableTracking, isProxy, isReactive, isReadonly, isRef, markRaw, pauseTracking, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, unref }; | ||
export { ITERATE_KEY, computed, customRef, effect, enableTracking, isProxy, isReactive, isReadonly, isRef, markRaw, pauseTracking, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, triggerRef, unref }; |
@@ -1,1 +0,1 @@ | ||
function t(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const e={},n=()=>{},r=Object.prototype.hasOwnProperty,o=(t,e)=>r.call(t,e),c=Array.isArray,s=t=>"symbol"==typeof t,u=t=>null!==t&&"object"==typeof t,l=Object.prototype.toString,a=t=>(t=>l.call(t))(t).slice(8,-1),i=(t,e)=>t!==e&&(t==t||e==e),f=new WeakMap,d=[];let h;const p=Symbol(""),g=Symbol("");function v(t,n=e){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const r=function(t,e){const n=function(...r){if(!n.active)return e.scheduler?void 0:t(...r);if(!d.includes(n)){S(n);try{return M(),d.push(n),h=n,t(...r)}finally{d.pop(),k(),h=d[d.length-1]}}};return n.id=w++,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,n);return n.lazy||r(),r}function y(t){t.active&&(S(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let w=0;function S(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let b=!0;const R=[];function m(){R.push(b),b=!1}function M(){R.push(b),b=!0}function k(){const t=R.pop();b=void 0===t||t}function E(t,e,n){if(!b||void 0===h)return;let r=f.get(t);r||f.set(t,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(h)||(o.add(h),h.deps.push(o))}function O(t,e,n,r,o,s){const u=f.get(t);if(!u)return;const l=new Set,a=new Set,i=t=>{t&&t.forEach(t=>{t===h&&b||(t.options.computed?a.add(t):l.add(t))})};if("clear"===e)u.forEach(i);else if("length"===n&&c(t))u.forEach((t,e)=>{("length"===e||e>=r)&&i(t)});else{void 0!==n&&i(u.get(n));const r="add"===e||"delete"===e&&!c(t);(r||"set"===e&&t instanceof Map)&&i(u.get(c(t)?"length":p)),r&&t instanceof Map&&i(u.get(g))}const d=t=>{t.options.scheduler?t.options.scheduler(t):t()};a.forEach(d),l.forEach(d)}const W=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(s)),_=A(),j=A(!1,!0),z=A(!0),P=A(!0,!0),x={};function A(t=!1,e=!1){return function(n,r,l){const a=c(n);if(a&&o(x,r))return Reflect.get(x,r,l);const i=Reflect.get(n,r,l);return s(r)&&W.has(r)?i:e?(!t&&E(n,0,r),i):Rt(i)?a?(!t&&E(n,0,r),i):i.value:(!t&&E(n,0,r),u(i)?t?dt(i):it(i):i)}}["includes","indexOf","lastIndexOf"].forEach(t=>{x[t]=function(...e){const n=wt(this);for(let t=0,e=this.length;t<e;t++)E(n,0,t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(wt)):r}});const K=V(),N=V(!0);function V(t=!1){return function(e,n,r,s){const u=e[n];if(!t&&(r=wt(r),!c(e)&&Rt(u)&&!Rt(r)))return u.value=r,!0;const l=o(e,n),a=Reflect.set(e,n,r,s);return e===wt(s)&&(l?i(r,u)&&O(e,"set",n,r):O(e,"add",n,r)),a}}function C(t,e){const n=Reflect.has(t,e);return E(t,0,e),n}function F(t){return E(t,0,p),Reflect.ownKeys(t)}const I={get:_,set:K,deleteProperty:function(t,e){const n=o(t,e),r=Reflect.deleteProperty(t,e);return r&&n&&O(t,"delete",e,void 0),r},has:C,ownKeys:F},L={get:z,has:C,ownKeys:F,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},q={...I,get:j,set:N},B={...L,get:P},D=t=>u(t)?it(t):t,G=t=>u(t)?dt(t):t,H=t=>Reflect.getPrototypeOf(t);function J(t,e,n){t=wt(t);const r=wt(e);e!==r&&E(t,0,e),E(t,0,r);const{has:o,get:c}=H(t);return o.call(t,e)?n(c.call(t,e)):o.call(t,r)?n(c.call(t,r)):void 0}function Q(t){const e=wt(this),n=wt(t);t!==n&&E(e,0,t),E(e,0,n);const r=H(e).has;return r.call(e,t)||r.call(e,n)}function T(t){return E(t=wt(t),0,p),Reflect.get(H(t),"size",t)}function U(t){return function(e,n){const r=this,o=wt(r),c=t?G:D;return!t&&E(o,0,p),H(o).forEach.call(o,(function(t,n){return e.call(r,c(t),c(n),r)}),n)}}function X(t,e){return function(...n){const r=wt(this),o=r instanceof Map,c="entries"===t||t===Symbol.iterator&&o,s="keys"===t&&o,u=H(r)[t].apply(r,n),l=e?G:D;return!e&&E(r,0,s?g:p),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:c?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function Y(t){return function(...e){return"delete"!==t&&this}}const Z={get(t){return J(this,t,D)},get size(){return T(this)},has:Q,add:function(t){t=wt(t);const e=wt(this),n=H(e),r=n.has.call(e,t),o=n.add.call(e,t);return r||O(e,"add",t,t),o},set:function(t,e){e=wt(e);const n=wt(this),{has:r,get:o,set:c}=H(n);let s=r.call(n,t);s||(t=wt(t),s=r.call(n,t));const u=o.call(n,t),l=c.call(n,t,e);return s?i(e,u)&&O(n,"set",t,e):O(n,"add",t,e),l},delete:function(t){const e=wt(this),{has:n,get:r,delete:o}=H(e);let c=n.call(e,t);c||(t=wt(t),c=n.call(e,t)),r&&r.call(e,t);const s=o.call(e,t);return c&&O(e,"delete",t,void 0),s},clear:function(){const t=wt(this),e=0!==t.size,n=H(t).clear.call(t);return e&&O(t,"clear",void 0,void 0),n},forEach:U(!1)},$={get(t){return J(this,t,G)},get size(){return T(this)},has:Q,add:Y("add"),set:Y("set"),delete:Y("delete"),clear:Y("clear"),forEach:U(!0)};function tt(t){return(e,n,r)=>Reflect.get(o(t,n)&&n in e?t:e,n,r)}["keys","values","entries",Symbol.iterator].forEach(t=>{Z[t]=X(t,!1),$[t]=X(t,!0)});const et={get:tt(Z)},nt={get:tt($)},rt=new WeakMap,ot=new WeakMap,ct=new WeakMap,st=new WeakMap,ut=new WeakSet,lt=new Set([Set,Map,WeakMap,WeakSet]),at=t("Object,Array,Map,Set,WeakMap,WeakSet");function it(t){return st.has(t)?t:pt(t,rt,ot,I,et)}function ft(t){return pt(t,rt,ot,q,et)}function dt(t){return pt(t,ct,st,L,nt)}function ht(t){return pt(t,ct,st,B,nt)}function pt(t,e,n,r,o){if(!u(t))return t;let c=e.get(t);if(void 0!==c)return c;if(n.has(t))return t;if((s=t)._isVue||s._isVNode||!at(a(s))||ut.has(s)||Object.isFrozen(s))return t;var s;const l=lt.has(t.constructor)?o:r;return c=new Proxy(t,l),e.set(t,c),n.set(c,t),c}function gt(t){return t=st.get(t)||t,ot.has(t)}function vt(t){return st.has(t)}function yt(t){return st.has(t)||ot.has(t)}function wt(t){return t=st.get(t)||t,ot.get(t)||t}function St(t){return ut.add(t),t}const bt=t=>u(t)?it(t):t;function Rt(t){return!!t&&!0===t._isRef}function mt(t){return kt(t)}function Mt(t){return kt(t,!0)}function kt(t,e=!1){if(Rt(t))return t;e||(t=bt(t));const n={_isRef:!0,get value(){return E(n,0,"value"),t},set value(r){t=e?r:bt(r),O(n,"set","value",void 0)}};return n}function Et(t){return Rt(t)?t.value:t}function Ot(t){const{get:e,set:n}=t(()=>E(r,0,"value"),()=>O(r,"set","value")),r={_isRef:!0,get value(){return e()},set value(t){n(t)}};return r}function Wt(t){const e={};for(const n in t)e[n]=_t(t,n);return e}function _t(t,e){return{_isRef:!0,get value(){return t[e]},set value(n){t[e]=n}}}function jt(t){let e,r;"function"==typeof t?(e=t,r=n):(e=t.get,r=t.set);let o,c,s=!0;const u=v(e,{lazy:!0,computed:!0,scheduler:()=>{s||(s=!0,O(c,"set","value"))}});return c={_isRef:!0,effect:u,get value(){return s&&(o=u(),s=!1),E(c,0,"value"),o},set value(t){r(t)}},c}export{p as ITERATE_KEY,jt as computed,Ot as customRef,v as effect,M as enableTracking,yt as isProxy,gt as isReactive,vt as isReadonly,Rt as isRef,St as markRaw,m as pauseTracking,it as reactive,dt as readonly,mt as ref,k as resetTracking,ft as shallowReactive,ht as shallowReadonly,Mt as shallowRef,y as stop,wt as toRaw,_t as toRef,Wt as toRefs,E as track,O as trigger,Et as unref}; | ||
function t(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}const e={},n=()=>{},r=Object.prototype.hasOwnProperty,o=(t,e)=>r.call(t,e),c=Array.isArray,u=t=>"symbol"==typeof t,s=t=>null!==t&&"object"==typeof t,l=Object.prototype.toString,a=t=>(t=>l.call(t))(t).slice(8,-1),i=(t,e)=>t!==e&&(t==t||e==e),f=new WeakMap,d=[];let h;const p=Symbol(""),g=Symbol("");function v(t,n=e){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const r=function(t,e){const n=function(...r){if(!n.active)return e.scheduler?void 0:t(...r);if(!d.includes(n)){S(n);try{return M(),d.push(n),h=n,t(...r)}finally{d.pop(),k(),h=d[d.length-1]}}};return n.id=w++,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,n);return n.lazy||r(),r}function y(t){t.active&&(S(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let w=0;function S(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let b=!0;const R=[];function m(){R.push(b),b=!1}function M(){R.push(b),b=!0}function k(){const t=R.pop();b=void 0===t||t}function E(t,e,n){if(!b||void 0===h)return;let r=f.get(t);r||f.set(t,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(h)||(o.add(h),h.deps.push(o))}function O(t,e,n,r,o,u){const s=f.get(t);if(!s)return;const l=new Set,a=new Set,i=t=>{t&&t.forEach(t=>{t===h&&b||(t.options.computed?a.add(t):l.add(t))})};if("clear"===e)s.forEach(i);else if("length"===n&&c(t))s.forEach((t,e)=>{("length"===e||e>=r)&&i(t)});else{void 0!==n&&i(s.get(n));const r="add"===e||"delete"===e&&!c(t);(r||"set"===e&&t instanceof Map)&&i(s.get(c(t)?"length":p)),r&&t instanceof Map&&i(s.get(g))}const d=t=>{t.options.scheduler?t.options.scheduler(t):t()};a.forEach(d),l.forEach(d)}const W=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(u)),_=A(),j=A(!1,!0),z=A(!0),P=A(!0,!0),x={};function A(t=!1,e=!1){return function(n,r,l){const a=c(n);if(a&&o(x,r))return Reflect.get(x,r,l);const i=Reflect.get(n,r,l);return u(r)&&W.has(r)?i:e?(!t&&E(n,0,r),i):Rt(i)?a?(!t&&E(n,0,r),i):i.value:(!t&&E(n,0,r),s(i)?t?dt(i):it(i):i)}}["includes","indexOf","lastIndexOf"].forEach(t=>{x[t]=function(...e){const n=wt(this);for(let t=0,e=this.length;t<e;t++)E(n,0,t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(wt)):r}});const K=V(),N=V(!0);function V(t=!1){return function(e,n,r,u){const s=e[n];if(!t&&(r=wt(r),!c(e)&&Rt(s)&&!Rt(r)))return s.value=r,!0;const l=o(e,n),a=Reflect.set(e,n,r,u);return e===wt(u)&&(l?i(r,s)&&O(e,"set",n,r):O(e,"add",n,r)),a}}function C(t,e){const n=Reflect.has(t,e);return E(t,0,e),n}function F(t){return E(t,0,p),Reflect.ownKeys(t)}const I={get:_,set:K,deleteProperty:function(t,e){const n=o(t,e),r=Reflect.deleteProperty(t,e);return r&&n&&O(t,"delete",e,void 0),r},has:C,ownKeys:F},L={get:z,has:C,ownKeys:F,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},q={...I,get:j,set:N},B={...L,get:P},D=t=>s(t)?it(t):t,G=t=>s(t)?dt(t):t,H=t=>Reflect.getPrototypeOf(t);function J(t,e,n){t=wt(t);const r=wt(e);e!==r&&E(t,0,e),E(t,0,r);const{has:o,get:c}=H(t);return o.call(t,e)?n(c.call(t,e)):o.call(t,r)?n(c.call(t,r)):void 0}function Q(t){const e=wt(this),n=wt(t);t!==n&&E(e,0,t),E(e,0,n);const r=H(e).has;return r.call(e,t)||r.call(e,n)}function T(t){return E(t=wt(t),0,p),Reflect.get(H(t),"size",t)}function U(t){return function(e,n){const r=this,o=wt(r),c=t?G:D;return!t&&E(o,0,p),H(o).forEach.call(o,(function(t,n){return e.call(r,c(t),c(n),r)}),n)}}function X(t,e){return function(...n){const r=wt(this),o=r instanceof Map,c="entries"===t||t===Symbol.iterator&&o,u="keys"===t&&o,s=H(r)[t].apply(r,n),l=e?G:D;return!e&&E(r,0,u?g:p),{next(){const{value:t,done:e}=s.next();return e?{value:t,done:e}:{value:c?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function Y(t){return function(...e){return"delete"!==t&&this}}const Z={get(t){return J(this,t,D)},get size(){return T(this)},has:Q,add:function(t){t=wt(t);const e=wt(this),n=H(e),r=n.has.call(e,t),o=n.add.call(e,t);return r||O(e,"add",t,t),o},set:function(t,e){e=wt(e);const n=wt(this),{has:r,get:o,set:c}=H(n);let u=r.call(n,t);u||(t=wt(t),u=r.call(n,t));const s=o.call(n,t),l=c.call(n,t,e);return u?i(e,s)&&O(n,"set",t,e):O(n,"add",t,e),l},delete:function(t){const e=wt(this),{has:n,get:r,delete:o}=H(e);let c=n.call(e,t);c||(t=wt(t),c=n.call(e,t)),r&&r.call(e,t);const u=o.call(e,t);return c&&O(e,"delete",t,void 0),u},clear:function(){const t=wt(this),e=0!==t.size,n=H(t).clear.call(t);return e&&O(t,"clear",void 0,void 0),n},forEach:U(!1)},$={get(t){return J(this,t,G)},get size(){return T(this)},has:Q,add:Y("add"),set:Y("set"),delete:Y("delete"),clear:Y("clear"),forEach:U(!0)};function tt(t){return(e,n,r)=>Reflect.get(o(t,n)&&n in e?t:e,n,r)}["keys","values","entries",Symbol.iterator].forEach(t=>{Z[t]=X(t,!1),$[t]=X(t,!0)});const et={get:tt(Z)},nt={get:tt($)},rt=new WeakMap,ot=new WeakMap,ct=new WeakMap,ut=new WeakMap,st=new WeakSet,lt=new Set([Set,Map,WeakMap,WeakSet]),at=t("Object,Array,Map,Set,WeakMap,WeakSet");function it(t){return ut.has(t)?t:pt(t,rt,ot,I,et)}function ft(t){return pt(t,rt,ot,q,et)}function dt(t){return pt(t,ct,ut,L,nt)}function ht(t){return pt(t,ct,ut,B,nt)}function pt(t,e,n,r,o){if(!s(t))return t;let c=e.get(t);if(void 0!==c)return c;if(n.has(t))return t;if((u=t)._isVue||u._isVNode||!at(a(u))||st.has(u)||Object.isFrozen(u))return t;var u;const l=lt.has(t.constructor)?o:r;return c=new Proxy(t,l),e.set(t,c),n.set(c,t),c}function gt(t){return t=ut.get(t)||t,ot.has(t)}function vt(t){return ut.has(t)}function yt(t){return ut.has(t)||ot.has(t)}function wt(t){return t=ut.get(t)||t,ot.get(t)||t}function St(t){return st.add(t),t}const bt=t=>s(t)?it(t):t;function Rt(t){return!!t&&!0===t._isRef}function mt(t){return kt(t)}function Mt(t){return kt(t,!0)}function kt(t,e=!1){if(Rt(t))return t;let n=e?t:bt(t);const r={_isRef:!0,get value(){return E(r,0,"value"),n},set value(o){i(wt(o),t)&&(t=o,n=e?o:bt(o),O(r,"set","value",void 0))}};return r}function Et(t){O(t,"set","value",void 0)}function Ot(t){return Rt(t)?t.value:t}function Wt(t){const{get:e,set:n}=t(()=>E(r,0,"value"),()=>O(r,"set","value")),r={_isRef:!0,get value(){return e()},set value(t){n(t)}};return r}function _t(t){const e={};for(const n in t)e[n]=jt(t,n);return e}function jt(t,e){return{_isRef:!0,get value(){return t[e]},set value(n){t[e]=n}}}function zt(t){let e,r;"function"==typeof t?(e=t,r=n):(e=t.get,r=t.set);let o,c,u=!0;const s=v(e,{lazy:!0,computed:!0,scheduler:()=>{u||(u=!0,O(c,"set","value"))}});return c={_isRef:!0,effect:s,get value(){return u&&(o=s(),u=!1),E(c,0,"value"),o},set value(t){r(t)}},c}export{p as ITERATE_KEY,zt as computed,Wt as customRef,v as effect,M as enableTracking,yt as isProxy,gt as isReactive,vt as isReadonly,Rt as isRef,St as markRaw,m as pauseTracking,it as reactive,dt as readonly,mt as ref,k as resetTracking,ft as shallowReactive,ht as shallowReadonly,Mt as shallowRef,y as stop,wt as toRaw,jt as toRef,_t as toRefs,E as track,O as trigger,Et as triggerRef,Ot as unref}; |
@@ -629,9 +629,7 @@ import { EMPTY_OBJ, isArray, isSymbol, hasOwn, isObject, hasChanged, capitalize, toRawType, makeMap, isFunction, NOOP } from '@vue/shared'; | ||
} | ||
function createRef(value, shallow = false) { | ||
if (isRef(value)) { | ||
return value; | ||
function createRef(rawValue, shallow = false) { | ||
if (isRef(rawValue)) { | ||
return rawValue; | ||
} | ||
if (!shallow) { | ||
value = convert(value); | ||
} | ||
let value = shallow ? rawValue : convert(rawValue); | ||
const r = { | ||
@@ -644,4 +642,7 @@ _isRef: true, | ||
set value(newVal) { | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', (process.env.NODE_ENV !== 'production') ? { newValue: newVal } : void 0); | ||
if (hasChanged(toRaw(newVal), rawValue)) { | ||
rawValue = newVal; | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', (process.env.NODE_ENV !== 'production') ? { newValue: newVal } : void 0); | ||
} | ||
} | ||
@@ -651,2 +652,5 @@ }; | ||
} | ||
function triggerRef(ref) { | ||
trigger(ref, "set" /* SET */, 'value', (process.env.NODE_ENV !== 'production') ? { newValue: ref.value } : void 0); | ||
} | ||
function unref(ref) { | ||
@@ -738,2 +742,2 @@ return isRef(ref) ? ref.value : ref; | ||
export { ITERATE_KEY, computed, customRef, effect, enableTracking, isProxy, isReactive, isReadonly, isRef, markRaw, pauseTracking, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, unref }; | ||
export { ITERATE_KEY, computed, customRef, effect, enableTracking, isProxy, isReactive, isReadonly, isRef, markRaw, pauseTracking, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, triggerRef, unref }; |
@@ -669,9 +669,7 @@ var VueReactivity = (function (exports) { | ||
} | ||
function createRef(value, shallow = false) { | ||
if (isRef(value)) { | ||
return value; | ||
function createRef(rawValue, shallow = false) { | ||
if (isRef(rawValue)) { | ||
return rawValue; | ||
} | ||
if (!shallow) { | ||
value = convert(value); | ||
} | ||
let value = shallow ? rawValue : convert(rawValue); | ||
const r = { | ||
@@ -684,4 +682,7 @@ _isRef: true, | ||
set value(newVal) { | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', { newValue: newVal } ); | ||
if (hasChanged(toRaw(newVal), rawValue)) { | ||
rawValue = newVal; | ||
value = shallow ? newVal : convert(newVal); | ||
trigger(r, "set" /* SET */, 'value', { newValue: newVal } ); | ||
} | ||
} | ||
@@ -691,2 +692,5 @@ }; | ||
} | ||
function triggerRef(ref) { | ||
trigger(ref, "set" /* SET */, 'value', { newValue: ref.value } ); | ||
} | ||
function unref(ref) { | ||
@@ -801,2 +805,3 @@ return isRef(ref) ? ref.value : ref; | ||
exports.trigger = trigger; | ||
exports.triggerRef = triggerRef; | ||
exports.unref = unref; | ||
@@ -803,0 +808,0 @@ |
@@ -1,1 +0,1 @@ | ||
var VueReactivity=function(e){"use strict";function t(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n={},r=()=>{},o=Object.prototype.hasOwnProperty,c=(e,t)=>o.call(e,t),s=Array.isArray,u=e=>"symbol"==typeof e,a=e=>null!==e&&"object"==typeof e,i=Object.prototype.toString,l=e=>(e=>i.call(e))(e).slice(8,-1),f=(e,t)=>e!==t&&(e==e||t==t),d=new WeakMap,h=[];let p;const g=Symbol(""),v=Symbol("");function y(e,t=n){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const r=function(e,t){const n=function(...r){if(!n.active)return t.scheduler?void 0:e(...r);if(!h.includes(n)){w(n);try{return b(),h.push(n),p=n,e(...r)}finally{h.pop(),m(),p=h[h.length-1]}}};return n.id=R++,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||r(),r}let R=0;function w(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let S=!0;const k=[];function b(){k.push(S),S=!0}function m(){const e=k.pop();S=void 0===e||e}function E(e,t,n){if(!S||void 0===p)return;let r=d.get(e);r||d.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(p)||(o.add(p),p.deps.push(o))}function M(e,t,n,r,o,c){const u=d.get(e);if(!u)return;const a=new Set,i=new Set,l=e=>{e&&e.forEach(e=>{e===p&&S||(e.options.computed?i.add(e):a.add(e))})};if("clear"===t)u.forEach(l);else if("length"===n&&s(e))u.forEach((e,t)=>{("length"===t||t>=r)&&l(e)});else{void 0!==n&&l(u.get(n));const r="add"===t||"delete"===t&&!s(e);(r||"set"===t&&e instanceof Map)&&l(u.get(s(e)?"length":g)),r&&e instanceof Map&&l(u.get(v))}const f=e=>{e.options.scheduler?e.options.scheduler(e):e()};i.forEach(f),a.forEach(f)}const O=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(u)),W=x(),_=x(!1,!0),P=x(!0),j=x(!0,!0),z={};function x(e=!1,t=!1){return function(n,r,o){const i=s(n);if(i&&c(z,r))return Reflect.get(z,r,o);const l=Reflect.get(n,r,o);return u(r)&&O.has(r)?l:t?(!e&&E(n,0,r),l):pe(l)?i?(!e&&E(n,0,r),l):l.value:(!e&&E(n,0,r),a(l)?e?le(l):ie(l):l)}}["includes","indexOf","lastIndexOf"].forEach(e=>{z[e]=function(...t){const n=de(this);for(let e=0,t=this.length;e<t;e++)E(n,0,e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(de)):r}});const T=K(),A=K(!0);function K(e=!1){return function(t,n,r,o){const u=t[n];if(!e&&(r=de(r),!s(t)&&pe(u)&&!pe(r)))return u.value=r,!0;const a=c(t,n),i=Reflect.set(t,n,r,o);return t===de(o)&&(a?f(r,u)&&M(t,"set",n,r):M(t,"add",n,r)),i}}function V(e,t){const n=Reflect.has(e,t);return E(e,0,t),n}function I(e){return E(e,0,g),Reflect.ownKeys(e)}const N={get:W,set:T,deleteProperty:function(e,t){const n=c(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&M(e,"delete",t,void 0),r},has:V,ownKeys:I},C={get:P,has:V,ownKeys:I,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},F={...N,get:_,set:A},L={...C,get:j},Y=e=>a(e)?ie(e):e,q=e=>a(e)?le(e):e,B=e=>Reflect.getPrototypeOf(e);function D(e,t,n){e=de(e);const r=de(t);t!==r&&E(e,0,t),E(e,0,r);const{has:o,get:c}=B(e);return o.call(e,t)?n(c.call(e,t)):o.call(e,r)?n(c.call(e,r)):void 0}function G(e){const t=de(this),n=de(e);e!==n&&E(t,0,e),E(t,0,n);const r=B(t).has;return r.call(t,e)||r.call(t,n)}function H(e){return E(e=de(e),0,g),Reflect.get(B(e),"size",e)}function J(e){return function(t,n){const r=this,o=de(r),c=e?q:Y;return!e&&E(o,0,g),B(o).forEach.call(o,(function(e,n){return t.call(r,c(e),c(n),r)}),n)}}function Q(e,t){return function(...n){const r=de(this),o=r instanceof Map,c="entries"===e||e===Symbol.iterator&&o,s="keys"===e&&o,u=B(r)[e].apply(r,n),a=t?q:Y;return!t&&E(r,0,s?v:g),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function U(e){return function(...t){return"delete"!==e&&this}}const X={get(e){return D(this,e,Y)},get size(){return H(this)},has:G,add:function(e){e=de(e);const t=de(this),n=B(t),r=n.has.call(t,e),o=n.add.call(t,e);return r||M(t,"add",e,e),o},set:function(e,t){t=de(t);const n=de(this),{has:r,get:o,set:c}=B(n);let s=r.call(n,e);s||(e=de(e),s=r.call(n,e));const u=o.call(n,e),a=c.call(n,e,t);return s?f(t,u)&&M(n,"set",e,t):M(n,"add",e,t),a},delete:function(e){const t=de(this),{has:n,get:r,delete:o}=B(t);let c=n.call(t,e);c||(e=de(e),c=n.call(t,e)),r&&r.call(t,e);const s=o.call(t,e);return c&&M(t,"delete",e,void 0),s},clear:function(){const e=de(this),t=0!==e.size,n=B(e).clear.call(e);return t&&M(e,"clear",void 0,void 0),n},forEach:J(!1)},Z={get(e){return D(this,e,q)},get size(){return H(this)},has:G,add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:J(!0)};function $(e){return(t,n,r)=>Reflect.get(c(e,n)&&n in t?e:t,n,r)}["keys","values","entries",Symbol.iterator].forEach(e=>{X[e]=Q(e,!1),Z[e]=Q(e,!0)});const ee={get:$(X)},te={get:$(Z)},ne=new WeakMap,re=new WeakMap,oe=new WeakMap,ce=new WeakMap,se=new WeakSet,ue=new Set([Set,Map,WeakMap,WeakSet]),ae=t("Object,Array,Map,Set,WeakMap,WeakSet");function ie(e){return ce.has(e)?e:fe(e,ne,re,N,ee)}function le(e){return fe(e,oe,ce,C,te)}function fe(e,t,n,r,o){if(!a(e))return e;let c=t.get(e);if(void 0!==c)return c;if(n.has(e))return e;if((s=e)._isVue||s._isVNode||!ae(l(s))||se.has(s)||Object.isFrozen(s))return e;var s;const u=ue.has(e.constructor)?o:r;return c=new Proxy(e,u),t.set(e,c),n.set(c,e),c}function de(e){return e=ce.get(e)||e,re.get(e)||e}const he=e=>a(e)?ie(e):e;function pe(e){return!!e&&!0===e._isRef}function ge(e,t=!1){if(pe(e))return e;t||(e=he(e));const n={_isRef:!0,get value(){return E(n,0,"value"),e},set value(r){e=t?r:he(r),M(n,"set","value",void 0)}};return n}function ve(e,t){return{_isRef:!0,get value(){return e[t]},set value(n){e[t]=n}}}return e.ITERATE_KEY=g,e.computed=function(e){let t,n;"function"==typeof e?(t=e,n=r):(t=e.get,n=e.set);let o,c,s=!0;const u=y(t,{lazy:!0,computed:!0,scheduler:()=>{s||(s=!0,M(c,"set","value"))}});return c={_isRef:!0,effect:u,get value(){return s&&(o=u(),s=!1),E(c,0,"value"),o},set value(e){n(e)}},c},e.customRef=function(e){const{get:t,set:n}=e(()=>E(r,0,"value"),()=>M(r,"set","value")),r={_isRef:!0,get value(){return t()},set value(e){n(e)}};return r},e.effect=y,e.enableTracking=b,e.isProxy=function(e){return ce.has(e)||re.has(e)},e.isReactive=function(e){return e=ce.get(e)||e,re.has(e)},e.isReadonly=function(e){return ce.has(e)},e.isRef=pe,e.markRaw=function(e){return se.add(e),e},e.pauseTracking=function(){k.push(S),S=!1},e.reactive=ie,e.readonly=le,e.ref=function(e){return ge(e)},e.resetTracking=m,e.shallowReactive=function(e){return fe(e,ne,re,F,ee)},e.shallowReadonly=function(e){return fe(e,oe,ce,L,te)},e.shallowRef=function(e){return ge(e,!0)},e.stop=function(e){e.active&&(w(e),e.options.onStop&&e.options.onStop(),e.active=!1)},e.toRaw=de,e.toRef=ve,e.toRefs=function(e){const t={};for(const n in e)t[n]=ve(e,n);return t},e.track=E,e.trigger=M,e.unref=function(e){return pe(e)?e.value:e},e}({}); | ||
var VueReactivity=function(e){"use strict";function t(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const n={},r=()=>{},o=Object.prototype.hasOwnProperty,c=(e,t)=>o.call(e,t),s=Array.isArray,u=e=>"symbol"==typeof e,a=e=>null!==e&&"object"==typeof e,i=Object.prototype.toString,l=e=>(e=>i.call(e))(e).slice(8,-1),f=(e,t)=>e!==t&&(e==e||t==t),d=new WeakMap,h=[];let p;const g=Symbol(""),v=Symbol("");function y(e,t=n){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const r=function(e,t){const n=function(...r){if(!n.active)return t.scheduler?void 0:e(...r);if(!h.includes(n)){w(n);try{return b(),h.push(n),p=n,e(...r)}finally{h.pop(),m(),p=h[h.length-1]}}};return n.id=R++,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||r(),r}let R=0;function w(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let S=!0;const k=[];function b(){k.push(S),S=!0}function m(){const e=k.pop();S=void 0===e||e}function E(e,t,n){if(!S||void 0===p)return;let r=d.get(e);r||d.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(p)||(o.add(p),p.deps.push(o))}function M(e,t,n,r,o,c){const u=d.get(e);if(!u)return;const a=new Set,i=new Set,l=e=>{e&&e.forEach(e=>{e===p&&S||(e.options.computed?i.add(e):a.add(e))})};if("clear"===t)u.forEach(l);else if("length"===n&&s(e))u.forEach((e,t)=>{("length"===t||t>=r)&&l(e)});else{void 0!==n&&l(u.get(n));const r="add"===t||"delete"===t&&!s(e);(r||"set"===t&&e instanceof Map)&&l(u.get(s(e)?"length":g)),r&&e instanceof Map&&l(u.get(v))}const f=e=>{e.options.scheduler?e.options.scheduler(e):e()};i.forEach(f),a.forEach(f)}const O=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(u)),W=x(),_=x(!1,!0),P=x(!0),j=x(!0,!0),z={};function x(e=!1,t=!1){return function(n,r,o){const i=s(n);if(i&&c(z,r))return Reflect.get(z,r,o);const l=Reflect.get(n,r,o);return u(r)&&O.has(r)?l:t?(!e&&E(n,0,r),l):pe(l)?i?(!e&&E(n,0,r),l):l.value:(!e&&E(n,0,r),a(l)?e?le(l):ie(l):l)}}["includes","indexOf","lastIndexOf"].forEach(e=>{z[e]=function(...t){const n=de(this);for(let e=0,t=this.length;e<t;e++)E(n,0,e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(de)):r}});const T=K(),A=K(!0);function K(e=!1){return function(t,n,r,o){const u=t[n];if(!e&&(r=de(r),!s(t)&&pe(u)&&!pe(r)))return u.value=r,!0;const a=c(t,n),i=Reflect.set(t,n,r,o);return t===de(o)&&(a?f(r,u)&&M(t,"set",n,r):M(t,"add",n,r)),i}}function V(e,t){const n=Reflect.has(e,t);return E(e,0,t),n}function I(e){return E(e,0,g),Reflect.ownKeys(e)}const N={get:W,set:T,deleteProperty:function(e,t){const n=c(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&M(e,"delete",t,void 0),r},has:V,ownKeys:I},C={get:P,has:V,ownKeys:I,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},F={...N,get:_,set:A},L={...C,get:j},Y=e=>a(e)?ie(e):e,q=e=>a(e)?le(e):e,B=e=>Reflect.getPrototypeOf(e);function D(e,t,n){e=de(e);const r=de(t);t!==r&&E(e,0,t),E(e,0,r);const{has:o,get:c}=B(e);return o.call(e,t)?n(c.call(e,t)):o.call(e,r)?n(c.call(e,r)):void 0}function G(e){const t=de(this),n=de(e);e!==n&&E(t,0,e),E(t,0,n);const r=B(t).has;return r.call(t,e)||r.call(t,n)}function H(e){return E(e=de(e),0,g),Reflect.get(B(e),"size",e)}function J(e){return function(t,n){const r=this,o=de(r),c=e?q:Y;return!e&&E(o,0,g),B(o).forEach.call(o,(function(e,n){return t.call(r,c(e),c(n),r)}),n)}}function Q(e,t){return function(...n){const r=de(this),o=r instanceof Map,c="entries"===e||e===Symbol.iterator&&o,s="keys"===e&&o,u=B(r)[e].apply(r,n),a=t?q:Y;return!t&&E(r,0,s?v:g),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function U(e){return function(...t){return"delete"!==e&&this}}const X={get(e){return D(this,e,Y)},get size(){return H(this)},has:G,add:function(e){e=de(e);const t=de(this),n=B(t),r=n.has.call(t,e),o=n.add.call(t,e);return r||M(t,"add",e,e),o},set:function(e,t){t=de(t);const n=de(this),{has:r,get:o,set:c}=B(n);let s=r.call(n,e);s||(e=de(e),s=r.call(n,e));const u=o.call(n,e),a=c.call(n,e,t);return s?f(t,u)&&M(n,"set",e,t):M(n,"add",e,t),a},delete:function(e){const t=de(this),{has:n,get:r,delete:o}=B(t);let c=n.call(t,e);c||(e=de(e),c=n.call(t,e)),r&&r.call(t,e);const s=o.call(t,e);return c&&M(t,"delete",e,void 0),s},clear:function(){const e=de(this),t=0!==e.size,n=B(e).clear.call(e);return t&&M(e,"clear",void 0,void 0),n},forEach:J(!1)},Z={get(e){return D(this,e,q)},get size(){return H(this)},has:G,add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:J(!0)};function $(e){return(t,n,r)=>Reflect.get(c(e,n)&&n in t?e:t,n,r)}["keys","values","entries",Symbol.iterator].forEach(e=>{X[e]=Q(e,!1),Z[e]=Q(e,!0)});const ee={get:$(X)},te={get:$(Z)},ne=new WeakMap,re=new WeakMap,oe=new WeakMap,ce=new WeakMap,se=new WeakSet,ue=new Set([Set,Map,WeakMap,WeakSet]),ae=t("Object,Array,Map,Set,WeakMap,WeakSet");function ie(e){return ce.has(e)?e:fe(e,ne,re,N,ee)}function le(e){return fe(e,oe,ce,C,te)}function fe(e,t,n,r,o){if(!a(e))return e;let c=t.get(e);if(void 0!==c)return c;if(n.has(e))return e;if((s=e)._isVue||s._isVNode||!ae(l(s))||se.has(s)||Object.isFrozen(s))return e;var s;const u=ue.has(e.constructor)?o:r;return c=new Proxy(e,u),t.set(e,c),n.set(c,e),c}function de(e){return e=ce.get(e)||e,re.get(e)||e}const he=e=>a(e)?ie(e):e;function pe(e){return!!e&&!0===e._isRef}function ge(e,t=!1){if(pe(e))return e;let n=t?e:he(e);const r={_isRef:!0,get value(){return E(r,0,"value"),n},set value(o){f(de(o),e)&&(e=o,n=t?o:he(o),M(r,"set","value",void 0))}};return r}function ve(e,t){return{_isRef:!0,get value(){return e[t]},set value(n){e[t]=n}}}return e.ITERATE_KEY=g,e.computed=function(e){let t,n;"function"==typeof e?(t=e,n=r):(t=e.get,n=e.set);let o,c,s=!0;const u=y(t,{lazy:!0,computed:!0,scheduler:()=>{s||(s=!0,M(c,"set","value"))}});return c={_isRef:!0,effect:u,get value(){return s&&(o=u(),s=!1),E(c,0,"value"),o},set value(e){n(e)}},c},e.customRef=function(e){const{get:t,set:n}=e(()=>E(r,0,"value"),()=>M(r,"set","value")),r={_isRef:!0,get value(){return t()},set value(e){n(e)}};return r},e.effect=y,e.enableTracking=b,e.isProxy=function(e){return ce.has(e)||re.has(e)},e.isReactive=function(e){return e=ce.get(e)||e,re.has(e)},e.isReadonly=function(e){return ce.has(e)},e.isRef=pe,e.markRaw=function(e){return se.add(e),e},e.pauseTracking=function(){k.push(S),S=!1},e.reactive=ie,e.readonly=le,e.ref=function(e){return ge(e)},e.resetTracking=m,e.shallowReactive=function(e){return fe(e,ne,re,F,ee)},e.shallowReadonly=function(e){return fe(e,oe,ce,L,te)},e.shallowRef=function(e){return ge(e,!0)},e.stop=function(e){e.active&&(w(e),e.options.onStop&&e.options.onStop(),e.active=!1)},e.toRaw=de,e.toRef=ve,e.toRefs=function(e){const t={};for(const n in e)t[n]=ve(e,n);return t},e.track=E,e.trigger=M,e.triggerRef=function(e){M(e,"set","value",void 0)},e.unref=function(e){return pe(e)?e.value:e},e}({}); |
{ | ||
"name": "@vue/reactivity", | ||
"version": "3.0.0-beta.3", | ||
"version": "3.0.0-beta.4", | ||
"description": "@vue/reactivity", | ||
@@ -38,4 +38,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.0-beta.3" | ||
"@vue/shared": "3.0.0-beta.4" | ||
} | ||
} |
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
149742
3971
16
+ Added@vue/shared@3.0.0-beta.4(transitive)
- Removed@vue/shared@3.0.0-beta.3(transitive)
Updated@vue/shared@3.0.0-beta.4