Socket
Socket
Sign inDemoInstall

baconjs

Package Overview
Dependencies
Maintainers
2
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baconjs - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

.DS_Store

4

package.json
{
"name": "baconjs",
"description": "A small functional reactive programming lib for JavaScript.",
"version": "3.0.5",
"version": "3.0.6",
"keywords": [

@@ -74,3 +74,3 @@ "bacon.js",

"prepublish": "npm run lint && npm run dist",
"version": "3.0.5",
"version": "3.0.6",
"browsertest-bundle": "browsertest/browserify",

@@ -77,0 +77,0 @@ "browsertest-open": "open browsertest/mocha.runner.html",

import "./combine";
import { Observable, Property } from "./observable";
export declare type FlattenedObservable<O> = O extends Observable<infer I> ? I : O;
export declare type DecodedValueOf<O> = FlattenedObservable<O[keyof O]>;
/** @hidden */
export declare function decode<T>(src: Observable<any>, cases: any): Property<T>;
export declare function decode<T extends Record<any, any>>(src: Observable<keyof T>, cases: T): Property<DecodedValueOf<T>>;
export default decode;

@@ -14,2 +14,3 @@ import { Desc } from "./describe";

import { Differ } from "./diff";
import { DecodedValueOf } from "./decode";
/**

@@ -139,3 +140,3 @@ Observable is the base class for [EventsStream](eventstream.html) and [Property](property.html)

*/
decode(cases: any): Property<any>;
decode<T extends Record<any, any>>(cases: T): Property<DecodedValueOf<T>>;
/**

@@ -452,4 +453,13 @@ Delays the stream/property by given amount of milliseconds. Does not delay the initial value of a [`Property`](property.html).

*/
abstract sampledBy(sampler: Observable<any>): Observable<V>;
/**
Creates an EventStream/Property by sampling this
stream/property value at each event from the `sampler` stream. The result
will contain the sampled value at each event in the source stream.
@param {Observable<V2>} sampler
*/
sampledBy(sampler: EventStream<any>): EventStream<V>;
sampledBy(sampler: Property<any>): Property<V>;
sampledBy(sampler: Observable<any>): Observable<V>;
/**
Scans stream/property with given seed value and

@@ -862,11 +872,2 @@ accumulator function, resulting to a Property. For example, you might

/**
Creates an EventStream by sampling this
stream/property value at each event from the `sampler` stream. The result
`EventStream` will contain the sampled value at each event in the source
stream.
@param {Observable<V2>} sampler
*/
sampledBy(sampler: Observable<any>): Observable<V>;
/**
Adds an initial "default" value for the

@@ -1138,11 +1139,2 @@ Property. If the Property doesn't have an initial value of it's own, the

/**
Creates an EventStream by sampling this
stream/property value at each event from the `sampler` stream. The result
`EventStream` will contain the sampled value at each event in the source
stream.
@param {Observable<V2>} sampler
*/
sampledBy(sampler: Observable<any>): Observable<V>;
/**
Adds a starting value to the stream/property, i.e. concats a

@@ -1149,0 +1141,0 @@ single-element stream containing the single seed value with this stream.

import Observable, { EventStream, Property } from "./observable";
declare type Combinator<V, V2, R> = (x: V, y: V2) => R;
/** @hidden */
export declare function sampledBy<V, V2, R>(samplee: Observable<V>, sampler: Observable<V2>, f: Combinator<V, V2, R>): Observable<R>;
/** @hidden */
export declare function sampledByP<V, V2, R>(samplee: Property<V>, sampler: Observable<V2>, f: Combinator<V, V2, R>): Observable<R>;

@@ -5,0 +7,0 @@ /** @hidden */

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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