Comparing version 11.7.0 to 11.8.0
@@ -11,2 +11,3 @@ "use strict"; | ||
this.id = null; | ||
this.t = index_1.NO; | ||
} | ||
@@ -35,5 +36,7 @@ DebounceOperator.prototype._start = function (out) { | ||
this.clearInterval(); | ||
this.t = t; | ||
this.id = setInterval(function () { | ||
_this.clearInterval(); | ||
u._n(t); | ||
_this.t = index_1.NO; | ||
}, this.dt); | ||
@@ -53,2 +56,5 @@ }; | ||
this.clearInterval(); | ||
if (this.t != index_1.NO) | ||
u._n(this.t); | ||
this.t = index_1.NO; | ||
u._c(); | ||
@@ -101,2 +107,2 @@ }; | ||
exports.default = debounce; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVib3VuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvZXh0cmEvZGVib3VuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQ0FBMEM7QUFFMUM7SUFLRSwwQkFBbUIsRUFBVSxFQUNWLEdBQWM7UUFEZCxPQUFFLEdBQUYsRUFBRSxDQUFRO1FBQ1YsUUFBRyxHQUFILEdBQUcsQ0FBVztRQUwxQixTQUFJLEdBQUcsVUFBVSxDQUFDO1FBQ2xCLFFBQUcsR0FBYyxJQUFXLENBQUM7UUFDNUIsT0FBRSxHQUFRLElBQUksQ0FBQztJQUl2QixDQUFDO0lBRUQsaUNBQU0sR0FBTixVQUFPLEdBQWM7UUFDbkIsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7UUFDZixJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN0QixDQUFDO0lBRUQsZ0NBQUssR0FBTDtRQUNFLElBQUksQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3ZCLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBVyxDQUFDO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m9tRGlhZ3JhbSBmcm9tICd4c3RyZWFtL2V4dHJhL2Zyb21EaWFncmFtJ1xuICogaW1wb3J0IGRlYm91bmNlIGZyb20gJ3hzdHJlYW0vZXh0cmEvZGVib3VuY2UnXG4gKlxuICogY29uc3Qgc3RyZWFtID0gZnJvbURpYWdyYW0oJy0tMS0tLS0yLS0zLS00LS0tLTV8JylcbiAqICAuY29tcG9zZShkZWJvdW5jZSg2MCkpXG4gKlxuICogc3RyZWFtLmFkZExpc3RlbmVyKHtcbiAqICAgbmV4dDogaSA9PiBjb25zb2xlLmxvZyhpKSxcbiAqICAgZXJyb3I6IGVyciA9PiBjb25zb2xlLmVycm9yKGVyciksXG4gKiAgIGNvbXBsZXRlOiAoKSA9PiBjb25zb2xlLmxvZygnY29tcGxldGVkJylcbiAqIH0pXG4gKiBgYGBcbiAqXG4gKiBgYGB0ZXh0XG4gKiA+IDFcbiAqID4gNFxuICogPiBjb21wbGV0ZWRcbiAqIGBgYFxuICpcbiAqIEBwYXJhbSB7bnVtYmVyfSBwZXJpb2QgVGhlIGFtb3VudCBvZiBzaWxlbmNlIHJlcXVpcmVkIGluIG1pbGxpc2Vjb25kcy5cbiAqIEByZXR1cm4ge1N0cmVhbX1cbiAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gZGVib3VuY2U8VD4ocGVyaW9kOiBudW1iZXIpOiAoaW5zOiBTdHJlYW08VD4pID0+IFN0cmVhbTxUPiB7XG4gIHJldHVybiBmdW5jdGlvbiBkZWJvdW5jZU9wZXJhdG9yKGluczogU3RyZWFtPFQ+KSB7XG4gICAgcmV0dXJuIG5ldyBTdHJlYW08VD4obmV3IERlYm91bmNlT3BlcmF0b3IocGVyaW9kLCBpbnMpKTtcbiAgfTtcbn1cbiJdfQ== |
@@ -9,4 +9,3 @@ import { Operator, Stream } from '../index'; | ||
private on; | ||
constructor(o: Stream<any>, // o = other | ||
ins: Stream<T>); | ||
constructor(o: Stream<any>, ins: Stream<T>); | ||
_start(out: Stream<T>): void; | ||
@@ -21,3 +20,3 @@ _stop(): void; | ||
* Starts emitting the input stream when another stream emits a next event. The | ||
* output stream will complete if/when the other stream completes. | ||
* output stream will emit no items if another stream is empty. | ||
* | ||
@@ -58,6 +57,6 @@ * Marble diagram: | ||
* | ||
* @param {Stream} other Some other stream that is used to know when should the | ||
* output stream of this operator start emitting. | ||
* @param {Stream} other Some other stream that is used to know when the output | ||
* stream of this operator should start emitting. | ||
* @return {Stream} | ||
*/ | ||
export default function dropUntil<T>(other: Stream<any>): (ins: Stream<T>) => Stream<T>; |
@@ -15,5 +15,3 @@ "use strict"; | ||
}; | ||
OtherIL.prototype._c = function () { | ||
this.op.up(); | ||
}; | ||
OtherIL.prototype._c = function () { }; | ||
return OtherIL; | ||
@@ -65,3 +63,3 @@ }()); | ||
return; | ||
this.up(); | ||
this._stop(); | ||
u._c(); | ||
@@ -74,3 +72,3 @@ }; | ||
* Starts emitting the input stream when another stream emits a next event. The | ||
* output stream will complete if/when the other stream completes. | ||
* output stream will emit no items if another stream is empty. | ||
* | ||
@@ -111,4 +109,4 @@ * Marble diagram: | ||
* | ||
* @param {Stream} other Some other stream that is used to know when should the | ||
* output stream of this operator start emitting. | ||
* @param {Stream} other Some other stream that is used to know when the output | ||
* stream of this operator should start emitting. | ||
* @return {Stream} | ||
@@ -122,2 +120,2 @@ */ | ||
exports.default = dropUntil; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcFVudGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2V4dHJhL2Ryb3BVbnRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtDQUE4RTtBQUU5RTtJQUNFLGlCQUFtQixHQUFjLEVBQ2IsRUFBd0I7UUFEekIsUUFBRyxHQUFILEdBQUcsQ0FBVztRQUNiLE9BQUUsR0FBRixFQUFFLENBQXNCO0lBQzVDLENBQUM7S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4pOiBTdHJlYW08VD4ge1xuICAgIHJldHVybiBuZXcgU3RyZWFtPFQ+KG5ldyBEcm9wVW50aWxPcGVyYXRvcihvdGhlciwgaW5zKSk7XG4gIH07XG59XG4iXX0= |
@@ -15,3 +15,3 @@ import { Stream, InternalProducer, InternalListener } from '../index'; | ||
_start(out: InternalListener<any>): void; | ||
private schedule; | ||
private schedule(notification, out); | ||
_stop(): void; | ||
@@ -18,0 +18,0 @@ } |
@@ -23,93 +23,4 @@ /// <reference types="node" /> | ||
} | ||
/** | ||
* Creates a stream based on either: | ||
* - DOM events with the name `eventName` from a provided target node | ||
* - Events with the name `eventName` from a provided NodeJS EventEmitter | ||
* | ||
* When creating a stream from EventEmitters, if the source event has more than | ||
* one argument all the arguments will be aggregated into an array in the | ||
* result stream. | ||
* | ||
* (Tip: when using this factory with TypeScript, you will need types for | ||
* Node.js because fromEvent knows how to handle both DOM events and Node.js | ||
* EventEmitter. Just install `@types/node`) | ||
* | ||
* Marble diagram: | ||
* | ||
* ```text | ||
* fromEvent(element, eventName) | ||
* ---ev--ev----ev--------------- | ||
* ``` | ||
* | ||
* Examples: | ||
* | ||
* ```js | ||
* import fromEvent from 'xstream/extra/fromEvent' | ||
* | ||
* const stream = fromEvent(document.querySelector('.button'), 'click') | ||
* .mapTo('Button clicked!') | ||
* | ||
* stream.addListener({ | ||
* next: i => console.log(i), | ||
* error: err => console.error(err), | ||
* complete: () => console.log('completed') | ||
* }) | ||
* ``` | ||
* | ||
* ```text | ||
* > 'Button clicked!' | ||
* > 'Button clicked!' | ||
* > 'Button clicked!' | ||
* ``` | ||
* | ||
* ```js | ||
* import fromEvent from 'xstream/extra/fromEvent' | ||
* import {EventEmitter} from 'events' | ||
* | ||
* const MyEmitter = new EventEmitter() | ||
* const stream = fromEvent(MyEmitter, 'foo') | ||
* | ||
* stream.addListener({ | ||
* next: i => console.log(i), | ||
* error: err => console.error(err), | ||
* complete: () => console.log('completed') | ||
* }) | ||
* | ||
* MyEmitter.emit('foo', 'bar') | ||
* ``` | ||
* | ||
* ```text | ||
* > 'bar' | ||
* ``` | ||
* | ||
* ```js | ||
* import fromEvent from 'xstream/extra/fromEvent' | ||
* import {EventEmitter} from 'events' | ||
* | ||
* const MyEmitter = new EventEmitter() | ||
* const stream = fromEvent(MyEmitter, 'foo') | ||
* | ||
* stream.addListener({ | ||
* next: i => console.log(i), | ||
* error: err => console.error(err), | ||
* complete: () => console.log('completed') | ||
* }) | ||
* | ||
* MyEmitter.emit('foo', 'bar', 'baz', 'buzz') | ||
* ``` | ||
* | ||
* ```text | ||
* > ['bar', 'baz', 'buzz'] | ||
* ``` | ||
* | ||
* @factory true | ||
* @param {EventTarget|EventEmitter} element The element upon which to listen. | ||
* @param {string} eventName The name of the event for which to listen. | ||
* @param {boolean?} useCapture An optional boolean that indicates that events of | ||
* this type will be dispatched to the registered listener before being | ||
* dispatched to any EventTarget beneath it in the DOM tree. Defaults to false. | ||
* @return {Stream} | ||
*/ | ||
declare function fromEvent<T = any>(element: EventEmitter, eventName: string): Stream<T>; | ||
declare function fromEvent<T extends Event = Event>(element: EventTarget, eventName: string, useCapture?: boolean): Stream<T>; | ||
export default fromEvent; |
@@ -48,2 +48,91 @@ "use strict"; | ||
} | ||
/** | ||
* Creates a stream based on either: | ||
* - DOM events with the name `eventName` from a provided target node | ||
* - Events with the name `eventName` from a provided NodeJS EventEmitter | ||
* | ||
* When creating a stream from EventEmitters, if the source event has more than | ||
* one argument all the arguments will be aggregated into an array in the | ||
* result stream. | ||
* | ||
* (Tip: when using this factory with TypeScript, you will need types for | ||
* Node.js because fromEvent knows how to handle both DOM events and Node.js | ||
* EventEmitter. Just install `@types/node`) | ||
* | ||
* Marble diagram: | ||
* | ||
* ```text | ||
* fromEvent(element, eventName) | ||
* ---ev--ev----ev--------------- | ||
* ``` | ||
* | ||
* Examples: | ||
* | ||
* ```js | ||
* import fromEvent from 'xstream/extra/fromEvent' | ||
* | ||
* const stream = fromEvent(document.querySelector('.button'), 'click') | ||
* .mapTo('Button clicked!') | ||
* | ||
* stream.addListener({ | ||
* next: i => console.log(i), | ||
* error: err => console.error(err), | ||
* complete: () => console.log('completed') | ||
* }) | ||
* ``` | ||
* | ||
* ```text | ||
* > 'Button clicked!' | ||
* > 'Button clicked!' | ||
* > 'Button clicked!' | ||
* ``` | ||
* | ||
* ```js | ||
* import fromEvent from 'xstream/extra/fromEvent' | ||
* import {EventEmitter} from 'events' | ||
* | ||
* const MyEmitter = new EventEmitter() | ||
* const stream = fromEvent(MyEmitter, 'foo') | ||
* | ||
* stream.addListener({ | ||
* next: i => console.log(i), | ||
* error: err => console.error(err), | ||
* complete: () => console.log('completed') | ||
* }) | ||
* | ||
* MyEmitter.emit('foo', 'bar') | ||
* ``` | ||
* | ||
* ```text | ||
* > 'bar' | ||
* ``` | ||
* | ||
* ```js | ||
* import fromEvent from 'xstream/extra/fromEvent' | ||
* import {EventEmitter} from 'events' | ||
* | ||
* const MyEmitter = new EventEmitter() | ||
* const stream = fromEvent(MyEmitter, 'foo') | ||
* | ||
* stream.addListener({ | ||
* next: i => console.log(i), | ||
* error: err => console.error(err), | ||
* complete: () => console.log('completed') | ||
* }) | ||
* | ||
* MyEmitter.emit('foo', 'bar', 'baz', 'buzz') | ||
* ``` | ||
* | ||
* ```text | ||
* > ['bar', 'baz', 'buzz'] | ||
* ``` | ||
* | ||
* @factory true | ||
* @param {EventTarget|EventEmitter} element The element upon which to listen. | ||
* @param {string} eventName The name of the event for which to listen. | ||
* @param {boolean?} useCapture An optional boolean that indicates that events of | ||
* this type will be dispatched to the registered listener before being | ||
* dispatched to any EventTarget beneath it in the DOM tree. Defaults to false. | ||
* @return {Stream} | ||
*/ | ||
function fromEvent(element, eventName, useCapture) { | ||
@@ -59,2 +148,2 @@ if (useCapture === void 0) { useCapture = false; } | ||
exports.default = fromEvent; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJvbUV2ZW50LmpzIiwic291cmNlUm9vdCI6I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any>, // s = separator | ||
ins: Stream<T>); | ||
constructor(s: Stream<any>, ins: Stream<T>); | ||
_start(out: Stream<Stream<T>>): void; | ||
@@ -13,0 +12,0 @@ _stop(): void; |
@@ -86,3 +86,3 @@ declare const NO: {}; | ||
_hasNoSinks(x: InternalListener<any>, trace: Array<any>): boolean; | ||
private ctor; | ||
private ctor(); | ||
/** | ||
@@ -89,0 +89,0 @@ * Adds a Listener to the Stream. |
{ | ||
"name": "xstream", | ||
"version": "11.7.0", | ||
"version": "11.8.0", | ||
"description": "An extremely intuitive, small, and fast functional reactive stream library for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
887324
58
6178