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

light-observable

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-observable - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

35

observable/concat.js
import { getSpecies } from '../helpers/getSpecies';
const subscribe = (sources, observer, onSubscribe) => onSubscribe(sources[0].subscribe({
next(value) {
observer.next(value);
},
error(e) {
observer.error(e);
},
complete() {
if (sources.length > 1) {
subscribe(sources.slice(1), observer, onSubscribe);
const subscribe = (sources, observer, onSubscribe) => {
return sources[0].subscribe({
start(s) {
onSubscribe(s);
},
next(value) {
observer.next(value);
},
error(e) {
observer.error(e);
},
complete() {
if (sources.length > 1) {
subscribe(sources.slice(1), observer, onSubscribe);
}
else {
observer.complete();
}
}
else {
observer.complete();
}
}
}));
});
};
export function concat(...sources) {

@@ -19,0 +24,0 @@ const C = getSpecies(sources[0]);

{
"name": "light-observable",
"version": "2.5.0",
"version": "2.5.1",
"description": "Light observable ponyfill",

@@ -5,0 +5,0 @@ "main": "index.js",

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