Skip to content

Commit 5f62e01

Browse files
committed
Update dependencies
1 parent a4acd15 commit 5f62e01

File tree

3 files changed

+2307
-3242
lines changed

3 files changed

+2307
-3242
lines changed

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
"coverage": "rimraf coverage && jest --coverage",
1212
"travis": "yarn lint && yarn test",
1313
"lint": "node_modules/.bin/tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'",
14-
"docs": "rimraf docs && typedoc --name Sequency --readme APIDOC.md --module commonjs --out docs --excludeNotExported --target es6 --hideGenerator --gaID UA-48569937-1 src",
14+
"docs": "rimraf docs && typedoc --name Sequency --readme APIDOC.md -out docs --hideGenerator src/Sequence.ts",
1515
"docs-publish": "yarn docs && touch docs/.nojekyll && gh-pages -d docs -t",
1616
"bundle": "webpack --mode production && size-limit",
17+
"bundle-browsertest": "open ./test/browsertest-lib.html",
1718
"clean": "rimraf lib && rimraf lib-umd && rimraf docs && rimraf coverage",
1819
"compile": "tsc",
1920
"build": "yarn clean && yarn lint && yarn compile && yarn test && yarn bundle",
2021
"prepublishOnly": "yarn build"
2122
},
22-
"author": "Benjamin Winterberg",
23+
"author": "winterbe",
2324
"homepage": "https://winterbe.com",
2425
"license": "MIT",
2526
"repository": {
@@ -38,18 +39,19 @@
3839
"node": ">=6.0.0"
3940
},
4041
"devDependencies": {
41-
"@types/jest": "^23.3.1",
42-
"gh-pages": "^1.2.0",
43-
"jest": "^23.4.2",
44-
"rimraf": "^2.6.2",
45-
"size-limit": "^0.19.0",
42+
"@size-limit/preset-small-lib": "^7.0.8",
43+
"@types/jest": "^27.4.1",
44+
"gh-pages": "^3.2.3",
45+
"jest": "^27.5.1",
46+
"rimraf": "^3.0.2",
47+
"size-limit": "^7.0.8",
4648
"ts-loader": "^8.2.0",
4749
"tslint": "^5.11.0",
48-
"typedoc": "^0.11.1",
50+
"typedoc": "^0.22.13",
4951
"typescript": "^4.6.2",
52+
"uglifyjs-webpack-plugin": "^2.2.0",
5053
"webpack": "^4.46.0",
51-
"webpack-cli": "^3.3.12",
52-
"uglifyjs-webpack-plugin": "^2.2.0"
54+
"webpack-cli": "^3.3.12"
5355
},
5456
"jest": {
5557
"moduleFileExtensions": [
@@ -67,7 +69,7 @@
6769
"size-limit": [
6870
{
6971
"path": "lib-umd/sequency.min.js",
70-
"limit": "9 KB"
72+
"limit": "10 KB"
7173
}
7274
],
7375
"keywords": [

src/Sequence.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ import {Zip} from "./zip";
7171
import GeneratorIterator from "./GeneratorIterator";
7272
import GeneratorSeedIterator from "./GeneratorSeedIterator";
7373

74+
/**
75+
* A Sequence provides a fluent functional API consisting
76+
* of various intermediate and terminal operations for processing the iterated data.
77+
* The operations are evaluated lazily to avoid examining all the input data
78+
* when it's not necessary. Sequences can be iterated only once.
79+
*/
80+
export interface Sequence<T> extends SequenceOperators<T> {
81+
readonly iterator: Iterator<T>;
82+
}
83+
84+
export default Sequence;
85+
7486
/**
7587
* @hidden
7688
*/
@@ -81,16 +93,6 @@ export interface SequenceOperators<T> extends All, Any, AsIterable, Associate, A
8193
Sum, SumBy, Take, TakeWhile, ToArray, ToMap, ToSet, Unzip, WithIndex, Zip {
8294
}
8395

84-
/**
85-
* A Sequence provides a fluent functional API consisting
86-
* of various intermediate and terminal operations for processing the iterated data.
87-
* The operations are evaluated lazily to avoid examining all of the input data
88-
* when it's not necessary. Sequences can be iterated only once.
89-
*/
90-
export default interface Sequence<T> extends SequenceOperators<T> {
91-
readonly iterator: Iterator<T>;
92-
}
93-
9496
class SequenceImpl<T> {
9597
constructor(readonly iterator: Iterator<T>) {
9698
}

0 commit comments

Comments
 (0)