Initial commit - Event Planner application
This commit is contained in:
23
node_modules/iterare/.prettierrc.json
generated
vendored
Normal file
23
node_modules/iterare/.prettierrc.json
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"tabWidth": 2,
|
||||
"printWidth": 120,
|
||||
"semi": false,
|
||||
"trailingComma": "es5",
|
||||
"singleQuote": true,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.ts",
|
||||
"options": {
|
||||
"tabWidth": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": "{tsconfig.json,.vscode/**/*.json}",
|
||||
"options": {
|
||||
"parser": "json5",
|
||||
"singleQuote": false,
|
||||
"quoteProps": "preserve"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
15
node_modules/iterare/LICENSE.txt
generated
vendored
Normal file
15
node_modules/iterare/LICENSE.txt
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
ISC License
|
||||
|
||||
Copyright (c) 2016, Felix Frederick Becker
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
132
node_modules/iterare/README.md
generated
vendored
Normal file
132
node_modules/iterare/README.md
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
# iterare
|
||||
|
||||
> lat. _to repeat, to iterate_
|
||||
|
||||
[](https://www.npmjs.com/package/iterare)
|
||||
[](https://www.npmjs.com/package/iterare)
|
||||
[](https://travis-ci.org/felixfbecker/iterare)
|
||||
[](https://codecov.io/gh/felixfbecker/iterare)
|
||||
[](https://david-dm.org/felixfbecker/iterare)
|
||||

|
||||
[](https://github.com/prettier/prettier)
|
||||
[](https://github.com/semantic-release/semantic-release)
|
||||
[](https://github.com/felixfbecker/iterare/blob/master/LICENSE.txt)
|
||||
[](https://gitter.im/felixfbecker/iterare?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
|
||||
ES6 Iterator library for applying multiple transformations to a collection in a single iteration.
|
||||
|
||||
## [API Documentation](http://iterare.surge.sh/)
|
||||
|
||||
## Motivation
|
||||
|
||||
Ever wanted to iterate over ES6 collections like `Map` or `Set` with `Array`-built-ins like `map()`, `filter()`, `reduce()`?
|
||||
Lets say you have a large `Set` of URIs and want to get a `Set` back that contains file paths from all `file://` URIs.
|
||||
|
||||
The loop solution is very clumsy and not very functional:
|
||||
|
||||
```javascript
|
||||
const uris = new Set(['file:///foo.txt', 'http:///npmjs.com', 'file:///bar/baz.txt'])
|
||||
const paths = new Set()
|
||||
for (const uri of uris) {
|
||||
if (!uri.startsWith('file://')) {
|
||||
continue
|
||||
}
|
||||
const path = uri.substr('file:///'.length)
|
||||
paths.add(path)
|
||||
}
|
||||
```
|
||||
|
||||
Much more readable is converting the `Set` to an array, using its methods and then converting back:
|
||||
|
||||
```javascript
|
||||
new Set(
|
||||
Array.from(uris)
|
||||
.filter(uri => uri.startsWith('file://'))
|
||||
.map(uri => uri.substr('file:///'.length))
|
||||
)
|
||||
```
|
||||
|
||||
But there is a problem: Instead of iterating once, you iterate 4 times (one time for converting, one time for filtering, one time for mapping, one time for converting back).
|
||||
For a large Set with thousands of elements, this has significant overhead.
|
||||
|
||||
Other libraries like RxJS or plain NodeJS streams would support these kinds of "pipelines" without multiple iterations, but they work only asynchronously.
|
||||
|
||||
With this library you can use many methods you know and love from `Array` and lodash while only iterating once - thanks to the ES6 [iterator protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols):
|
||||
|
||||
```javascript
|
||||
import iterate from 'iterare'
|
||||
|
||||
iterate(uris)
|
||||
.filter(uri => uri.startsWith('file://'))
|
||||
.map(uri => uri.substr('file:///'.length))
|
||||
.toSet()
|
||||
```
|
||||
|
||||
`iterate` accepts any kind of Iterator or Iterable (arrays, collections, generators, ...) and returns a new Iterator object that can be passed to any Iterable-accepting function (collection constructors, `Array.from()`, `for of`, ...).
|
||||
Only when you call a method like `toSet()`, `reduce()` or pass it to a `for of` loop will each value get pulled through the pipeline, and only once.
|
||||
|
||||
This library is essentially
|
||||
|
||||
- RxJS, but fully synchronous
|
||||
- lodash, but with first-class support for ES6 collections.
|
||||
|
||||
## Performance
|
||||
|
||||
Benchmarks based on the examples above:
|
||||
|
||||
### [`map` + `filter`](https://github.com/felixfbecker/iterare/blob/master/src/benchmarks/map_filter_set.ts)
|
||||
|
||||
Simulate iterating over a very lage Set of strings and applying a filter and a map on it.
|
||||
|
||||
| Method | ops/sec |
|
||||
| ------------------ | -----------------------------------: |
|
||||
| Loop | 466 ops/sec ±1.31% (84 runs sampled) |
|
||||
| **iterare** | 397 ops/sec ±2.01% (81 runs sampled) |
|
||||
| RxJS | 339 ops/sec ±0.77% (83 runs sampled) |
|
||||
| Array method chain | 257 ops/sec ±1.73% (79 runs sampled) |
|
||||
| Lodash | 268 ops/sec ±0.84% (81 runs sampled) |
|
||||
| IxJS (ES6) | 216 ops/sec ±0.81% (81 runs sampled) |
|
||||
| IxJS (ES5) | 141 ops/sec ±0.87% (77 runs sampled) |
|
||||
|
||||
### [`filter` + `take`](https://github.com/felixfbecker/iterare/blob/master/src/benchmarks/filter_take_set.ts)
|
||||
|
||||
Simulate iterating over a very lage Set of strings and applying a filter on it, then taking only the first 1000 elements.
|
||||
A smart implementations should only apply the filter predicate to the first 5 elements.
|
||||
|
||||
| Method | ops/sec |
|
||||
| ------------------ | -----------------------------------------: |
|
||||
| Loop | 3,059,466 ops/sec ±0.75% (88 runs sampled) |
|
||||
| **iterare** | 963,257 ops/sec ±0.68% (89 runs sampled) |
|
||||
| IxJS (ES6) | 424,488 ops/sec ±0.63% (89 runs sampled) |
|
||||
| RxJS | 168,853 ops/sec ±2.58% (86 runs sampled) |
|
||||
| IxJS (ES5) | 107,961 ops/sec ±1.88% (78 runs sampled) |
|
||||
| Lodash | 41.71 ops/sec ±1.15% (54 runs sampled) |
|
||||
| Array method chain | 24.74 ops/sec ±3.69% (45 runs sampled) |
|
||||
|
||||
## Lazy Evaluation
|
||||
|
||||
Going a step further, if you only care about a specific number of elements in the end, only these elements will run through the pipeline:
|
||||
|
||||
```javascript
|
||||
iterate(collection)
|
||||
.filter(uri => uri.startsWith('file://'))
|
||||
.take(5)
|
||||
```
|
||||
|
||||
In this example, the filter predicate is called only until 5 elements have been found.
|
||||
The alternative with an array would call it for every element in the collection:
|
||||
|
||||
```javascript
|
||||
Array.from(collection)
|
||||
.filter(uri => uri.startsWith('file://'))
|
||||
.slice(0, 5)
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
The source is written in TypeScript.
|
||||
|
||||
- `npm run build` compiles TS
|
||||
- `npm run watch` compiles on file changes
|
||||
- `npm test` runs tests
|
||||
- `node lib/benchmarks/____` runs a benchmark
|
||||
6
node_modules/iterare/lib/concat.d.ts
generated
vendored
Normal file
6
node_modules/iterare/lib/concat.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export declare class ConcatIterator<T> implements Iterator<T> {
|
||||
private toConcat;
|
||||
constructor(toConcat: Iterator<T>[]);
|
||||
next(): IteratorResult<T>;
|
||||
}
|
||||
//# sourceMappingURL=concat.d.ts.map
|
||||
1
node_modules/iterare/lib/concat.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/concat.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../src/concat.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IACrC,OAAO,CAAC,QAAQ;gBAAR,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE;IAE3C,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC;CAW5B"}
|
||||
20
node_modules/iterare/lib/concat.js
generated
vendored
Normal file
20
node_modules/iterare/lib/concat.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class ConcatIterator {
|
||||
constructor(toConcat) {
|
||||
this.toConcat = toConcat;
|
||||
}
|
||||
next() {
|
||||
if (this.toConcat.length === 0) {
|
||||
return { done: true };
|
||||
}
|
||||
const result = this.toConcat[0].next();
|
||||
if (!result.done) {
|
||||
return result;
|
||||
}
|
||||
this.toConcat.shift();
|
||||
return this.next();
|
||||
}
|
||||
}
|
||||
exports.ConcatIterator = ConcatIterator;
|
||||
//# sourceMappingURL=concat.js.map
|
||||
1
node_modules/iterare/lib/concat.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/concat.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.js","sourceRoot":"","sources":["../src/concat.ts"],"names":[],"mappings":";;AAAA,MAAa,cAAc;IACvB,YAAoB,QAAuB;QAAvB,aAAQ,GAAR,QAAQ,CAAe;IAAG,CAAC;IAE/C,IAAI;QACA,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAuB,CAAA;SAC7C;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QACtC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YACd,OAAO,MAAM,CAAA;SAChB;QACD,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAA;QACrB,OAAO,IAAI,CAAC,IAAI,EAAE,CAAA;IACtB,CAAC;CACJ;AAdD,wCAcC"}
|
||||
2
node_modules/iterare/lib/concat.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/concat.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=concat.test.d.ts.map
|
||||
1
node_modules/iterare/lib/concat.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/concat.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.test.d.ts","sourceRoot":"","sources":["../src/concat.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/concat.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/concat.test.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concat.test.js","sourceRoot":"","sources":["../src/concat.test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,qCAAyC;AAEzC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC7D,MAAM,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAC9E,MAAM,MAAM,GAAG,IAAI,uBAAc,CAAC,SAAS,CAAC,CAAA;QAC5C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
||||
7
node_modules/iterare/lib/filter.d.ts
generated
vendored
Normal file
7
node_modules/iterare/lib/filter.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export declare class FilterIterator<T, V extends T = T> implements Iterator<T> {
|
||||
private source;
|
||||
private predicate;
|
||||
constructor(source: Iterator<T>, predicate: ((element: T) => element is V) | ((element: T) => boolean));
|
||||
next(): IteratorResult<V>;
|
||||
}
|
||||
//# sourceMappingURL=filter.d.ts.map
|
||||
1
node_modules/iterare/lib/filter.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/filter.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../src/filter.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAE9D,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,SAAS;gBADT,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EACnB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,CAAC;IAGjF,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC;CAQ5B"}
|
||||
18
node_modules/iterare/lib/filter.js
generated
vendored
Normal file
18
node_modules/iterare/lib/filter.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class FilterIterator {
|
||||
constructor(source, predicate) {
|
||||
this.source = source;
|
||||
this.predicate = predicate;
|
||||
}
|
||||
next() {
|
||||
let result;
|
||||
// Skip elements until predicate returns true
|
||||
do {
|
||||
result = this.source.next();
|
||||
} while (!result.done && !this.predicate(result.value));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
exports.FilterIterator = FilterIterator;
|
||||
//# sourceMappingURL=filter.js.map
|
||||
1
node_modules/iterare/lib/filter.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/filter.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../src/filter.ts"],"names":[],"mappings":";;AAAA,MAAa,cAAc;IACvB,YACY,MAAmB,EACnB,SAAqE;QADrE,WAAM,GAAN,MAAM,CAAa;QACnB,cAAS,GAAT,SAAS,CAA4D;IAC9E,CAAC;IAEJ,IAAI;QACA,IAAI,MAAyB,CAAA;QAC7B,6CAA6C;QAC7C,GAAG;YACC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;SAC9B,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,EAAC;QACvD,OAAO,MAA2B,CAAA;IACtC,CAAC;CACJ;AAdD,wCAcC"}
|
||||
2
node_modules/iterare/lib/filter.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/filter.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=filter.test.d.ts.map
|
||||
1
node_modules/iterare/lib/filter.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/filter.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.test.d.ts","sourceRoot":"","sources":["../src/filter.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/filter.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/filter.test.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.test.js","sourceRoot":"","sources":["../src/filter.test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,qCAAyC;AAEzC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAChE,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QACxD,MAAM,QAAQ,GAAG,IAAI,uBAAc,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;QACjE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
||||
7
node_modules/iterare/lib/flatten.d.ts
generated
vendored
Normal file
7
node_modules/iterare/lib/flatten.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export declare class FlattenIterator<V> implements Iterator<V> {
|
||||
private outer;
|
||||
private inner?;
|
||||
constructor(outer: Iterator<any>);
|
||||
next(): IteratorResult<V>;
|
||||
}
|
||||
//# sourceMappingURL=flatten.d.ts.map
|
||||
1
node_modules/iterare/lib/flatten.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/flatten.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../src/flatten.ts"],"names":[],"mappings":"AAEA,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAGtC,OAAO,CAAC,KAAK;IAFzB,OAAO,CAAC,KAAK,CAAC,CAAe;gBAET,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;IAExC,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC;CAoB5B"}
|
||||
30
node_modules/iterare/lib/flatten.js
generated
vendored
Normal file
30
node_modules/iterare/lib/flatten.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("./utils");
|
||||
class FlattenIterator {
|
||||
constructor(outer) {
|
||||
this.outer = outer;
|
||||
}
|
||||
next() {
|
||||
// Currently iterating over an inner Iterable?
|
||||
if (this.inner) {
|
||||
const result = this.inner.next();
|
||||
// If not done, return result
|
||||
if (!result.done) {
|
||||
return result;
|
||||
}
|
||||
// Else stop iterating inner Iterable
|
||||
this.inner = undefined;
|
||||
}
|
||||
// Continue with next outer element
|
||||
const { value, done } = this.outer.next();
|
||||
// If the value is iterable, start iterating over it
|
||||
if (utils_1.isIterable(value)) {
|
||||
this.inner = value[Symbol.iterator]();
|
||||
return this.next();
|
||||
}
|
||||
return { value, done };
|
||||
}
|
||||
}
|
||||
exports.FlattenIterator = FlattenIterator;
|
||||
//# sourceMappingURL=flatten.js.map
|
||||
1
node_modules/iterare/lib/flatten.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/flatten.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"flatten.js","sourceRoot":"","sources":["../src/flatten.ts"],"names":[],"mappings":";;AAAA,mCAAoC;AAEpC,MAAa,eAAe;IAGxB,YAAoB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE5C,IAAI;QACA,8CAA8C;QAC9C,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;YAChC,6BAA6B;YAC7B,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;gBACd,OAAO,MAAM,CAAA;aAChB;YACD,qCAAqC;YACrC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAA;SACzB;QACD,mCAAmC;QACnC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;QACzC,oDAAoD;QACpD,IAAI,kBAAU,CAAC,KAAK,CAAC,EAAE;YACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;YACrC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAA;SACrB;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACJ;AAzBD,0CAyBC"}
|
||||
2
node_modules/iterare/lib/flatten.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/flatten.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=flatten.test.d.ts.map
|
||||
1
node_modules/iterare/lib/flatten.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/flatten.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"flatten.test.d.ts","sourceRoot":"","sources":["../src/flatten.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/flatten.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/flatten.test.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"flatten.test.js","sourceRoot":"","sources":["../src/flatten.test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,uCAA2C;AAE3C,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACvC,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QAC3D,MAAM,SAAS,GAAG,IAAI,yBAAe,CAAC,UAAU,CAAC,CAAA;QACjD,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACvC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACvC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7C,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACvC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACvC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC7C,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
||||
4
node_modules/iterare/lib/index.d.ts
generated
vendored
Normal file
4
node_modules/iterare/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { iterate, zip } from './iterate';
|
||||
export { iterate, zip };
|
||||
export default iterate;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/iterare/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAA;AACvB,eAAe,OAAO,CAAA"}
|
||||
7
node_modules/iterare/lib/index.js
generated
vendored
Normal file
7
node_modules/iterare/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const iterate_1 = require("./iterate");
|
||||
exports.iterate = iterate_1.iterate;
|
||||
exports.zip = iterate_1.zip;
|
||||
exports.default = iterate_1.iterate;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/iterare/lib/index.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,uCAAwC;AAC/B,kBADA,iBAAO,CACA;AAAE,cADA,aAAG,CACA;AACrB,kBAAe,iBAAO,CAAA"}
|
||||
127
node_modules/iterare/lib/iterate.d.ts
generated
vendored
Normal file
127
node_modules/iterare/lib/iterate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
export declare class IteratorWithOperators<T> implements IterableIterator<T> {
|
||||
private source;
|
||||
/**
|
||||
* @param source Iterator to wrap
|
||||
*/
|
||||
constructor(source: Iterator<T>);
|
||||
/**
|
||||
* Returns a `{ value, done }` object that adheres to the Iterator protocol
|
||||
*/
|
||||
next(): IteratorResult<T>;
|
||||
/**
|
||||
* The presence of this method makes the Iterator itself Iterable.
|
||||
* This makes it possible to pass it to `for of` and Iterable-accepting functions like `Array.from()`
|
||||
*/
|
||||
[Symbol.iterator](): this;
|
||||
/**
|
||||
* Returns a new Iterator by running each element thru iteratee
|
||||
*/
|
||||
map<R>(iteratee: (value: T) => R): IteratorWithOperators<R>;
|
||||
/**
|
||||
* Returns a new Iterator of all elements predicate returns truthy for
|
||||
*/
|
||||
filter(predicate: (element: T) => boolean): IteratorWithOperators<T>;
|
||||
filter<R extends T>(predicate: (element: T) => element is R): IteratorWithOperators<R>;
|
||||
/**
|
||||
* Returns a new Iterator concatenating the Iterator with an additional Iterator or Iterable
|
||||
*/
|
||||
concat<C>(collection: Iterable<C> | Iterator<C>): IteratorWithOperators<T | C>;
|
||||
/**
|
||||
* Returns a new Iterator that emits slice of the source with n elements taken from the beginning
|
||||
*
|
||||
* @param limit The number of elements to take.
|
||||
*/
|
||||
take(limit: number): IteratorWithOperators<T>;
|
||||
/**
|
||||
* Returns a new Iterator that emits slice of the source with n elements dropped from the beginning
|
||||
*
|
||||
* @param n The number of elements to drop.
|
||||
*/
|
||||
drop(n: number): IteratorWithOperators<T>;
|
||||
/**
|
||||
* Returns a new Iterator that emits a slice of the source
|
||||
*
|
||||
* @param {number} start Zero-based positive start index, inclusive
|
||||
* @param {number} end Zero-based positive end index, exclusive, defaults to end of iterator
|
||||
*/
|
||||
slice(start: number, end?: number): IteratorWithOperators<T>;
|
||||
/**
|
||||
* Returns a new Iterator that flattens items emitted by the Iterator a single level deep
|
||||
*/
|
||||
flatten(): IteratorWithOperators<T extends Iterable<infer V> ? V : T>;
|
||||
/**
|
||||
* Reduces the Iterator to a value which is the accumulated result of running each emitted element thru iteratee,
|
||||
* where each successive invocation is supplied the return value of the previous.
|
||||
* The first element of collection is used as the initial value.
|
||||
*/
|
||||
reduce(iteratee: (acc: T, val: T) => T): T;
|
||||
/**
|
||||
* Reduces the Iterator to a value which is the accumulated result of running each emitted element thru iteratee,
|
||||
* where each successive invocation is supplied the return value of the previous.
|
||||
*
|
||||
* @param initialValue The initial value for `acc`
|
||||
*/
|
||||
reduce<A>(iteratee: (acc: A, val: T) => A, initialValue: A): A;
|
||||
/**
|
||||
* Finds the first item which satisfies the condition provided as the argument.
|
||||
* The condition is a typeguard and the result has the correct type.
|
||||
* If no argument satisfies the condition, returns undefined.
|
||||
*
|
||||
* @param predicate The predicate with a typeguard signature to search by
|
||||
*/
|
||||
find<V extends T>(predicate: (value: T) => value is V): V | undefined;
|
||||
/**
|
||||
* Finds the first item which satisfies the condition provided as the argument.
|
||||
* If no item saisfies the condition, returns undefined.
|
||||
*
|
||||
* @param predicate The predicate to search by
|
||||
*/
|
||||
find(predicate: (value: T) => boolean): T | undefined;
|
||||
/**
|
||||
* Iterates and checks if `value` is emitted by the Iterator
|
||||
*
|
||||
* @param value The value to search
|
||||
*/
|
||||
includes(value: T): boolean;
|
||||
/**
|
||||
* Iterates and checks if `predicate` returns truthy for any element emitted by the Iterator
|
||||
*/
|
||||
some(predicate: (value: T) => boolean): boolean;
|
||||
/**
|
||||
* Iterates and checks if `predicate` returns truthy for all elements emitted by the Iterator
|
||||
*/
|
||||
every(predicate: (value: T) => boolean): boolean;
|
||||
/**
|
||||
* Iterates and invokes `iteratee` for every element emitted by the Iterator
|
||||
*/
|
||||
forEach(iteratee: (value: T) => any): void;
|
||||
/**
|
||||
* Iterates and joins all elements emitted by the Iterator together as a string separated by an optional separator
|
||||
*/
|
||||
join(separator?: string): string;
|
||||
/**
|
||||
* Iterates and returns all items emitted by the Iterator as an array.
|
||||
* Equivalent to passing the Iterator to `Array.from()`
|
||||
*/
|
||||
toArray(): T[];
|
||||
/**
|
||||
* Iterates and returns all items emitted by the Iterator as an ES6 Set.
|
||||
* Equivalent to passing the Iterator to `new Set()`
|
||||
*/
|
||||
toSet(): Set<T>;
|
||||
/**
|
||||
* Iterates and returns all `[key, value]` paris emitted by the Iterator as an ES6 Map.
|
||||
* Equivalent to passing the Iterator to `new Map()`
|
||||
*/
|
||||
toMap<K, V>(this: IteratorWithOperators<[K, V]>): Map<K, V>;
|
||||
}
|
||||
/**
|
||||
* Creates an Iterator with advanced chainable operator methods for any Iterable or Iterator
|
||||
*/
|
||||
export declare function iterate<T>(collection: Iterator<T> | Iterable<T>): IteratorWithOperators<T>;
|
||||
/**
|
||||
* Creates an Iterator that emits pairs of values from the two passed Iterators
|
||||
*/
|
||||
export declare function zip<A, B>(a: Iterator<A> | Iterable<A>, b: Iterator<B> | Iterable<B>): IteratorWithOperators<[A, B]>;
|
||||
export default iterate;
|
||||
//# sourceMappingURL=iterate.d.ts.map
|
||||
1
node_modules/iterare/lib/iterate.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/iterate.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iterate.d.ts","sourceRoot":"","sources":["../src/iterate.ts"],"names":[],"mappings":"AAQA,qBAAa,qBAAqB,CAAC,CAAC,CAAE,YAAW,gBAAgB,CAAC,CAAC,CAAC;IAIpD,OAAO,CAAC,MAAM;IAH1B;;OAEG;gBACiB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEvC;;OAEG;IACH,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC;IAIzB;;;OAGG;IACH,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI;IAIzB;;OAEG;IACH,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC;IAI3D;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,OAAO,GAAG,qBAAqB,CAA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;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO;IAW3B;;OAEG;IACH,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO;IAW/C;;OAEG;IACH,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO;IAWhD;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,GAAG,IAAI;IAW1C;;OAEG;IACH,IAAI,CAAC,SAAS,SAAM,GAAG,MAAM;IAa7B;;;OAGG;IACH,OAAO,IAAI,CAAC,EAAE;IAId;;;OAGG;IACH,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC;IAWf;;;OAGG;IACH,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;CAG9D;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAE1F;AAED;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAEnH;AAED,eAAe,OAAO,CAAA"}
|
||||
220
node_modules/iterare/lib/iterate.js
generated
vendored
Normal file
220
node_modules/iterare/lib/iterate.js
generated
vendored
Normal file
@@ -0,0 +1,220 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const concat_1 = require("./concat");
|
||||
const filter_1 = require("./filter");
|
||||
const flatten_1 = require("./flatten");
|
||||
const map_1 = require("./map");
|
||||
const slice_1 = require("./slice");
|
||||
const utils_1 = require("./utils");
|
||||
const zip_1 = require("./zip");
|
||||
class IteratorWithOperators {
|
||||
/**
|
||||
* @param source Iterator to wrap
|
||||
*/
|
||||
constructor(source) {
|
||||
this.source = source;
|
||||
}
|
||||
/**
|
||||
* Returns a `{ value, done }` object that adheres to the Iterator protocol
|
||||
*/
|
||||
next() {
|
||||
return this.source.next();
|
||||
}
|
||||
/**
|
||||
* The presence of this method makes the Iterator itself Iterable.
|
||||
* This makes it possible to pass it to `for of` and Iterable-accepting functions like `Array.from()`
|
||||
*/
|
||||
[Symbol.iterator]() {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Returns a new Iterator by running each element thru iteratee
|
||||
*/
|
||||
map(iteratee) {
|
||||
return new IteratorWithOperators(new map_1.MapIterator(this.source, iteratee));
|
||||
}
|
||||
filter(predicate) {
|
||||
return new IteratorWithOperators(new filter_1.FilterIterator(this.source, predicate));
|
||||
}
|
||||
/**
|
||||
* Returns a new Iterator concatenating the Iterator with an additional Iterator or Iterable
|
||||
*/
|
||||
concat(collection) {
|
||||
return new IteratorWithOperators(new concat_1.ConcatIterator([this.source, utils_1.toIterator(collection)]));
|
||||
}
|
||||
/**
|
||||
* Returns a new Iterator that emits slice of the source with n elements taken from the beginning
|
||||
*
|
||||
* @param limit The number of elements to take.
|
||||
*/
|
||||
take(limit) {
|
||||
return new IteratorWithOperators(new slice_1.SliceIterator(this.source, 0, limit + 1));
|
||||
}
|
||||
/**
|
||||
* Returns a new Iterator that emits slice of the source with n elements dropped from the beginning
|
||||
*
|
||||
* @param n The number of elements to drop.
|
||||
*/
|
||||
drop(n) {
|
||||
return new IteratorWithOperators(new slice_1.SliceIterator(this.source, n, Infinity));
|
||||
}
|
||||
/**
|
||||
* Returns a new Iterator that emits a slice of the source
|
||||
*
|
||||
* @param {number} start Zero-based positive start index, inclusive
|
||||
* @param {number} end Zero-based positive end index, exclusive, defaults to end of iterator
|
||||
*/
|
||||
slice(start, end = Infinity) {
|
||||
return new IteratorWithOperators(new slice_1.SliceIterator(this.source, start, end));
|
||||
}
|
||||
/**
|
||||
* Returns a new Iterator that flattens items emitted by the Iterator a single level deep
|
||||
*/
|
||||
flatten() {
|
||||
return new IteratorWithOperators(new flatten_1.FlattenIterator(this.source));
|
||||
}
|
||||
reduce(iteratee, accumulator) {
|
||||
let result;
|
||||
if (accumulator === undefined) {
|
||||
result = this.source.next();
|
||||
if (result.done) {
|
||||
throw new TypeError('Reduce of empty Iterator with no initial value');
|
||||
}
|
||||
accumulator = result.value;
|
||||
}
|
||||
while (true) {
|
||||
result = this.source.next();
|
||||
if (result.done) {
|
||||
break;
|
||||
}
|
||||
accumulator = iteratee(accumulator, result.value);
|
||||
}
|
||||
return accumulator;
|
||||
}
|
||||
find(predicate) {
|
||||
let result;
|
||||
while (true) {
|
||||
result = this.source.next();
|
||||
if (result.done) {
|
||||
return undefined;
|
||||
}
|
||||
if (predicate(result.value)) {
|
||||
return result.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Iterates and checks if `value` is emitted by the Iterator
|
||||
*
|
||||
* @param value The value to search
|
||||
*/
|
||||
includes(value) {
|
||||
let result;
|
||||
do {
|
||||
result = this.source.next();
|
||||
if (!result.done && result.value === value) {
|
||||
return true;
|
||||
}
|
||||
} while (!result.done);
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Iterates and checks if `predicate` returns truthy for any element emitted by the Iterator
|
||||
*/
|
||||
some(predicate) {
|
||||
let result;
|
||||
do {
|
||||
result = this.source.next();
|
||||
if (!result.done && predicate(result.value)) {
|
||||
return true;
|
||||
}
|
||||
} while (!result.done);
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Iterates and checks if `predicate` returns truthy for all elements emitted by the Iterator
|
||||
*/
|
||||
every(predicate) {
|
||||
let result;
|
||||
do {
|
||||
result = this.source.next();
|
||||
if (!result.done && !predicate(result.value)) {
|
||||
return false;
|
||||
}
|
||||
} while (!result.done);
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Iterates and invokes `iteratee` for every element emitted by the Iterator
|
||||
*/
|
||||
forEach(iteratee) {
|
||||
let result;
|
||||
while (true) {
|
||||
result = this.source.next();
|
||||
if (result.done) {
|
||||
break;
|
||||
}
|
||||
iteratee(result.value);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Iterates and joins all elements emitted by the Iterator together as a string separated by an optional separator
|
||||
*/
|
||||
join(separator = ',') {
|
||||
let joined = '';
|
||||
let result;
|
||||
while (true) {
|
||||
result = this.source.next();
|
||||
if (result.done) {
|
||||
break;
|
||||
}
|
||||
joined += separator + result.value;
|
||||
}
|
||||
return joined.substr(separator.length);
|
||||
}
|
||||
/**
|
||||
* Iterates and returns all items emitted by the Iterator as an array.
|
||||
* Equivalent to passing the Iterator to `Array.from()`
|
||||
*/
|
||||
toArray() {
|
||||
return Array.from(this);
|
||||
}
|
||||
/**
|
||||
* Iterates and returns all items emitted by the Iterator as an ES6 Set.
|
||||
* Equivalent to passing the Iterator to `new Set()`
|
||||
*/
|
||||
toSet() {
|
||||
const set = new Set();
|
||||
while (true) {
|
||||
const { value, done } = this.next();
|
||||
if (done) {
|
||||
return set;
|
||||
}
|
||||
set.add(value);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Iterates and returns all `[key, value]` paris emitted by the Iterator as an ES6 Map.
|
||||
* Equivalent to passing the Iterator to `new Map()`
|
||||
*/
|
||||
toMap() {
|
||||
return new Map(this);
|
||||
}
|
||||
}
|
||||
exports.IteratorWithOperators = IteratorWithOperators;
|
||||
/**
|
||||
* Creates an Iterator with advanced chainable operator methods for any Iterable or Iterator
|
||||
*/
|
||||
function iterate(collection) {
|
||||
return new IteratorWithOperators(utils_1.toIterator(collection));
|
||||
}
|
||||
exports.iterate = iterate;
|
||||
/**
|
||||
* Creates an Iterator that emits pairs of values from the two passed Iterators
|
||||
*/
|
||||
function zip(a, b) {
|
||||
return new IteratorWithOperators(new zip_1.ZipIterator(utils_1.toIterator(a), utils_1.toIterator(b)));
|
||||
}
|
||||
exports.zip = zip;
|
||||
exports.default = iterate;
|
||||
//# sourceMappingURL=iterate.js.map
|
||||
1
node_modules/iterare/lib/iterate.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/iterate.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iterate.js","sourceRoot":"","sources":["../src/iterate.ts"],"names":[],"mappings":";;AAAA,qCAAyC;AACzC,qCAAyC;AACzC,uCAA2C;AAC3C,+BAAmC;AACnC,mCAAuC;AACvC,mCAAoC;AACpC,+BAAmC;AAEnC,MAAa,qBAAqB;IAC9B;;OAEG;IACH,YAAoB,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAE3C;;OAEG;IACH,IAAI;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;IAC7B,CAAC;IAED;;;OAGG;IACH,CAAC,MAAM,CAAC,QAAQ,CAAC;QACb,OAAO,IAAI,CAAA;IACf,CAAC;IAED;;OAEG;IACH,GAAG,CAAI,QAAyB;QAC5B,OAAO,IAAI,qBAAqB,CAAC,IAAI,iBAAW,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;IAC5E,CAAC;IAOD,MAAM,CAAC,SAAkC;QACrC,OAAO,IAAI,qBAAqB,CAAC,IAAI,uBAAc,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CAAI,UAAqC;QAC3C,OAAO,IAAI,qBAAqB,CAAC,IAAI,uBAAc,CAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,kBAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IACtG,CAAC;IAED;;;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,CAAC,kBAAU,CAAC,UAAU,CAAC,CAAC,CAAA;AAC5D,CAAC;AAFD,0BAEC;AAED;;GAEG;AACH,SAAgB,GAAG,CAAO,CAA4B,EAAE,CAA4B;IAChF,OAAO,IAAI,qBAAqB,CAAC,IAAI,iBAAW,CAAC,kBAAU,CAAC,CAAC,CAAC,EAAE,kBAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AACnF,CAAC;AAFD,kBAEC;AAED,kBAAe,OAAO,CAAA"}
|
||||
2
node_modules/iterare/lib/iterate.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/iterate.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=iterate.test.d.ts.map
|
||||
1
node_modules/iterare/lib/iterate.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/iterate.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iterate.test.d.ts","sourceRoot":"","sources":["../src/iterate.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/iterate.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/iterate.test.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10
node_modules/iterare/lib/map.d.ts
generated
vendored
Normal file
10
node_modules/iterare/lib/map.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* An iterator that emits results by running each element through a provided predicate
|
||||
*/
|
||||
export declare class MapIterator<T, R> implements Iterator<R> {
|
||||
private source;
|
||||
private iteratee;
|
||||
constructor(source: Iterator<T>, iteratee: (value: T) => R);
|
||||
next(): IteratorResult<R>;
|
||||
}
|
||||
//# sourceMappingURL=map.d.ts.map
|
||||
1
node_modules/iterare/lib/map.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/map.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../src/map.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IACrC,OAAO,CAAC,MAAM;IAAe,OAAO,CAAC,QAAQ;gBAArC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAU,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC;IAE1E,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC;CAI5B"}
|
||||
17
node_modules/iterare/lib/map.js
generated
vendored
Normal file
17
node_modules/iterare/lib/map.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/**
|
||||
* An iterator that emits results by running each element through a provided predicate
|
||||
*/
|
||||
class MapIterator {
|
||||
constructor(source, iteratee) {
|
||||
this.source = source;
|
||||
this.iteratee = iteratee;
|
||||
}
|
||||
next() {
|
||||
const { value, done } = this.source.next();
|
||||
return { value: !done && this.iteratee(value), done };
|
||||
}
|
||||
}
|
||||
exports.MapIterator = MapIterator;
|
||||
//# sourceMappingURL=map.js.map
|
||||
1
node_modules/iterare/lib/map.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/map.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.js","sourceRoot":"","sources":["../src/map.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAa,WAAW;IACpB,YAAoB,MAAmB,EAAU,QAAyB;QAAtD,WAAM,GAAN,MAAM,CAAa;QAAU,aAAQ,GAAR,QAAQ,CAAiB;IAAG,CAAC;IAE9E,IAAI;QACA,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;QAC1C,OAAO,EAAE,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,EAAuB,CAAA;IAC9E,CAAC;CACJ;AAPD,kCAOC"}
|
||||
2
node_modules/iterare/lib/map.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/map.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=map.test.d.ts.map
|
||||
1
node_modules/iterare/lib/map.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/map.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.test.d.ts","sourceRoot":"","sources":["../src/map.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/map.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/map.test.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"map.test.js","sourceRoot":"","sources":["../src/map.test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,+BAAmC;AAEnC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,sEAAsE,EAAE,GAAG,EAAE;QAC5E,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QAClD,MAAM,MAAM,GAAG,IAAI,iBAAW,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;QACtD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
||||
14
node_modules/iterare/lib/slice.d.ts
generated
vendored
Normal file
14
node_modules/iterare/lib/slice.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export declare class SliceIterator<T> implements Iterator<T> {
|
||||
private source;
|
||||
private start;
|
||||
private end;
|
||||
private i;
|
||||
/**
|
||||
* @param {Iterator<T>} source Source Iterator
|
||||
* @param {number} start Zero-based positive start index, inclusive
|
||||
* @param {number} end Zero-based positive end index, exclusive, defaults to end of iterator
|
||||
*/
|
||||
constructor(source: Iterator<T>, start: number, end?: number);
|
||||
next(): IteratorResult<T>;
|
||||
}
|
||||
//# sourceMappingURL=slice.d.ts.map
|
||||
1
node_modules/iterare/lib/slice.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/slice.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../src/slice.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IAQpC,OAAO,CAAC,MAAM;IAAe,OAAO,CAAC,KAAK;IAAU,OAAO,CAAC,GAAG;IAP3E,OAAO,CAAC,CAAC,CAAI;IAEb;;;;OAIG;gBACiB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAU,KAAK,EAAE,MAAM,EAAU,GAAG,SAAW;IAEtF,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC;CAgB5B"}
|
||||
33
node_modules/iterare/lib/slice.js
generated
vendored
Normal file
33
node_modules/iterare/lib/slice.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class SliceIterator {
|
||||
/**
|
||||
* @param {Iterator<T>} source Source Iterator
|
||||
* @param {number} start Zero-based positive start index, inclusive
|
||||
* @param {number} end Zero-based positive end index, exclusive, defaults to end of iterator
|
||||
*/
|
||||
constructor(source, start, end = Infinity) {
|
||||
this.source = source;
|
||||
this.start = start;
|
||||
this.end = end;
|
||||
this.i = 0;
|
||||
}
|
||||
next() {
|
||||
// Skip elements before start
|
||||
while (this.i < this.start) {
|
||||
const result = this.source.next();
|
||||
if (result.done) {
|
||||
return result;
|
||||
}
|
||||
this.i++;
|
||||
}
|
||||
// Finish when end is reached
|
||||
this.i++;
|
||||
if (this.i >= this.end) {
|
||||
return { done: true };
|
||||
}
|
||||
return this.source.next();
|
||||
}
|
||||
}
|
||||
exports.SliceIterator = SliceIterator;
|
||||
//# sourceMappingURL=slice.js.map
|
||||
1
node_modules/iterare/lib/slice.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/slice.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"slice.js","sourceRoot":"","sources":["../src/slice.ts"],"names":[],"mappings":";;AAAA,MAAa,aAAa;IAGtB;;;;OAIG;IACH,YAAoB,MAAmB,EAAU,KAAa,EAAU,MAAM,QAAQ;QAAlE,WAAM,GAAN,MAAM,CAAa;QAAU,UAAK,GAAL,KAAK,CAAQ;QAAU,QAAG,GAAH,GAAG,CAAW;QAP9E,MAAC,GAAG,CAAC,CAAA;IAO4E,CAAC;IAE1F,IAAI;QACA,6BAA6B;QAC7B,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE;YACxB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;YACjC,IAAI,MAAM,CAAC,IAAI,EAAE;gBACb,OAAO,MAAM,CAAA;aAChB;YACD,IAAI,CAAC,CAAC,EAAE,CAAA;SACX;QACD,6BAA6B;QAC7B,IAAI,CAAC,CAAC,EAAE,CAAA;QACR,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;YACpB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAuB,CAAA;SAC7C;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;IAC7B,CAAC;CACJ;AA1BD,sCA0BC"}
|
||||
2
node_modules/iterare/lib/slice.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/slice.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=slice.test.d.ts.map
|
||||
1
node_modules/iterare/lib/slice.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/slice.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"slice.test.d.ts","sourceRoot":"","sources":["../src/slice.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/slice.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/slice.test.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"slice.test.js","sourceRoot":"","sources":["../src/slice.test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,mCAAuC;AAEvC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACvE,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QACrE,MAAM,KAAK,GAAG,IAAI,qBAAa,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;QACjD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACnC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vendored
Normal file
4
node_modules/iterare/lib/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare function isIterator(candidate: any): candidate is Iterator<any>;
|
||||
export declare function isIterable(candidate: any): candidate is Iterable<any>;
|
||||
export declare function toIterator<T>(collection: Iterator<T> | Iterable<T>): Iterator<T>;
|
||||
//# sourceMappingURL=utils.d.ts.map
|
||||
1
node_modules/iterare/lib/utils.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/utils.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,SAAS,EAAE,GAAG,GAAG,SAAS,IAAI,QAAQ,CAAC,GAAG,CAAC,CAErE;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,GAAG,GAAG,SAAS,IAAI,QAAQ,CAAC,GAAG,CAAC,CAErE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAQhF"}
|
||||
21
node_modules/iterare/lib/utils.js
generated
vendored
Normal file
21
node_modules/iterare/lib/utils.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function isIterator(candidate) {
|
||||
return typeof candidate === 'object' && candidate !== null && typeof candidate.next === 'function';
|
||||
}
|
||||
exports.isIterator = isIterator;
|
||||
function isIterable(candidate) {
|
||||
return typeof candidate === 'object' && candidate !== null && typeof candidate[Symbol.iterator] === 'function';
|
||||
}
|
||||
exports.isIterable = isIterable;
|
||||
function toIterator(collection) {
|
||||
if (isIterator(collection)) {
|
||||
return collection;
|
||||
}
|
||||
if (isIterable(collection)) {
|
||||
return collection[Symbol.iterator]();
|
||||
}
|
||||
throw new Error('Passed collection is neither an Iterator nor an Iterable');
|
||||
}
|
||||
exports.toIterator = toIterator;
|
||||
//# sourceMappingURL=utils.js.map
|
||||
1
node_modules/iterare/lib/utils.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/utils.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAAA,SAAgB,UAAU,CAAC,SAAc;IACrC,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,OAAO,SAAS,CAAC,IAAI,KAAK,UAAU,CAAA;AACtG,CAAC;AAFD,gCAEC;AAED,SAAgB,UAAU,CAAC,SAAc;IACrC,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,OAAO,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,UAAU,CAAA;AAClH,CAAC;AAFD,gCAEC;AAED,SAAgB,UAAU,CAAI,UAAqC;IAC/D,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE;QACxB,OAAO,UAAU,CAAA;KACpB;IACD,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE;QACxB,OAAO,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;KACvC;IACD,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;AAC/E,CAAC;AARD,gCAQC"}
|
||||
2
node_modules/iterare/lib/utils.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/utils.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=utils.test.d.ts.map
|
||||
1
node_modules/iterare/lib/utils.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/utils.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../src/utils.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/utils.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/utils.test.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../src/utils.test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,mCAA4D;AAE5D,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACnB,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;QACxB,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;YACtD,MAAM,QAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;YAC7C,MAAM,CAAC,KAAK,CAAC,kBAAU,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAA;QAChD,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;YACjD,MAAM,QAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;YAC1B,MAAM,QAAQ,GAAG,kBAAU,CAAC,QAAQ,CAAC,CAAA;YACrC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;YACtC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;YACtC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;YACtC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QAC5C,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;YAC5C,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE;gBACf,kBAAU,C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A;YAC1B,MAAM,CAAC,KAAK,CAAC,kBAAU,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAA;QAC5C,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;YAC3C,MAAM,QAAQ,GAAG;gBACb,IAAI;oBACA,WAAW;gBACf,CAAC;aACJ,CAAA;YACD,MAAM,CAAC,KAAK,CAAC,kBAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAA;QAC7C,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;YACpC,MAAM,CAAC,KAAK,CAAC,kBAAU,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;QACzC,CAAC,CAAC,CAAA;QACF,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;YACxC,MAAM,CAAC,KAAK,CAAC,kBAAU,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;QACzC,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
||||
7
node_modules/iterare/lib/zip.d.ts
generated
vendored
Normal file
7
node_modules/iterare/lib/zip.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export declare class ZipIterator<A, B> implements Iterator<[A, B]> {
|
||||
private a;
|
||||
private b;
|
||||
constructor(a: Iterator<A>, b: Iterator<B>);
|
||||
next(): IteratorResult<[A, B]>;
|
||||
}
|
||||
//# sourceMappingURL=zip.d.ts.map
|
||||
1
node_modules/iterare/lib/zip.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/zip.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../src/zip.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1C,OAAO,CAAC,CAAC;IAAe,OAAO,CAAC,CAAC;gBAAzB,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAU,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE1D,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAWjC"}
|
||||
21
node_modules/iterare/lib/zip.js
generated
vendored
Normal file
21
node_modules/iterare/lib/zip.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class ZipIterator {
|
||||
constructor(a, b) {
|
||||
this.a = a;
|
||||
this.b = b;
|
||||
}
|
||||
next() {
|
||||
const a = this.a.next();
|
||||
if (a.done) {
|
||||
return { done: true };
|
||||
}
|
||||
const b = this.b.next();
|
||||
if (b.done) {
|
||||
return { done: true };
|
||||
}
|
||||
return { value: [a.value, b.value], done: false };
|
||||
}
|
||||
}
|
||||
exports.ZipIterator = ZipIterator;
|
||||
//# sourceMappingURL=zip.js.map
|
||||
1
node_modules/iterare/lib/zip.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/zip.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zip.js","sourceRoot":"","sources":["../src/zip.ts"],"names":[],"mappings":";;AAAA,MAAa,WAAW;IACpB,YAAoB,CAAc,EAAU,CAAc;QAAtC,MAAC,GAAD,CAAC,CAAa;QAAU,MAAC,GAAD,CAAC,CAAa;IAAG,CAAC;IAE9D,IAAI;QACA,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QACvB,IAAI,CAAC,CAAC,IAAI,EAAE;YACR,OAAO,EAAE,IAAI,EAAE,IAAI,EAA4B,CAAA;SAClD;QACD,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QACvB,IAAI,CAAC,CAAC,IAAI,EAAE;YACR,OAAO,EAAE,IAAI,EAAE,IAAI,EAA4B,CAAA;SAClD;QACD,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;IACrD,CAAC;CACJ;AAdD,kCAcC"}
|
||||
2
node_modules/iterare/lib/zip.test.d.ts
generated
vendored
Normal file
2
node_modules/iterare/lib/zip.test.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=zip.test.d.ts.map
|
||||
1
node_modules/iterare/lib/zip.test.d.ts.map
generated
vendored
Normal file
1
node_modules/iterare/lib/zip.test.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zip.test.d.ts","sourceRoot":"","sources":["../src/zip.test.ts"],"names":[],"mappings":""}
|
||||
1
node_modules/iterare/lib/zip.test.js.map
generated
vendored
Normal file
1
node_modules/iterare/lib/zip.test.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zip.test.js","sourceRoot":"","sources":["../src/zip.test.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,+BAAmC;AAEnC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC5D,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QACzC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QACjD,MAAM,MAAM,GAAG,IAAI,iBAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,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AAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QACzC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;QACvC,MAAM,MAAM,GAAG,IAAI,iBAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACpC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAA;QAC/C,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAA;QAC/C,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
||||
97
node_modules/iterare/package.json
generated
vendored
Normal file
97
node_modules/iterare/package.json
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"name": "iterare",
|
||||
"version": "1.2.1",
|
||||
"description": "Array methods for ES6 Iterators",
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"scripts": {
|
||||
"tslint": "tslint -c tslint.json -p tsconfig.json 'src/**/*.ts'",
|
||||
"prettier": "prettier --write --list-different '**/*.{ts,json,js,md,yml}'",
|
||||
"test": "nyc mocha",
|
||||
"build": "tsc",
|
||||
"watch": "tsc -w",
|
||||
"typedoc": "typedoc --out typedoc --tsconfig tsconfig.json --ignoreCompilerErrors --mode file --excludeExternals src",
|
||||
"semantic-release": "semantic-release"
|
||||
},
|
||||
"nyc": {
|
||||
"all": true,
|
||||
"extension": [
|
||||
".ts"
|
||||
],
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"src/**/*.test.ts"
|
||||
],
|
||||
"reporter": [
|
||||
"text",
|
||||
"json"
|
||||
]
|
||||
},
|
||||
"mocha": {
|
||||
"spec": "src/**/*.test.ts",
|
||||
"require": "ts-node/register"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
|
||||
}
|
||||
},
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"iterator",
|
||||
"iteration",
|
||||
"functional",
|
||||
"es6",
|
||||
"collection",
|
||||
"array",
|
||||
"map",
|
||||
"set",
|
||||
"filter",
|
||||
"reduce",
|
||||
"flatten",
|
||||
"concat",
|
||||
"every",
|
||||
"some"
|
||||
],
|
||||
"author": "Felix Becker <felix.b@outlook.com>",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/felixfbecker/iterare"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/felixfbecker/iterare/issues"
|
||||
},
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^8.0.0",
|
||||
"@commitlint/config-conventional": "^8.0.0",
|
||||
"@reactivex/ix-es2015-cjs": "^2.5.3",
|
||||
"@types/benchmark": "^1.0.31",
|
||||
"@types/lodash": "^4.14.134",
|
||||
"@types/mocha": "^5.2.7",
|
||||
"@types/node": "^7.10.6",
|
||||
"benchmark": "^2.1.4",
|
||||
"husky": "^2.4.0",
|
||||
"ix": "^2.5.3",
|
||||
"lodash": "^4.17.11",
|
||||
"mocha": "^6.1.4",
|
||||
"nyc": "^14.1.1",
|
||||
"prettier": "^1.18.1",
|
||||
"rxjs": "^6.5.2",
|
||||
"semantic-release": "^15.13.12",
|
||||
"ts-node": "^8.2.0",
|
||||
"tslint": "^5.17.0",
|
||||
"tslint-config-prettier": "^1.18.0",
|
||||
"typedoc": "^0.14.2",
|
||||
"typescript": "~3.5.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user