@vue/reactivity
Advanced tools
Comparing version 3.0.0-rc.2 to 3.0.0-rc.3
@@ -613,6 +613,7 @@ 'use strict'; | ||
// target already has corresponding Proxy | ||
if (shared.hasOwn(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */)) { | ||
return isReadonly | ||
? target["__v_readonly" /* READONLY */] | ||
: target["__v_reactive" /* REACTIVE */]; | ||
const reactiveFlag = isReadonly | ||
? "__v_readonly" /* READONLY */ | ||
: "__v_reactive" /* REACTIVE */; | ||
if (shared.hasOwn(target, reactiveFlag)) { | ||
return target[reactiveFlag]; | ||
} | ||
@@ -624,3 +625,3 @@ // only a whitelist of value types can be observed. | ||
const observed = new Proxy(target, collectionTypes.has(target.constructor) ? collectionHandlers : baseHandlers); | ||
shared.def(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */, observed); | ||
shared.def(target, reactiveFlag, observed); | ||
return observed; | ||
@@ -748,2 +749,3 @@ } | ||
__v_isRef: true, | ||
["__v_isReadonly" /* IS_READONLY */]: shared.isFunction(getterOrOptions) || !getterOrOptions.set, | ||
// expose effect so computed can be stopped | ||
@@ -750,0 +752,0 @@ effect: runner, |
@@ -560,6 +560,7 @@ 'use strict'; | ||
// target already has corresponding Proxy | ||
if (shared.hasOwn(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */)) { | ||
return isReadonly | ||
? target["__v_readonly" /* READONLY */] | ||
: target["__v_reactive" /* REACTIVE */]; | ||
const reactiveFlag = isReadonly | ||
? "__v_readonly" /* READONLY */ | ||
: "__v_reactive" /* REACTIVE */; | ||
if (shared.hasOwn(target, reactiveFlag)) { | ||
return target[reactiveFlag]; | ||
} | ||
@@ -571,3 +572,3 @@ // only a whitelist of value types can be observed. | ||
const observed = new Proxy(target, collectionTypes.has(target.constructor) ? collectionHandlers : baseHandlers); | ||
shared.def(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */, observed); | ||
shared.def(target, reactiveFlag, observed); | ||
return observed; | ||
@@ -689,2 +690,3 @@ } | ||
__v_isRef: true, | ||
["__v_isReadonly" /* IS_READONLY */]: shared.isFunction(getterOrOptions) || !getterOrOptions.set, | ||
// expose effect so computed can be stopped | ||
@@ -691,0 +693,0 @@ effect: runner, |
@@ -660,6 +660,7 @@ /** | ||
// target already has corresponding Proxy | ||
if (hasOwn(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */)) { | ||
return isReadonly | ||
? target["__v_readonly" /* READONLY */] | ||
: target["__v_reactive" /* REACTIVE */]; | ||
const reactiveFlag = isReadonly | ||
? "__v_readonly" /* READONLY */ | ||
: "__v_reactive" /* REACTIVE */; | ||
if (hasOwn(target, reactiveFlag)) { | ||
return target[reactiveFlag]; | ||
} | ||
@@ -671,3 +672,3 @@ // only a whitelist of value types can be observed. | ||
const observed = new Proxy(target, collectionTypes.has(target.constructor) ? collectionHandlers : baseHandlers); | ||
def(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */, observed); | ||
def(target, reactiveFlag, observed); | ||
return observed; | ||
@@ -795,2 +796,3 @@ } | ||
__v_isRef: true, | ||
["__v_isReadonly" /* IS_READONLY */]: isFunction(getterOrOptions) || !getterOrOptions.set, | ||
// expose effect so computed can be stopped | ||
@@ -797,0 +799,0 @@ effect: runner, |
@@ -1,1 +0,1 @@ | ||
function e(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 t={},n=()=>{},r=Object.assign,o=Object.prototype.hasOwnProperty,c=(e,t)=>o.call(e,t),u=Array.isArray,i=e=>"symbol"==typeof e,s=e=>null!==e&&"object"==typeof e,l=Object.prototype.toString,a=e=>(e=>l.call(e))(e).slice(8,-1),f=(e,t)=>e!==t&&(e==e||t==t),_=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},v=new WeakMap,d=[];let h;const p=Symbol(""),g=Symbol("");function y(e,n=t){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const r=function(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!d.includes(n)){b(n);try{return E(),d.push(n),h=n,e()}finally{d.pop(),j(),h=d[d.length-1]}}};return n.id=w++,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,n);return n.lazy||r(),r}function R(e){e.active&&(b(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let w=0;function b(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 O=[];function m(){O.push(S),S=!1}function E(){O.push(S),S=!0}function j(){const e=O.pop();S=void 0===e||e}function k(e,t,n){if(!S||void 0===h)return;let r=v.get(e);r||v.set(e,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 M(e,t,n,r,o,c){const i=v.get(e);if(!i)return;const s=new Set,l=e=>{e&&e.forEach(e=>{e===h&&S||s.add(e)})};if("clear"===t)i.forEach(l);else if("length"===n&&u(e))i.forEach((e,t)=>{("length"===t||t>=r)&&l(e)});else{void 0!==n&&l(i.get(n));const r="add"===t||"delete"===t&&!u(e);(r||"set"===t&&e instanceof Map)&&l(i.get(u(e)?"length":p)),r&&e instanceof Map&&l(i.get(g))}s.forEach(e=>{e.options.scheduler?e.options.scheduler(e):e()})}const z=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(i)),P=C(),x=C(!1,!0),W=C(!0),A=C(!0,!0),K={};function C(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?n.__v_readonly:n.__v_reactive))return n;const l=u(n);if(l&&c(K,r))return Reflect.get(K,r,o);const a=Reflect.get(n,r,o);return(i(r)?z.has(r):"__proto__"===r||"__v_isRef"===r)?a:(e||k(n,0,r),t?a:Oe(a)?l?a:a.value:s(a)?e?de(a):_e(a):a)}}["includes","indexOf","lastIndexOf"].forEach(e=>{K[e]=function(...t){const n=we(this);for(let e=0,t=this.length;e<t;e++)k(n,0,e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(we)):r}});function F(e=!1){return function(t,n,r,o){const i=t[n];if(!e&&(r=we(r),!u(t)&&Oe(i)&&!Oe(r)))return i.value=r,!0;const s=c(t,n),l=Reflect.set(t,n,r,o);return t===we(o)&&(s?f(r,i)&&M(t,"set",n,r):M(t,"add",n,r)),l}}function I(e,t){const n=Reflect.has(e,t);return k(e,0,t),n}function L(e){return k(e,0,p),Reflect.ownKeys(e)}const N={get:P,set:F(),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:I,ownKeys:L},q={get:W,has:I,ownKeys:L,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},B=r({},N,{get:x,set:F(!0)}),D=r({},q,{get:A}),G=e=>s(e)?_e(e):e,H=e=>s(e)?de(e):e,J=e=>e,Q=e=>Reflect.getPrototypeOf(e);function T(e,t,n){e=we(e);const r=we(t);t!==r&&k(e,0,t),k(e,0,r);const{has:o,get:c}=Q(e);return o.call(e,t)?n(c.call(e,t)):o.call(e,r)?n(c.call(e,r)):void 0}function U(e){const t=we(this),n=we(e);e!==n&&k(t,0,e),k(t,0,n);const r=Q(t).has;return r.call(t,e)||r.call(t,n)}function V(e){return k(e=we(e),0,p),Reflect.get(Q(e),"size",e)}function X(e){e=we(e);const t=we(this),n=Q(t),r=n.has.call(t,e),o=n.add.call(t,e);return r||M(t,"add",e,e),o}function Y(e,t){t=we(t);const n=we(this),{has:r,get:o,set:c}=Q(n);let u=r.call(n,e);u||(e=we(e),u=r.call(n,e));const i=o.call(n,e),s=c.call(n,e,t);return u?f(t,i)&&M(n,"set",e,t):M(n,"add",e,t),s}function Z(e){const t=we(this),{has:n,get:r,delete:o}=Q(t);let c=n.call(t,e);c||(e=we(e),c=n.call(t,e));r&&r.call(t,e);const u=o.call(t,e);return c&&M(t,"delete",e,void 0),u}function $(){const e=we(this),t=0!==e.size,n=Q(e).clear.call(e);return t&&M(e,"clear",void 0,void 0),n}function ee(e,t){return function(n,r){const o=this,c=we(o),u=e?H:t?J:G;return!e&&k(c,0,p),Q(c).forEach.call(c,(function(e,t){return n.call(r,u(e),u(t),o)}))}}function te(e,t,n){return function(...r){const o=we(this),c=o instanceof Map,u="entries"===e||e===Symbol.iterator&&c,i="keys"===e&&c,s=Q(o)[e].apply(o,r),l=t?H:n?J:G;return!t&&k(o,0,i?g:p),{next(){const{value:e,done:t}=s.next();return t?{value:e,done:t}:{value:u?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function ne(e){return function(...t){return"delete"!==e&&this}}const re={get(e){return T(this,e,G)},get size(){return V(this)},has:U,add:X,set:Y,delete:Z,clear:$,forEach:ee(!1,!1)},oe={get(e){return T(this,e,J)},get size(){return V(this)},has:U,add:X,set:Y,delete:Z,clear:$,forEach:ee(!1,!0)},ce={get(e){return T(this,e,H)},get size(){return V(this)},has:U,add:ne("add"),set:ne("set"),delete:ne("delete"),clear:ne("clear"),forEach:ee(!0,!1)};function ue(e,t){const n=t?oe:e?ce:re;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(c(n,r)&&r in t?n:t,r,o)}["keys","values","entries",Symbol.iterator].forEach(e=>{re[e]=te(e,!1,!1),ce[e]=te(e,!0,!1),oe[e]=te(e,!1,!0)});const ie={get:ue(!1,!1)},se={get:ue(!1,!0)},le={get:ue(!0,!1)},ae=new Set([Set,Map,WeakMap,WeakSet]),fe=e("Object,Array,Map,Set,WeakMap,WeakSet");function _e(e){return e&&e.__v_isReadonly?e:pe(e,!1,N,ie)}function ve(e){return pe(e,!1,B,se)}function de(e){return pe(e,!0,q,le)}function he(e){return pe(e,!0,D,le)}function pe(e,t,n,r){if(!s(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(c(e,t?"__v_readonly":"__v_reactive"))return t?e.__v_readonly:e.__v_reactive;if((o=e).__v_skip||!fe(a(o))||Object.isFrozen(o))return e;var o;const u=new Proxy(e,ae.has(e.constructor)?r:n);return _(e,t?"__v_readonly":"__v_reactive",u),u}function ge(e){return ye(e)?ge(e.__v_raw):!(!e||!e.__v_isReactive)}function ye(e){return!(!e||!e.__v_isReadonly)}function Re(e){return ge(e)||ye(e)}function we(e){return e&&we(e.__v_raw)||e}function be(e){return _(e,"__v_skip",!0),e}const Se=e=>s(e)?_e(e):e;function Oe(e){return!!e&&!0===e.__v_isRef}function me(e){return je(e)}function Ee(e){return je(e,!0)}function je(e,t=!1){if(Oe(e))return e;let n=t?e:Se(e);const r={__v_isRef:!0,get value(){return k(r,0,"value"),n},set value(o){f(we(o),e)&&(e=o,n=t?o:Se(o),M(r,"set","value",void 0))}};return r}function ke(e){M(e,"set","value",void 0)}function Me(e){return Oe(e)?e.value:e}function ze(e){const{get:t,set:n}=e(()=>k(r,0,"value"),()=>M(r,"set","value")),r={__v_isRef:!0,get value(){return t()},set value(e){n(e)}};return r}function Pe(e){const t={};for(const n in e)t[n]=xe(e,n);return t}function xe(e,t){return{__v_isRef:!0,get value(){return e[t]},set value(n){e[t]=n}}}function We(e){let t,r;"function"==typeof e?(t=e,r=n):(t=e.get,r=e.set);let o,c,u=!0;const i=y(t,{lazy:!0,scheduler:()=>{u||(u=!0,M(c,"set","value"))}});return c={__v_isRef:!0,effect:i,get value(){return u&&(o=i(),u=!1),k(c,0,"value"),o},set value(e){r(e)}},c}export{p as ITERATE_KEY,We as computed,ze as customRef,y as effect,E as enableTracking,Re as isProxy,ge as isReactive,ye as isReadonly,Oe as isRef,be as markRaw,m as pauseTracking,_e as reactive,de as readonly,me as ref,j as resetTracking,ve as shallowReactive,he as shallowReadonly,Ee as shallowRef,R as stop,we as toRaw,xe as toRef,Pe as toRefs,k as track,M as trigger,ke as triggerRef,Me as unref}; | ||
function e(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 t={},n=()=>{},r=Object.assign,o=Object.prototype.hasOwnProperty,c=(e,t)=>o.call(e,t),s=Array.isArray,u=e=>"function"==typeof e,i=e=>"symbol"==typeof e,l=e=>null!==e&&"object"==typeof e,a=Object.prototype.toString,f=e=>(e=>a.call(e))(e).slice(8,-1),_=(e,t)=>e!==t&&(e==e||t==t),v=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},d=new WeakMap,h=[];let p;const g=Symbol(""),y=Symbol("");function R(e,n=t){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const r=function(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!h.includes(n)){S(n);try{return j(),h.push(n),p=n,e()}finally{h.pop(),k(),p=h[h.length-1]}}};return n.id=b++,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,n);return n.lazy||r(),r}function w(e){e.active&&(S(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let b=0;function S(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let O=!0;const m=[];function E(){m.push(O),O=!1}function j(){m.push(O),O=!0}function k(){const e=m.pop();O=void 0===e||e}function M(e,t,n){if(!O||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 z(e,t,n,r,o,c){const u=d.get(e);if(!u)return;const i=new Set,l=e=>{e&&e.forEach(e=>{e===p&&O||i.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(y))}i.forEach(e=>{e.options.scheduler?e.options.scheduler(e):e()})}const P=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(i)),x=F(),W=F(!1,!0),A=F(!0),K=F(!0,!0),C={};function F(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?n.__v_readonly:n.__v_reactive))return n;const u=s(n);if(u&&c(C,r))return Reflect.get(C,r,o);const a=Reflect.get(n,r,o);return(i(r)?P.has(r):"__proto__"===r||"__v_isRef"===r)?a:(e||M(n,0,r),t?a:me(a)?u?a:a.value:l(a)?e?he(a):ve(a):a)}}["includes","indexOf","lastIndexOf"].forEach(e=>{C[e]=function(...t){const n=be(this);for(let e=0,t=this.length;e<t;e++)M(n,0,e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(be)):r}});function I(e=!1){return function(t,n,r,o){const u=t[n];if(!e&&(r=be(r),!s(t)&&me(u)&&!me(r)))return u.value=r,!0;const i=c(t,n),l=Reflect.set(t,n,r,o);return t===be(o)&&(i?_(r,u)&&z(t,"set",n,r):z(t,"add",n,r)),l}}function L(e,t){const n=Reflect.has(e,t);return M(e,0,t),n}function N(e){return M(e,0,g),Reflect.ownKeys(e)}const q={get:x,set:I(),deleteProperty:function(e,t){const n=c(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&z(e,"delete",t,void 0),r},has:L,ownKeys:N},B={get:A,has:L,ownKeys:N,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},D=r({},q,{get:W,set:I(!0)}),G=r({},B,{get:K}),H=e=>l(e)?ve(e):e,J=e=>l(e)?he(e):e,Q=e=>e,T=e=>Reflect.getPrototypeOf(e);function U(e,t,n){e=be(e);const r=be(t);t!==r&&M(e,0,t),M(e,0,r);const{has:o,get:c}=T(e);return o.call(e,t)?n(c.call(e,t)):o.call(e,r)?n(c.call(e,r)):void 0}function V(e){const t=be(this),n=be(e);e!==n&&M(t,0,e),M(t,0,n);const r=T(t).has;return r.call(t,e)||r.call(t,n)}function X(e){return M(e=be(e),0,g),Reflect.get(T(e),"size",e)}function Y(e){e=be(e);const t=be(this),n=T(t),r=n.has.call(t,e),o=n.add.call(t,e);return r||z(t,"add",e,e),o}function Z(e,t){t=be(t);const n=be(this),{has:r,get:o,set:c}=T(n);let s=r.call(n,e);s||(e=be(e),s=r.call(n,e));const u=o.call(n,e),i=c.call(n,e,t);return s?_(t,u)&&z(n,"set",e,t):z(n,"add",e,t),i}function $(e){const t=be(this),{has:n,get:r,delete:o}=T(t);let c=n.call(t,e);c||(e=be(e),c=n.call(t,e));r&&r.call(t,e);const s=o.call(t,e);return c&&z(t,"delete",e,void 0),s}function ee(){const e=be(this),t=0!==e.size,n=T(e).clear.call(e);return t&&z(e,"clear",void 0,void 0),n}function te(e,t){return function(n,r){const o=this,c=be(o),s=e?J:t?Q:H;return!e&&M(c,0,g),T(c).forEach.call(c,(function(e,t){return n.call(r,s(e),s(t),o)}))}}function ne(e,t,n){return function(...r){const o=be(this),c=o instanceof Map,s="entries"===e||e===Symbol.iterator&&c,u="keys"===e&&c,i=T(o)[e].apply(o,r),l=t?J:n?Q:H;return!t&&M(o,0,u?y:g),{next(){const{value:e,done:t}=i.next();return t?{value:e,done:t}:{value:s?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){return"delete"!==e&&this}}const oe={get(e){return U(this,e,H)},get size(){return X(this)},has:V,add:Y,set:Z,delete:$,clear:ee,forEach:te(!1,!1)},ce={get(e){return U(this,e,Q)},get size(){return X(this)},has:V,add:Y,set:Z,delete:$,clear:ee,forEach:te(!1,!0)},se={get(e){return U(this,e,J)},get size(){return X(this)},has:V,add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:te(!0,!1)};function ue(e,t){const n=t?ce:e?se:oe;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(c(n,r)&&r in t?n:t,r,o)}["keys","values","entries",Symbol.iterator].forEach(e=>{oe[e]=ne(e,!1,!1),se[e]=ne(e,!0,!1),ce[e]=ne(e,!1,!0)});const ie={get:ue(!1,!1)},le={get:ue(!1,!0)},ae={get:ue(!0,!1)},fe=new Set([Set,Map,WeakMap,WeakSet]),_e=e("Object,Array,Map,Set,WeakMap,WeakSet");function ve(e){return e&&e.__v_isReadonly?e:ge(e,!1,q,ie)}function de(e){return ge(e,!1,D,le)}function he(e){return ge(e,!0,B,ae)}function pe(e){return ge(e,!0,G,ae)}function ge(e,t,n,r){if(!l(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=t?"__v_readonly":"__v_reactive";if(c(e,o))return e[o];if((s=e).__v_skip||!_e(f(s))||Object.isFrozen(s))return e;var s;const u=new Proxy(e,fe.has(e.constructor)?r:n);return v(e,o,u),u}function ye(e){return Re(e)?ye(e.__v_raw):!(!e||!e.__v_isReactive)}function Re(e){return!(!e||!e.__v_isReadonly)}function we(e){return ye(e)||Re(e)}function be(e){return e&&be(e.__v_raw)||e}function Se(e){return v(e,"__v_skip",!0),e}const Oe=e=>l(e)?ve(e):e;function me(e){return!!e&&!0===e.__v_isRef}function Ee(e){return ke(e)}function je(e){return ke(e,!0)}function ke(e,t=!1){if(me(e))return e;let n=t?e:Oe(e);const r={__v_isRef:!0,get value(){return M(r,0,"value"),n},set value(o){_(be(o),e)&&(e=o,n=t?o:Oe(o),z(r,"set","value",void 0))}};return r}function Me(e){z(e,"set","value",void 0)}function ze(e){return me(e)?e.value:e}function Pe(e){const{get:t,set:n}=e(()=>M(r,0,"value"),()=>z(r,"set","value")),r={__v_isRef:!0,get value(){return t()},set value(e){n(e)}};return r}function xe(e){const t={};for(const n in e)t[n]=We(e,n);return t}function We(e,t){return{__v_isRef:!0,get value(){return e[t]},set value(n){e[t]=n}}}function Ae(e){let t,r;u(e)?(t=e,r=n):(t=e.get,r=e.set);let o,c,s=!0;const i=R(t,{lazy:!0,scheduler:()=>{s||(s=!0,z(c,"set","value"))}});return c={__v_isRef:!0,__v_isReadonly:u(e)||!e.set,effect:i,get value(){return s&&(o=i(),s=!1),M(c,0,"value"),o},set value(e){r(e)}},c}export{g as ITERATE_KEY,Ae as computed,Pe as customRef,R as effect,j as enableTracking,we as isProxy,ye as isReactive,Re as isReadonly,me as isRef,Se as markRaw,E as pauseTracking,ve as reactive,he as readonly,Ee as ref,k as resetTracking,de as shallowReactive,pe as shallowReadonly,je as shallowRef,w as stop,be as toRaw,We as toRef,xe as toRefs,M as track,z as trigger,Me as triggerRef,ze as unref}; |
@@ -610,6 +610,7 @@ import { EMPTY_OBJ, isArray, isSymbol, extend, hasOwn, isObject, hasChanged, capitalize, toRawType, def, makeMap, isFunction, NOOP } from '@vue/shared'; | ||
// target already has corresponding Proxy | ||
if (hasOwn(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */)) { | ||
return isReadonly | ||
? target["__v_readonly" /* READONLY */] | ||
: target["__v_reactive" /* REACTIVE */]; | ||
const reactiveFlag = isReadonly | ||
? "__v_readonly" /* READONLY */ | ||
: "__v_reactive" /* REACTIVE */; | ||
if (hasOwn(target, reactiveFlag)) { | ||
return target[reactiveFlag]; | ||
} | ||
@@ -621,3 +622,3 @@ // only a whitelist of value types can be observed. | ||
const observed = new Proxy(target, collectionTypes.has(target.constructor) ? collectionHandlers : baseHandlers); | ||
def(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */, observed); | ||
def(target, reactiveFlag, observed); | ||
return observed; | ||
@@ -746,2 +747,3 @@ } | ||
__v_isRef: true, | ||
["__v_isReadonly" /* IS_READONLY */]: isFunction(getterOrOptions) || !getterOrOptions.set, | ||
// expose effect so computed can be stopped | ||
@@ -748,0 +750,0 @@ effect: runner, |
@@ -663,6 +663,7 @@ var VueReactivity = (function (exports) { | ||
// target already has corresponding Proxy | ||
if (hasOwn(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */)) { | ||
return isReadonly | ||
? target["__v_readonly" /* READONLY */] | ||
: target["__v_reactive" /* REACTIVE */]; | ||
const reactiveFlag = isReadonly | ||
? "__v_readonly" /* READONLY */ | ||
: "__v_reactive" /* REACTIVE */; | ||
if (hasOwn(target, reactiveFlag)) { | ||
return target[reactiveFlag]; | ||
} | ||
@@ -674,3 +675,3 @@ // only a whitelist of value types can be observed. | ||
const observed = new Proxy(target, collectionTypes.has(target.constructor) ? collectionHandlers : baseHandlers); | ||
def(target, isReadonly ? "__v_readonly" /* READONLY */ : "__v_reactive" /* REACTIVE */, observed); | ||
def(target, reactiveFlag, observed); | ||
return observed; | ||
@@ -798,2 +799,3 @@ } | ||
__v_isRef: true, | ||
["__v_isReadonly" /* IS_READONLY */]: isFunction(getterOrOptions) || !getterOrOptions.set, | ||
// expose effect so computed can be stopped | ||
@@ -800,0 +802,0 @@ effect: runner, |
@@ -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.assign,c=Object.prototype.hasOwnProperty,i=(e,t)=>c.call(e,t),s=Array.isArray,u=e=>"symbol"==typeof e,a=e=>null!==e&&"object"==typeof e,l=Object.prototype.toString,f=e=>(e=>l.call(e))(e).slice(8,-1),_=(e,t)=>e!==t&&(e==e||t==t),v=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},d=new WeakMap,h=[];let g;const p=Symbol(""),y=Symbol("");function R(e,t=n){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const r=function(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!h.includes(n)){b(n);try{return E(),h.push(n),g=n,e()}finally{h.pop(),k(),g=h[h.length-1]}}};return n.id=w++,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||r(),r}let w=0;function b(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 m=[];function E(){m.push(S),S=!0}function k(){const e=m.pop();S=void 0===e||e}function O(e,t,n){if(!S||void 0===g)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(g)||(o.add(g),g.deps.push(o))}function j(e,t,n,r,o,c){const i=d.get(e);if(!i)return;const u=new Set,a=e=>{e&&e.forEach(e=>{e===g&&S||u.add(e)})};if("clear"===t)i.forEach(a);else if("length"===n&&s(e))i.forEach((e,t)=>{("length"===t||t>=r)&&a(e)});else{void 0!==n&&a(i.get(n));const r="add"===t||"delete"===t&&!s(e);(r||"set"===t&&e instanceof Map)&&a(i.get(s(e)?"length":p)),r&&e instanceof Map&&a(i.get(y))}u.forEach(e=>{e.options.scheduler?e.options.scheduler(e):e()})}const M=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(u)),P=A(),z=A(!1,!0),x=A(!0),T=A(!0,!0),W={};function A(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?n.__v_readonly:n.__v_reactive))return n;const c=s(n);if(c&&i(W,r))return Reflect.get(W,r,o);const l=Reflect.get(n,r,o);return(u(r)?M.has(r):"__proto__"===r||"__v_isRef"===r)?l:(e||O(n,0,r),t?l:ye(l)?c?l:l.value:a(l)?e?_e(l):fe(l):l)}}["includes","indexOf","lastIndexOf"].forEach(e=>{W[e]=function(...t){const n=ge(this);for(let e=0,t=this.length;e<t;e++)O(n,0,e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(ge)):r}});function K(e=!1){return function(t,n,r,o){const c=t[n];if(!e&&(r=ge(r),!s(t)&&ye(c)&&!ye(r)))return c.value=r,!0;const u=i(t,n),a=Reflect.set(t,n,r,o);return t===ge(o)&&(u?_(r,c)&&j(t,"set",n,r):j(t,"add",n,r)),a}}function I(e,t){const n=Reflect.has(e,t);return O(e,0,t),n}function C(e){return O(e,0,p),Reflect.ownKeys(e)}const F={get:P,set:K(),deleteProperty:function(e,t){const n=i(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&j(e,"delete",t,void 0),r},has:I,ownKeys:C},L={get:x,has:I,ownKeys:C,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},N=o({},F,{get:z,set:K(!0)}),V=o({},L,{get:T}),Y=e=>a(e)?fe(e):e,q=e=>a(e)?_e(e):e,B=e=>e,D=e=>Reflect.getPrototypeOf(e);function G(e,t,n){e=ge(e);const r=ge(t);t!==r&&O(e,0,t),O(e,0,r);const{has:o,get:c}=D(e);return o.call(e,t)?n(c.call(e,t)):o.call(e,r)?n(c.call(e,r)):void 0}function H(e){const t=ge(this),n=ge(e);e!==n&&O(t,0,e),O(t,0,n);const r=D(t).has;return r.call(t,e)||r.call(t,n)}function J(e){return O(e=ge(e),0,p),Reflect.get(D(e),"size",e)}function Q(e){e=ge(e);const t=ge(this),n=D(t),r=n.has.call(t,e),o=n.add.call(t,e);return r||j(t,"add",e,e),o}function U(e,t){t=ge(t);const n=ge(this),{has:r,get:o,set:c}=D(n);let i=r.call(n,e);i||(e=ge(e),i=r.call(n,e));const s=o.call(n,e),u=c.call(n,e,t);return i?_(t,s)&&j(n,"set",e,t):j(n,"add",e,t),u}function X(e){const t=ge(this),{has:n,get:r,delete:o}=D(t);let c=n.call(t,e);c||(e=ge(e),c=n.call(t,e));r&&r.call(t,e);const i=o.call(t,e);return c&&j(t,"delete",e,void 0),i}function Z(){const e=ge(this),t=0!==e.size,n=D(e).clear.call(e);return t&&j(e,"clear",void 0,void 0),n}function $(e,t){return function(n,r){const o=this,c=ge(o),i=e?q:t?B:Y;return!e&&O(c,0,p),D(c).forEach.call(c,(function(e,t){return n.call(r,i(e),i(t),o)}))}}function ee(e,t,n){return function(...r){const o=ge(this),c=o instanceof Map,i="entries"===e||e===Symbol.iterator&&c,s="keys"===e&&c,u=D(o)[e].apply(o,r),a=t?q:n?B:Y;return!t&&O(o,0,s?y:p),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function te(e){return function(...t){return"delete"!==e&&this}}const ne={get(e){return G(this,e,Y)},get size(){return J(this)},has:H,add:Q,set:U,delete:X,clear:Z,forEach:$(!1,!1)},re={get(e){return G(this,e,B)},get size(){return J(this)},has:H,add:Q,set:U,delete:X,clear:Z,forEach:$(!1,!0)},oe={get(e){return G(this,e,q)},get size(){return J(this)},has:H,add:te("add"),set:te("set"),delete:te("delete"),clear:te("clear"),forEach:$(!0,!1)};function ce(e,t){const n=t?re:e?oe:ne;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(i(n,r)&&r in t?n:t,r,o)}["keys","values","entries",Symbol.iterator].forEach(e=>{ne[e]=ee(e,!1,!1),oe[e]=ee(e,!0,!1),re[e]=ee(e,!1,!0)});const ie={get:ce(!1,!1)},se={get:ce(!1,!0)},ue={get:ce(!0,!1)},ae=new Set([Set,Map,WeakMap,WeakSet]),le=t("Object,Array,Map,Set,WeakMap,WeakSet");function fe(e){return e&&e.__v_isReadonly?e:ve(e,!1,F,ie)}function _e(e){return ve(e,!0,L,ue)}function ve(e,t,n,r){if(!a(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(i(e,t?"__v_readonly":"__v_reactive"))return t?e.__v_readonly:e.__v_reactive;if((o=e).__v_skip||!le(f(o))||Object.isFrozen(o))return e;var o;const c=new Proxy(e,ae.has(e.constructor)?r:n);return v(e,t?"__v_readonly":"__v_reactive",c),c}function de(e){return he(e)?de(e.__v_raw):!(!e||!e.__v_isReactive)}function he(e){return!(!e||!e.__v_isReadonly)}function ge(e){return e&&ge(e.__v_raw)||e}const pe=e=>a(e)?fe(e):e;function ye(e){return!!e&&!0===e.__v_isRef}function Re(e,t=!1){if(ye(e))return e;let n=t?e:pe(e);const r={__v_isRef:!0,get value(){return O(r,0,"value"),n},set value(o){_(ge(o),e)&&(e=o,n=t?o:pe(o),j(r,"set","value",void 0))}};return r}function we(e,t){return{__v_isRef:!0,get value(){return e[t]},set value(n){e[t]=n}}}return e.ITERATE_KEY=p,e.computed=function(e){let t,n;"function"==typeof e?(t=e,n=r):(t=e.get,n=e.set);let o,c,i=!0;const s=R(t,{lazy:!0,scheduler:()=>{i||(i=!0,j(c,"set","value"))}});return c={__v_isRef:!0,effect:s,get value(){return i&&(o=s(),i=!1),O(c,0,"value"),o},set value(e){n(e)}},c},e.customRef=function(e){const{get:t,set:n}=e(()=>O(r,0,"value"),()=>j(r,"set","value")),r={__v_isRef:!0,get value(){return t()},set value(e){n(e)}};return r},e.effect=R,e.enableTracking=E,e.isProxy=function(e){return de(e)||he(e)},e.isReactive=de,e.isReadonly=he,e.isRef=ye,e.markRaw=function(e){return v(e,"__v_skip",!0),e},e.pauseTracking=function(){m.push(S),S=!1},e.reactive=fe,e.readonly=_e,e.ref=function(e){return Re(e)},e.resetTracking=k,e.shallowReactive=function(e){return ve(e,!1,N,se)},e.shallowReadonly=function(e){return ve(e,!0,V,ue)},e.shallowRef=function(e){return Re(e,!0)},e.stop=function(e){e.active&&(b(e),e.options.onStop&&e.options.onStop(),e.active=!1)},e.toRaw=ge,e.toRef=we,e.toRefs=function(e){const t={};for(const n in e)t[n]=we(e,n);return t},e.track=O,e.trigger=j,e.triggerRef=function(e){j(e,"set","value",void 0)},e.unref=function(e){return ye(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.assign,c=Object.prototype.hasOwnProperty,s=(e,t)=>c.call(e,t),i=Array.isArray,u=e=>"function"==typeof e,a=e=>"symbol"==typeof e,l=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,_=e=>(e=>f.call(e))(e).slice(8,-1),v=(e,t)=>e!==t&&(e==e||t==t),d=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},h=new WeakMap,g=[];let p;const y=Symbol(""),R=Symbol("");function w(e,t=n){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const r=function(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!g.includes(n)){S(n);try{return k(),g.push(n),p=n,e()}finally{g.pop(),O(),p=g[g.length-1]}}};return n.id=b++,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||r(),r}let b=0;function S(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let m=!0;const E=[];function k(){E.push(m),m=!0}function O(){const e=E.pop();m=void 0===e||e}function j(e,t,n){if(!m||void 0===p)return;let r=h.get(e);r||h.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 s=h.get(e);if(!s)return;const u=new Set,a=e=>{e&&e.forEach(e=>{e===p&&m||u.add(e)})};if("clear"===t)s.forEach(a);else if("length"===n&&i(e))s.forEach((e,t)=>{("length"===t||t>=r)&&a(e)});else{void 0!==n&&a(s.get(n));const r="add"===t||"delete"===t&&!i(e);(r||"set"===t&&e instanceof Map)&&a(s.get(i(e)?"length":y)),r&&e instanceof Map&&a(s.get(R))}u.forEach(e=>{e.options.scheduler?e.options.scheduler(e):e()})}const P=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(a)),z=K(),x=K(!1,!0),T=K(!0),W=K(!0,!0),A={};function K(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?n.__v_readonly:n.__v_reactive))return n;const c=i(n);if(c&&s(A,r))return Reflect.get(A,r,o);const u=Reflect.get(n,r,o);return(a(r)?P.has(r):"__proto__"===r||"__v_isRef"===r)?u:(e||j(n,0,r),t?u:Re(u)?c?u:u.value:l(u)?e?ve(u):_e(u):u)}}["includes","indexOf","lastIndexOf"].forEach(e=>{A[e]=function(...t){const n=pe(this);for(let e=0,t=this.length;e<t;e++)j(n,0,e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(pe)):r}});function I(e=!1){return function(t,n,r,o){const c=t[n];if(!e&&(r=pe(r),!i(t)&&Re(c)&&!Re(r)))return c.value=r,!0;const u=s(t,n),a=Reflect.set(t,n,r,o);return t===pe(o)&&(u?v(r,c)&&M(t,"set",n,r):M(t,"add",n,r)),a}}function C(e,t){const n=Reflect.has(e,t);return j(e,0,t),n}function F(e){return j(e,0,y),Reflect.ownKeys(e)}const L={get:z,set:I(),deleteProperty:function(e,t){const n=s(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&M(e,"delete",t,void 0),r},has:C,ownKeys:F},N={get:T,has:C,ownKeys:F,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},V=o({},L,{get:x,set:I(!0)}),Y=o({},N,{get:W}),q=e=>l(e)?_e(e):e,B=e=>l(e)?ve(e):e,D=e=>e,G=e=>Reflect.getPrototypeOf(e);function H(e,t,n){e=pe(e);const r=pe(t);t!==r&&j(e,0,t),j(e,0,r);const{has:o,get:c}=G(e);return o.call(e,t)?n(c.call(e,t)):o.call(e,r)?n(c.call(e,r)):void 0}function J(e){const t=pe(this),n=pe(e);e!==n&&j(t,0,e),j(t,0,n);const r=G(t).has;return r.call(t,e)||r.call(t,n)}function Q(e){return j(e=pe(e),0,y),Reflect.get(G(e),"size",e)}function U(e){e=pe(e);const t=pe(this),n=G(t),r=n.has.call(t,e),o=n.add.call(t,e);return r||M(t,"add",e,e),o}function X(e,t){t=pe(t);const n=pe(this),{has:r,get:o,set:c}=G(n);let s=r.call(n,e);s||(e=pe(e),s=r.call(n,e));const i=o.call(n,e),u=c.call(n,e,t);return s?v(t,i)&&M(n,"set",e,t):M(n,"add",e,t),u}function Z(e){const t=pe(this),{has:n,get:r,delete:o}=G(t);let c=n.call(t,e);c||(e=pe(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}function $(){const e=pe(this),t=0!==e.size,n=G(e).clear.call(e);return t&&M(e,"clear",void 0,void 0),n}function ee(e,t){return function(n,r){const o=this,c=pe(o),s=e?B:t?D:q;return!e&&j(c,0,y),G(c).forEach.call(c,(function(e,t){return n.call(r,s(e),s(t),o)}))}}function te(e,t,n){return function(...r){const o=pe(this),c=o instanceof Map,s="entries"===e||e===Symbol.iterator&&c,i="keys"===e&&c,u=G(o)[e].apply(o,r),a=t?B:n?D:q;return!t&&j(o,0,i?R:y),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function ne(e){return function(...t){return"delete"!==e&&this}}const re={get(e){return H(this,e,q)},get size(){return Q(this)},has:J,add:U,set:X,delete:Z,clear:$,forEach:ee(!1,!1)},oe={get(e){return H(this,e,D)},get size(){return Q(this)},has:J,add:U,set:X,delete:Z,clear:$,forEach:ee(!1,!0)},ce={get(e){return H(this,e,B)},get size(){return Q(this)},has:J,add:ne("add"),set:ne("set"),delete:ne("delete"),clear:ne("clear"),forEach:ee(!0,!1)};function se(e,t){const n=t?oe:e?ce:re;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(s(n,r)&&r in t?n:t,r,o)}["keys","values","entries",Symbol.iterator].forEach(e=>{re[e]=te(e,!1,!1),ce[e]=te(e,!0,!1),oe[e]=te(e,!1,!0)});const ie={get:se(!1,!1)},ue={get:se(!1,!0)},ae={get:se(!0,!1)},le=new Set([Set,Map,WeakMap,WeakSet]),fe=t("Object,Array,Map,Set,WeakMap,WeakSet");function _e(e){return e&&e.__v_isReadonly?e:de(e,!1,L,ie)}function ve(e){return de(e,!0,N,ae)}function de(e,t,n,r){if(!l(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=t?"__v_readonly":"__v_reactive";if(s(e,o))return e[o];if((c=e).__v_skip||!fe(_(c))||Object.isFrozen(c))return e;var c;const i=new Proxy(e,le.has(e.constructor)?r:n);return d(e,o,i),i}function he(e){return ge(e)?he(e.__v_raw):!(!e||!e.__v_isReactive)}function ge(e){return!(!e||!e.__v_isReadonly)}function pe(e){return e&&pe(e.__v_raw)||e}const ye=e=>l(e)?_e(e):e;function Re(e){return!!e&&!0===e.__v_isRef}function we(e,t=!1){if(Re(e))return e;let n=t?e:ye(e);const r={__v_isRef:!0,get value(){return j(r,0,"value"),n},set value(o){v(pe(o),e)&&(e=o,n=t?o:ye(o),M(r,"set","value",void 0))}};return r}function be(e,t){return{__v_isRef:!0,get value(){return e[t]},set value(n){e[t]=n}}}return e.ITERATE_KEY=y,e.computed=function(e){let t,n;u(e)?(t=e,n=r):(t=e.get,n=e.set);let o,c,s=!0;const i=w(t,{lazy:!0,scheduler:()=>{s||(s=!0,M(c,"set","value"))}});return c={__v_isRef:!0,__v_isReadonly:u(e)||!e.set,effect:i,get value(){return s&&(o=i(),s=!1),j(c,0,"value"),o},set value(e){n(e)}},c},e.customRef=function(e){const{get:t,set:n}=e(()=>j(r,0,"value"),()=>M(r,"set","value")),r={__v_isRef:!0,get value(){return t()},set value(e){n(e)}};return r},e.effect=w,e.enableTracking=k,e.isProxy=function(e){return he(e)||ge(e)},e.isReactive=he,e.isReadonly=ge,e.isRef=Re,e.markRaw=function(e){return d(e,"__v_skip",!0),e},e.pauseTracking=function(){E.push(m),m=!1},e.reactive=_e,e.readonly=ve,e.ref=function(e){return we(e)},e.resetTracking=O,e.shallowReactive=function(e){return de(e,!1,V,ue)},e.shallowReadonly=function(e){return de(e,!0,Y,ae)},e.shallowRef=function(e){return we(e,!0)},e.stop=function(e){e.active&&(S(e),e.options.onStop&&e.options.onStop(),e.active=!1)},e.toRaw=pe,e.toRef=be,e.toRefs=function(e){const t={};for(const n in e)t[n]=be(e,n);return t},e.track=j,e.trigger=M,e.triggerRef=function(e){M(e,"set","value",void 0)},e.unref=function(e){return Re(e)?e.value:e},e}({}); |
{ | ||
"name": "@vue/reactivity", | ||
"version": "3.0.0-rc.2", | ||
"version": "3.0.0-rc.3", | ||
"description": "@vue/reactivity", | ||
@@ -38,4 +38,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.0-rc.2" | ||
"@vue/shared": "3.0.0-rc.3" | ||
} | ||
} |
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
157584
4160
+ Added@vue/shared@3.0.0-rc.3(transitive)
- Removed@vue/shared@3.0.0-rc.2(transitive)
Updated@vue/shared@3.0.0-rc.3