New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vueuse/rxjs

Package Overview
Dependencies
Maintainers
3
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vueuse/rxjs - npm Package Compare versions

Comparing version 10.0.0-beta.2 to 10.0.0-beta.3

9

index.iife.js

@@ -132,3 +132,6 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {

if (vueDemi.isRef(value)) {
return from(value, { immediate: true }).pipe(operators.filter((value2) => value2 instanceof HTMLElement), operators.mergeMap((value2) => rxjs.fromEvent(value2, event)));
return from(value, { immediate: true }).pipe(
operators.filter((value2) => value2 instanceof HTMLElement),
operators.mergeMap((value2) => rxjs.fromEvent(value2, event))
);
}

@@ -159,3 +162,5 @@ return rxjs.fromEvent(value, event);

function useSubject(subject, options) {
const value = vueDemi.ref(subject instanceof rxjs.BehaviorSubject ? subject.value : void 0);
const value = vueDemi.ref(
subject instanceof rxjs.BehaviorSubject ? subject.value : void 0
);
const subscription = subject.subscribe({

@@ -162,0 +167,0 @@ next(val) {

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

var VueDemi=function(n,r,v){if(n.install)return n;if(!r)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),n;if(r.version.slice(0,4)==="2.7."){let s=function(f,u){var c,a={},b={config:r.config,use:r.use.bind(r),mixin:r.mixin.bind(r),component:r.component.bind(r),provide:function(i,e){return a[i]=e,this},directive:function(i,e){return e?(r.directive(i,e),b):r.directive(i)},mount:function(i,e){return c||(c=new r(Object.assign({propsData:u},f,{provide:Object.assign(a,f.provide)})),c.$mount(i,e),c)},unmount:function(){c&&(c.$destroy(),c=void 0)}};return b};var p=s;for(var o in r)n[o]=r[o];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=r,n.Vue2=r,n.version=r.version,n.warn=r.util.warn,n.createApp=s}else if(r.version.slice(0,2)==="2.")if(v){for(var o in v)n[o]=v[o];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=r,n.Vue2=r,n.version=r.version}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(r.version.slice(0,2)==="3."){for(var o in r)n[o]=r[o];n.isVue2=!1,n.isVue3=!0,n.install=function(){},n.Vue=r,n.Vue2=void 0,n.version=r.version,n.set=function(s,f,u){return Array.isArray(s)?(s.length=Math.max(s.length,f),s.splice(f,1,u),u):(s[f]=u,u)},n.del=function(s,f){if(Array.isArray(s)){s.splice(f,1);return}delete s[f]}}else console.error("[vue-demi] Vue version "+r.version+" is unsupported.");return n}(this.VueDemi=this.VueDemi||(typeof VueDemi!="undefined"?VueDemi:{}),this.Vue||(typeof Vue!="undefined"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI!="undefined"?VueCompositionAPI:void 0));(function(n,r,v,o,p){"use strict";function s(i,e){return o.isRef(i)?new r.Observable(t=>{const d=o.watch(i,l=>t.next(l),e);return()=>{d()}}):r.from(i)}function f(i,e){return o.isRef(i)?s(i,{immediate:!0}).pipe(v.filter(t=>t instanceof HTMLElement),v.mergeMap(t=>r.fromEvent(t,e))):r.fromEvent(i,e)}function u(i){return{next:e=>{i.value=e}}}function c(i,e){const t=o.ref(e==null?void 0:e.initialValue),d=i.subscribe({next:l=>t.value=l,error:e==null?void 0:e.onError});return p.tryOnScopeDispose(()=>{d.unsubscribe()}),t}function a(i,e){const t=o.ref(i instanceof r.BehaviorSubject?i.value:void 0),d=i.subscribe({next(l){t.value=l},error:e==null?void 0:e.onError});return o.watch(t,l=>{i.next(l)}),p.tryOnScopeDispose(()=>{d.unsubscribe()}),t}function b(i){p.tryOnScopeDispose(()=>{i.unsubscribe()})}n.from=s,n.fromEvent=f,n.toObserver=u,n.useObservable=c,n.useSubject=a,n.useSubscription=b})(this.VueUse=this.VueUse||{},rxjs,rxjs.operator,VueDemi,VueUse);
var VueDemi=function(n,r,v){if(n.install)return n;if(!r)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),n;if(r.version.slice(0,4)==="2.7."){let s=function(f,u){var c,a={},b={config:r.config,use:r.use.bind(r),mixin:r.mixin.bind(r),component:r.component.bind(r),provide:function(i,e){return a[i]=e,this},directive:function(i,e){return e?(r.directive(i,e),b):r.directive(i)},mount:function(i,e){return c||(c=new r(Object.assign({propsData:u},f,{provide:Object.assign(a,f.provide)})),c.$mount(i,e),c)},unmount:function(){c&&(c.$destroy(),c=void 0)}};return b};var p=s;for(var o in r)n[o]=r[o];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=r,n.Vue2=r,n.version=r.version,n.warn=r.util.warn,n.createApp=s}else if(r.version.slice(0,2)==="2.")if(v){for(var o in v)n[o]=v[o];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=r,n.Vue2=r,n.version=r.version}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(r.version.slice(0,2)==="3."){for(var o in r)n[o]=r[o];n.isVue2=!1,n.isVue3=!0,n.install=function(){},n.Vue=r,n.Vue2=void 0,n.version=r.version,n.set=function(s,f,u){return Array.isArray(s)?(s.length=Math.max(s.length,f),s.splice(f,1,u),u):(s[f]=u,u)},n.del=function(s,f){if(Array.isArray(s)){s.splice(f,1);return}delete s[f]}}else console.error("[vue-demi] Vue version "+r.version+" is unsupported.");return n}(this.VueDemi=this.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),this.Vue||(typeof Vue<"u"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(n,r,v,o,p){"use strict";function s(i,e){return o.isRef(i)?new r.Observable(t=>{const d=o.watch(i,l=>t.next(l),e);return()=>{d()}}):r.from(i)}function f(i,e){return o.isRef(i)?s(i,{immediate:!0}).pipe(v.filter(t=>t instanceof HTMLElement),v.mergeMap(t=>r.fromEvent(t,e))):r.fromEvent(i,e)}function u(i){return{next:e=>{i.value=e}}}function c(i,e){const t=o.ref(e?.initialValue),d=i.subscribe({next:l=>t.value=l,error:e?.onError});return p.tryOnScopeDispose(()=>{d.unsubscribe()}),t}function a(i,e){const t=o.ref(i instanceof r.BehaviorSubject?i.value:void 0),d=i.subscribe({next(l){t.value=l},error:e?.onError});return o.watch(t,l=>{i.next(l)}),p.tryOnScopeDispose(()=>{d.unsubscribe()}),t}function b(i){p.tryOnScopeDispose(()=>{i.unsubscribe()})}n.from=s,n.fromEvent=f,n.toObserver=u,n.useObservable=c,n.useSubject=a,n.useSubscription=b})(this.VueUse=this.VueUse||{},rxjs,rxjs.operator,VueDemi,VueUse);
{
"name": "@vueuse/rxjs",
"version": "10.0.0-beta.2",
"version": "10.0.0-beta.3",
"description": "Enables RxJS reactive functions in Vue",

@@ -42,3 +42,3 @@ "author": "Anthony Fu <https://github.com/antfu>",

"dependencies": {
"@vueuse/shared": "10.0.0-beta.2",
"@vueuse/shared": "10.0.0-beta.3",
"vue-demi": "*"

@@ -45,0 +45,0 @@ },

@@ -5,3 +5,3 @@ # @vueuse/rxjs

> This is an add-on of [VueUse](https://github.com/antfu), enables of a natural way the use of RxJS.
> This is an add-on of [VueUse](https://github.com/antfu), enabling a natural way of using RxJS.

@@ -8,0 +8,0 @@ ## Install

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