@tsdotnet/linked-node-list
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -9,2 +9,3 @@ /* | ||
import IterableCollectionBase from '@tsdotnet/collection-base/dist/IterableCollectionBase'; | ||
import { ExtendedIterable } from '@tsdotnet/collection-base'; | ||
/* eslint-disable @typescript-eslint/no-this-alias */ | ||
@@ -337,3 +338,3 @@ /***************************** | ||
const _ = this; | ||
return { | ||
return _._reversed || (_._reversed = Object.freeze(ExtendedIterable.create({ | ||
*[Symbol.iterator]() { | ||
@@ -347,3 +348,3 @@ let current, prev = _.last; | ||
} | ||
}; | ||
}))); | ||
} | ||
@@ -350,0 +351,0 @@ *_getIterator() { |
@@ -144,2 +144,3 @@ import { ArrayLikeWritable, PredicateWithIndex } from '@tsdotnet/common-interfaces'; | ||
replace(node: TNode, replacement: TNode): this; | ||
private _reversed?; | ||
/** | ||
@@ -149,3 +150,3 @@ * Iterable for iterating this collection in reverse order. | ||
*/ | ||
get reversed(): Iterable<ProtectedLinkedNode<TNode>>; | ||
get reversed(): Readonly<Iterable<ProtectedLinkedNode<TNode>>>; | ||
protected _getIterator(): Iterator<ProtectedLinkedNode<TNode>>; | ||
@@ -152,0 +153,0 @@ } |
@@ -13,2 +13,3 @@ "use strict"; | ||
const IterableCollectionBase_1 = tslib_1.__importDefault(require("@tsdotnet/collection-base/dist/IterableCollectionBase")); | ||
const collection_base_1 = require("@tsdotnet/collection-base"); | ||
/* eslint-disable @typescript-eslint/no-this-alias */ | ||
@@ -341,3 +342,3 @@ /***************************** | ||
const _ = this; | ||
return { | ||
return _._reversed || (_._reversed = Object.freeze(collection_base_1.ExtendedIterable.create({ | ||
*[Symbol.iterator]() { | ||
@@ -351,3 +352,3 @@ let current, prev = _.last; | ||
} | ||
}; | ||
}))); | ||
} | ||
@@ -354,0 +355,0 @@ *_getIterator() { |
{ | ||
"name": "@tsdotnet/linked-node-list", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "An unprotected bi-directional linked list. Useful for implementing other collections.", | ||
@@ -5,0 +5,0 @@ "author": "electricessence", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
53684
1031