Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8abef41

Browse files
committed
Update to latest version of iterall
Also updates babelrc and eslintrc to support upcoming async generator functions.
1 parent d75c779 commit 8abef41

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.babelrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"plugins": [
33
"syntax-async-functions",
4+
"syntax-async-generators",
45
"transform-class-properties",
56
"transform-flow-strip-types",
67
"transform-object-rest-spread",
@@ -9,15 +10,15 @@
910
"transform-es2015-function-name",
1011
"transform-es2015-arrow-functions",
1112
"transform-es2015-block-scoped-functions",
12-
["transform-es2015-classes", {loose: true}],
13+
["transform-es2015-classes", {"loose": true}],
1314
"transform-es2015-object-super",
1415
"transform-es2015-shorthand-properties",
1516
"transform-es2015-duplicate-keys",
1617
"transform-es2015-computed-properties",
1718
"check-es2015-constants",
18-
["transform-es2015-spread", {loose: true}],
19+
["transform-es2015-spread", {"loose": true}],
1920
"transform-es2015-parameters",
20-
["transform-es2015-destructuring", {loose: true}],
21+
["transform-es2015-destructuring", {"loose": true}],
2122
"transform-es2015-block-scoping",
2223
"transform-es2015-modules-commonjs",
2324
"transform-regenerator",

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"eqeqeq": ["error", "smart"],
7171
"func-names": 0,
7272
"func-style": 0,
73-
"generator-star-spacing": [2, {"before": true, "after": false}],
73+
"generator-star-spacing": [2, {"before": false, "after": true}],
7474
"guard-for-in": 2,
7575
"handle-callback-err": [2, "error"],
7676
"id-length": 0,

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@
3636
"prepublish": ". ./resources/prepublish.sh"
3737
},
3838
"dependencies": {
39-
"iterall": "^1.0.0"
39+
"iterall": "^1.1.0"
4040
},
4141
"devDependencies": {
4242
"babel-cli": "6.24.1",
4343
"babel-eslint": "7.2.3",
4444
"babel-plugin-check-es2015-constants": "6.22.0",
4545
"babel-plugin-syntax-async-functions": "6.13.0",
46+
"babel-plugin-syntax-async-generators": "6.13.0",
4647
"babel-plugin-transform-class-properties": "6.24.1",
4748
"babel-plugin-transform-es2015-arrow-functions": "6.22.0",
4849
"babel-plugin-transform-es2015-block-scoped-functions": "6.22.0",

src/execution/__tests__/lists-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('Execute: Accepts any iterable as list value', () => {
7676
{ data: { nest: { test: [ 'apple', 'banana', 'coconut' ] } } }
7777
));
7878

79-
function *yieldItems() {
79+
function* yieldItems() {
8080
yield 'one';
8181
yield 2;
8282
yield true;

yarn.lock

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ [email protected]:
309309
version "6.13.0"
310310
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
311311

312+
313+
version "6.13.0"
314+
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a"
315+
312316
babel-plugin-syntax-class-properties@^6.8.0:
313317
version "6.13.0"
314318
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de"
@@ -774,13 +778,13 @@ dashdash@^1.12.0:
774778
dependencies:
775779
assert-plus "^1.0.0"
776780

777-
781+
[email protected], debug@^2.2.0:
778782
version "2.6.0"
779783
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b"
780784
dependencies:
781785
ms "0.7.2"
782786

783-
debug@^2.1.1, debug@^2.2.0, debug@~2.2.0:
787+
debug@^2.1.1, debug@~2.2.0:
784788
version "2.2.0"
785789
resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da"
786790
dependencies:
@@ -1522,7 +1526,7 @@ istanbul@^0.4.0:
15221526
which "^1.1.1"
15231527
wordwrap "^1.0.0"
15241528

1525-
iterall@^1.0.0:
1529+
iterall@^1.1.0:
15261530
version "1.1.1"
15271531
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.1.tgz#f7f0af11e9a04ec6426260f5019d9fcca4d50214"
15281532

0 commit comments

Comments
 (0)