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.1.0 to 2.1.1

2

helpers/curry.js
export const curry = (fn) => {
return ((a) => (b) => fn(a, b));
return (a) => (b) => fn(a, b);
};
{
"name": "light-observable",
"version": "2.1.0",
"version": "2.1.1",
"description": "Light observable ponyfill",

@@ -30,3 +30,3 @@ "main": "index.js",

"lint-staged": {
"src/**/*.{ts,tsx}": [
"./src/**/*.{ts,tsx}": [
"prettier --write --config .prettierrc",

@@ -33,0 +33,0 @@ "git add"

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

import { Unary } from './pipe';
declare type Curry<F> = F extends ((a: infer A, b: infer B) => infer R) ? Unary<A, Unary<B, R>> : F;
export declare const curry: <T extends (a: any, b: any) => any>(fn: T) => Curry<T>;
export {};
export declare const curry: <A, B, R>(fn: (a: A, b: B) => R) => (a: A) => (b: B) => R;

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

import { Observable } from '..';
import { Observer, Subscribable } from '../core/types.h';
export declare const transform: <T, R = T>(stream: Subscribable<T>, fn: (observer: Observer<R>, value: T) => void) => import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<R>;
export declare const transform: <T, R = T>(stream: Subscribable<T>, fn: (observer: Observer<R>, value: T) => void) => Observable<R>;

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

export declare const catchError: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<(reason: any) => import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<{}>>>;
import { Observable } from '..';
import { Subscribable } from '../core/types.h';
export declare const catchError: <T>(fn: (reason: any) => Subscribable<T>) => (stream: Subscribable<T>) => Observable<T>;

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

export declare const filter: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<(value: {}) => boolean, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<{}>>>;
import { Observable } from '..';
import { Subscribable } from '../core/types.h';
export declare const filter: <T>(fn: (value: T) => boolean) => (stream: Subscribable<T>) => Observable<T>;

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

export declare const forEach: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<((value: {}) => void) | undefined, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, Promise<{}>>>;
import { Subscribable } from '../core/types.h';
export declare const forEach: <S>(fn?: (value: S) => void) => (stream: Subscribable<S>) => Promise<S>;

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

export declare const map: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<(value: {}) => {}, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<{}>>>;
import { Observable } from '..';
import { Subscribable } from '../core/types.h';
export declare const map: <T, R>(fn: (value: T) => R) => (stream: Subscribable<T>) => Observable<R>;

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

export declare const skipRepeats: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<((a: {}, b: {}) => boolean) | undefined, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<{}>>>;
import { Observable } from '..';
import { Subscribable } from '../core/types.h';
export declare const skipRepeats: <T>(equals: (a: T, b: T) => boolean) => (stream: Subscribable<T>) => Observable<T>;

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

export declare const tap: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<(value: {}) => any, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<{}>>>;
import { Observable } from '..';
import { Subscribable } from '../core/types.h';
export declare const tap: <T>(fn: (value: T) => any) => (stream: Subscribable<T>) => Observable<T>;

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

export declare const throttle: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<number, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<any>>>;
import { Observable } from '..';
import { Subscribable } from '../core/types.h';
export declare const throttle: <T>(time: number) => (stream: Subscribable<T>) => Observable<T>;

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

export declare const timeout: import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<number, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/helpers/pipe").Unary<import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/types.h").Subscribable<{}>, import("../../../../../../Users/d.a.korolev/Projects/light-observable/src/core/Observable").Observable<{}>>>;
import { Observable, Subscribable } from '..';
export declare const timeout: <T>(time: number) => (stream: Subscribable<T>) => Observable<T>;
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