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

@reactive-js/enumerable

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactive-js/enumerable - npm Package Compare versions

Comparing version 0.0.30 to 0.0.31

2

dist/cjs/index.d.ts
export { EnumeratorLike, EnumerableLike } from "./internal/interfaces";
export { AbstractEnumerator, AbstractDelegatingEnumerator, } from "./internal/enumerator";
export { AbstractDelegatingEnumerator } from "./internal/enumerator";
export { map } from "./internal/map";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var enumerator_1 = require("./internal/enumerator");
exports.AbstractEnumerator = enumerator_1.AbstractEnumerator;
exports.AbstractDelegatingEnumerator = enumerator_1.AbstractDelegatingEnumerator;

@@ -6,0 +5,0 @@ var map_1 = require("./internal/map");

import { EnumeratorLike } from "./interfaces";
export declare abstract class AbstractEnumerator<TReq, T> implements EnumeratorLike<TReq, T> {
readonly add: <This extends import("@reactive-js/disposable").DisposableLike>(this: {
disposable: import("@reactive-js/disposable").DisposableLike;
} & This, disposable: import("@reactive-js/disposable").DisposableLike | ((error?: import("@reactive-js/disposable").ErrorLike | undefined) => void)) => This;
import { add, dispose } from "@reactive-js/disposable";
export declare abstract class AbstractDelegatingEnumerator<TReq, TA, TB> implements EnumeratorLike<TReq, TB> {
readonly delegate: EnumeratorLike<TReq, TA>;
readonly add: typeof add;
readonly disposable: import("@reactive-js/disposable").DisposableLike;
readonly dispose: (this: {
disposable: import("@reactive-js/disposable").DisposableLike;
}, error?: import("@reactive-js/disposable").ErrorLike | undefined) => void;
abstract get current(): T;
readonly dispose: typeof dispose;
isDisposed: boolean;
abstract get current(): TB;
abstract get hasCurrent(): boolean;
get isDisposed(): boolean;
constructor(delegate: EnumeratorLike<TReq, TA>);
abstract move(req: TReq): boolean;
}
export declare abstract class AbstractDelegatingEnumerator<TReq, TA, TB> extends AbstractEnumerator<TReq, TB> implements EnumeratorLike<TReq, TB> {
readonly delegate: EnumeratorLike<TReq, TA>;
constructor(delegate: EnumeratorLike<TReq, TA>);
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const disposable_1 = require("@reactive-js/disposable");
class AbstractEnumerator {
constructor() {
this.add = disposable_1.disposableMixin.add;
this.disposable = disposable_1.createDisposable();
this.dispose = disposable_1.disposableMixin.dispose;
}
get isDisposed() {
return this.disposable.isDisposed;
}
}
exports.AbstractEnumerator = AbstractEnumerator;
class AbstractDelegatingEnumerator extends AbstractEnumerator {
class AbstractDelegatingEnumerator {
constructor(delegate) {
super();
this.delegate = delegate;
this.add = disposable_1.add;
this.disposable = disposable_1.createDisposable(() => { this.isDisposed = true; });
this.dispose = disposable_1.dispose;
this.isDisposed = false;
delegate.add(this);

@@ -20,0 +12,0 @@ }

export { EnumeratorLike, EnumerableLike } from "./internal/interfaces";
export { AbstractEnumerator, AbstractDelegatingEnumerator, } from "./internal/enumerator";
export { AbstractDelegatingEnumerator } from "./internal/enumerator";
export { map } from "./internal/map";

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

export { AbstractEnumerator, AbstractDelegatingEnumerator, } from "./internal/enumerator";
export { AbstractDelegatingEnumerator } from "./internal/enumerator";
export { map } from "./internal/map";
//# sourceMappingURL=index.js.map
import { EnumeratorLike } from "./interfaces";
export declare abstract class AbstractEnumerator<TReq, T> implements EnumeratorLike<TReq, T> {
readonly add: <This extends import("@reactive-js/disposable").DisposableLike>(this: {
disposable: import("@reactive-js/disposable").DisposableLike;
} & This, disposable: import("@reactive-js/disposable").DisposableLike | ((error?: import("@reactive-js/disposable").ErrorLike | undefined) => void)) => This;
import { add, dispose } from "@reactive-js/disposable";
export declare abstract class AbstractDelegatingEnumerator<TReq, TA, TB> implements EnumeratorLike<TReq, TB> {
readonly delegate: EnumeratorLike<TReq, TA>;
readonly add: typeof add;
readonly disposable: import("@reactive-js/disposable").DisposableLike;
readonly dispose: (this: {
disposable: import("@reactive-js/disposable").DisposableLike;
}, error?: import("@reactive-js/disposable").ErrorLike | undefined) => void;
abstract get current(): T;
readonly dispose: typeof dispose;
isDisposed: boolean;
abstract get current(): TB;
abstract get hasCurrent(): boolean;
get isDisposed(): boolean;
constructor(delegate: EnumeratorLike<TReq, TA>);
abstract move(req: TReq): boolean;
}
export declare abstract class AbstractDelegatingEnumerator<TReq, TA, TB> extends AbstractEnumerator<TReq, TB> implements EnumeratorLike<TReq, TB> {
readonly delegate: EnumeratorLike<TReq, TA>;
constructor(delegate: EnumeratorLike<TReq, TA>);
}

@@ -1,16 +0,9 @@

import { disposableMixin, createDisposable } from "@reactive-js/disposable";
export class AbstractEnumerator {
constructor() {
this.add = disposableMixin.add;
this.disposable = createDisposable();
this.dispose = disposableMixin.dispose;
}
get isDisposed() {
return this.disposable.isDisposed;
}
}
export class AbstractDelegatingEnumerator extends AbstractEnumerator {
import { add, dispose, createDisposable } from "@reactive-js/disposable";
export class AbstractDelegatingEnumerator {
constructor(delegate) {
super();
this.delegate = delegate;
this.add = add;
this.disposable = createDisposable(() => { this.isDisposed = true; });
this.dispose = dispose;
this.isDisposed = false;
delegate.add(this);

@@ -17,0 +10,0 @@ }

export { EnumeratorLike, EnumerableLike } from "./internal/interfaces";
export { AbstractEnumerator, AbstractDelegatingEnumerator, } from "./internal/enumerator";
export { AbstractDelegatingEnumerator } from "./internal/enumerator";
export { map } from "./internal/map";
//# sourceMappingURL=index.d.ts.map
import { EnumeratorLike } from "./interfaces";
export declare abstract class AbstractEnumerator<TReq, T> implements EnumeratorLike<TReq, T> {
readonly add: <This extends import("@reactive-js/disposable").DisposableLike>(this: {
disposable: import("@reactive-js/disposable").DisposableLike;
} & This, disposable: import("@reactive-js/disposable").DisposableLike | ((error?: import("@reactive-js/disposable").ErrorLike | undefined) => void)) => This;
import { add, dispose } from "@reactive-js/disposable";
export declare abstract class AbstractDelegatingEnumerator<TReq, TA, TB> implements EnumeratorLike<TReq, TB> {
readonly delegate: EnumeratorLike<TReq, TA>;
readonly add: typeof add;
readonly disposable: import("@reactive-js/disposable").DisposableLike;
readonly dispose: (this: {
disposable: import("@reactive-js/disposable").DisposableLike;
}, error?: import("@reactive-js/disposable").ErrorLike | undefined) => void;
abstract get current(): T;
readonly dispose: typeof dispose;
isDisposed: boolean;
abstract get current(): TB;
abstract get hasCurrent(): boolean;
get isDisposed(): boolean;
constructor(delegate: EnumeratorLike<TReq, TA>);
abstract move(req: TReq): boolean;
}
export declare abstract class AbstractDelegatingEnumerator<TReq, TA, TB> extends AbstractEnumerator<TReq, TB> implements EnumeratorLike<TReq, TB> {
readonly delegate: EnumeratorLike<TReq, TA>;
constructor(delegate: EnumeratorLike<TReq, TA>);
}
//# sourceMappingURL=enumerator.d.ts.map
{
"name": "@reactive-js/enumerable",
"version": "0.0.30",
"version": "0.0.31",
"main": "dist/cjs/index.js",

@@ -41,4 +41,4 @@ "module": "dist/esm5/index.js",

"dependencies": {
"@reactive-js/disposable": "^0.0.30",
"@reactive-js/pipe": "^0.0.30"
"@reactive-js/disposable": "^0.0.31",
"@reactive-js/pipe": "^0.0.31"
},

@@ -68,3 +68,3 @@ "devDependencies": {

},
"gitHead": "f231e2dd36697e368790180dddb4eb16eb713856"
"gitHead": "c950e60d18f5bb13f5890123c05728b4edf9c3c0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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