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

effector-vue

Package Overview
Dependencies
Maintainers
2
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.1.0 to 20.1.1

2

compat.js

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

'use strict';function e(e,t){void 0===t&&(t={immediate:1});var r=this,o=effector.createEvent(),i=effector.createStore({});i.on(o,(e,t)=>t);var s=()=>{r.$watch(e,(e,t)=>{o({oldValue:t,newValue:e})},t)};return r._data?s():r.$once('hook:created',s),i}function t(e){return this.$watchAsStore(e).map(e=>e.newValue)}Object.defineProperty(exports,'__esModule',{value:1});var r,o=(r=require('vue'))&&'object'==typeof r&&'default'in r?r.default:r,effector=require('effector'),i={created(){var e=this,t=e.$options.effector;if('function'==typeof t&&(t=t.call(e)),t){if(!effector.is.store(t))throw Error('property should Store');o.util.defineReactive(e,"state",t.getState()),e._subscription=t.subscribe(t=>{e.state=t})}},beforeDestroy(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=r=>{r.mixin(i),r.prototype.$watchAsStore=e,r.prototype.$store=t};
'use strict';function t(t,e){void 0===e&&(e={immediate:1});var r=this,o=effector.createEvent(),i=effector.createStore({});i.on(o,function(t,e){return e});var n=function(){r.$watch(t,function(t,e){o({oldValue:e,newValue:t})},e)};return r._data?n():r.$once('hook:created',n),i}function e(t){return this.$watchAsStore(t).map(function(t){return t.newValue})}Object.defineProperty(exports,'__esModule',{value:1});var r,o=(r=require('vue'))&&'object'==typeof r&&'default'in r?r.default:r,effector=require('effector'),i={created:function(){var t=this,e=t.$options.effector;if('function'==typeof e&&(e=e.call(t)),e){if(!effector.is.store(e))throw Error('property should Store');o.util.defineReactive(t,"state",e.getState()),t._subscription=e.subscribe(function(e){t.state=e})}},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}};exports.VueEffector=function(r){r.mixin(i),r.prototype.$watchAsStore=t,r.prototype.$store=e};
//# sourceMappingURL=compat.js.map
{
"name": "effector-vue",
"version": "20.1.0",
"version": "20.1.1",
"description": "Vue bindings for effector",

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

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