effector-vue
Advanced tools
Comparing version 20.3.2 to 20.3.3
@@ -1,2 +0,2 @@ | ||
'use strict';function e(e,t){void 0===t&&(t={immediate:1});var r=this,o=n.createEvent(),i=n.createStore({});i.on(o,function(e,t){return t});var c=function(){r.$watch(e,function(e,t){o({oldValue:t,newValue:e})},t)};return r._data?c():r.$once('hook:created',c),i}function t(e){return this.$watchAsStore(e).map(function(e){return e.newValue})}Object.defineProperty(exports,'__esModule',{value:1});var r,o=(r=require('vue'))&&'object'==typeof r&&'default'in r?r.default:r,n=require('effector/compat'),i={created:function(){var e=this,t=e.$options.effector;if('function'==typeof t&&(t=t.call(e)),t)if(n.is.store(t))o.util.defineReactive(e,"state",t.getState()),e._subscription=t.subscribe(function(t){e.state=t});else{if('object'!=typeof t||null===t)throw Error('property should be Store');var r=n.createStoreObject(t);for(var i in t)o.util.defineReactive(e,i,r.defaultState[i]);e._subscription=r.subscribe(function(t){for(var r in t)e[r]=t[r]})}},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=function(r){r.mixin(i),r.prototype.$watchAsStore=e,r.prototype.$store=t},exports.createComponent=function(e,t){return o.extend(Object.assign({},e,t&&{effector:function(){return t}}))}; | ||
'use strict';function e(e,t){void 0===t&&(t={immediate:1});var r=this,o=n.createEvent(),i=n.createStore({});i.on(o,(function(e,t){return t}));var c=function(){r.$watch(e,(function(e,t){o({oldValue:t,newValue:e})}),t)};return r._data?c():r.$once('hook:created',c),i}function t(e){return this.$watchAsStore(e).map((function(e){return e.newValue}))}Object.defineProperty(exports,'__esModule',{value:1});var r,o=(r=require('vue'))&&'object'==typeof r&&'default'in r?r.default:r,n=require('effector/compat'),i={created:function(){var e=this,t=e.$options.effector;if('function'==typeof t&&(t=t.call(e)),t)if(n.is.store(t))o.util.defineReactive(e,"state",t.getState()),e._subscription=t.subscribe((function(t){e.state=t}));else{if('object'!=typeof t||null===t)throw Error('property should be Store');var r=n.createStoreObject(t);for(var i in t)o.util.defineReactive(e,i,r.defaultState[i]);e._subscription=r.subscribe((function(t){for(var r in t)e[r]=t[r]}))}},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=function(r){r.mixin(i),r.prototype.$watchAsStore=e,r.prototype.$store=t},exports.createComponent=function(e,t){return o.extend(Object.assign({},e,t&&{effector:function(){return t}}))}; | ||
//# sourceMappingURL=compat.js.map |
@@ -1,2 +0,2 @@ | ||
return e=this,t=function(e,t,effector){function o(e,t={immediate:1}){const o=this,r=effector.createEvent(),i=effector.createStore({});let n;i.on(r,(e,t)=>t);const s=()=>{n=o.$watch(e,(e,t)=>{r({oldValue:t,newValue:e})},t)};return o._data?s():o.$once('hook:created',s),i}function r(e){return this.$watchAsStore(e).map(({newValue:e})=>e)}t=t&&t.hasOwnProperty('default')?t.default:t;const i={created(){const e=this;let o=e.$options.effector;if('function'==typeof o&&(o=o.call(e)),o)if(effector.is.store(o))t.util.defineReactive(e,"state",o.getState()),e._subscription=o.subscribe(t=>{e.state=t});else{if('object'!=typeof o||null===o)throw Error('property should be Store');{const r=effector.createStoreObject(o);for(const i in o)t.util.defineReactive(e,i,r.defaultState[i]);e._subscription=r.subscribe(t=>{for(const o in t)e[o]=t[o]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};e.VueEffector=e=>{e.mixin(i),e.prototype.$watchAsStore=o,e.prototype.$store=r},e.createComponent=(e,o)=>t.extend(Object.assign({},e,o&&{effector:()=>o})),Object.defineProperty(e,'__esModule',{value:1})},void('object'==typeof exports&&'undefined'!=typeof module?t(exports,require('vue'),require('effector')):'function'==typeof define&&define.amd?define(['exports','vue','effector'],t):t((e=e||self).effectorVue={},e.Vue,e.effector));var e,t; | ||
((e,t)=>{'object'==typeof exports&&'undefined'!=typeof module?t(exports,require('vue'),require('effector')):'function'==typeof define&&define.amd?define(['exports','vue','effector'],t):t((e=e||self).effectorVue={},e.Vue,e.effector)})(this,(function(e,t,effector){function o(e,t={immediate:1}){const o=this,r=effector.createEvent(),i=effector.createStore({});let n;i.on(r,(e,t)=>t);const s=()=>{n=o.$watch(e,(e,t)=>{r({oldValue:t,newValue:e})},t)};return o._data?s():o.$once('hook:created',s),i}function r(e){return this.$watchAsStore(e).map(({newValue:e})=>e)}t=t&&t.hasOwnProperty('default')?t.default:t;const i={created(){const e=this;let o=e.$options.effector;if('function'==typeof o&&(o=o.call(e)),o)if(effector.is.store(o))t.util.defineReactive(e,"state",o.getState()),e._subscription=o.subscribe(t=>{e.state=t});else{if('object'!=typeof o||null===o)throw Error('property should be Store');{const r=effector.createStoreObject(o);for(const i in o)t.util.defineReactive(e,i,r.defaultState[i]);e._subscription=r.subscribe(t=>{for(const o in t)e[o]=t[o]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};e.VueEffector=e=>{e.mixin(i),e.prototype.$watchAsStore=o,e.prototype.$store=r},e.createComponent=(e,o)=>t.extend(Object.assign({},e,o&&{effector:()=>o})),Object.defineProperty(e,'__esModule',{value:1})})); | ||
//# sourceMappingURL=effector-vue.umd.js.map |
{ | ||
"name": "effector-vue", | ||
"version": "20.3.2", | ||
"version": "20.3.3", | ||
"description": "Vue bindings for effector", | ||
@@ -20,8 +20,8 @@ "main": "effector-vue.cjs.js", | ||
"effector-vue.es.js", | ||
"effector-vue.es.js.map", | ||
"effector-vue.cjs.js", | ||
"effector-vue.cjs.js.map", | ||
"effector-vue.umd.js", | ||
"effector-vue.umd.js.map", | ||
"compat.js", | ||
"effector-vue.es.js.map", | ||
"effector-vue.cjs.js.map", | ||
"effector-vue.umd.js.map", | ||
"compat.js.map", | ||
@@ -46,6 +46,3 @@ "effector-vue.cjs.js.flow", | ||
"data", | ||
"streams", | ||
"state", | ||
"actions", | ||
"redux" | ||
"state" | ||
], | ||
@@ -57,6 +54,2 @@ "author": "Zero Bias", | ||
"email": "ribkatt@gmail.com" | ||
}, | ||
{ | ||
"name": "goodmind", | ||
"email": "andwebar@gmail.com" | ||
} | ||
@@ -63,0 +56,0 @@ ], |
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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
41739
0
3