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

zen-observable

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zen-observable - npm Package Compare versions

Comparing version 0.8.7 to 0.8.8

3

lib/Observable.js

@@ -106,2 +106,5 @@ 'use strict';

var queue = subscription._queue;
if (!queue) {
return;
}
subscription._queue = undefined;

@@ -108,0 +111,0 @@ subscription._state = 'ready';

2

package.json
{
"name": "zen-observable",
"version": "0.8.7",
"version": "0.8.8",
"repository": "zenparsing/zen-observable",

@@ -5,0 +5,0 @@ "description": "An Implementation of ES Observables",

@@ -88,2 +88,5 @@ // === Symbol Support ===

let queue = subscription._queue;
if (!queue) {
return;
}
subscription._queue = undefined;

@@ -90,0 +93,0 @@ subscription._state = 'ready';

@@ -80,2 +80,13 @@ import assert from 'assert';

it('drops queue if subscription is closed', async () => {
let values = [];
let subscription = new Observable(x => { x.next(1) }).subscribe({
next(val) { values.push(val) },
});
assert.deepEqual(values, []);
subscription.unsubscribe();
await null;
assert.deepEqual(values, []);
});
it('queues if the observer is running', async () => {

@@ -82,0 +93,0 @@ let observer;

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