Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

effector-vue

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effector-vue - npm Package Compare versions

Comparing version 20.4.1 to 20.4.2

2

compat.js

@@ -1,2 +0,2 @@

'use strict';function t(t,e={immediate:1}){const o=effector.createEvent(),i=effector.restore(o,{}),r=()=>{this.$watch(t,(t,e)=>{o({oldValue:e,newValue:t})},e)};return this._data?r():this.$once('hook:created',r),i}function e(t){return this.$watchAsStore(t).map(({newValue:t})=>t)}Object.defineProperty(exports,'__esModule',{value:1});var o,i=(o=require('vue'))&&'object'==typeof o&&'default'in o?o.default:o,effector=require('effector');const r={beforeCreate(){let t=this.$options.effector;if('function'==typeof t&&(t=t.call(this)),t)if(effector.is.store(t))i.util.defineReactive(this,"state",t.getState()),this._subscription=t.watch(t=>{this.state=t});else{if('object'!=typeof t||null===t)throw Error('property should be Store');{const e=effector.combine(t);for(const o in t)i.util.defineReactive(this,o,e.defaultState[o]);this._subscription=e.watch(t=>{for(const e in t)this[e]=t[e]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=o=>{o.mixin(r),o.prototype.$watchAsStore=t,o.prototype.$store=e},exports.createComponent=function(t,e){return i.extend(Object.assign({},t,e&&{effector:()=>e}))};
'use strict';function t(t,e){var o=this;void 0===e&&(e={immediate:1});var i=r.createEvent(),n=r.restore(i,{}),s=function(){o.$watch(t,(function(t,e){i({oldValue:e,newValue:t})}),e)};return this._data?s():this.$once('hook:created',s),n}function e(t){return this.$watchAsStore(t).map((function(t){return t.newValue}))}Object.defineProperty(exports,'__esModule',{value:1});var o,i=(o=require('vue'))&&'object'==typeof o&&'default'in o?o.default:o,r=require('effector/compat'),n={beforeCreate:function(){var t=this,e=this.$options.effector;if('function'==typeof e&&(e=e.call(this)),e)if(r.is.store(e))i.util.defineReactive(this,"state",e.getState()),this._subscription=e.watch((function(e){t.state=e}));else{if('object'!=typeof e||null===e)throw Error('property should be Store');var o=r.combine(e);for(var n in e)i.util.defineReactive(this,n,o.defaultState[n]);this._subscription=o.watch((function(e){for(var o in e)t[o]=e[o]}))}},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=function(o){o.mixin(n),o.prototype.$watchAsStore=t,o.prototype.$store=e},exports.createComponent=function(t,e){return i.extend(Object.assign({},t,e&&{effector:function(){return e}}))};
//# sourceMappingURL=compat.js.map

@@ -1,2 +0,2 @@

function e(e,t={immediate:1}){const o=effector.createEvent(),i=effector.restore(o,{}),r=()=>{this.$watch(e,(e,t)=>{o({oldValue:t,newValue:e})},t)};return this._data?r():this.$once('hook:created',r),i}function t(e){return this.$watchAsStore(e).map(({newValue:e})=>e)}Object.defineProperty(exports,'__esModule',{value:1});var o,i=(o=require('vue'))&&'object'==typeof o&&'default'in o?o.default:o,effector=require('effector');const r={beforeCreate(){let e=this.$options.effector;if('function'==typeof e&&(e=e.call(this)),e)if(effector.is.store(e))i.util.defineReactive(this,"state",e.getState()),this._subscription=e.watch(e=>{this.state=e});else{if('object'!=typeof e||null===e)throw Error('property should be Store');{const t=effector.combine(e);for(const o in e)i.util.defineReactive(this,o,t.defaultState[o]);this._subscription=t.watch(e=>{for(const t in e)this[t]=e[t]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=o=>{o.mixin(r),o.prototype.$watchAsStore=e,o.prototype.$store=t},exports.createComponent=(e,t)=>i.extend(Object.assign({},e,t&&{effector:()=>t}));
function e(e,t={immediate:1}){let o=effector.createEvent(),i=effector.restore(o,{}),r=()=>{this.$watch(e,(e,t)=>{o({oldValue:t,newValue:e})},t)};return this._data?r():this.$once('hook:created',r),i}function t(e){return this.$watchAsStore(e).map(({newValue:e})=>e)}Object.defineProperty(exports,'__esModule',{value:1});var o,i=(o=require('vue'))&&'object'==typeof o&&'default'in o?o.default:o,effector=require('effector');const r={beforeCreate(){let e=this.$options.effector;if('function'==typeof e&&(e=e.call(this)),e)if(effector.is.store(e))i.util.defineReactive(this,"state",e.getState()),this._subscription=e.watch(e=>{this.state=e});else{if('object'!=typeof e||null===e)throw Error('property should be Store');{let t=effector.combine(e);for(let o in e)i.util.defineReactive(this,o,t.defaultState[o]);this._subscription=t.watch(e=>{for(let t in e)this[t]=e[t]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=o=>{o.mixin(r),o.prototype.$watchAsStore=e,o.prototype.$store=t},exports.createComponent=(e,t)=>i.extend(Object.assign({},e,t&&{effector:()=>t}));
//# sourceMappingURL=effector-vue.cjs.js.map

@@ -1,2 +0,2 @@

function t(t,e={immediate:1}){const o=s(),i=r(o,{}),n=()=>{this.$watch(t,(t,e)=>{o({oldValue:e,newValue:t})},e)};return this._data?n():this.$once('hook:created',n),i}function e(t){return this.$watchAsStore(t).map(({newValue:t})=>t)}function o(t,e){return i.extend(Object.assign({},t,e&&{effector:()=>e}))}import i from'vue';import{createEvent as s,restore as r,is as n,combine as c}from'effector';const f=o=>{o.mixin(a),o.prototype.$watchAsStore=t,o.prototype.$store=e},a={beforeCreate(){let t=this.$options.effector;if('function'==typeof t&&(t=t.call(this)),t)if(n.store(t))i.util.defineReactive(this,"state",t.getState()),this._subscription=t.watch(t=>{this.state=t});else{if('object'!=typeof t||null===t)throw Error('property should be Store');{const e=c(t);for(const o in t)i.util.defineReactive(this,o,e.defaultState[o]);this._subscription=e.watch(t=>{for(const e in t)this[e]=t[e]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};export{f as VueEffector,o as createComponent};
function t(t,e={immediate:1}){let i=r(),o=s(i,{}),n=()=>{this.$watch(t,(t,e)=>{i({oldValue:e,newValue:t})},e)};return this._data?n():this.$once('hook:created',n),o}function e(t){return this.$watchAsStore(t).map(({newValue:t})=>t)}function i(t,e){return o.extend(Object.assign({},t,e&&{effector:()=>e}))}import o from'vue';import{createEvent as r,restore as s,is as n,combine as c}from'effector';let f=i=>{i.mixin(a),i.prototype.$watchAsStore=t,i.prototype.$store=e};const a={beforeCreate(){let t=this.$options.effector;if('function'==typeof t&&(t=t.call(this)),t)if(n.store(t))o.util.defineReactive(this,"state",t.getState()),this._subscription=t.watch(t=>{this.state=t});else{if('object'!=typeof t||null===t)throw Error('property should be Store');{let e=c(t);for(let i in t)o.util.defineReactive(this,i,e.defaultState[i]);this._subscription=e.watch(t=>{for(let e in t)this[e]=t[e]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};export{f as VueEffector,i as createComponent};
//# sourceMappingURL=effector-vue.es.js.map

@@ -1,2 +0,2 @@

((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=effector.createEvent(),i=effector.restore(o,{}),r=()=>{this.$watch(e,(e,t)=>{o({oldValue:t,newValue:e})},t)};return this._data?r():this.$once('hook:created',r),i}function i(e){return this.$watchAsStore(e).map(({newValue:e})=>e)}t=t&&t.hasOwnProperty('default')?t.default:t;const r={beforeCreate(){let e=this.$options.effector;if('function'==typeof e&&(e=e.call(this)),e)if(effector.is.store(e))t.util.defineReactive(this,"state",e.getState()),this._subscription=e.watch(e=>{this.state=e});else{if('object'!=typeof e||null===e)throw Error('property should be Store');{const o=effector.combine(e);for(const i in e)t.util.defineReactive(this,i,o.defaultState[i]);this._subscription=o.watch(e=>{for(const t in e)this[t]=e[t]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};e.VueEffector=e=>{e.mixin(r),e.prototype.$watchAsStore=o,e.prototype.$store=i},e.createComponent=(e,o)=>t.extend(Object.assign({},e,o&&{effector:()=>o})),Object.defineProperty(e,'__esModule',{value:1})}));
((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}){let o=effector.createEvent(),i=effector.restore(o,{}),r=()=>{this.$watch(e,(e,t)=>{o({oldValue:t,newValue:e})},t)};return this._data?r():this.$once('hook:created',r),i}function i(e){return this.$watchAsStore(e).map(({newValue:e})=>e)}t=t&&{}.hasOwnProperty.call(t,'default')?t.default:t;const r={beforeCreate(){let e=this.$options.effector;if('function'==typeof e&&(e=e.call(this)),e)if(effector.is.store(e))t.util.defineReactive(this,"state",e.getState()),this._subscription=e.watch(e=>{this.state=e});else{if('object'!=typeof e||null===e)throw Error('property should be Store');{let o=effector.combine(e);for(let i in e)t.util.defineReactive(this,i,o.defaultState[i]);this._subscription=o.watch(e=>{for(let t in e)this[t]=e[t]})}}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};e.VueEffector=e=>{e.mixin(r),e.prototype.$watchAsStore=o,e.prototype.$store=i},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.4.1",
"version": "20.4.2",
"description": "Vue bindings for effector",

@@ -5,0 +5,0 @@ "main": "effector-vue.cjs.js",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc