k-l-lambda commited on
Commit
05a77ff
1 Parent(s): 9ddc89f

node_mdodules added.

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. node_modules/.bin/he +1 -0
  2. node_modules/.bin/http-server +1 -0
  3. node_modules/.bin/mime +1 -0
  4. node_modules/.bin/mkdirp +1 -0
  5. node_modules/.bin/opener +1 -0
  6. node_modules/.yarn-integrity +62 -0
  7. node_modules/ansi-styles/index.d.ts +345 -0
  8. node_modules/ansi-styles/index.js +163 -0
  9. node_modules/ansi-styles/license +9 -0
  10. node_modules/ansi-styles/package.json +56 -0
  11. node_modules/ansi-styles/readme.md +152 -0
  12. node_modules/async/CHANGELOG.md +278 -0
  13. node_modules/async/LICENSE +19 -0
  14. node_modules/async/README.md +56 -0
  15. node_modules/async/all.js +50 -0
  16. node_modules/async/allLimit.js +42 -0
  17. node_modules/async/allSeries.js +37 -0
  18. node_modules/async/any.js +52 -0
  19. node_modules/async/anyLimit.js +43 -0
  20. node_modules/async/anySeries.js +38 -0
  21. node_modules/async/apply.js +68 -0
  22. node_modules/async/applyEach.js +51 -0
  23. node_modules/async/applyEachSeries.js +37 -0
  24. node_modules/async/asyncify.js +110 -0
  25. node_modules/async/auto.js +289 -0
  26. node_modules/async/autoInject.js +170 -0
  27. node_modules/async/bower.json +17 -0
  28. node_modules/async/cargo.js +94 -0
  29. node_modules/async/compose.js +58 -0
  30. node_modules/async/concat.js +43 -0
  31. node_modules/async/concatLimit.js +65 -0
  32. node_modules/async/concatSeries.js +36 -0
  33. node_modules/async/constant.js +66 -0
  34. node_modules/async/detect.js +61 -0
  35. node_modules/async/detectLimit.js +48 -0
  36. node_modules/async/detectSeries.js +38 -0
  37. node_modules/async/dir.js +43 -0
  38. node_modules/async/dist/async.js +0 -0
  39. node_modules/async/dist/async.min.js +2 -0
  40. node_modules/async/dist/async.min.map +1 -0
  41. node_modules/async/doDuring.js +66 -0
  42. node_modules/async/doUntil.js +39 -0
  43. node_modules/async/doWhilst.js +59 -0
  44. node_modules/async/during.js +76 -0
  45. node_modules/async/each.js +82 -0
  46. node_modules/async/eachLimit.js +45 -0
  47. node_modules/async/eachOf.js +111 -0
  48. node_modules/async/eachOfLimit.js +41 -0
  49. node_modules/async/eachOfSeries.js +35 -0
  50. node_modules/async/eachSeries.js +37 -0
node_modules/.bin/he ADDED
@@ -0,0 +1 @@
 
 
1
+ ../he/bin/he
node_modules/.bin/http-server ADDED
@@ -0,0 +1 @@
 
 
1
+ ../http-server/bin/http-server
node_modules/.bin/mime ADDED
@@ -0,0 +1 @@
 
 
1
+ ../mime/cli.js
node_modules/.bin/mkdirp ADDED
@@ -0,0 +1 @@
 
 
1
+ ../mkdirp/bin/cmd.js
node_modules/.bin/opener ADDED
@@ -0,0 +1 @@
 
 
1
+ ../opener/bin/opener-bin.js
node_modules/.yarn-integrity ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "systemParams": "linux-x64-120",
3
+ "modulesFolders": [
4
+ "node_modules"
5
+ ],
6
+ "flags": [],
7
+ "linkedModules": [],
8
+ "topLevelPatterns": [
9
+ "http-server@^14.1.1"
10
+ ],
11
+ "lockfileEntries": {
12
+ "ansi-styles@^4.1.0": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937",
13
+ "async@^2.6.4": "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221",
14
+ "basic-auth@^2.0.1": "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.1.tgz#b998279bf47ce38344b4f3cf916d4679bbf51e3a",
15
+ "call-bind@^1.0.7": "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9",
16
+ "chalk@^4.1.2": "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01",
17
+ "color-convert@^2.0.1": "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3",
18
+ "color-name@~1.1.4": "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2",
19
+ "corser@^2.0.1": "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87",
20
+ "debug@^3.2.7": "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a",
21
+ "define-data-property@^1.1.4": "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e",
22
+ "es-define-property@^1.0.0": "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845",
23
+ "es-errors@^1.3.0": "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f",
24
+ "eventemitter3@^4.0.0": "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f",
25
+ "follow-redirects@^1.0.0": "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1",
26
+ "function-bind@^1.1.2": "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c",
27
+ "get-intrinsic@^1.1.3": "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd",
28
+ "get-intrinsic@^1.2.4": "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd",
29
+ "gopd@^1.0.1": "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c",
30
+ "has-flag@^4.0.0": "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b",
31
+ "has-property-descriptors@^1.0.2": "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854",
32
+ "has-proto@^1.0.1": "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd",
33
+ "has-symbols@^1.0.3": "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8",
34
+ "hasown@^2.0.0": "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003",
35
+ "he@^1.2.0": "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f",
36
+ "html-encoding-sniffer@^3.0.0": "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9",
37
+ "http-proxy@^1.18.1": "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549",
38
+ "http-server@^14.1.1": "https://registry.yarnpkg.com/http-server/-/http-server-14.1.1.tgz#d60fbb37d7c2fdff0f0fbff0d0ee6670bd285e2e",
39
+ "iconv-lite@0.6.3": "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501",
40
+ "lodash@^4.17.14": "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c",
41
+ "mime@^1.6.0": "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1",
42
+ "minimist@^1.2.6": "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c",
43
+ "mkdirp@^0.5.6": "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6",
44
+ "ms@^2.1.1": "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2",
45
+ "object-inspect@^1.13.1": "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.3.tgz#f14c183de51130243d6d18ae149375ff50ea488a",
46
+ "opener@^1.5.1": "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598",
47
+ "portfinder@^1.0.28": "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.32.tgz#2fe1b9e58389712429dc2bea5beb2146146c7f81",
48
+ "qs@^6.4.0": "https://registry.yarnpkg.com/qs/-/qs-6.13.1.tgz#3ce5fc72bd3a8171b85c99b93c65dd20b7d1b16e",
49
+ "requires-port@^1.0.0": "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff",
50
+ "safe-buffer@5.1.2": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d",
51
+ "safer-buffer@>= 2.1.2 < 3.0.0": "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a",
52
+ "secure-compare@3.0.1": "https://registry.yarnpkg.com/secure-compare/-/secure-compare-3.0.1.tgz#f1a0329b308b221fae37b9974f3d578d0ca999e3",
53
+ "set-function-length@^1.2.1": "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449",
54
+ "side-channel@^1.0.6": "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2",
55
+ "supports-color@^7.1.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da",
56
+ "union@~0.5.0": "https://registry.yarnpkg.com/union/-/union-0.5.0.tgz#b2c11be84f60538537b846edb9ba266ba0090075",
57
+ "url-join@^4.0.1": "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7",
58
+ "whatwg-encoding@^2.0.0": "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53"
59
+ },
60
+ "files": [],
61
+ "artifacts": {}
62
+ }
node_modules/ansi-styles/index.d.ts ADDED
@@ -0,0 +1,345 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ declare type CSSColor =
2
+ | 'aliceblue'
3
+ | 'antiquewhite'
4
+ | 'aqua'
5
+ | 'aquamarine'
6
+ | 'azure'
7
+ | 'beige'
8
+ | 'bisque'
9
+ | 'black'
10
+ | 'blanchedalmond'
11
+ | 'blue'
12
+ | 'blueviolet'
13
+ | 'brown'
14
+ | 'burlywood'
15
+ | 'cadetblue'
16
+ | 'chartreuse'
17
+ | 'chocolate'
18
+ | 'coral'
19
+ | 'cornflowerblue'
20
+ | 'cornsilk'
21
+ | 'crimson'
22
+ | 'cyan'
23
+ | 'darkblue'
24
+ | 'darkcyan'
25
+ | 'darkgoldenrod'
26
+ | 'darkgray'
27
+ | 'darkgreen'
28
+ | 'darkgrey'
29
+ | 'darkkhaki'
30
+ | 'darkmagenta'
31
+ | 'darkolivegreen'
32
+ | 'darkorange'
33
+ | 'darkorchid'
34
+ | 'darkred'
35
+ | 'darksalmon'
36
+ | 'darkseagreen'
37
+ | 'darkslateblue'
38
+ | 'darkslategray'
39
+ | 'darkslategrey'
40
+ | 'darkturquoise'
41
+ | 'darkviolet'
42
+ | 'deeppink'
43
+ | 'deepskyblue'
44
+ | 'dimgray'
45
+ | 'dimgrey'
46
+ | 'dodgerblue'
47
+ | 'firebrick'
48
+ | 'floralwhite'
49
+ | 'forestgreen'
50
+ | 'fuchsia'
51
+ | 'gainsboro'
52
+ | 'ghostwhite'
53
+ | 'gold'
54
+ | 'goldenrod'
55
+ | 'gray'
56
+ | 'green'
57
+ | 'greenyellow'
58
+ | 'grey'
59
+ | 'honeydew'
60
+ | 'hotpink'
61
+ | 'indianred'
62
+ | 'indigo'
63
+ | 'ivory'
64
+ | 'khaki'
65
+ | 'lavender'
66
+ | 'lavenderblush'
67
+ | 'lawngreen'
68
+ | 'lemonchiffon'
69
+ | 'lightblue'
70
+ | 'lightcoral'
71
+ | 'lightcyan'
72
+ | 'lightgoldenrodyellow'
73
+ | 'lightgray'
74
+ | 'lightgreen'
75
+ | 'lightgrey'
76
+ | 'lightpink'
77
+ | 'lightsalmon'
78
+ | 'lightseagreen'
79
+ | 'lightskyblue'
80
+ | 'lightslategray'
81
+ | 'lightslategrey'
82
+ | 'lightsteelblue'
83
+ | 'lightyellow'
84
+ | 'lime'
85
+ | 'limegreen'
86
+ | 'linen'
87
+ | 'magenta'
88
+ | 'maroon'
89
+ | 'mediumaquamarine'
90
+ | 'mediumblue'
91
+ | 'mediumorchid'
92
+ | 'mediumpurple'
93
+ | 'mediumseagreen'
94
+ | 'mediumslateblue'
95
+ | 'mediumspringgreen'
96
+ | 'mediumturquoise'
97
+ | 'mediumvioletred'
98
+ | 'midnightblue'
99
+ | 'mintcream'
100
+ | 'mistyrose'
101
+ | 'moccasin'
102
+ | 'navajowhite'
103
+ | 'navy'
104
+ | 'oldlace'
105
+ | 'olive'
106
+ | 'olivedrab'
107
+ | 'orange'
108
+ | 'orangered'
109
+ | 'orchid'
110
+ | 'palegoldenrod'
111
+ | 'palegreen'
112
+ | 'paleturquoise'
113
+ | 'palevioletred'
114
+ | 'papayawhip'
115
+ | 'peachpuff'
116
+ | 'peru'
117
+ | 'pink'
118
+ | 'plum'
119
+ | 'powderblue'
120
+ | 'purple'
121
+ | 'rebeccapurple'
122
+ | 'red'
123
+ | 'rosybrown'
124
+ | 'royalblue'
125
+ | 'saddlebrown'
126
+ | 'salmon'
127
+ | 'sandybrown'
128
+ | 'seagreen'
129
+ | 'seashell'
130
+ | 'sienna'
131
+ | 'silver'
132
+ | 'skyblue'
133
+ | 'slateblue'
134
+ | 'slategray'
135
+ | 'slategrey'
136
+ | 'snow'
137
+ | 'springgreen'
138
+ | 'steelblue'
139
+ | 'tan'
140
+ | 'teal'
141
+ | 'thistle'
142
+ | 'tomato'
143
+ | 'turquoise'
144
+ | 'violet'
145
+ | 'wheat'
146
+ | 'white'
147
+ | 'whitesmoke'
148
+ | 'yellow'
149
+ | 'yellowgreen';
150
+
151
+ declare namespace ansiStyles {
152
+ interface ColorConvert {
153
+ /**
154
+ The RGB color space.
155
+
156
+ @param red - (`0`-`255`)
157
+ @param green - (`0`-`255`)
158
+ @param blue - (`0`-`255`)
159
+ */
160
+ rgb(red: number, green: number, blue: number): string;
161
+
162
+ /**
163
+ The RGB HEX color space.
164
+
165
+ @param hex - A hexadecimal string containing RGB data.
166
+ */
167
+ hex(hex: string): string;
168
+
169
+ /**
170
+ @param keyword - A CSS color name.
171
+ */
172
+ keyword(keyword: CSSColor): string;
173
+
174
+ /**
175
+ The HSL color space.
176
+
177
+ @param hue - (`0`-`360`)
178
+ @param saturation - (`0`-`100`)
179
+ @param lightness - (`0`-`100`)
180
+ */
181
+ hsl(hue: number, saturation: number, lightness: number): string;
182
+
183
+ /**
184
+ The HSV color space.
185
+
186
+ @param hue - (`0`-`360`)
187
+ @param saturation - (`0`-`100`)
188
+ @param value - (`0`-`100`)
189
+ */
190
+ hsv(hue: number, saturation: number, value: number): string;
191
+
192
+ /**
193
+ The HSV color space.
194
+
195
+ @param hue - (`0`-`360`)
196
+ @param whiteness - (`0`-`100`)
197
+ @param blackness - (`0`-`100`)
198
+ */
199
+ hwb(hue: number, whiteness: number, blackness: number): string;
200
+
201
+ /**
202
+ Use a [4-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4-bit) to set text color.
203
+ */
204
+ ansi(ansi: number): string;
205
+
206
+ /**
207
+ Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
208
+ */
209
+ ansi256(ansi: number): string;
210
+ }
211
+
212
+ interface CSPair {
213
+ /**
214
+ The ANSI terminal control sequence for starting this style.
215
+ */
216
+ readonly open: string;
217
+
218
+ /**
219
+ The ANSI terminal control sequence for ending this style.
220
+ */
221
+ readonly close: string;
222
+ }
223
+
224
+ interface ColorBase {
225
+ readonly ansi: ColorConvert;
226
+ readonly ansi256: ColorConvert;
227
+ readonly ansi16m: ColorConvert;
228
+
229
+ /**
230
+ The ANSI terminal control sequence for ending this color.
231
+ */
232
+ readonly close: string;
233
+ }
234
+
235
+ interface Modifier {
236
+ /**
237
+ Resets the current color chain.
238
+ */
239
+ readonly reset: CSPair;
240
+
241
+ /**
242
+ Make text bold.
243
+ */
244
+ readonly bold: CSPair;
245
+
246
+ /**
247
+ Emitting only a small amount of light.
248
+ */
249
+ readonly dim: CSPair;
250
+
251
+ /**
252
+ Make text italic. (Not widely supported)
253
+ */
254
+ readonly italic: CSPair;
255
+
256
+ /**
257
+ Make text underline. (Not widely supported)
258
+ */
259
+ readonly underline: CSPair;
260
+
261
+ /**
262
+ Inverse background and foreground colors.
263
+ */
264
+ readonly inverse: CSPair;
265
+
266
+ /**
267
+ Prints the text, but makes it invisible.
268
+ */
269
+ readonly hidden: CSPair;
270
+
271
+ /**
272
+ Puts a horizontal line through the center of the text. (Not widely supported)
273
+ */
274
+ readonly strikethrough: CSPair;
275
+ }
276
+
277
+ interface ForegroundColor {
278
+ readonly black: CSPair;
279
+ readonly red: CSPair;
280
+ readonly green: CSPair;
281
+ readonly yellow: CSPair;
282
+ readonly blue: CSPair;
283
+ readonly cyan: CSPair;
284
+ readonly magenta: CSPair;
285
+ readonly white: CSPair;
286
+
287
+ /**
288
+ Alias for `blackBright`.
289
+ */
290
+ readonly gray: CSPair;
291
+
292
+ /**
293
+ Alias for `blackBright`.
294
+ */
295
+ readonly grey: CSPair;
296
+
297
+ readonly blackBright: CSPair;
298
+ readonly redBright: CSPair;
299
+ readonly greenBright: CSPair;
300
+ readonly yellowBright: CSPair;
301
+ readonly blueBright: CSPair;
302
+ readonly cyanBright: CSPair;
303
+ readonly magentaBright: CSPair;
304
+ readonly whiteBright: CSPair;
305
+ }
306
+
307
+ interface BackgroundColor {
308
+ readonly bgBlack: CSPair;
309
+ readonly bgRed: CSPair;
310
+ readonly bgGreen: CSPair;
311
+ readonly bgYellow: CSPair;
312
+ readonly bgBlue: CSPair;
313
+ readonly bgCyan: CSPair;
314
+ readonly bgMagenta: CSPair;
315
+ readonly bgWhite: CSPair;
316
+
317
+ /**
318
+ Alias for `bgBlackBright`.
319
+ */
320
+ readonly bgGray: CSPair;
321
+
322
+ /**
323
+ Alias for `bgBlackBright`.
324
+ */
325
+ readonly bgGrey: CSPair;
326
+
327
+ readonly bgBlackBright: CSPair;
328
+ readonly bgRedBright: CSPair;
329
+ readonly bgGreenBright: CSPair;
330
+ readonly bgYellowBright: CSPair;
331
+ readonly bgBlueBright: CSPair;
332
+ readonly bgCyanBright: CSPair;
333
+ readonly bgMagentaBright: CSPair;
334
+ readonly bgWhiteBright: CSPair;
335
+ }
336
+ }
337
+
338
+ declare const ansiStyles: {
339
+ readonly modifier: ansiStyles.Modifier;
340
+ readonly color: ansiStyles.ForegroundColor & ansiStyles.ColorBase;
341
+ readonly bgColor: ansiStyles.BackgroundColor & ansiStyles.ColorBase;
342
+ readonly codes: ReadonlyMap<number, number>;
343
+ } & ansiStyles.BackgroundColor & ansiStyles.ForegroundColor & ansiStyles.Modifier;
344
+
345
+ export = ansiStyles;
node_modules/ansi-styles/index.js ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ const wrapAnsi16 = (fn, offset) => (...args) => {
4
+ const code = fn(...args);
5
+ return `\u001B[${code + offset}m`;
6
+ };
7
+
8
+ const wrapAnsi256 = (fn, offset) => (...args) => {
9
+ const code = fn(...args);
10
+ return `\u001B[${38 + offset};5;${code}m`;
11
+ };
12
+
13
+ const wrapAnsi16m = (fn, offset) => (...args) => {
14
+ const rgb = fn(...args);
15
+ return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
16
+ };
17
+
18
+ const ansi2ansi = n => n;
19
+ const rgb2rgb = (r, g, b) => [r, g, b];
20
+
21
+ const setLazyProperty = (object, property, get) => {
22
+ Object.defineProperty(object, property, {
23
+ get: () => {
24
+ const value = get();
25
+
26
+ Object.defineProperty(object, property, {
27
+ value,
28
+ enumerable: true,
29
+ configurable: true
30
+ });
31
+
32
+ return value;
33
+ },
34
+ enumerable: true,
35
+ configurable: true
36
+ });
37
+ };
38
+
39
+ /** @type {typeof import('color-convert')} */
40
+ let colorConvert;
41
+ const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
42
+ if (colorConvert === undefined) {
43
+ colorConvert = require('color-convert');
44
+ }
45
+
46
+ const offset = isBackground ? 10 : 0;
47
+ const styles = {};
48
+
49
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
50
+ const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
51
+ if (sourceSpace === targetSpace) {
52
+ styles[name] = wrap(identity, offset);
53
+ } else if (typeof suite === 'object') {
54
+ styles[name] = wrap(suite[targetSpace], offset);
55
+ }
56
+ }
57
+
58
+ return styles;
59
+ };
60
+
61
+ function assembleStyles() {
62
+ const codes = new Map();
63
+ const styles = {
64
+ modifier: {
65
+ reset: [0, 0],
66
+ // 21 isn't widely supported and 22 does the same thing
67
+ bold: [1, 22],
68
+ dim: [2, 22],
69
+ italic: [3, 23],
70
+ underline: [4, 24],
71
+ inverse: [7, 27],
72
+ hidden: [8, 28],
73
+ strikethrough: [9, 29]
74
+ },
75
+ color: {
76
+ black: [30, 39],
77
+ red: [31, 39],
78
+ green: [32, 39],
79
+ yellow: [33, 39],
80
+ blue: [34, 39],
81
+ magenta: [35, 39],
82
+ cyan: [36, 39],
83
+ white: [37, 39],
84
+
85
+ // Bright color
86
+ blackBright: [90, 39],
87
+ redBright: [91, 39],
88
+ greenBright: [92, 39],
89
+ yellowBright: [93, 39],
90
+ blueBright: [94, 39],
91
+ magentaBright: [95, 39],
92
+ cyanBright: [96, 39],
93
+ whiteBright: [97, 39]
94
+ },
95
+ bgColor: {
96
+ bgBlack: [40, 49],
97
+ bgRed: [41, 49],
98
+ bgGreen: [42, 49],
99
+ bgYellow: [43, 49],
100
+ bgBlue: [44, 49],
101
+ bgMagenta: [45, 49],
102
+ bgCyan: [46, 49],
103
+ bgWhite: [47, 49],
104
+
105
+ // Bright color
106
+ bgBlackBright: [100, 49],
107
+ bgRedBright: [101, 49],
108
+ bgGreenBright: [102, 49],
109
+ bgYellowBright: [103, 49],
110
+ bgBlueBright: [104, 49],
111
+ bgMagentaBright: [105, 49],
112
+ bgCyanBright: [106, 49],
113
+ bgWhiteBright: [107, 49]
114
+ }
115
+ };
116
+
117
+ // Alias bright black as gray (and grey)
118
+ styles.color.gray = styles.color.blackBright;
119
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
120
+ styles.color.grey = styles.color.blackBright;
121
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
122
+
123
+ for (const [groupName, group] of Object.entries(styles)) {
124
+ for (const [styleName, style] of Object.entries(group)) {
125
+ styles[styleName] = {
126
+ open: `\u001B[${style[0]}m`,
127
+ close: `\u001B[${style[1]}m`
128
+ };
129
+
130
+ group[styleName] = styles[styleName];
131
+
132
+ codes.set(style[0], style[1]);
133
+ }
134
+
135
+ Object.defineProperty(styles, groupName, {
136
+ value: group,
137
+ enumerable: false
138
+ });
139
+ }
140
+
141
+ Object.defineProperty(styles, 'codes', {
142
+ value: codes,
143
+ enumerable: false
144
+ });
145
+
146
+ styles.color.close = '\u001B[39m';
147
+ styles.bgColor.close = '\u001B[49m';
148
+
149
+ setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
150
+ setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
151
+ setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
152
+ setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
153
+ setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
154
+ setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
155
+
156
+ return styles;
157
+ }
158
+
159
+ // Make the export immutable
160
+ Object.defineProperty(module, 'exports', {
161
+ enumerable: true,
162
+ get: assembleStyles
163
+ });
node_modules/ansi-styles/license ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
node_modules/ansi-styles/package.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ansi-styles",
3
+ "version": "4.3.0",
4
+ "description": "ANSI escape codes for styling strings in the terminal",
5
+ "license": "MIT",
6
+ "repository": "chalk/ansi-styles",
7
+ "funding": "https://github.com/chalk/ansi-styles?sponsor=1",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "sindresorhus.com"
12
+ },
13
+ "engines": {
14
+ "node": ">=8"
15
+ },
16
+ "scripts": {
17
+ "test": "xo && ava && tsd",
18
+ "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor"
19
+ },
20
+ "files": [
21
+ "index.js",
22
+ "index.d.ts"
23
+ ],
24
+ "keywords": [
25
+ "ansi",
26
+ "styles",
27
+ "color",
28
+ "colour",
29
+ "colors",
30
+ "terminal",
31
+ "console",
32
+ "cli",
33
+ "string",
34
+ "tty",
35
+ "escape",
36
+ "formatting",
37
+ "rgb",
38
+ "256",
39
+ "shell",
40
+ "xterm",
41
+ "log",
42
+ "logging",
43
+ "command-line",
44
+ "text"
45
+ ],
46
+ "dependencies": {
47
+ "color-convert": "^2.0.1"
48
+ },
49
+ "devDependencies": {
50
+ "@types/color-convert": "^1.9.0",
51
+ "ava": "^2.3.0",
52
+ "svg-term-cli": "^2.1.1",
53
+ "tsd": "^0.11.0",
54
+ "xo": "^0.25.3"
55
+ }
56
+ }
node_modules/ansi-styles/readme.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles)
2
+
3
+ > [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
4
+
5
+ You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
6
+
7
+ <img src="screenshot.svg" width="900">
8
+
9
+ ## Install
10
+
11
+ ```
12
+ $ npm install ansi-styles
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ const style = require('ansi-styles');
19
+
20
+ console.log(`${style.green.open}Hello world!${style.green.close}`);
21
+
22
+
23
+ // Color conversion between 16/256/truecolor
24
+ // NOTE: If conversion goes to 16 colors or 256 colors, the original color
25
+ // may be degraded to fit that color palette. This means terminals
26
+ // that do not support 16 million colors will best-match the
27
+ // original color.
28
+ console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close);
29
+ console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close);
30
+ console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close);
31
+ ```
32
+
33
+ ## API
34
+
35
+ Each style has an `open` and `close` property.
36
+
37
+ ## Styles
38
+
39
+ ### Modifiers
40
+
41
+ - `reset`
42
+ - `bold`
43
+ - `dim`
44
+ - `italic` *(Not widely supported)*
45
+ - `underline`
46
+ - `inverse`
47
+ - `hidden`
48
+ - `strikethrough` *(Not widely supported)*
49
+
50
+ ### Colors
51
+
52
+ - `black`
53
+ - `red`
54
+ - `green`
55
+ - `yellow`
56
+ - `blue`
57
+ - `magenta`
58
+ - `cyan`
59
+ - `white`
60
+ - `blackBright` (alias: `gray`, `grey`)
61
+ - `redBright`
62
+ - `greenBright`
63
+ - `yellowBright`
64
+ - `blueBright`
65
+ - `magentaBright`
66
+ - `cyanBright`
67
+ - `whiteBright`
68
+
69
+ ### Background colors
70
+
71
+ - `bgBlack`
72
+ - `bgRed`
73
+ - `bgGreen`
74
+ - `bgYellow`
75
+ - `bgBlue`
76
+ - `bgMagenta`
77
+ - `bgCyan`
78
+ - `bgWhite`
79
+ - `bgBlackBright` (alias: `bgGray`, `bgGrey`)
80
+ - `bgRedBright`
81
+ - `bgGreenBright`
82
+ - `bgYellowBright`
83
+ - `bgBlueBright`
84
+ - `bgMagentaBright`
85
+ - `bgCyanBright`
86
+ - `bgWhiteBright`
87
+
88
+ ## Advanced usage
89
+
90
+ By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
91
+
92
+ - `style.modifier`
93
+ - `style.color`
94
+ - `style.bgColor`
95
+
96
+ ###### Example
97
+
98
+ ```js
99
+ console.log(style.color.green.open);
100
+ ```
101
+
102
+ Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values.
103
+
104
+ ###### Example
105
+
106
+ ```js
107
+ console.log(style.codes.get(36));
108
+ //=> 39
109
+ ```
110
+
111
+ ## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
112
+
113
+ `ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors.
114
+
115
+ The following color spaces from `color-convert` are supported:
116
+
117
+ - `rgb`
118
+ - `hex`
119
+ - `keyword`
120
+ - `hsl`
121
+ - `hsv`
122
+ - `hwb`
123
+ - `ansi`
124
+ - `ansi256`
125
+
126
+ To use these, call the associated conversion function with the intended output, for example:
127
+
128
+ ```js
129
+ style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code
130
+ style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code
131
+
132
+ style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
133
+ style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
134
+
135
+ style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code
136
+ style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code
137
+ ```
138
+
139
+ ## Related
140
+
141
+ - [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
142
+
143
+ ## Maintainers
144
+
145
+ - [Sindre Sorhus](https://github.com/sindresorhus)
146
+ - [Josh Junon](https://github.com/qix-)
147
+
148
+ ## For enterprise
149
+
150
+ Available as part of the Tidelift Subscription.
151
+
152
+ The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
node_modules/async/CHANGELOG.md ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # v2.6.4
2
+ - Fix potential prototype pollution exploit (#1828)
3
+
4
+ # v2.6.3
5
+ - Updated lodash to squelch a security warning (#1675)
6
+
7
+ # v2.6.2
8
+ - Updated lodash to squelch a security warning (#1620)
9
+
10
+ # v2.6.1
11
+ - Updated lodash to prevent `npm audit` warnings. (#1532, #1533)
12
+ - Made `async-es` more optimized for webpack users (#1517)
13
+ - Fixed a stack overflow with large collections and a synchronous iterator (#1514)
14
+ - Various small fixes/chores (#1505, #1511, #1527, #1530)
15
+
16
+ # v2.6.0
17
+ - Added missing aliases for many methods. Previously, you could not (e.g.) `require('async/find')` or use `async.anyLimit`. (#1483)
18
+ - Improved `queue` performance. (#1448, #1454)
19
+ - Add missing sourcemap (#1452, #1453)
20
+ - Various doc updates (#1448, #1471, #1483)
21
+
22
+ # v2.5.0
23
+ - Added `concatLimit`, the `Limit` equivalent of [`concat`](https://caolan.github.io/async/docs.html#concat) ([#1426](https://github.com/caolan/async/issues/1426), [#1430](https://github.com/caolan/async/pull/1430))
24
+ - `concat` improvements: it now preserves order, handles falsy values and the `iteratee` callback takes a variable number of arguments ([#1437](https://github.com/caolan/async/issues/1437), [#1436](https://github.com/caolan/async/pull/1436))
25
+ - Fixed an issue in `queue` where there was a size discrepancy between `workersList().length` and `running()` ([#1428](https://github.com/caolan/async/issues/1428), [#1429](https://github.com/caolan/async/pull/1429))
26
+ - Various doc fixes ([#1422](https://github.com/caolan/async/issues/1422), [#1424](https://github.com/caolan/async/pull/1424))
27
+
28
+ # v2.4.1
29
+ - Fixed a bug preventing functions wrapped with `timeout()` from being re-used. ([#1418](https://github.com/caolan/async/issues/1418), [#1419](https://github.com/caolan/async/issues/1419))
30
+
31
+ # v2.4.0
32
+ - Added `tryEach`, for running async functions in parallel, where you only expect one to succeed. ([#1365](https://github.com/caolan/async/issues/1365), [#687](https://github.com/caolan/async/issues/687))
33
+ - Improved performance, most notably in `parallel` and `waterfall` ([#1395](https://github.com/caolan/async/issues/1395))
34
+ - Added `queue.remove()`, for removing items in a `queue` ([#1397](https://github.com/caolan/async/issues/1397), [#1391](https://github.com/caolan/async/issues/1391))
35
+ - Fixed using `eval`, preventing Async from running in pages with Content Security Policy ([#1404](https://github.com/caolan/async/issues/1404), [#1403](https://github.com/caolan/async/issues/1403))
36
+ - Fixed errors thrown in an `asyncify`ed function's callback being caught by the underlying Promise ([#1408](https://github.com/caolan/async/issues/1408))
37
+ - Fixed timing of `queue.empty()` ([#1367](https://github.com/caolan/async/issues/1367))
38
+ - Various doc fixes ([#1314](https://github.com/caolan/async/issues/1314), [#1394](https://github.com/caolan/async/issues/1394), [#1412](https://github.com/caolan/async/issues/1412))
39
+
40
+ # v2.3.0
41
+ - Added support for ES2017 `async` functions. Wherever you can pass a Node-style/CPS function that uses a callback, you can also pass an `async` function. Previously, you had to wrap `async` functions with `asyncify`. The caveat is that it will only work if `async` functions are supported natively in your environment, transpiled implementations can't be detected. ([#1386](https://github.com/caolan/async/issues/1386), [#1390](https://github.com/caolan/async/issues/1390))
42
+ - Small doc fix ([#1392](https://github.com/caolan/async/issues/1392))
43
+
44
+ # v2.2.0
45
+ - Added `groupBy`, and the `Series`/`Limit` equivalents, analogous to [`_.groupBy`](http://lodash.com/docs#groupBy) ([#1364](https://github.com/caolan/async/issues/1364))
46
+ - Fixed `transform` bug when `callback` was not passed ([#1381](https://github.com/caolan/async/issues/1381))
47
+ - Added note about `reflect` to `parallel` docs ([#1385](https://github.com/caolan/async/issues/1385))
48
+
49
+ # v2.1.5
50
+ - Fix `auto` bug when function names collided with Array.prototype ([#1358](https://github.com/caolan/async/issues/1358))
51
+ - Improve some error messages ([#1349](https://github.com/caolan/async/issues/1349))
52
+ - Avoid stack overflow case in queue
53
+ - Fixed an issue in `some`, `every` and `find` where processing would continue after the result was determined.
54
+ - Cleanup implementations of `some`, `every` and `find`
55
+
56
+ # v2.1.3
57
+ - Make bundle size smaller
58
+ - Create optimized hotpath for `filter` in array case.
59
+
60
+ # v2.1.2
61
+ - Fixed a stackoverflow bug with `detect`, `some`, `every` on large inputs ([#1293](https://github.com/caolan/async/issues/1293)).
62
+
63
+ # v2.1.0
64
+
65
+ - `retry` and `retryable` now support an optional `errorFilter` function that determines if the `task` should retry on the error ([#1256](https://github.com/caolan/async/issues/1256), [#1261](https://github.com/caolan/async/issues/1261))
66
+ - Optimized array iteration in `race`, `cargo`, `queue`, and `priorityQueue` ([#1253](https://github.com/caolan/async/issues/1253))
67
+ - Added alias documentation to doc site ([#1251](https://github.com/caolan/async/issues/1251), [#1254](https://github.com/caolan/async/issues/1254))
68
+ - Added [BootStrap scrollspy](http://getbootstrap.com/javascript/#scrollspy) to docs to highlight in the sidebar the current method being viewed ([#1289](https://github.com/caolan/async/issues/1289), [#1300](https://github.com/caolan/async/issues/1300))
69
+ - Various minor doc fixes ([#1263](https://github.com/caolan/async/issues/1263), [#1264](https://github.com/caolan/async/issues/1264), [#1271](https://github.com/caolan/async/issues/1271), [#1278](https://github.com/caolan/async/issues/1278), [#1280](https://github.com/caolan/async/issues/1280), [#1282](https://github.com/caolan/async/issues/1282), [#1302](https://github.com/caolan/async/issues/1302))
70
+
71
+ # v2.0.1
72
+
73
+ - Significantly optimized all iteration based collection methods such as `each`, `map`, `filter`, etc ([#1245](https://github.com/caolan/async/issues/1245), [#1246](https://github.com/caolan/async/issues/1246), [#1247](https://github.com/caolan/async/issues/1247)).
74
+
75
+ # v2.0.0
76
+
77
+ Lots of changes here!
78
+
79
+ First and foremost, we have a slick new [site for docs](https://caolan.github.io/async/). Special thanks to [**@hargasinski**](https://github.com/hargasinski) for his work converting our old docs to `jsdoc` format and implementing the new website. Also huge ups to [**@ivanseidel**](https://github.com/ivanseidel) for designing our new logo. It was a long process for both of these tasks, but I think these changes turned out extraordinary well.
80
+
81
+ The biggest feature is modularization. You can now `require("async/series")` to only require the `series` function. Every Async library function is available this way. You still can `require("async")` to require the entire library, like you could do before.
82
+
83
+ We also provide Async as a collection of ES2015 modules. You can now `import {each} from 'async-es'` or `import waterfall from 'async-es/waterfall'`. If you are using only a few Async functions, and are using a ES bundler such as Rollup, this can significantly lower your build size.
84
+
85
+ Major thanks to [**@Kikobeats**](github.com/Kikobeats), [**@aearly**](github.com/aearly) and [**@megawac**](github.com/megawac) for doing the majority of the modularization work, as well as [**@jdalton**](github.com/jdalton) and [**@Rich-Harris**](github.com/Rich-Harris) for advisory work on the general modularization strategy.
86
+
87
+ Another one of the general themes of the 2.0 release is standardization of what an "async" function is. We are now more strictly following the node-style continuation passing style. That is, an async function is a function that:
88
+
89
+ 1. Takes a variable number of arguments
90
+ 2. The last argument is always a callback
91
+ 3. The callback can accept any number of arguments
92
+ 4. The first argument passed to the callback will be treated as an error result, if the argument is truthy
93
+ 5. Any number of result arguments can be passed after the "error" argument
94
+ 6. The callback is called once and exactly once, either on the same tick or later tick of the JavaScript event loop.
95
+
96
+ There were several cases where Async accepted some functions that did not strictly have these properties, most notably `auto`, `every`, `some`, `filter`, `reject` and `detect`.
97
+
98
+ Another theme is performance. We have eliminated internal deferrals in all cases where they make sense. For example, in `waterfall` and `auto`, there was a `setImmediate` between each task -- these deferrals have been removed. A `setImmediate` call can add up to 1ms of delay. This might not seem like a lot, but it can add up if you are using many Async functions in the course of processing a HTTP request, for example. Nearly all asynchronous functions that do I/O already have some sort of deferral built in, so the extra deferral is unnecessary. The trade-off of this change is removing our built-in stack-overflow defense. Many synchronous callback calls in series can quickly overflow the JS call stack. If you do have a function that is sometimes synchronous (calling its callback on the same tick), and are running into stack overflows, wrap it with `async.ensureAsync()`.
99
+
100
+ Another big performance win has been re-implementing `queue`, `cargo`, and `priorityQueue` with [doubly linked lists](https://en.wikipedia.org/wiki/Doubly_linked_list) instead of arrays. This has lead to queues being an order of [magnitude faster on large sets of tasks](https://github.com/caolan/async/pull/1205).
101
+
102
+ ## New Features
103
+
104
+ - Async is now modularized. Individual functions can be `require()`d from the main package. (`require('async/auto')`) ([#984](https://github.com/caolan/async/issues/984), [#996](https://github.com/caolan/async/issues/996))
105
+ - Async is also available as a collection of ES2015 modules in the new `async-es` package. (`import {forEachSeries} from 'async-es'`) ([#984](https://github.com/caolan/async/issues/984), [#996](https://github.com/caolan/async/issues/996))
106
+ - Added `race`, analogous to `Promise.race()`. It will run an array of async tasks in parallel and will call its callback with the result of the first task to respond. ([#568](https://github.com/caolan/async/issues/568), [#1038](https://github.com/caolan/async/issues/1038))
107
+ - Collection methods now accept ES2015 iterators. Maps, Sets, and anything that implements the iterator spec can now be passed directly to `each`, `map`, `parallel`, etc.. ([#579](https://github.com/caolan/async/issues/579), [#839](https://github.com/caolan/async/issues/839), [#1074](https://github.com/caolan/async/issues/1074))
108
+ - Added `mapValues`, for mapping over the properties of an object and returning an object with the same keys. ([#1157](https://github.com/caolan/async/issues/1157), [#1177](https://github.com/caolan/async/issues/1177))
109
+ - Added `timeout`, a wrapper for an async function that will make the task time-out after the specified time. ([#1007](https://github.com/caolan/async/issues/1007), [#1027](https://github.com/caolan/async/issues/1027))
110
+ - Added `reflect` and `reflectAll`, analagous to [`Promise.reflect()`](http://bluebirdjs.com/docs/api/reflect.html), a wrapper for async tasks that always succeeds, by gathering results and errors into an object. ([#942](https://github.com/caolan/async/issues/942), [#1012](https://github.com/caolan/async/issues/1012), [#1095](https://github.com/caolan/async/issues/1095))
111
+ - `constant` supports dynamic arguments -- it will now always use its last argument as the callback. ([#1016](https://github.com/caolan/async/issues/1016), [#1052](https://github.com/caolan/async/issues/1052))
112
+ - `setImmediate` and `nextTick` now support arguments to partially apply to the deferred function, like the node-native versions do. ([#940](https://github.com/caolan/async/issues/940), [#1053](https://github.com/caolan/async/issues/1053))
113
+ - `auto` now supports resolving cyclic dependencies using [Kahn's algorithm](https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm) ([#1140](https://github.com/caolan/async/issues/1140)).
114
+ - Added `autoInject`, a relative of `auto` that automatically spreads a task's dependencies as arguments to the task function. ([#608](https://github.com/caolan/async/issues/608), [#1055](https://github.com/caolan/async/issues/1055), [#1099](https://github.com/caolan/async/issues/1099), [#1100](https://github.com/caolan/async/issues/1100))
115
+ - You can now limit the concurrency of `auto` tasks. ([#635](https://github.com/caolan/async/issues/635), [#637](https://github.com/caolan/async/issues/637))
116
+ - Added `retryable`, a relative of `retry` that wraps an async function, making it retry when called. ([#1058](https://github.com/caolan/async/issues/1058))
117
+ - `retry` now supports specifying a function that determines the next time interval, useful for exponential backoff, logging and other retry strategies. ([#1161](https://github.com/caolan/async/issues/1161))
118
+ - `retry` will now pass all of the arguments the task function was resolved with to the callback ([#1231](https://github.com/caolan/async/issues/1231)).
119
+ - Added `q.unsaturated` -- callback called when a `queue`'s number of running workers falls below a threshold. ([#868](https://github.com/caolan/async/issues/868), [#1030](https://github.com/caolan/async/issues/1030), [#1033](https://github.com/caolan/async/issues/1033), [#1034](https://github.com/caolan/async/issues/1034))
120
+ - Added `q.error` -- a callback called whenever a `queue` task calls its callback with an error. ([#1170](https://github.com/caolan/async/issues/1170))
121
+ - `applyEach` and `applyEachSeries` now pass results to the final callback. ([#1088](https://github.com/caolan/async/issues/1088))
122
+
123
+ ## Breaking changes
124
+
125
+ - Calling a callback more than once is considered an error, and an error will be thrown. This had an explicit breaking change in `waterfall`. If you were relying on this behavior, you should more accurately represent your control flow as an event emitter or stream. ([#814](https://github.com/caolan/async/issues/814), [#815](https://github.com/caolan/async/issues/815), [#1048](https://github.com/caolan/async/issues/1048), [#1050](https://github.com/caolan/async/issues/1050))
126
+ - `auto` task functions now always take the callback as the last argument. If a task has dependencies, the `results` object will be passed as the first argument. To migrate old task functions, wrap them with [`_.flip`](https://lodash.com/docs#flip) ([#1036](https://github.com/caolan/async/issues/1036), [#1042](https://github.com/caolan/async/issues/1042))
127
+ - Internal `setImmediate` calls have been refactored away. This may make existing flows vulnerable to stack overflows if you use many synchronous functions in series. Use `ensureAsync` to work around this. ([#696](https://github.com/caolan/async/issues/696), [#704](https://github.com/caolan/async/issues/704), [#1049](https://github.com/caolan/async/issues/1049), [#1050](https://github.com/caolan/async/issues/1050))
128
+ - `map` used to return an object when iterating over an object. `map` now always returns an array, like in other libraries. The previous object behavior has been split out into `mapValues`. ([#1157](https://github.com/caolan/async/issues/1157), [#1177](https://github.com/caolan/async/issues/1177))
129
+ - `filter`, `reject`, `some`, `every`, `detect` and their families like `{METHOD}Series` and `{METHOD}Limit` now expect an error as the first callback argument, rather than just a simple boolean. Pass `null` as the first argument, or use `fs.access` instead of `fs.exists`. ([#118](https://github.com/caolan/async/issues/118), [#774](https://github.com/caolan/async/issues/774), [#1028](https://github.com/caolan/async/issues/1028), [#1041](https://github.com/caolan/async/issues/1041))
130
+ - `{METHOD}` and `{METHOD}Series` are now implemented in terms of `{METHOD}Limit`. This is a major internal simplification, and is not expected to cause many problems, but it does subtly affect how functions execute internally. ([#778](https://github.com/caolan/async/issues/778), [#847](https://github.com/caolan/async/issues/847))
131
+ - `retry`'s callback is now optional. Previously, omitting the callback would partially apply the function, meaning it could be passed directly as a task to `series` or `auto`. The partially applied "control-flow" behavior has been separated out into `retryable`. ([#1054](https://github.com/caolan/async/issues/1054), [#1058](https://github.com/caolan/async/issues/1058))
132
+ - The test function for `whilst`, `until`, and `during` used to be passed non-error args from the iteratee function's callback, but this led to weirdness where the first call of the test function would be passed no args. We have made it so the test function is never passed extra arguments, and only the `doWhilst`, `doUntil`, and `doDuring` functions pass iteratee callback arguments to the test function ([#1217](https://github.com/caolan/async/issues/1217), [#1224](https://github.com/caolan/async/issues/1224))
133
+ - The `q.tasks` array has been renamed `q._tasks` and is now implemented as a doubly linked list (DLL). Any code that used to interact with this array will need to be updated to either use the provided helpers or support DLLs ([#1205](https://github.com/caolan/async/issues/1205)).
134
+ - The timing of the `q.saturated()` callback in a `queue` has been modified to better reflect when tasks pushed to the queue will start queueing. ([#724](https://github.com/caolan/async/issues/724), [#1078](https://github.com/caolan/async/issues/1078))
135
+ - Removed `iterator` method in favour of [ES2015 iterator protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators ) which natively supports arrays ([#1237](https://github.com/caolan/async/issues/1237))
136
+ - Dropped support for Component, Jam, SPM, and Volo ([#1175](https://github.com/caolan/async/issues/1175), #[#176](https://github.com/caolan/async/issues/176))
137
+
138
+ ## Bug Fixes
139
+
140
+ - Improved handling of no dependency cases in `auto` & `autoInject` ([#1147](https://github.com/caolan/async/issues/1147)).
141
+ - Fixed a bug where the callback generated by `asyncify` with `Promises` could resolve twice ([#1197](https://github.com/caolan/async/issues/1197)).
142
+ - Fixed several documented optional callbacks not actually being optional ([#1223](https://github.com/caolan/async/issues/1223)).
143
+
144
+ ## Other
145
+
146
+ - Added `someSeries` and `everySeries` for symmetry, as well as a complete set of `any`/`anyLimit`/`anySeries` and `all`/`/allLmit`/`allSeries` aliases.
147
+ - Added `find` as an alias for `detect. (as well as `findLimit` and `findSeries`).
148
+ - Various doc fixes ([#1005](https://github.com/caolan/async/issues/1005), [#1008](https://github.com/caolan/async/issues/1008), [#1010](https://github.com/caolan/async/issues/1010), [#1015](https://github.com/caolan/async/issues/1015), [#1021](https://github.com/caolan/async/issues/1021), [#1037](https://github.com/caolan/async/issues/1037), [#1039](https://github.com/caolan/async/issues/1039), [#1051](https://github.com/caolan/async/issues/1051), [#1102](https://github.com/caolan/async/issues/1102), [#1107](https://github.com/caolan/async/issues/1107), [#1121](https://github.com/caolan/async/issues/1121), [#1123](https://github.com/caolan/async/issues/1123), [#1129](https://github.com/caolan/async/issues/1129), [#1135](https://github.com/caolan/async/issues/1135), [#1138](https://github.com/caolan/async/issues/1138), [#1141](https://github.com/caolan/async/issues/1141), [#1153](https://github.com/caolan/async/issues/1153), [#1216](https://github.com/caolan/async/issues/1216), [#1217](https://github.com/caolan/async/issues/1217), [#1232](https://github.com/caolan/async/issues/1232), [#1233](https://github.com/caolan/async/issues/1233), [#1236](https://github.com/caolan/async/issues/1236), [#1238](https://github.com/caolan/async/issues/1238))
149
+
150
+ Thank you [**@aearly**](github.com/aearly) and [**@megawac**](github.com/megawac) for taking the lead on version 2 of async.
151
+
152
+ ------------------------------------------
153
+
154
+ # v1.5.2
155
+ - Allow using `"constructor"` as an argument in `memoize` ([#998](https://github.com/caolan/async/issues/998))
156
+ - Give a better error messsage when `auto` dependency checking fails ([#994](https://github.com/caolan/async/issues/994))
157
+ - Various doc updates ([#936](https://github.com/caolan/async/issues/936), [#956](https://github.com/caolan/async/issues/956), [#979](https://github.com/caolan/async/issues/979), [#1002](https://github.com/caolan/async/issues/1002))
158
+
159
+ # v1.5.1
160
+ - Fix issue with `pause` in `queue` with concurrency enabled ([#946](https://github.com/caolan/async/issues/946))
161
+ - `while` and `until` now pass the final result to callback ([#963](https://github.com/caolan/async/issues/963))
162
+ - `auto` will properly handle concurrency when there is no callback ([#966](https://github.com/caolan/async/issues/966))
163
+ - `auto` will no. properly stop execution when an error occurs ([#988](https://github.com/caolan/async/issues/988), [#993](https://github.com/caolan/async/issues/993))
164
+ - Various doc fixes ([#971](https://github.com/caolan/async/issues/971), [#980](https://github.com/caolan/async/issues/980))
165
+
166
+ # v1.5.0
167
+
168
+ - Added `transform`, analogous to [`_.transform`](http://lodash.com/docs#transform) ([#892](https://github.com/caolan/async/issues/892))
169
+ - `map` now returns an object when an object is passed in, rather than array with non-numeric keys. `map` will begin always returning an array with numeric indexes in the next major release. ([#873](https://github.com/caolan/async/issues/873))
170
+ - `auto` now accepts an optional `concurrency` argument to limit the number o. running tasks ([#637](https://github.com/caolan/async/issues/637))
171
+ - Added `queue#workersList()`, to retrieve the lis. of currently running tasks. ([#891](https://github.com/caolan/async/issues/891))
172
+ - Various code simplifications ([#896](https://github.com/caolan/async/issues/896), [#904](https://github.com/caolan/async/issues/904))
173
+ - Various doc fixes :scroll: ([#890](https://github.com/caolan/async/issues/890), [#894](https://github.com/caolan/async/issues/894), [#903](https://github.com/caolan/async/issues/903), [#905](https://github.com/caolan/async/issues/905), [#912](https://github.com/caolan/async/issues/912))
174
+
175
+ # v1.4.2
176
+
177
+ - Ensure coverage files don't get published on npm ([#879](https://github.com/caolan/async/issues/879))
178
+
179
+ # v1.4.1
180
+
181
+ - Add in overlooked `detectLimit` method ([#866](https://github.com/caolan/async/issues/866))
182
+ - Removed unnecessary files from npm releases ([#861](https://github.com/caolan/async/issues/861))
183
+ - Removed usage of a reserved word to prevent :boom: in older environments ([#870](https://github.com/caolan/async/issues/870))
184
+
185
+ # v1.4.0
186
+
187
+ - `asyncify` now supports promises ([#840](https://github.com/caolan/async/issues/840))
188
+ - Added `Limit` versions of `filter` and `reject` ([#836](https://github.com/caolan/async/issues/836))
189
+ - Add `Limit` versions of `detect`, `some` and `every` ([#828](https://github.com/caolan/async/issues/828), [#829](https://github.com/caolan/async/issues/829))
190
+ - `some`, `every` and `detect` now short circuit early ([#828](https://github.com/caolan/async/issues/828), [#829](https://github.com/caolan/async/issues/829))
191
+ - Improve detection of the global object ([#804](https://github.com/caolan/async/issues/804)), enabling use in WebWorkers
192
+ - `whilst` now called with arguments from iterator ([#823](https://github.com/caolan/async/issues/823))
193
+ - `during` now gets called with arguments from iterator ([#824](https://github.com/caolan/async/issues/824))
194
+ - Code simplifications and optimizations aplenty ([diff](https://github.com/caolan/async/compare/v1.3.0...v1.4.0))
195
+
196
+
197
+ # v1.3.0
198
+
199
+ New Features:
200
+ - Added `constant`
201
+ - Added `asyncify`/`wrapSync` for making sync functions work with callbacks. ([#671](https://github.com/caolan/async/issues/671), [#806](https://github.com/caolan/async/issues/806))
202
+ - Added `during` and `doDuring`, which are like `whilst` with an async truth test. ([#800](https://github.com/caolan/async/issues/800))
203
+ - `retry` now accepts an `interval` parameter to specify a delay between retries. ([#793](https://github.com/caolan/async/issues/793))
204
+ - `async` should work better in Web Workers due to better `root` detection ([#804](https://github.com/caolan/async/issues/804))
205
+ - Callbacks are now optional in `whilst`, `doWhilst`, `until`, and `doUntil` ([#642](https://github.com/caolan/async/issues/642))
206
+ - Various internal updates ([#786](https://github.com/caolan/async/issues/786), [#801](https://github.com/caolan/async/issues/801), [#802](https://github.com/caolan/async/issues/802), [#803](https://github.com/caolan/async/issues/803))
207
+ - Various doc fixes ([#790](https://github.com/caolan/async/issues/790), [#794](https://github.com/caolan/async/issues/794))
208
+
209
+ Bug Fixes:
210
+ - `cargo` now exposes the `payload` size, and `cargo.payload` can be changed on the fly after the `cargo` is created. ([#740](https://github.com/caolan/async/issues/740), [#744](https://github.com/caolan/async/issues/744), [#783](https://github.com/caolan/async/issues/783))
211
+
212
+
213
+ # v1.2.1
214
+
215
+ Bug Fix:
216
+
217
+ - Small regression with synchronous iterator behavior in `eachSeries` with a 1-element array. Before 1.1.0, `eachSeries`'s callback was called on the same tick, which this patch restores. In 2.0.0, it will be called on the next tick. ([#782](https://github.com/caolan/async/issues/782))
218
+
219
+
220
+ # v1.2.0
221
+
222
+ New Features:
223
+
224
+ - Added `timesLimit` ([#743](https://github.com/caolan/async/issues/743))
225
+ - `concurrency` can be changed after initialization in `queue` by setting `q.concurrency`. The new concurrency will be reflected the next time a task is processed. ([#747](https://github.com/caolan/async/issues/747), [#772](https://github.com/caolan/async/issues/772))
226
+
227
+ Bug Fixes:
228
+
229
+ - Fixed a regression in `each` and family with empty arrays that have additional properties. ([#775](https://github.com/caolan/async/issues/775), [#777](https://github.com/caolan/async/issues/777))
230
+
231
+
232
+ # v1.1.1
233
+
234
+ Bug Fix:
235
+
236
+ - Small regression with synchronous iterator behavior in `eachSeries` with a 1-element array. Before 1.1.0, `eachSeries`'s callback was called on the same tick, which this patch restores. In 2.0.0, it will be called on the next tick. ([#782](https://github.com/caolan/async/issues/782))
237
+
238
+
239
+ # v1.1.0
240
+
241
+ New Features:
242
+
243
+ - `cargo` now supports all of the same methods and event callbacks as `queue`.
244
+ - Added `ensureAsync` - A wrapper that ensures an async function calls its callback on a later tick. ([#769](https://github.com/caolan/async/issues/769))
245
+ - Optimized `map`, `eachOf`, and `waterfall` families of functions
246
+ - Passing a `null` or `undefined` array to `map`, `each`, `parallel` and families will be treated as an empty array ([#667](https://github.com/caolan/async/issues/667)).
247
+ - The callback is now optional for the composed results of `compose` and `seq`. ([#618](https://github.com/caolan/async/issues/618))
248
+ - Reduced file size by 4kb, (minified version by 1kb)
249
+ - Added code coverage through `nyc` and `coveralls` ([#768](https://github.com/caolan/async/issues/768))
250
+
251
+ Bug Fixes:
252
+
253
+ - `forever` will no longer stack overflow with a synchronous iterator ([#622](https://github.com/caolan/async/issues/622))
254
+ - `eachLimit` and other limit functions will stop iterating once an error occurs ([#754](https://github.com/caolan/async/issues/754))
255
+ - Always pass `null` in callbacks when there is no error ([#439](https://github.com/caolan/async/issues/439))
256
+ - Ensure proper conditions when calling `drain()` after pushing an empty data set to a queue ([#668](https://github.com/caolan/async/issues/668))
257
+ - `each` and family will properly handle an empty array ([#578](https://github.com/caolan/async/issues/578))
258
+ - `eachSeries` and family will finish if the underlying array is modified during execution ([#557](https://github.com/caolan/async/issues/557))
259
+ - `queue` will throw if a non-function is passed to `q.push()` ([#593](https://github.com/caolan/async/issues/593))
260
+ - Doc fixes ([#629](https://github.com/caolan/async/issues/629), [#766](https://github.com/caolan/async/issues/766))
261
+
262
+
263
+ # v1.0.0
264
+
265
+ No known breaking changes, we are simply complying with semver from here on out.
266
+
267
+ Changes:
268
+
269
+ - Start using a changelog!
270
+ - Add `forEachOf` for iterating over Objects (or to iterate Arrays with indexes available) ([#168](https://github.com/caolan/async/issues/168) [#704](https://github.com/caolan/async/issues/704) [#321](https://github.com/caolan/async/issues/321))
271
+ - Detect deadlocks in `auto` ([#663](https://github.com/caolan/async/issues/663))
272
+ - Better support for require.js ([#527](https://github.com/caolan/async/issues/527))
273
+ - Throw if queue created with concurrency `0` ([#714](https://github.com/caolan/async/issues/714))
274
+ - Fix unneeded iteration in `queue.resume()` ([#758](https://github.com/caolan/async/issues/758))
275
+ - Guard against timer mocking overriding `setImmediate` ([#609](https://github.com/caolan/async/issues/609) [#611](https://github.com/caolan/async/issues/611))
276
+ - Miscellaneous doc fixes ([#542](https://github.com/caolan/async/issues/542) [#596](https://github.com/caolan/async/issues/596) [#615](https://github.com/caolan/async/issues/615) [#628](https://github.com/caolan/async/issues/628) [#631](https://github.com/caolan/async/issues/631) [#690](https://github.com/caolan/async/issues/690) [#729](https://github.com/caolan/async/issues/729))
277
+ - Use single noop function internally ([#546](https://github.com/caolan/async/issues/546))
278
+ - Optimize internal `_each`, `_map` and `_keys` functions.
node_modules/async/LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2010-2018 Caolan McMahon
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
node_modules/async/README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ![Async Logo](https://raw.githubusercontent.com/caolan/async/master/logo/async-logo_readme.jpg)
2
+
3
+ [![Build Status via Travis CI](https://travis-ci.org/caolan/async.svg?branch=master)](https://travis-ci.org/caolan/async)
4
+ [![NPM version](https://img.shields.io/npm/v/async.svg)](https://www.npmjs.com/package/async)
5
+ [![Coverage Status](https://coveralls.io/repos/caolan/async/badge.svg?branch=master)](https://coveralls.io/r/caolan/async?branch=master)
6
+ [![Join the chat at https://gitter.im/caolan/async](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/caolan/async?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
7
+ [![libhive - Open source examples](https://www.libhive.com/providers/npm/packages/async/examples/badge.svg)](https://www.libhive.com/providers/npm/packages/async)
8
+ [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/async/badge?style=rounded)](https://www.jsdelivr.com/package/npm/async)
9
+
10
+
11
+ Async is a utility module which provides straight-forward, powerful functions for working with [asynchronous JavaScript](http://caolan.github.io/async/global.html). Although originally designed for use with [Node.js](https://nodejs.org/) and installable via `npm install --save async`, it can also be used directly in the browser.
12
+
13
+ This version of the package is optimized for the Node.js environment. If you use Async with webpack, install [`async-es`](https://www.npmjs.com/package/async-es) instead.
14
+
15
+ For Documentation, visit <https://caolan.github.io/async/>
16
+
17
+ *For Async v1.5.x documentation, go [HERE](https://github.com/caolan/async/blob/v1.5.2/README.md)*
18
+
19
+
20
+ ```javascript
21
+ // for use with Node-style callbacks...
22
+ var async = require("async");
23
+
24
+ var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"};
25
+ var configs = {};
26
+
27
+ async.forEachOf(obj, (value, key, callback) => {
28
+ fs.readFile(__dirname + value, "utf8", (err, data) => {
29
+ if (err) return callback(err);
30
+ try {
31
+ configs[key] = JSON.parse(data);
32
+ } catch (e) {
33
+ return callback(e);
34
+ }
35
+ callback();
36
+ });
37
+ }, err => {
38
+ if (err) console.error(err.message);
39
+ // configs is now a map of JSON data
40
+ doSomethingWith(configs);
41
+ });
42
+ ```
43
+
44
+ ```javascript
45
+ var async = require("async");
46
+
47
+ // ...or ES2017 async functions
48
+ async.mapLimit(urls, 5, async function(url) {
49
+ const response = await fetch(url)
50
+ return response.body
51
+ }, (err, results) => {
52
+ if (err) throw err
53
+ // results is now an array of the response bodies
54
+ console.log(results)
55
+ })
56
+ ```
node_modules/async/all.js ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _createTester = require('./internal/createTester');
8
+
9
+ var _createTester2 = _interopRequireDefault(_createTester);
10
+
11
+ var _doParallel = require('./internal/doParallel');
12
+
13
+ var _doParallel2 = _interopRequireDefault(_doParallel);
14
+
15
+ var _notId = require('./internal/notId');
16
+
17
+ var _notId2 = _interopRequireDefault(_notId);
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ /**
22
+ * Returns `true` if every element in `coll` satisfies an async test. If any
23
+ * iteratee call returns `false`, the main `callback` is immediately called.
24
+ *
25
+ * @name every
26
+ * @static
27
+ * @memberOf module:Collections
28
+ * @method
29
+ * @alias all
30
+ * @category Collection
31
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
32
+ * @param {AsyncFunction} iteratee - An async truth test to apply to each item
33
+ * in the collection in parallel.
34
+ * The iteratee must complete with a boolean result value.
35
+ * Invoked with (item, callback).
36
+ * @param {Function} [callback] - A callback which is called after all the
37
+ * `iteratee` functions have finished. Result will be either `true` or `false`
38
+ * depending on the values of the async tests. Invoked with (err, result).
39
+ * @example
40
+ *
41
+ * async.every(['file1','file2','file3'], function(filePath, callback) {
42
+ * fs.access(filePath, function(err) {
43
+ * callback(null, !err)
44
+ * });
45
+ * }, function(err, result) {
46
+ * // if result is true then every file exists
47
+ * });
48
+ */
49
+ exports.default = (0, _doParallel2.default)((0, _createTester2.default)(_notId2.default, _notId2.default));
50
+ module.exports = exports['default'];
node_modules/async/allLimit.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _createTester = require('./internal/createTester');
8
+
9
+ var _createTester2 = _interopRequireDefault(_createTester);
10
+
11
+ var _doParallelLimit = require('./internal/doParallelLimit');
12
+
13
+ var _doParallelLimit2 = _interopRequireDefault(_doParallelLimit);
14
+
15
+ var _notId = require('./internal/notId');
16
+
17
+ var _notId2 = _interopRequireDefault(_notId);
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ /**
22
+ * The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time.
23
+ *
24
+ * @name everyLimit
25
+ * @static
26
+ * @memberOf module:Collections
27
+ * @method
28
+ * @see [async.every]{@link module:Collections.every}
29
+ * @alias allLimit
30
+ * @category Collection
31
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
32
+ * @param {number} limit - The maximum number of async operations at a time.
33
+ * @param {AsyncFunction} iteratee - An async truth test to apply to each item
34
+ * in the collection in parallel.
35
+ * The iteratee must complete with a boolean result value.
36
+ * Invoked with (item, callback).
37
+ * @param {Function} [callback] - A callback which is called after all the
38
+ * `iteratee` functions have finished. Result will be either `true` or `false`
39
+ * depending on the values of the async tests. Invoked with (err, result).
40
+ */
41
+ exports.default = (0, _doParallelLimit2.default)((0, _createTester2.default)(_notId2.default, _notId2.default));
42
+ module.exports = exports['default'];
node_modules/async/allSeries.js ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _everyLimit = require('./everyLimit');
8
+
9
+ var _everyLimit2 = _interopRequireDefault(_everyLimit);
10
+
11
+ var _doLimit = require('./internal/doLimit');
12
+
13
+ var _doLimit2 = _interopRequireDefault(_doLimit);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.
19
+ *
20
+ * @name everySeries
21
+ * @static
22
+ * @memberOf module:Collections
23
+ * @method
24
+ * @see [async.every]{@link module:Collections.every}
25
+ * @alias allSeries
26
+ * @category Collection
27
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
28
+ * @param {AsyncFunction} iteratee - An async truth test to apply to each item
29
+ * in the collection in series.
30
+ * The iteratee must complete with a boolean result value.
31
+ * Invoked with (item, callback).
32
+ * @param {Function} [callback] - A callback which is called after all the
33
+ * `iteratee` functions have finished. Result will be either `true` or `false`
34
+ * depending on the values of the async tests. Invoked with (err, result).
35
+ */
36
+ exports.default = (0, _doLimit2.default)(_everyLimit2.default, 1);
37
+ module.exports = exports['default'];
node_modules/async/any.js ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _createTester = require('./internal/createTester');
8
+
9
+ var _createTester2 = _interopRequireDefault(_createTester);
10
+
11
+ var _doParallel = require('./internal/doParallel');
12
+
13
+ var _doParallel2 = _interopRequireDefault(_doParallel);
14
+
15
+ var _identity = require('lodash/identity');
16
+
17
+ var _identity2 = _interopRequireDefault(_identity);
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ /**
22
+ * Returns `true` if at least one element in the `coll` satisfies an async test.
23
+ * If any iteratee call returns `true`, the main `callback` is immediately
24
+ * called.
25
+ *
26
+ * @name some
27
+ * @static
28
+ * @memberOf module:Collections
29
+ * @method
30
+ * @alias any
31
+ * @category Collection
32
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
33
+ * @param {AsyncFunction} iteratee - An async truth test to apply to each item
34
+ * in the collections in parallel.
35
+ * The iteratee should complete with a boolean `result` value.
36
+ * Invoked with (item, callback).
37
+ * @param {Function} [callback] - A callback which is called as soon as any
38
+ * iteratee returns `true`, or after all the iteratee functions have finished.
39
+ * Result will be either `true` or `false` depending on the values of the async
40
+ * tests. Invoked with (err, result).
41
+ * @example
42
+ *
43
+ * async.some(['file1','file2','file3'], function(filePath, callback) {
44
+ * fs.access(filePath, function(err) {
45
+ * callback(null, !err)
46
+ * });
47
+ * }, function(err, result) {
48
+ * // if result is true then at least one of the files exists
49
+ * });
50
+ */
51
+ exports.default = (0, _doParallel2.default)((0, _createTester2.default)(Boolean, _identity2.default));
52
+ module.exports = exports['default'];
node_modules/async/anyLimit.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _createTester = require('./internal/createTester');
8
+
9
+ var _createTester2 = _interopRequireDefault(_createTester);
10
+
11
+ var _doParallelLimit = require('./internal/doParallelLimit');
12
+
13
+ var _doParallelLimit2 = _interopRequireDefault(_doParallelLimit);
14
+
15
+ var _identity = require('lodash/identity');
16
+
17
+ var _identity2 = _interopRequireDefault(_identity);
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ /**
22
+ * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time.
23
+ *
24
+ * @name someLimit
25
+ * @static
26
+ * @memberOf module:Collections
27
+ * @method
28
+ * @see [async.some]{@link module:Collections.some}
29
+ * @alias anyLimit
30
+ * @category Collection
31
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
32
+ * @param {number} limit - The maximum number of async operations at a time.
33
+ * @param {AsyncFunction} iteratee - An async truth test to apply to each item
34
+ * in the collections in parallel.
35
+ * The iteratee should complete with a boolean `result` value.
36
+ * Invoked with (item, callback).
37
+ * @param {Function} [callback] - A callback which is called as soon as any
38
+ * iteratee returns `true`, or after all the iteratee functions have finished.
39
+ * Result will be either `true` or `false` depending on the values of the async
40
+ * tests. Invoked with (err, result).
41
+ */
42
+ exports.default = (0, _doParallelLimit2.default)((0, _createTester2.default)(Boolean, _identity2.default));
43
+ module.exports = exports['default'];
node_modules/async/anySeries.js ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _someLimit = require('./someLimit');
8
+
9
+ var _someLimit2 = _interopRequireDefault(_someLimit);
10
+
11
+ var _doLimit = require('./internal/doLimit');
12
+
13
+ var _doLimit2 = _interopRequireDefault(_doLimit);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time.
19
+ *
20
+ * @name someSeries
21
+ * @static
22
+ * @memberOf module:Collections
23
+ * @method
24
+ * @see [async.some]{@link module:Collections.some}
25
+ * @alias anySeries
26
+ * @category Collection
27
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
28
+ * @param {AsyncFunction} iteratee - An async truth test to apply to each item
29
+ * in the collections in series.
30
+ * The iteratee should complete with a boolean `result` value.
31
+ * Invoked with (item, callback).
32
+ * @param {Function} [callback] - A callback which is called as soon as any
33
+ * iteratee returns `true`, or after all the iteratee functions have finished.
34
+ * Result will be either `true` or `false` depending on the values of the async
35
+ * tests. Invoked with (err, result).
36
+ */
37
+ exports.default = (0, _doLimit2.default)(_someLimit2.default, 1);
38
+ module.exports = exports['default'];
node_modules/async/apply.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ exports.default = function (fn /*, ...args*/) {
8
+ var args = (0, _slice2.default)(arguments, 1);
9
+ return function () /*callArgs*/{
10
+ var callArgs = (0, _slice2.default)(arguments);
11
+ return fn.apply(null, args.concat(callArgs));
12
+ };
13
+ };
14
+
15
+ var _slice = require('./internal/slice');
16
+
17
+ var _slice2 = _interopRequireDefault(_slice);
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ ;
22
+
23
+ /**
24
+ * Creates a continuation function with some arguments already applied.
25
+ *
26
+ * Useful as a shorthand when combined with other control flow functions. Any
27
+ * arguments passed to the returned function are added to the arguments
28
+ * originally passed to apply.
29
+ *
30
+ * @name apply
31
+ * @static
32
+ * @memberOf module:Utils
33
+ * @method
34
+ * @category Util
35
+ * @param {Function} fn - The function you want to eventually apply all
36
+ * arguments to. Invokes with (arguments...).
37
+ * @param {...*} arguments... - Any number of arguments to automatically apply
38
+ * when the continuation is called.
39
+ * @returns {Function} the partially-applied function
40
+ * @example
41
+ *
42
+ * // using apply
43
+ * async.parallel([
44
+ * async.apply(fs.writeFile, 'testfile1', 'test1'),
45
+ * async.apply(fs.writeFile, 'testfile2', 'test2')
46
+ * ]);
47
+ *
48
+ *
49
+ * // the same process without using apply
50
+ * async.parallel([
51
+ * function(callback) {
52
+ * fs.writeFile('testfile1', 'test1', callback);
53
+ * },
54
+ * function(callback) {
55
+ * fs.writeFile('testfile2', 'test2', callback);
56
+ * }
57
+ * ]);
58
+ *
59
+ * // It's possible to pass any number of additional arguments when calling the
60
+ * // continuation:
61
+ *
62
+ * node> var fn = async.apply(sys.puts, 'one');
63
+ * node> fn('two', 'three');
64
+ * one
65
+ * two
66
+ * three
67
+ */
68
+ module.exports = exports['default'];
node_modules/async/applyEach.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _applyEach = require('./internal/applyEach');
8
+
9
+ var _applyEach2 = _interopRequireDefault(_applyEach);
10
+
11
+ var _map = require('./map');
12
+
13
+ var _map2 = _interopRequireDefault(_map);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * Applies the provided arguments to each function in the array, calling
19
+ * `callback` after all functions have completed. If you only provide the first
20
+ * argument, `fns`, then it will return a function which lets you pass in the
21
+ * arguments as if it were a single function call. If more arguments are
22
+ * provided, `callback` is required while `args` is still optional.
23
+ *
24
+ * @name applyEach
25
+ * @static
26
+ * @memberOf module:ControlFlow
27
+ * @method
28
+ * @category Control Flow
29
+ * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s
30
+ * to all call with the same arguments
31
+ * @param {...*} [args] - any number of separate arguments to pass to the
32
+ * function.
33
+ * @param {Function} [callback] - the final argument should be the callback,
34
+ * called when all functions have completed processing.
35
+ * @returns {Function} - If only the first argument, `fns`, is provided, it will
36
+ * return a function which lets you pass in the arguments as if it were a single
37
+ * function call. The signature is `(..args, callback)`. If invoked with any
38
+ * arguments, `callback` is required.
39
+ * @example
40
+ *
41
+ * async.applyEach([enableSearch, updateSchema], 'bucket', callback);
42
+ *
43
+ * // partial application example:
44
+ * async.each(
45
+ * buckets,
46
+ * async.applyEach([enableSearch, updateSchema]),
47
+ * callback
48
+ * );
49
+ */
50
+ exports.default = (0, _applyEach2.default)(_map2.default);
51
+ module.exports = exports['default'];
node_modules/async/applyEachSeries.js ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _applyEach = require('./internal/applyEach');
8
+
9
+ var _applyEach2 = _interopRequireDefault(_applyEach);
10
+
11
+ var _mapSeries = require('./mapSeries');
12
+
13
+ var _mapSeries2 = _interopRequireDefault(_mapSeries);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.
19
+ *
20
+ * @name applyEachSeries
21
+ * @static
22
+ * @memberOf module:ControlFlow
23
+ * @method
24
+ * @see [async.applyEach]{@link module:ControlFlow.applyEach}
25
+ * @category Control Flow
26
+ * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s to all
27
+ * call with the same arguments
28
+ * @param {...*} [args] - any number of separate arguments to pass to the
29
+ * function.
30
+ * @param {Function} [callback] - the final argument should be the callback,
31
+ * called when all functions have completed processing.
32
+ * @returns {Function} - If only the first argument is provided, it will return
33
+ * a function which lets you pass in the arguments as if it were a single
34
+ * function call.
35
+ */
36
+ exports.default = (0, _applyEach2.default)(_mapSeries2.default);
37
+ module.exports = exports['default'];
node_modules/async/asyncify.js ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = asyncify;
7
+
8
+ var _isObject = require('lodash/isObject');
9
+
10
+ var _isObject2 = _interopRequireDefault(_isObject);
11
+
12
+ var _initialParams = require('./internal/initialParams');
13
+
14
+ var _initialParams2 = _interopRequireDefault(_initialParams);
15
+
16
+ var _setImmediate = require('./internal/setImmediate');
17
+
18
+ var _setImmediate2 = _interopRequireDefault(_setImmediate);
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ /**
23
+ * Take a sync function and make it async, passing its return value to a
24
+ * callback. This is useful for plugging sync functions into a waterfall,
25
+ * series, or other async functions. Any arguments passed to the generated
26
+ * function will be passed to the wrapped function (except for the final
27
+ * callback argument). Errors thrown will be passed to the callback.
28
+ *
29
+ * If the function passed to `asyncify` returns a Promise, that promises's
30
+ * resolved/rejected state will be used to call the callback, rather than simply
31
+ * the synchronous return value.
32
+ *
33
+ * This also means you can asyncify ES2017 `async` functions.
34
+ *
35
+ * @name asyncify
36
+ * @static
37
+ * @memberOf module:Utils
38
+ * @method
39
+ * @alias wrapSync
40
+ * @category Util
41
+ * @param {Function} func - The synchronous function, or Promise-returning
42
+ * function to convert to an {@link AsyncFunction}.
43
+ * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be
44
+ * invoked with `(args..., callback)`.
45
+ * @example
46
+ *
47
+ * // passing a regular synchronous function
48
+ * async.waterfall([
49
+ * async.apply(fs.readFile, filename, "utf8"),
50
+ * async.asyncify(JSON.parse),
51
+ * function (data, next) {
52
+ * // data is the result of parsing the text.
53
+ * // If there was a parsing error, it would have been caught.
54
+ * }
55
+ * ], callback);
56
+ *
57
+ * // passing a function returning a promise
58
+ * async.waterfall([
59
+ * async.apply(fs.readFile, filename, "utf8"),
60
+ * async.asyncify(function (contents) {
61
+ * return db.model.create(contents);
62
+ * }),
63
+ * function (model, next) {
64
+ * // `model` is the instantiated model object.
65
+ * // If there was an error, this function would be skipped.
66
+ * }
67
+ * ], callback);
68
+ *
69
+ * // es2017 example, though `asyncify` is not needed if your JS environment
70
+ * // supports async functions out of the box
71
+ * var q = async.queue(async.asyncify(async function(file) {
72
+ * var intermediateStep = await processFile(file);
73
+ * return await somePromise(intermediateStep)
74
+ * }));
75
+ *
76
+ * q.push(files);
77
+ */
78
+ function asyncify(func) {
79
+ return (0, _initialParams2.default)(function (args, callback) {
80
+ var result;
81
+ try {
82
+ result = func.apply(this, args);
83
+ } catch (e) {
84
+ return callback(e);
85
+ }
86
+ // if result is Promise object
87
+ if ((0, _isObject2.default)(result) && typeof result.then === 'function') {
88
+ result.then(function (value) {
89
+ invokeCallback(callback, null, value);
90
+ }, function (err) {
91
+ invokeCallback(callback, err.message ? err : new Error(err));
92
+ });
93
+ } else {
94
+ callback(null, result);
95
+ }
96
+ });
97
+ }
98
+
99
+ function invokeCallback(callback, error, value) {
100
+ try {
101
+ callback(error, value);
102
+ } catch (e) {
103
+ (0, _setImmediate2.default)(rethrow, e);
104
+ }
105
+ }
106
+
107
+ function rethrow(error) {
108
+ throw error;
109
+ }
110
+ module.exports = exports['default'];
node_modules/async/auto.js ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ exports.default = function (tasks, concurrency, callback) {
8
+ if (typeof concurrency === 'function') {
9
+ // concurrency is optional, shift the args.
10
+ callback = concurrency;
11
+ concurrency = null;
12
+ }
13
+ callback = (0, _once2.default)(callback || _noop2.default);
14
+ var keys = (0, _keys2.default)(tasks);
15
+ var numTasks = keys.length;
16
+ if (!numTasks) {
17
+ return callback(null);
18
+ }
19
+ if (!concurrency) {
20
+ concurrency = numTasks;
21
+ }
22
+
23
+ var results = {};
24
+ var runningTasks = 0;
25
+ var hasError = false;
26
+
27
+ var listeners = Object.create(null);
28
+
29
+ var readyTasks = [];
30
+
31
+ // for cycle detection:
32
+ var readyToCheck = []; // tasks that have been identified as reachable
33
+ // without the possibility of returning to an ancestor task
34
+ var uncheckedDependencies = {};
35
+
36
+ (0, _baseForOwn2.default)(tasks, function (task, key) {
37
+ if (!(0, _isArray2.default)(task)) {
38
+ // no dependencies
39
+ enqueueTask(key, [task]);
40
+ readyToCheck.push(key);
41
+ return;
42
+ }
43
+
44
+ var dependencies = task.slice(0, task.length - 1);
45
+ var remainingDependencies = dependencies.length;
46
+ if (remainingDependencies === 0) {
47
+ enqueueTask(key, task);
48
+ readyToCheck.push(key);
49
+ return;
50
+ }
51
+ uncheckedDependencies[key] = remainingDependencies;
52
+
53
+ (0, _arrayEach2.default)(dependencies, function (dependencyName) {
54
+ if (!tasks[dependencyName]) {
55
+ throw new Error('async.auto task `' + key + '` has a non-existent dependency `' + dependencyName + '` in ' + dependencies.join(', '));
56
+ }
57
+ addListener(dependencyName, function () {
58
+ remainingDependencies--;
59
+ if (remainingDependencies === 0) {
60
+ enqueueTask(key, task);
61
+ }
62
+ });
63
+ });
64
+ });
65
+
66
+ checkForDeadlocks();
67
+ processQueue();
68
+
69
+ function enqueueTask(key, task) {
70
+ readyTasks.push(function () {
71
+ runTask(key, task);
72
+ });
73
+ }
74
+
75
+ function processQueue() {
76
+ if (readyTasks.length === 0 && runningTasks === 0) {
77
+ return callback(null, results);
78
+ }
79
+ while (readyTasks.length && runningTasks < concurrency) {
80
+ var run = readyTasks.shift();
81
+ run();
82
+ }
83
+ }
84
+
85
+ function addListener(taskName, fn) {
86
+ var taskListeners = listeners[taskName];
87
+ if (!taskListeners) {
88
+ taskListeners = listeners[taskName] = [];
89
+ }
90
+
91
+ taskListeners.push(fn);
92
+ }
93
+
94
+ function taskComplete(taskName) {
95
+ var taskListeners = listeners[taskName] || [];
96
+ (0, _arrayEach2.default)(taskListeners, function (fn) {
97
+ fn();
98
+ });
99
+ processQueue();
100
+ }
101
+
102
+ function runTask(key, task) {
103
+ if (hasError) return;
104
+
105
+ var taskCallback = (0, _onlyOnce2.default)(function (err, result) {
106
+ runningTasks--;
107
+ if (arguments.length > 2) {
108
+ result = (0, _slice2.default)(arguments, 1);
109
+ }
110
+ if (err) {
111
+ var safeResults = {};
112
+ (0, _baseForOwn2.default)(results, function (val, rkey) {
113
+ safeResults[rkey] = val;
114
+ });
115
+ safeResults[key] = result;
116
+ hasError = true;
117
+ listeners = Object.create(null);
118
+
119
+ callback(err, safeResults);
120
+ } else {
121
+ results[key] = result;
122
+ taskComplete(key);
123
+ }
124
+ });
125
+
126
+ runningTasks++;
127
+ var taskFn = (0, _wrapAsync2.default)(task[task.length - 1]);
128
+ if (task.length > 1) {
129
+ taskFn(results, taskCallback);
130
+ } else {
131
+ taskFn(taskCallback);
132
+ }
133
+ }
134
+
135
+ function checkForDeadlocks() {
136
+ // Kahn's algorithm
137
+ // https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm
138
+ // http://connalle.blogspot.com/2013/10/topological-sortingkahn-algorithm.html
139
+ var currentTask;
140
+ var counter = 0;
141
+ while (readyToCheck.length) {
142
+ currentTask = readyToCheck.pop();
143
+ counter++;
144
+ (0, _arrayEach2.default)(getDependents(currentTask), function (dependent) {
145
+ if (--uncheckedDependencies[dependent] === 0) {
146
+ readyToCheck.push(dependent);
147
+ }
148
+ });
149
+ }
150
+
151
+ if (counter !== numTasks) {
152
+ throw new Error('async.auto cannot execute tasks due to a recursive dependency');
153
+ }
154
+ }
155
+
156
+ function getDependents(taskName) {
157
+ var result = [];
158
+ (0, _baseForOwn2.default)(tasks, function (task, key) {
159
+ if ((0, _isArray2.default)(task) && (0, _baseIndexOf2.default)(task, taskName, 0) >= 0) {
160
+ result.push(key);
161
+ }
162
+ });
163
+ return result;
164
+ }
165
+ };
166
+
167
+ var _arrayEach = require('lodash/_arrayEach');
168
+
169
+ var _arrayEach2 = _interopRequireDefault(_arrayEach);
170
+
171
+ var _baseForOwn = require('lodash/_baseForOwn');
172
+
173
+ var _baseForOwn2 = _interopRequireDefault(_baseForOwn);
174
+
175
+ var _baseIndexOf = require('lodash/_baseIndexOf');
176
+
177
+ var _baseIndexOf2 = _interopRequireDefault(_baseIndexOf);
178
+
179
+ var _isArray = require('lodash/isArray');
180
+
181
+ var _isArray2 = _interopRequireDefault(_isArray);
182
+
183
+ var _keys = require('lodash/keys');
184
+
185
+ var _keys2 = _interopRequireDefault(_keys);
186
+
187
+ var _noop = require('lodash/noop');
188
+
189
+ var _noop2 = _interopRequireDefault(_noop);
190
+
191
+ var _slice = require('./internal/slice');
192
+
193
+ var _slice2 = _interopRequireDefault(_slice);
194
+
195
+ var _once = require('./internal/once');
196
+
197
+ var _once2 = _interopRequireDefault(_once);
198
+
199
+ var _onlyOnce = require('./internal/onlyOnce');
200
+
201
+ var _onlyOnce2 = _interopRequireDefault(_onlyOnce);
202
+
203
+ var _wrapAsync = require('./internal/wrapAsync');
204
+
205
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
206
+
207
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
208
+
209
+ module.exports = exports['default'];
210
+
211
+ /**
212
+ * Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on
213
+ * their requirements. Each function can optionally depend on other functions
214
+ * being completed first, and each function is run as soon as its requirements
215
+ * are satisfied.
216
+ *
217
+ * If any of the {@link AsyncFunction}s pass an error to their callback, the `auto` sequence
218
+ * will stop. Further tasks will not execute (so any other functions depending
219
+ * on it will not run), and the main `callback` is immediately called with the
220
+ * error.
221
+ *
222
+ * {@link AsyncFunction}s also receive an object containing the results of functions which
223
+ * have completed so far as the first argument, if they have dependencies. If a
224
+ * task function has no dependencies, it will only be passed a callback.
225
+ *
226
+ * @name auto
227
+ * @static
228
+ * @memberOf module:ControlFlow
229
+ * @method
230
+ * @category Control Flow
231
+ * @param {Object} tasks - An object. Each of its properties is either a
232
+ * function or an array of requirements, with the {@link AsyncFunction} itself the last item
233
+ * in the array. The object's key of a property serves as the name of the task
234
+ * defined by that property, i.e. can be used when specifying requirements for
235
+ * other tasks. The function receives one or two arguments:
236
+ * * a `results` object, containing the results of the previously executed
237
+ * functions, only passed if the task has any dependencies,
238
+ * * a `callback(err, result)` function, which must be called when finished,
239
+ * passing an `error` (which can be `null`) and the result of the function's
240
+ * execution.
241
+ * @param {number} [concurrency=Infinity] - An optional `integer` for
242
+ * determining the maximum number of tasks that can be run in parallel. By
243
+ * default, as many as possible.
244
+ * @param {Function} [callback] - An optional callback which is called when all
245
+ * the tasks have been completed. It receives the `err` argument if any `tasks`
246
+ * pass an error to their callback. Results are always returned; however, if an
247
+ * error occurs, no further `tasks` will be performed, and the results object
248
+ * will only contain partial results. Invoked with (err, results).
249
+ * @returns undefined
250
+ * @example
251
+ *
252
+ * async.auto({
253
+ * // this function will just be passed a callback
254
+ * readData: async.apply(fs.readFile, 'data.txt', 'utf-8'),
255
+ * showData: ['readData', function(results, cb) {
256
+ * // results.readData is the file's contents
257
+ * // ...
258
+ * }]
259
+ * }, callback);
260
+ *
261
+ * async.auto({
262
+ * get_data: function(callback) {
263
+ * console.log('in get_data');
264
+ * // async code to get some data
265
+ * callback(null, 'data', 'converted to array');
266
+ * },
267
+ * make_folder: function(callback) {
268
+ * console.log('in make_folder');
269
+ * // async code to create a directory to store a file in
270
+ * // this is run at the same time as getting the data
271
+ * callback(null, 'folder');
272
+ * },
273
+ * write_file: ['get_data', 'make_folder', function(results, callback) {
274
+ * console.log('in write_file', JSON.stringify(results));
275
+ * // once there is some data and the directory exists,
276
+ * // write the data to a file in the directory
277
+ * callback(null, 'filename');
278
+ * }],
279
+ * email_link: ['write_file', function(results, callback) {
280
+ * console.log('in email_link', JSON.stringify(results));
281
+ * // once the file is written let's email a link to it...
282
+ * // results.write_file contains the filename returned by write_file.
283
+ * callback(null, {'file':results.write_file, 'email':'user@example.com'});
284
+ * }]
285
+ * }, function(err, results) {
286
+ * console.log('err = ', err);
287
+ * console.log('results = ', results);
288
+ * });
289
+ */
node_modules/async/autoInject.js ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = autoInject;
7
+
8
+ var _auto = require('./auto');
9
+
10
+ var _auto2 = _interopRequireDefault(_auto);
11
+
12
+ var _baseForOwn = require('lodash/_baseForOwn');
13
+
14
+ var _baseForOwn2 = _interopRequireDefault(_baseForOwn);
15
+
16
+ var _arrayMap = require('lodash/_arrayMap');
17
+
18
+ var _arrayMap2 = _interopRequireDefault(_arrayMap);
19
+
20
+ var _isArray = require('lodash/isArray');
21
+
22
+ var _isArray2 = _interopRequireDefault(_isArray);
23
+
24
+ var _trim = require('lodash/trim');
25
+
26
+ var _trim2 = _interopRequireDefault(_trim);
27
+
28
+ var _wrapAsync = require('./internal/wrapAsync');
29
+
30
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
31
+
32
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
+
34
+ var FN_ARGS = /^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;
35
+ var FN_ARG_SPLIT = /,/;
36
+ var FN_ARG = /(=.+)?(\s*)$/;
37
+ var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
38
+
39
+ function parseParams(func) {
40
+ func = func.toString().replace(STRIP_COMMENTS, '');
41
+ func = func.match(FN_ARGS)[2].replace(' ', '');
42
+ func = func ? func.split(FN_ARG_SPLIT) : [];
43
+ func = func.map(function (arg) {
44
+ return (0, _trim2.default)(arg.replace(FN_ARG, ''));
45
+ });
46
+ return func;
47
+ }
48
+
49
+ /**
50
+ * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent
51
+ * tasks are specified as parameters to the function, after the usual callback
52
+ * parameter, with the parameter names matching the names of the tasks it
53
+ * depends on. This can provide even more readable task graphs which can be
54
+ * easier to maintain.
55
+ *
56
+ * If a final callback is specified, the task results are similarly injected,
57
+ * specified as named parameters after the initial error parameter.
58
+ *
59
+ * The autoInject function is purely syntactic sugar and its semantics are
60
+ * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}.
61
+ *
62
+ * @name autoInject
63
+ * @static
64
+ * @memberOf module:ControlFlow
65
+ * @method
66
+ * @see [async.auto]{@link module:ControlFlow.auto}
67
+ * @category Control Flow
68
+ * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of
69
+ * the form 'func([dependencies...], callback). The object's key of a property
70
+ * serves as the name of the task defined by that property, i.e. can be used
71
+ * when specifying requirements for other tasks.
72
+ * * The `callback` parameter is a `callback(err, result)` which must be called
73
+ * when finished, passing an `error` (which can be `null`) and the result of
74
+ * the function's execution. The remaining parameters name other tasks on
75
+ * which the task is dependent, and the results from those tasks are the
76
+ * arguments of those parameters.
77
+ * @param {Function} [callback] - An optional callback which is called when all
78
+ * the tasks have been completed. It receives the `err` argument if any `tasks`
79
+ * pass an error to their callback, and a `results` object with any completed
80
+ * task results, similar to `auto`.
81
+ * @example
82
+ *
83
+ * // The example from `auto` can be rewritten as follows:
84
+ * async.autoInject({
85
+ * get_data: function(callback) {
86
+ * // async code to get some data
87
+ * callback(null, 'data', 'converted to array');
88
+ * },
89
+ * make_folder: function(callback) {
90
+ * // async code to create a directory to store a file in
91
+ * // this is run at the same time as getting the data
92
+ * callback(null, 'folder');
93
+ * },
94
+ * write_file: function(get_data, make_folder, callback) {
95
+ * // once there is some data and the directory exists,
96
+ * // write the data to a file in the directory
97
+ * callback(null, 'filename');
98
+ * },
99
+ * email_link: function(write_file, callback) {
100
+ * // once the file is written let's email a link to it...
101
+ * // write_file contains the filename returned by write_file.
102
+ * callback(null, {'file':write_file, 'email':'user@example.com'});
103
+ * }
104
+ * }, function(err, results) {
105
+ * console.log('err = ', err);
106
+ * console.log('email_link = ', results.email_link);
107
+ * });
108
+ *
109
+ * // If you are using a JS minifier that mangles parameter names, `autoInject`
110
+ * // will not work with plain functions, since the parameter names will be
111
+ * // collapsed to a single letter identifier. To work around this, you can
112
+ * // explicitly specify the names of the parameters your task function needs
113
+ * // in an array, similar to Angular.js dependency injection.
114
+ *
115
+ * // This still has an advantage over plain `auto`, since the results a task
116
+ * // depends on are still spread into arguments.
117
+ * async.autoInject({
118
+ * //...
119
+ * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) {
120
+ * callback(null, 'filename');
121
+ * }],
122
+ * email_link: ['write_file', function(write_file, callback) {
123
+ * callback(null, {'file':write_file, 'email':'user@example.com'});
124
+ * }]
125
+ * //...
126
+ * }, function(err, results) {
127
+ * console.log('err = ', err);
128
+ * console.log('email_link = ', results.email_link);
129
+ * });
130
+ */
131
+ function autoInject(tasks, callback) {
132
+ var newTasks = {};
133
+
134
+ (0, _baseForOwn2.default)(tasks, function (taskFn, key) {
135
+ var params;
136
+ var fnIsAsync = (0, _wrapAsync.isAsync)(taskFn);
137
+ var hasNoDeps = !fnIsAsync && taskFn.length === 1 || fnIsAsync && taskFn.length === 0;
138
+
139
+ if ((0, _isArray2.default)(taskFn)) {
140
+ params = taskFn.slice(0, -1);
141
+ taskFn = taskFn[taskFn.length - 1];
142
+
143
+ newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);
144
+ } else if (hasNoDeps) {
145
+ // no dependencies, use the function as-is
146
+ newTasks[key] = taskFn;
147
+ } else {
148
+ params = parseParams(taskFn);
149
+ if (taskFn.length === 0 && !fnIsAsync && params.length === 0) {
150
+ throw new Error("autoInject task functions require explicit parameters.");
151
+ }
152
+
153
+ // remove callback param
154
+ if (!fnIsAsync) params.pop();
155
+
156
+ newTasks[key] = params.concat(newTask);
157
+ }
158
+
159
+ function newTask(results, taskCb) {
160
+ var newArgs = (0, _arrayMap2.default)(params, function (name) {
161
+ return results[name];
162
+ });
163
+ newArgs.push(taskCb);
164
+ (0, _wrapAsync2.default)(taskFn).apply(null, newArgs);
165
+ }
166
+ });
167
+
168
+ (0, _auto2.default)(newTasks, callback);
169
+ }
170
+ module.exports = exports['default'];
node_modules/async/bower.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "async",
3
+ "main": "dist/async.js",
4
+ "ignore": [
5
+ "bower_components",
6
+ "lib",
7
+ "mocha_test",
8
+ "node_modules",
9
+ "perf",
10
+ "support",
11
+ "**/.*",
12
+ "*.config.js",
13
+ "*.json",
14
+ "index.js",
15
+ "Makefile"
16
+ ]
17
+ }
node_modules/async/cargo.js ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = cargo;
7
+
8
+ var _queue = require('./internal/queue');
9
+
10
+ var _queue2 = _interopRequireDefault(_queue);
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ /**
15
+ * A cargo of tasks for the worker function to complete. Cargo inherits all of
16
+ * the same methods and event callbacks as [`queue`]{@link module:ControlFlow.queue}.
17
+ * @typedef {Object} CargoObject
18
+ * @memberOf module:ControlFlow
19
+ * @property {Function} length - A function returning the number of items
20
+ * waiting to be processed. Invoke like `cargo.length()`.
21
+ * @property {number} payload - An `integer` for determining how many tasks
22
+ * should be process per round. This property can be changed after a `cargo` is
23
+ * created to alter the payload on-the-fly.
24
+ * @property {Function} push - Adds `task` to the `queue`. The callback is
25
+ * called once the `worker` has finished processing the task. Instead of a
26
+ * single task, an array of `tasks` can be submitted. The respective callback is
27
+ * used for every task in the list. Invoke like `cargo.push(task, [callback])`.
28
+ * @property {Function} saturated - A callback that is called when the
29
+ * `queue.length()` hits the concurrency and further tasks will be queued.
30
+ * @property {Function} empty - A callback that is called when the last item
31
+ * from the `queue` is given to a `worker`.
32
+ * @property {Function} drain - A callback that is called when the last item
33
+ * from the `queue` has returned from the `worker`.
34
+ * @property {Function} idle - a function returning false if there are items
35
+ * waiting or being processed, or true if not. Invoke like `cargo.idle()`.
36
+ * @property {Function} pause - a function that pauses the processing of tasks
37
+ * until `resume()` is called. Invoke like `cargo.pause()`.
38
+ * @property {Function} resume - a function that resumes the processing of
39
+ * queued tasks when the queue is paused. Invoke like `cargo.resume()`.
40
+ * @property {Function} kill - a function that removes the `drain` callback and
41
+ * empties remaining tasks from the queue forcing it to go idle. Invoke like `cargo.kill()`.
42
+ */
43
+
44
+ /**
45
+ * Creates a `cargo` object with the specified payload. Tasks added to the
46
+ * cargo will be processed altogether (up to the `payload` limit). If the
47
+ * `worker` is in progress, the task is queued until it becomes available. Once
48
+ * the `worker` has completed some tasks, each callback of those tasks is
49
+ * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)
50
+ * for how `cargo` and `queue` work.
51
+ *
52
+ * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers
53
+ * at a time, cargo passes an array of tasks to a single worker, repeating
54
+ * when the worker is finished.
55
+ *
56
+ * @name cargo
57
+ * @static
58
+ * @memberOf module:ControlFlow
59
+ * @method
60
+ * @see [async.queue]{@link module:ControlFlow.queue}
61
+ * @category Control Flow
62
+ * @param {AsyncFunction} worker - An asynchronous function for processing an array
63
+ * of queued tasks. Invoked with `(tasks, callback)`.
64
+ * @param {number} [payload=Infinity] - An optional `integer` for determining
65
+ * how many tasks should be processed per round; if omitted, the default is
66
+ * unlimited.
67
+ * @returns {module:ControlFlow.CargoObject} A cargo object to manage the tasks. Callbacks can
68
+ * attached as certain properties to listen for specific events during the
69
+ * lifecycle of the cargo and inner queue.
70
+ * @example
71
+ *
72
+ * // create a cargo object with payload 2
73
+ * var cargo = async.cargo(function(tasks, callback) {
74
+ * for (var i=0; i<tasks.length; i++) {
75
+ * console.log('hello ' + tasks[i].name);
76
+ * }
77
+ * callback();
78
+ * }, 2);
79
+ *
80
+ * // add some items
81
+ * cargo.push({name: 'foo'}, function(err) {
82
+ * console.log('finished processing foo');
83
+ * });
84
+ * cargo.push({name: 'bar'}, function(err) {
85
+ * console.log('finished processing bar');
86
+ * });
87
+ * cargo.push({name: 'baz'}, function(err) {
88
+ * console.log('finished processing baz');
89
+ * });
90
+ */
91
+ function cargo(worker, payload) {
92
+ return (0, _queue2.default)(worker, 1, payload);
93
+ }
94
+ module.exports = exports['default'];
node_modules/async/compose.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ exports.default = function () /*...args*/{
8
+ return _seq2.default.apply(null, (0, _slice2.default)(arguments).reverse());
9
+ };
10
+
11
+ var _seq = require('./seq');
12
+
13
+ var _seq2 = _interopRequireDefault(_seq);
14
+
15
+ var _slice = require('./internal/slice');
16
+
17
+ var _slice2 = _interopRequireDefault(_slice);
18
+
19
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+
21
+ ;
22
+
23
+ /**
24
+ * Creates a function which is a composition of the passed asynchronous
25
+ * functions. Each function consumes the return value of the function that
26
+ * follows. Composing functions `f()`, `g()`, and `h()` would produce the result
27
+ * of `f(g(h()))`, only this version uses callbacks to obtain the return values.
28
+ *
29
+ * Each function is executed with the `this` binding of the composed function.
30
+ *
31
+ * @name compose
32
+ * @static
33
+ * @memberOf module:ControlFlow
34
+ * @method
35
+ * @category Control Flow
36
+ * @param {...AsyncFunction} functions - the asynchronous functions to compose
37
+ * @returns {Function} an asynchronous function that is the composed
38
+ * asynchronous `functions`
39
+ * @example
40
+ *
41
+ * function add1(n, callback) {
42
+ * setTimeout(function () {
43
+ * callback(null, n + 1);
44
+ * }, 10);
45
+ * }
46
+ *
47
+ * function mul3(n, callback) {
48
+ * setTimeout(function () {
49
+ * callback(null, n * 3);
50
+ * }, 10);
51
+ * }
52
+ *
53
+ * var add1mul3 = async.compose(mul3, add1);
54
+ * add1mul3(4, function (err, result) {
55
+ * // result now equals 15
56
+ * });
57
+ */
58
+ module.exports = exports['default'];
node_modules/async/concat.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _doLimit = require('./internal/doLimit');
8
+
9
+ var _doLimit2 = _interopRequireDefault(_doLimit);
10
+
11
+ var _concatLimit = require('./concatLimit');
12
+
13
+ var _concatLimit2 = _interopRequireDefault(_concatLimit);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * Applies `iteratee` to each item in `coll`, concatenating the results. Returns
19
+ * the concatenated list. The `iteratee`s are called in parallel, and the
20
+ * results are concatenated as they return. There is no guarantee that the
21
+ * results array will be returned in the original order of `coll` passed to the
22
+ * `iteratee` function.
23
+ *
24
+ * @name concat
25
+ * @static
26
+ * @memberOf module:Collections
27
+ * @method
28
+ * @category Collection
29
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
30
+ * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
31
+ * which should use an array as its result. Invoked with (item, callback).
32
+ * @param {Function} [callback(err)] - A callback which is called after all the
33
+ * `iteratee` functions have finished, or an error occurs. Results is an array
34
+ * containing the concatenated results of the `iteratee` function. Invoked with
35
+ * (err, results).
36
+ * @example
37
+ *
38
+ * async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files) {
39
+ * // files is now a list of filenames that exist in the 3 directories
40
+ * });
41
+ */
42
+ exports.default = (0, _doLimit2.default)(_concatLimit2.default, Infinity);
43
+ module.exports = exports['default'];
node_modules/async/concatLimit.js ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ exports.default = function (coll, limit, iteratee, callback) {
8
+ callback = callback || _noop2.default;
9
+ var _iteratee = (0, _wrapAsync2.default)(iteratee);
10
+ (0, _mapLimit2.default)(coll, limit, function (val, callback) {
11
+ _iteratee(val, function (err /*, ...args*/) {
12
+ if (err) return callback(err);
13
+ return callback(null, (0, _slice2.default)(arguments, 1));
14
+ });
15
+ }, function (err, mapResults) {
16
+ var result = [];
17
+ for (var i = 0; i < mapResults.length; i++) {
18
+ if (mapResults[i]) {
19
+ result = _concat.apply(result, mapResults[i]);
20
+ }
21
+ }
22
+
23
+ return callback(err, result);
24
+ });
25
+ };
26
+
27
+ var _noop = require('lodash/noop');
28
+
29
+ var _noop2 = _interopRequireDefault(_noop);
30
+
31
+ var _wrapAsync = require('./internal/wrapAsync');
32
+
33
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
34
+
35
+ var _slice = require('./internal/slice');
36
+
37
+ var _slice2 = _interopRequireDefault(_slice);
38
+
39
+ var _mapLimit = require('./mapLimit');
40
+
41
+ var _mapLimit2 = _interopRequireDefault(_mapLimit);
42
+
43
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
44
+
45
+ var _concat = Array.prototype.concat;
46
+
47
+ /**
48
+ * The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time.
49
+ *
50
+ * @name concatLimit
51
+ * @static
52
+ * @memberOf module:Collections
53
+ * @method
54
+ * @see [async.concat]{@link module:Collections.concat}
55
+ * @category Collection
56
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
57
+ * @param {number} limit - The maximum number of async operations at a time.
58
+ * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
59
+ * which should use an array as its result. Invoked with (item, callback).
60
+ * @param {Function} [callback] - A callback which is called after all the
61
+ * `iteratee` functions have finished, or an error occurs. Results is an array
62
+ * containing the concatenated results of the `iteratee` function. Invoked with
63
+ * (err, results).
64
+ */
65
+ module.exports = exports['default'];
node_modules/async/concatSeries.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _doLimit = require('./internal/doLimit');
8
+
9
+ var _doLimit2 = _interopRequireDefault(_doLimit);
10
+
11
+ var _concatLimit = require('./concatLimit');
12
+
13
+ var _concatLimit2 = _interopRequireDefault(_concatLimit);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.
19
+ *
20
+ * @name concatSeries
21
+ * @static
22
+ * @memberOf module:Collections
23
+ * @method
24
+ * @see [async.concat]{@link module:Collections.concat}
25
+ * @category Collection
26
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
27
+ * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`.
28
+ * The iteratee should complete with an array an array of results.
29
+ * Invoked with (item, callback).
30
+ * @param {Function} [callback(err)] - A callback which is called after all the
31
+ * `iteratee` functions have finished, or an error occurs. Results is an array
32
+ * containing the concatenated results of the `iteratee` function. Invoked with
33
+ * (err, results).
34
+ */
35
+ exports.default = (0, _doLimit2.default)(_concatLimit2.default, 1);
36
+ module.exports = exports['default'];
node_modules/async/constant.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ exports.default = function () /*...values*/{
8
+ var values = (0, _slice2.default)(arguments);
9
+ var args = [null].concat(values);
10
+ return function () /*...ignoredArgs, callback*/{
11
+ var callback = arguments[arguments.length - 1];
12
+ return callback.apply(this, args);
13
+ };
14
+ };
15
+
16
+ var _slice = require('./internal/slice');
17
+
18
+ var _slice2 = _interopRequireDefault(_slice);
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ ;
23
+
24
+ /**
25
+ * Returns a function that when called, calls-back with the values provided.
26
+ * Useful as the first function in a [`waterfall`]{@link module:ControlFlow.waterfall}, or for plugging values in to
27
+ * [`auto`]{@link module:ControlFlow.auto}.
28
+ *
29
+ * @name constant
30
+ * @static
31
+ * @memberOf module:Utils
32
+ * @method
33
+ * @category Util
34
+ * @param {...*} arguments... - Any number of arguments to automatically invoke
35
+ * callback with.
36
+ * @returns {AsyncFunction} Returns a function that when invoked, automatically
37
+ * invokes the callback with the previous given arguments.
38
+ * @example
39
+ *
40
+ * async.waterfall([
41
+ * async.constant(42),
42
+ * function (value, next) {
43
+ * // value === 42
44
+ * },
45
+ * //...
46
+ * ], callback);
47
+ *
48
+ * async.waterfall([
49
+ * async.constant(filename, "utf8"),
50
+ * fs.readFile,
51
+ * function (fileData, next) {
52
+ * //...
53
+ * }
54
+ * //...
55
+ * ], callback);
56
+ *
57
+ * async.auto({
58
+ * hostname: async.constant("https://server.net/"),
59
+ * port: findFreePort,
60
+ * launchServer: ["hostname", "port", function (options, cb) {
61
+ * startServer(options, cb);
62
+ * }],
63
+ * //...
64
+ * }, callback);
65
+ */
66
+ module.exports = exports['default'];
node_modules/async/detect.js ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _identity = require('lodash/identity');
8
+
9
+ var _identity2 = _interopRequireDefault(_identity);
10
+
11
+ var _createTester = require('./internal/createTester');
12
+
13
+ var _createTester2 = _interopRequireDefault(_createTester);
14
+
15
+ var _doParallel = require('./internal/doParallel');
16
+
17
+ var _doParallel2 = _interopRequireDefault(_doParallel);
18
+
19
+ var _findGetResult = require('./internal/findGetResult');
20
+
21
+ var _findGetResult2 = _interopRequireDefault(_findGetResult);
22
+
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
+
25
+ /**
26
+ * Returns the first value in `coll` that passes an async truth test. The
27
+ * `iteratee` is applied in parallel, meaning the first iteratee to return
28
+ * `true` will fire the detect `callback` with that result. That means the
29
+ * result might not be the first item in the original `coll` (in terms of order)
30
+ * that passes the test.
31
+
32
+ * If order within the original `coll` is important, then look at
33
+ * [`detectSeries`]{@link module:Collections.detectSeries}.
34
+ *
35
+ * @name detect
36
+ * @static
37
+ * @memberOf module:Collections
38
+ * @method
39
+ * @alias find
40
+ * @category Collections
41
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
42
+ * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
43
+ * The iteratee must complete with a boolean value as its result.
44
+ * Invoked with (item, callback).
45
+ * @param {Function} [callback] - A callback which is called as soon as any
46
+ * iteratee returns `true`, or after all the `iteratee` functions have finished.
47
+ * Result will be the first item in the array that passes the truth test
48
+ * (iteratee) or the value `undefined` if none passed. Invoked with
49
+ * (err, result).
50
+ * @example
51
+ *
52
+ * async.detect(['file1','file2','file3'], function(filePath, callback) {
53
+ * fs.access(filePath, function(err) {
54
+ * callback(null, !err)
55
+ * });
56
+ * }, function(err, result) {
57
+ * // result now equals the first file in the list that exists
58
+ * });
59
+ */
60
+ exports.default = (0, _doParallel2.default)((0, _createTester2.default)(_identity2.default, _findGetResult2.default));
61
+ module.exports = exports['default'];
node_modules/async/detectLimit.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _identity = require('lodash/identity');
8
+
9
+ var _identity2 = _interopRequireDefault(_identity);
10
+
11
+ var _createTester = require('./internal/createTester');
12
+
13
+ var _createTester2 = _interopRequireDefault(_createTester);
14
+
15
+ var _doParallelLimit = require('./internal/doParallelLimit');
16
+
17
+ var _doParallelLimit2 = _interopRequireDefault(_doParallelLimit);
18
+
19
+ var _findGetResult = require('./internal/findGetResult');
20
+
21
+ var _findGetResult2 = _interopRequireDefault(_findGetResult);
22
+
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
+
25
+ /**
26
+ * The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a
27
+ * time.
28
+ *
29
+ * @name detectLimit
30
+ * @static
31
+ * @memberOf module:Collections
32
+ * @method
33
+ * @see [async.detect]{@link module:Collections.detect}
34
+ * @alias findLimit
35
+ * @category Collections
36
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
37
+ * @param {number} limit - The maximum number of async operations at a time.
38
+ * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
39
+ * The iteratee must complete with a boolean value as its result.
40
+ * Invoked with (item, callback).
41
+ * @param {Function} [callback] - A callback which is called as soon as any
42
+ * iteratee returns `true`, or after all the `iteratee` functions have finished.
43
+ * Result will be the first item in the array that passes the truth test
44
+ * (iteratee) or the value `undefined` if none passed. Invoked with
45
+ * (err, result).
46
+ */
47
+ exports.default = (0, _doParallelLimit2.default)((0, _createTester2.default)(_identity2.default, _findGetResult2.default));
48
+ module.exports = exports['default'];
node_modules/async/detectSeries.js ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _detectLimit = require('./detectLimit');
8
+
9
+ var _detectLimit2 = _interopRequireDefault(_detectLimit);
10
+
11
+ var _doLimit = require('./internal/doLimit');
12
+
13
+ var _doLimit2 = _interopRequireDefault(_doLimit);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.
19
+ *
20
+ * @name detectSeries
21
+ * @static
22
+ * @memberOf module:Collections
23
+ * @method
24
+ * @see [async.detect]{@link module:Collections.detect}
25
+ * @alias findSeries
26
+ * @category Collections
27
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
28
+ * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
29
+ * The iteratee must complete with a boolean value as its result.
30
+ * Invoked with (item, callback).
31
+ * @param {Function} [callback] - A callback which is called as soon as any
32
+ * iteratee returns `true`, or after all the `iteratee` functions have finished.
33
+ * Result will be the first item in the array that passes the truth test
34
+ * (iteratee) or the value `undefined` if none passed. Invoked with
35
+ * (err, result).
36
+ */
37
+ exports.default = (0, _doLimit2.default)(_detectLimit2.default, 1);
38
+ module.exports = exports['default'];
node_modules/async/dir.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _consoleFunc = require('./internal/consoleFunc');
8
+
9
+ var _consoleFunc2 = _interopRequireDefault(_consoleFunc);
10
+
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ /**
14
+ * Logs the result of an [`async` function]{@link AsyncFunction} to the
15
+ * `console` using `console.dir` to display the properties of the resulting object.
16
+ * Only works in Node.js or in browsers that support `console.dir` and
17
+ * `console.error` (such as FF and Chrome).
18
+ * If multiple arguments are returned from the async function,
19
+ * `console.dir` is called on each argument in order.
20
+ *
21
+ * @name dir
22
+ * @static
23
+ * @memberOf module:Utils
24
+ * @method
25
+ * @category Util
26
+ * @param {AsyncFunction} function - The function you want to eventually apply
27
+ * all arguments to.
28
+ * @param {...*} arguments... - Any number of arguments to apply to the function.
29
+ * @example
30
+ *
31
+ * // in a module
32
+ * var hello = function(name, callback) {
33
+ * setTimeout(function() {
34
+ * callback(null, {hello: name});
35
+ * }, 1000);
36
+ * };
37
+ *
38
+ * // in the node repl
39
+ * node> async.dir(hello, 'world');
40
+ * {hello: 'world'}
41
+ */
42
+ exports.default = (0, _consoleFunc2.default)('dir');
43
+ module.exports = exports['default'];
node_modules/async/dist/async.js ADDED
The diff for this file is too large to render. See raw diff
 
node_modules/async/dist/async.min.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.async=n.async||{})}(this,function(n){"use strict";function t(n,t){t|=0;for(var e=Math.max(n.length-t,0),r=Array(e),u=0;u<e;u++)r[u]=n[t+u];return r}function e(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function r(n){setTimeout(n,0)}function u(n){return function(e){var r=t(arguments,1);n(function(){e.apply(null,r)})}}function i(n){return ct(function(t,r){var u;try{u=n.apply(this,t)}catch(n){return r(n)}e(u)&&"function"==typeof u.then?u.then(function(n){o(r,null,n)},function(n){o(r,n.message?n:new Error(n))}):r(null,u)})}function o(n,t,e){try{n(t,e)}catch(n){lt(c,n)}}function c(n){throw n}function f(n){return st&&"AsyncFunction"===n[Symbol.toStringTag]}function a(n){return f(n)?i(n):n}function l(n){return function(e){var r=t(arguments,1),u=ct(function(t,r){var u=this;return n(e,function(n,e){a(n).apply(u,t.concat(e))},r)});return r.length?u.apply(this,r):u}}function s(n){var t=mt.call(n,bt),e=n[bt];try{n[bt]=void 0;var r=!0}catch(n){}var u=gt.call(n);return r&&(t?n[bt]=e:delete n[bt]),u}function p(n){return St.call(n)}function h(n){return null==n?void 0===n?Lt:kt:Ot&&Ot in Object(n)?s(n):p(n)}function y(n){if(!e(n))return!1;var t=h(n);return t==xt||t==Et||t==wt||t==At}function v(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=Tt}function d(n){return null!=n&&v(n.length)&&!y(n)}function m(){}function g(n){return function(){if(null!==n){var t=n;n=null,t.apply(this,arguments)}}}function b(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}function j(n){return null!=n&&"object"==typeof n}function S(n){return j(n)&&h(n)==It}function k(){return!1}function L(n,t){var e=typeof n;return t=null==t?Nt:t,!!t&&("number"==e||"symbol"!=e&&Qt.test(n))&&n>-1&&n%1==0&&n<t}function O(n){return j(n)&&v(n.length)&&!!me[h(n)]}function w(n){return function(t){return n(t)}}function x(n,t){var e=Pt(n),r=!e&&zt(n),u=!e&&!r&&Wt(n),i=!e&&!r&&!u&&Oe(n),o=e||r||u||i,c=o?b(n.length,String):[],f=c.length;for(var a in n)!t&&!xe.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||L(a,f))||c.push(a);return c}function E(n){var t=n&&n.constructor,e="function"==typeof t&&t.prototype||Ee;return n===e}function A(n,t){return function(e){return n(t(e))}}function T(n){if(!E(n))return Ae(n);var t=[];for(var e in Object(n))_e.call(n,e)&&"constructor"!=e&&t.push(e);return t}function _(n){return d(n)?x(n):T(n)}function B(n){var t=-1,e=n.length;return function(){return++t<e?{value:n[t],key:t}:null}}function F(n){var t=-1;return function(){var e=n.next();return e.done?null:(t++,{value:e.value,key:t})}}function I(n){var t=_(n),e=-1,r=t.length;return function u(){var i=t[++e];return"__proto__"===i?u():e<r?{value:n[i],key:i}:null}}function M(n){if(d(n))return B(n);var t=Ft(n);return t?F(t):I(n)}function U(n){return function(){if(null===n)throw new Error("Callback was already called.");var t=n;n=null,t.apply(this,arguments)}}function q(n){return function(t,e,r){function u(n,t){if(f-=1,n)c=!0,r(n);else{if(t===_t||c&&f<=0)return c=!0,r(null);a||i()}}function i(){for(a=!0;f<n&&!c;){var t=o();if(null===t)return c=!0,void(f<=0&&r(null));f+=1,e(t.value,t.key,U(u))}a=!1}if(r=g(r||m),n<=0||!t)return r(null);var o=M(t),c=!1,f=0,a=!1;i()}}function z(n,t,e,r){q(t)(n,a(e),r)}function P(n,t){return function(e,r,u){return n(e,t,r,u)}}function V(n,t,e){function r(n,t){n?e(n):++i!==o&&t!==_t||e(null)}e=g(e||m);var u=0,i=0,o=n.length;for(0===o&&e(null);u<o;u++)t(n[u],u,U(r))}function D(n){return function(t,e,r){return n(Fe,t,a(e),r)}}function R(n,t,e,r){r=r||m,t=t||[];var u=[],i=0,o=a(e);n(t,function(n,t,e){var r=i++;o(n,function(n,t){u[r]=t,e(n)})},function(n){r(n,u)})}function C(n){return function(t,e,r,u){return n(q(e),t,a(r),u)}}function $(n,t){for(var e=-1,r=null==n?0:n.length;++e<r&&t(n[e],e,n)!==!1;);return n}function W(n){return function(t,e,r){for(var u=-1,i=Object(t),o=r(t),c=o.length;c--;){var f=o[n?c:++u];if(e(i[f],f,i)===!1)break}return t}}function N(n,t){return n&&Pe(n,t,_)}function Q(n,t,e,r){for(var u=n.length,i=e+(r?1:-1);r?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function G(n){return n!==n}function H(n,t,e){for(var r=e-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function J(n,t,e){return t===t?H(n,t,e):Q(n,G,e)}function K(n,t){for(var e=-1,r=null==n?0:n.length,u=Array(r);++e<r;)u[e]=t(n[e],e,n);return u}function X(n){return"symbol"==typeof n||j(n)&&h(n)==De}function Y(n){if("string"==typeof n)return n;if(Pt(n))return K(n,Y)+"";if(X(n))return $e?$e.call(n):"";var t=n+"";return"0"==t&&1/n==-Re?"-0":t}function Z(n,t,e){var r=-1,u=n.length;t<0&&(t=-t>u?0:u+t),e=e>u?u:e,e<0&&(e+=u),u=t>e?0:e-t>>>0,t>>>=0;for(var i=Array(u);++r<u;)i[r]=n[r+t];return i}function nn(n,t,e){var r=n.length;return e=void 0===e?r:e,!t&&e>=r?n:Z(n,t,e)}function tn(n,t){for(var e=n.length;e--&&J(t,n[e],0)>-1;);return e}function en(n,t){for(var e=-1,r=n.length;++e<r&&J(t,n[e],0)>-1;);return e}function rn(n){return n.split("")}function un(n){return Xe.test(n)}function on(n){return n.match(mr)||[]}function cn(n){return un(n)?on(n):rn(n)}function fn(n){return null==n?"":Y(n)}function an(n,t,e){if(n=fn(n),n&&(e||void 0===t))return n.replace(gr,"");if(!n||!(t=Y(t)))return n;var r=cn(n),u=cn(t),i=en(r,u),o=tn(r,u)+1;return nn(r,i,o).join("")}function ln(n){return n=n.toString().replace(kr,""),n=n.match(br)[2].replace(" ",""),n=n?n.split(jr):[],n=n.map(function(n){return an(n.replace(Sr,""))})}function sn(n,t){var e={};N(n,function(n,t){function r(t,e){var r=K(u,function(n){return t[n]});r.push(e),a(n).apply(null,r)}var u,i=f(n),o=!i&&1===n.length||i&&0===n.length;if(Pt(n))u=n.slice(0,-1),n=n[n.length-1],e[t]=u.concat(u.length>0?r:n);else if(o)e[t]=n;else{if(u=ln(n),0===n.length&&!i&&0===u.length)throw new Error("autoInject task functions require explicit parameters.");i||u.pop(),e[t]=u.concat(r)}}),Ve(e,t)}function pn(){this.head=this.tail=null,this.length=0}function hn(n,t){n.length=1,n.head=n.tail=t}function yn(n,t,e){function r(n,t,e){if(null!=e&&"function"!=typeof e)throw new Error("task callback must be a function");if(s.started=!0,Pt(n)||(n=[n]),0===n.length&&s.idle())return lt(function(){s.drain()});for(var r=0,u=n.length;r<u;r++){var i={data:n[r],callback:e||m};t?s._tasks.unshift(i):s._tasks.push(i)}f||(f=!0,lt(function(){f=!1,s.process()}))}function u(n){return function(t){o-=1;for(var e=0,r=n.length;e<r;e++){var u=n[e],i=J(c,u,0);0===i?c.shift():i>0&&c.splice(i,1),u.callback.apply(u,arguments),null!=t&&s.error(t,u.data)}o<=s.concurrency-s.buffer&&s.unsaturated(),s.idle()&&s.drain(),s.process()}}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var i=a(n),o=0,c=[],f=!1,l=!1,s={_tasks:new pn,concurrency:t,payload:e,saturated:m,unsaturated:m,buffer:t/4,empty:m,drain:m,error:m,started:!1,paused:!1,push:function(n,t){r(n,!1,t)},kill:function(){s.drain=m,s._tasks.empty()},unshift:function(n,t){r(n,!0,t)},remove:function(n){s._tasks.remove(n)},process:function(){if(!l){for(l=!0;!s.paused&&o<s.concurrency&&s._tasks.length;){var n=[],t=[],e=s._tasks.length;s.payload&&(e=Math.min(e,s.payload));for(var r=0;r<e;r++){var f=s._tasks.shift();n.push(f),c.push(f),t.push(f.data)}o+=1,0===s._tasks.length&&s.empty(),o===s.concurrency&&s.saturated();var a=U(u(n));i(t,a)}l=!1}},length:function(){return s._tasks.length},running:function(){return o},workersList:function(){return c},idle:function(){return s._tasks.length+o===0},pause:function(){s.paused=!0},resume:function(){s.paused!==!1&&(s.paused=!1,lt(s.process))}};return s}function vn(n,t){return yn(n,1,t)}function dn(n,t,e,r){r=g(r||m);var u=a(e);Or(n,function(n,e,r){u(t,n,function(n,e){t=e,r(n)})},function(n){r(n,t)})}function mn(){var n=K(arguments,a);return function(){var e=t(arguments),r=this,u=e[e.length-1];"function"==typeof u?e.pop():u=m,dn(n,e,function(n,e,u){e.apply(r,n.concat(function(n){var e=t(arguments,1);u(n,e)}))},function(n,t){u.apply(r,[n].concat(t))})}}function gn(n){return n}function bn(n,t){return function(e,r,u,i){i=i||m;var o,c=!1;e(r,function(e,r,i){u(e,function(r,u){r?i(r):n(u)&&!o?(c=!0,o=t(!0,e),i(null,_t)):i()})},function(n){n?i(n):i(null,c?o:t(!1))})}}function jn(n,t){return t}function Sn(n){return function(e){var r=t(arguments,1);r.push(function(e){var r=t(arguments,1);"object"==typeof console&&(e?console.error&&console.error(e):console[n]&&$(r,function(t){console[n](t)}))}),a(e).apply(null,r)}}function kn(n,e,r){function u(n){if(n)return r(n);var e=t(arguments,1);e.push(i),c.apply(this,e)}function i(n,t){return n?r(n):t?void o(u):r(null)}r=U(r||m);var o=a(n),c=a(e);i(null,!0)}function Ln(n,e,r){r=U(r||m);var u=a(n),i=function(n){if(n)return r(n);var o=t(arguments,1);return e.apply(this,o)?u(i):void r.apply(null,[null].concat(o))};u(i)}function On(n,t,e){Ln(n,function(){return!t.apply(this,arguments)},e)}function wn(n,t,e){function r(n){return n?e(n):void o(u)}function u(n,t){return n?e(n):t?void i(r):e(null)}e=U(e||m);var i=a(t),o=a(n);o(u)}function xn(n){return function(t,e,r){return n(t,r)}}function En(n,t,e){Fe(n,xn(a(t)),e)}function An(n,t,e,r){q(t)(n,xn(a(e)),r)}function Tn(n){return f(n)?n:ct(function(t,e){var r=!0;t.push(function(){var n=arguments;r?lt(function(){e.apply(null,n)}):e.apply(null,n)}),n.apply(this,t),r=!1})}function _n(n){return!n}function Bn(n){return function(t){return null==t?void 0:t[n]}}function Fn(n,t,e,r){var u=new Array(t.length);n(t,function(n,t,r){e(n,function(n,e){u[t]=!!e,r(n)})},function(n){if(n)return r(n);for(var e=[],i=0;i<t.length;i++)u[i]&&e.push(t[i]);r(null,e)})}function In(n,t,e,r){var u=[];n(t,function(n,t,r){e(n,function(e,i){e?r(e):(i&&u.push({index:t,value:n}),r())})},function(n){n?r(n):r(null,K(u.sort(function(n,t){return n.index-t.index}),Bn("value")))})}function Mn(n,t,e,r){var u=d(t)?Fn:In;u(n,t,a(e),r||m)}function Un(n,t){function e(n){return n?r(n):void u(e)}var r=U(t||m),u=a(Tn(n));e()}function qn(n,t,e,r){r=g(r||m);var u={},i=a(e);z(n,t,function(n,t,e){i(n,t,function(n,r){return n?e(n):(u[t]=r,void e())})},function(n){r(n,u)})}function zn(n,t){return t in n}function Pn(n,e){var r=Object.create(null),u=Object.create(null);e=e||gn;var i=a(n),o=ct(function(n,o){var c=e.apply(null,n);zn(r,c)?lt(function(){o.apply(null,r[c])}):zn(u,c)?u[c].push(o):(u[c]=[o],i.apply(null,n.concat(function(){var n=t(arguments);r[c]=n;var e=u[c];delete u[c];for(var i=0,o=e.length;i<o;i++)e[i].apply(null,n)})))});return o.memo=r,o.unmemoized=n,o}function Vn(n,e,r){r=r||m;var u=d(e)?[]:{};n(e,function(n,e,r){a(n)(function(n,i){arguments.length>2&&(i=t(arguments,1)),u[e]=i,r(n)})},function(n){r(n,u)})}function Dn(n,t){Vn(Fe,n,t)}function Rn(n,t,e){Vn(q(t),n,e)}function Cn(n,t){if(t=g(t||m),!Pt(n))return t(new TypeError("First argument to race must be an array of functions"));if(!n.length)return t();for(var e=0,r=n.length;e<r;e++)a(n[e])(t)}function $n(n,e,r,u){var i=t(n).reverse();dn(i,e,r,u)}function Wn(n){var e=a(n);return ct(function(n,r){return n.push(function(n,e){if(n)r(null,{error:n});else{var u;u=arguments.length<=2?e:t(arguments,1),r(null,{value:u})}}),e.apply(this,n)})}function Nn(n){var t;return Pt(n)?t=K(n,Wn):(t={},N(n,function(n,e){t[e]=Wn.call(this,n)})),t}function Qn(n,t,e,r){Mn(n,t,function(n,t){e(n,function(n,e){t(n,!e)})},r)}function Gn(n){return function(){return n}}function Hn(n,t,e){function r(n,t){if("object"==typeof t)n.times=+t.times||i,n.intervalFunc="function"==typeof t.interval?t.interval:Gn(+t.interval||o),n.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");n.times=+t||i}}function u(){f(function(n){n&&l++<c.times&&("function"!=typeof c.errorFilter||c.errorFilter(n))?setTimeout(u,c.intervalFunc(l)):e.apply(null,arguments)})}var i=5,o=0,c={times:i,intervalFunc:Gn(o)};if(arguments.length<3&&"function"==typeof n?(e=t||m,t=n):(r(c,n),e=e||m),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var f=a(t),l=1;u()}function Jn(n,t){Vn(Or,n,t)}function Kn(n,t,e){function r(n,t){var e=n.criteria,r=t.criteria;return e<r?-1:e>r?1:0}var u=a(t);Ie(n,function(n,t){u(n,function(e,r){return e?t(e):void t(null,{value:n,criteria:r})})},function(n,t){return n?e(n):void e(null,K(t.sort(r),Bn("value")))})}function Xn(n,t,e){var r=a(n);return ct(function(u,i){function o(){var t=n.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",e&&(r.info=e),f=!0,i(r)}var c,f=!1;u.push(function(){f||(i.apply(null,arguments),clearTimeout(c))}),c=setTimeout(o,t),r.apply(null,u)})}function Yn(n,t,e,r){for(var u=-1,i=iu(uu((t-n)/(e||1)),0),o=Array(i);i--;)o[r?i:++u]=n,n+=e;return o}function Zn(n,t,e,r){var u=a(e);Ue(Yn(0,n,1),t,u,r)}function nt(n,t,e,r){arguments.length<=3&&(r=e,e=t,t=Pt(n)?[]:{}),r=g(r||m);var u=a(e);Fe(n,function(n,e,r){u(t,n,e,r)},function(n){r(n,t)})}function tt(n,e){var r,u=null;e=e||m,Ur(n,function(n,e){a(n)(function(n,i){r=arguments.length>2?t(arguments,1):i,u=n,e(!n)})},function(){e(u,r)})}function et(n){return function(){return(n.unmemoized||n).apply(null,arguments)}}function rt(n,e,r){r=U(r||m);var u=a(e);if(!n())return r(null);var i=function(e){if(e)return r(e);if(n())return u(i);var o=t(arguments,1);r.apply(null,[null].concat(o))};u(i)}function ut(n,t,e){rt(function(){return!n.apply(this,arguments)},t,e)}var it,ot=function(n){var e=t(arguments,1);return function(){var r=t(arguments);return n.apply(null,e.concat(r))}},ct=function(n){return function(){var e=t(arguments),r=e.pop();n.call(this,e,r)}},ft="function"==typeof setImmediate&&setImmediate,at="object"==typeof process&&"function"==typeof process.nextTick;it=ft?setImmediate:at?process.nextTick:r;var lt=u(it),st="function"==typeof Symbol,pt="object"==typeof global&&global&&global.Object===Object&&global,ht="object"==typeof self&&self&&self.Object===Object&&self,yt=pt||ht||Function("return this")(),vt=yt.Symbol,dt=Object.prototype,mt=dt.hasOwnProperty,gt=dt.toString,bt=vt?vt.toStringTag:void 0,jt=Object.prototype,St=jt.toString,kt="[object Null]",Lt="[object Undefined]",Ot=vt?vt.toStringTag:void 0,wt="[object AsyncFunction]",xt="[object Function]",Et="[object GeneratorFunction]",At="[object Proxy]",Tt=9007199254740991,_t={},Bt="function"==typeof Symbol&&Symbol.iterator,Ft=function(n){return Bt&&n[Bt]&&n[Bt]()},It="[object Arguments]",Mt=Object.prototype,Ut=Mt.hasOwnProperty,qt=Mt.propertyIsEnumerable,zt=S(function(){return arguments}())?S:function(n){return j(n)&&Ut.call(n,"callee")&&!qt.call(n,"callee")},Pt=Array.isArray,Vt="object"==typeof n&&n&&!n.nodeType&&n,Dt=Vt&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=Dt&&Dt.exports===Vt,Ct=Rt?yt.Buffer:void 0,$t=Ct?Ct.isBuffer:void 0,Wt=$t||k,Nt=9007199254740991,Qt=/^(?:0|[1-9]\d*)$/,Gt="[object Arguments]",Ht="[object Array]",Jt="[object Boolean]",Kt="[object Date]",Xt="[object Error]",Yt="[object Function]",Zt="[object Map]",ne="[object Number]",te="[object Object]",ee="[object RegExp]",re="[object Set]",ue="[object String]",ie="[object WeakMap]",oe="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",ae="[object Float64Array]",le="[object Int8Array]",se="[object Int16Array]",pe="[object Int32Array]",he="[object Uint8Array]",ye="[object Uint8ClampedArray]",ve="[object Uint16Array]",de="[object Uint32Array]",me={};me[fe]=me[ae]=me[le]=me[se]=me[pe]=me[he]=me[ye]=me[ve]=me[de]=!0,me[Gt]=me[Ht]=me[oe]=me[Jt]=me[ce]=me[Kt]=me[Xt]=me[Yt]=me[Zt]=me[ne]=me[te]=me[ee]=me[re]=me[ue]=me[ie]=!1;var ge="object"==typeof n&&n&&!n.nodeType&&n,be=ge&&"object"==typeof module&&module&&!module.nodeType&&module,je=be&&be.exports===ge,Se=je&&pt.process,ke=function(){try{var n=be&&be.require&&be.require("util").types;return n?n:Se&&Se.binding&&Se.binding("util")}catch(n){}}(),Le=ke&&ke.isTypedArray,Oe=Le?w(Le):O,we=Object.prototype,xe=we.hasOwnProperty,Ee=Object.prototype,Ae=A(Object.keys,Object),Te=Object.prototype,_e=Te.hasOwnProperty,Be=P(z,1/0),Fe=function(n,t,e){var r=d(n)?V:Be;r(n,a(t),e)},Ie=D(R),Me=l(Ie),Ue=C(R),qe=P(Ue,1),ze=l(qe),Pe=W(),Ve=function(n,e,r){function u(n,t){j.push(function(){f(n,t)})}function i(){if(0===j.length&&0===v)return r(null,y);for(;j.length&&v<e;){var n=j.shift();n()}}function o(n,t){var e=b[n];e||(e=b[n]=[]),e.push(t)}function c(n){var t=b[n]||[];$(t,function(n){n()}),i()}function f(n,e){if(!d){var u=U(function(e,u){if(v--,arguments.length>2&&(u=t(arguments,1)),e){var i={};N(y,function(n,t){i[t]=n}),i[n]=u,d=!0,b=Object.create(null),r(e,i)}else y[n]=u,c(n)});v++;var i=a(e[e.length-1]);e.length>1?i(y,u):i(u)}}function l(){for(var n,t=0;S.length;)n=S.pop(),t++,$(s(n),function(n){0===--k[n]&&S.push(n)});if(t!==h)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function s(t){var e=[];return N(n,function(n,r){Pt(n)&&J(n,t,0)>=0&&e.push(r)}),e}"function"==typeof e&&(r=e,e=null),r=g(r||m);var p=_(n),h=p.length;if(!h)return r(null);e||(e=h);var y={},v=0,d=!1,b=Object.create(null),j=[],S=[],k={};N(n,function(t,e){if(!Pt(t))return u(e,[t]),void S.push(e);var r=t.slice(0,t.length-1),i=r.length;return 0===i?(u(e,t),void S.push(e)):(k[e]=i,void $(r,function(c){if(!n[c])throw new Error("async.auto task `"+e+"` has a non-existent dependency `"+c+"` in "+r.join(", "));o(c,function(){i--,0===i&&u(e,t)})}))}),l(),i()},De="[object Symbol]",Re=1/0,Ce=vt?vt.prototype:void 0,$e=Ce?Ce.toString:void 0,We="\\ud800-\\udfff",Ne="\\u0300-\\u036f",Qe="\\ufe20-\\ufe2f",Ge="\\u20d0-\\u20ff",He=Ne+Qe+Ge,Je="\\ufe0e\\ufe0f",Ke="\\u200d",Xe=RegExp("["+Ke+We+He+Je+"]"),Ye="\\ud800-\\udfff",Ze="\\u0300-\\u036f",nr="\\ufe20-\\ufe2f",tr="\\u20d0-\\u20ff",er=Ze+nr+tr,rr="\\ufe0e\\ufe0f",ur="["+Ye+"]",ir="["+er+"]",or="\\ud83c[\\udffb-\\udfff]",cr="(?:"+ir+"|"+or+")",fr="[^"+Ye+"]",ar="(?:\\ud83c[\\udde6-\\uddff]){2}",lr="[\\ud800-\\udbff][\\udc00-\\udfff]",sr="\\u200d",pr=cr+"?",hr="["+rr+"]?",yr="(?:"+sr+"(?:"+[fr,ar,lr].join("|")+")"+hr+pr+")*",vr=hr+pr+yr,dr="(?:"+[fr+ir+"?",ir,ar,lr,ur].join("|")+")",mr=RegExp(or+"(?="+or+")|"+dr+vr,"g"),gr=/^\s+|\s+$/g,br=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,jr=/,/,Sr=/(=.+)?(\s*)$/,kr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;pn.prototype.removeLink=function(n){return n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev,n.prev=n.next=null,this.length-=1,n},pn.prototype.empty=function(){for(;this.head;)this.shift();return this},pn.prototype.insertAfter=function(n,t){t.prev=n,t.next=n.next,n.next?n.next.prev=t:this.tail=t,n.next=t,this.length+=1},pn.prototype.insertBefore=function(n,t){t.prev=n.prev,t.next=n,n.prev?n.prev.next=t:this.head=t,n.prev=t,this.length+=1},pn.prototype.unshift=function(n){this.head?this.insertBefore(this.head,n):hn(this,n)},pn.prototype.push=function(n){this.tail?this.insertAfter(this.tail,n):hn(this,n)},pn.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pn.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},pn.prototype.toArray=function(){for(var n=Array(this.length),t=this.head,e=0;e<this.length;e++)n[e]=t.data,t=t.next;return n},pn.prototype.remove=function(n){for(var t=this.head;t;){var e=t.next;n(t)&&this.removeLink(t),t=e}return this};var Lr,Or=P(z,1),wr=function(){return mn.apply(null,t(arguments).reverse())},xr=Array.prototype.concat,Er=function(n,e,r,u){u=u||m;var i=a(r);Ue(n,e,function(n,e){i(n,function(n){return n?e(n):e(null,t(arguments,1))})},function(n,t){for(var e=[],r=0;r<t.length;r++)t[r]&&(e=xr.apply(e,t[r]));return u(n,e)})},Ar=P(Er,1/0),Tr=P(Er,1),_r=function(){var n=t(arguments),e=[null].concat(n);return function(){var n=arguments[arguments.length-1];return n.apply(this,e)}},Br=D(bn(gn,jn)),Fr=C(bn(gn,jn)),Ir=P(Fr,1),Mr=Sn("dir"),Ur=P(An,1),qr=D(bn(_n,_n)),zr=C(bn(_n,_n)),Pr=P(zr,1),Vr=D(Mn),Dr=C(Mn),Rr=P(Dr,1),Cr=function(n,t,e,r){r=r||m;var u=a(e);Ue(n,t,function(n,t){u(n,function(e,r){return e?t(e):t(null,{key:r,val:n})})},function(n,t){for(var e={},u=Object.prototype.hasOwnProperty,i=0;i<t.length;i++)if(t[i]){var o=t[i].key,c=t[i].val;u.call(e,o)?e[o].push(c):e[o]=[c]}return r(n,e)})},$r=P(Cr,1/0),Wr=P(Cr,1),Nr=Sn("log"),Qr=P(qn,1/0),Gr=P(qn,1);Lr=at?process.nextTick:ft?setImmediate:r;var Hr=u(Lr),Jr=function(n,t){var e=a(n);return yn(function(n,t){e(n[0],t)},t,1)},Kr=function(n,t){var e=Jr(n,t);return e.push=function(n,t,r){if(null==r&&(r=m),"function"!=typeof r)throw new Error("task callback must be a function");if(e.started=!0,Pt(n)||(n=[n]),0===n.length)return lt(function(){e.drain()});t=t||0;for(var u=e._tasks.head;u&&t>=u.priority;)u=u.next;for(var i=0,o=n.length;i<o;i++){var c={data:n[i],priority:t,callback:r};u?e._tasks.insertBefore(u,c):e._tasks.push(c)}lt(e.process)},delete e.unshift,e},Xr=D(Qn),Yr=C(Qn),Zr=P(Yr,1),nu=function(n,t){t||(t=n,n=null);var e=a(t);return ct(function(t,r){function u(n){e.apply(null,t.concat(n))}n?Hn(n,u,r):Hn(u,r)})},tu=D(bn(Boolean,gn)),eu=C(bn(Boolean,gn)),ru=P(eu,1),uu=Math.ceil,iu=Math.max,ou=P(Zn,1/0),cu=P(Zn,1),fu=function(n,e){function r(t){var e=a(n[i++]);t.push(U(u)),e.apply(null,t)}function u(u){return u||i===n.length?e.apply(null,arguments):void r(t(arguments,1))}if(e=g(e||m),!Pt(n))return e(new Error("First argument to waterfall must be an array of functions"));if(!n.length)return e();var i=0;r([])},au={apply:ot,applyEach:Me,applyEachSeries:ze,asyncify:i,auto:Ve,autoInject:sn,cargo:vn,compose:wr,concat:Ar,concatLimit:Er,concatSeries:Tr,constant:_r,detect:Br,detectLimit:Fr,detectSeries:Ir,dir:Mr,doDuring:kn,doUntil:On,doWhilst:Ln,during:wn,each:En,eachLimit:An,eachOf:Fe,eachOfLimit:z,eachOfSeries:Or,eachSeries:Ur,ensureAsync:Tn,every:qr,everyLimit:zr,everySeries:Pr,filter:Vr,filterLimit:Dr,filterSeries:Rr,forever:Un,groupBy:$r,groupByLimit:Cr,groupBySeries:Wr,log:Nr,map:Ie,mapLimit:Ue,mapSeries:qe,mapValues:Qr,mapValuesLimit:qn,mapValuesSeries:Gr,memoize:Pn,nextTick:Hr,parallel:Dn,parallelLimit:Rn,priorityQueue:Kr,queue:Jr,race:Cn,reduce:dn,reduceRight:$n,reflect:Wn,reflectAll:Nn,reject:Xr,rejectLimit:Yr,rejectSeries:Zr,retry:Hn,retryable:nu,seq:mn,series:Jn,setImmediate:lt,some:tu,someLimit:eu,someSeries:ru,sortBy:Kn,timeout:Xn,times:ou,timesLimit:Zn,timesSeries:cu,transform:nt,tryEach:tt,unmemoize:et,until:ut,waterfall:fu,whilst:rt,all:qr,allLimit:zr,allSeries:Pr,any:tu,anyLimit:eu,anySeries:ru,find:Br,findLimit:Fr,findSeries:Ir,forEach:En,forEachSeries:Ur,forEachLimit:An,forEachOf:Fe,forEachOfSeries:Or,forEachOfLimit:z,inject:dn,foldl:dn,foldr:$n,select:Vr,selectLimit:Dr,selectSeries:Rr,wrapSync:i};n.default=au,n.apply=ot,n.applyEach=Me,n.applyEachSeries=ze,n.asyncify=i,n.auto=Ve,n.autoInject=sn,n.cargo=vn,n.compose=wr,n.concat=Ar,n.concatLimit=Er,n.concatSeries=Tr,n.constant=_r,n.detect=Br,n.detectLimit=Fr,n.detectSeries=Ir,n.dir=Mr,n.doDuring=kn,n.doUntil=On,n.doWhilst=Ln,n.during=wn,n.each=En,n.eachLimit=An,n.eachOf=Fe,n.eachOfLimit=z,n.eachOfSeries=Or,n.eachSeries=Ur,n.ensureAsync=Tn,n.every=qr,n.everyLimit=zr,n.everySeries=Pr,n.filter=Vr,n.filterLimit=Dr,n.filterSeries=Rr,n.forever=Un,n.groupBy=$r,n.groupByLimit=Cr,n.groupBySeries=Wr,n.log=Nr,n.map=Ie,n.mapLimit=Ue,n.mapSeries=qe,n.mapValues=Qr,n.mapValuesLimit=qn,n.mapValuesSeries=Gr,n.memoize=Pn,n.nextTick=Hr,n.parallel=Dn,n.parallelLimit=Rn,n.priorityQueue=Kr,n.queue=Jr,n.race=Cn,n.reduce=dn,n.reduceRight=$n,n.reflect=Wn,n.reflectAll=Nn,n.reject=Xr,n.rejectLimit=Yr,n.rejectSeries=Zr,n.retry=Hn,n.retryable=nu,n.seq=mn,n.series=Jn,n.setImmediate=lt,n.some=tu,n.someLimit=eu,n.someSeries=ru,n.sortBy=Kn,n.timeout=Xn,n.times=ou,n.timesLimit=Zn,n.timesSeries=cu,n.transform=nt,n.tryEach=tt,n.unmemoize=et,n.until=ut,n.waterfall=fu,n.whilst=rt,n.all=qr,n.allLimit=zr,n.allSeries=Pr,n.any=tu,n.anyLimit=eu,n.anySeries=ru,n.find=Br,n.findLimit=Fr,n.findSeries=Ir,n.forEach=En,n.forEachSeries=Ur,n.forEachLimit=An,n.forEachOf=Fe,n.forEachOfSeries=Or,n.forEachOfLimit=z,n.inject=dn,n.foldl=dn,n.foldr=$n,n.select=Vr,n.selectLimit=Dr,n.selectSeries=Rr,n.wrapSync=i,Object.defineProperty(n,"__esModule",{value:!0})});
2
+ //# sourceMappingURL=async.min.map
node_modules/async/dist/async.min.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"sources":["build/dist/async.js"],"names":["global","factory","exports","module","define","amd","async","this","slice","arrayLike","start","newLen","Math","max","length","newArr","Array","idx","isObject","value","type","fallback","fn","setTimeout","wrap","defer","args","arguments","apply","asyncify","func","initialParams","callback","result","e","then","invokeCallback","err","message","Error","error","setImmediate$1","rethrow","isAsync","supportsSymbol","Symbol","toStringTag","wrapAsync","asyncFn","applyEach$1","eachfn","fns","go","that","cb","concat","getRawTag","isOwn","hasOwnProperty","call","symToStringTag$1","tag","undefined","unmasked","nativeObjectToString","objectToString","nativeObjectToString$1","baseGetTag","undefinedTag","nullTag","symToStringTag","Object","isFunction","funcTag","genTag","asyncTag","proxyTag","isLength","MAX_SAFE_INTEGER","isArrayLike","noop","once","callFn","baseTimes","n","iteratee","index","isObjectLike","baseIsArguments","argsTag","stubFalse","isIndex","MAX_SAFE_INTEGER$1","reIsUint","test","baseIsTypedArray","typedArrayTags","baseUnary","arrayLikeKeys","inherited","isArr","isArray","isArg","isArguments","isBuff","isBuffer","isType","isTypedArray","skipIndexes","String","key","hasOwnProperty$1","push","isPrototype","Ctor","constructor","proto","prototype","objectProto$5","overArg","transform","arg","baseKeys","object","nativeKeys","hasOwnProperty$3","keys","createArrayIterator","coll","i","len","createES2015Iterator","iterator","item","next","done","createObjectIterator","obj","okeys","getIterator","onlyOnce","_eachOfLimit","limit","iterateeCallback","running","breakLoop","looping","replenish","elem","nextElem","eachOfLimit","doLimit","iterable","eachOfArrayLike","iteratorCallback","completed","doParallel","eachOf","_asyncMap","arr","results","counter","_iteratee","_","v","doParallelLimit","arrayEach","array","createBaseFor","fromRight","keysFunc","props","baseForOwn","baseFor","baseFindIndex","predicate","fromIndex","baseIsNaN","strictIndexOf","baseIndexOf","arrayMap","isSymbol","symbolTag","baseToString","symbolToString","INFINITY","baseSlice","end","castSlice","charsEndIndex","strSymbols","chrSymbols","charsStartIndex","asciiToArray","string","split","hasUnicode","reHasUnicode","unicodeToArray","match","reUnicode","stringToArray","toString","trim","chars","guard","replace","reTrim","join","parseParams","STRIP_COMMENTS","FN_ARGS","FN_ARG_SPLIT","map","FN_ARG","autoInject","tasks","newTasks","taskFn","newTask","taskCb","newArgs","params","name","fnIsAsync","hasNoDeps","pop","auto","DLL","head","tail","setInitial","dll","node","queue","worker","concurrency","payload","_insert","data","insertAtFront","q","started","idle","drain","l","_tasks","unshift","processingScheduled","process","_next","numRunning","task","workersList","shift","splice","buffer","unsaturated","_worker","isProcessing","saturated","empty","paused","kill","remove","testFn","min","pause","resume","cargo","reduce","memo","eachOfSeries","x","seq","_functions","newargs","nextargs","identity","_createTester","check","getResult","testResult","testPassed","_findGetResult","consoleFunc","console","doDuring","_test","truth","_fn","doWhilst","doUntil","during","_withoutIndex","eachLimit","eachLimit$1","ensureAsync","sync","innerArgs","notId","baseProperty","filterArray","truthValues","filterGeneric","sort","a","b","_filter","filter","forever","errback","mapValuesLimit","newObj","val","has","memoize","hasher","create","queues","memoized","unmemoized","_parallel","parallelLimit","parallelLimit$1","race","TypeError","reduceRight","reversed","reverse","reflect","reflectCallback","cbArg","reflectAll","reject$1","constant$1","retry","opts","parseTimes","acc","t","times","DEFAULT_TIMES","intervalFunc","interval","DEFAULT_INTERVAL","errorFilter","retryAttempt","_task","attempt","options","series","sortBy","comparator","left","right","criteria","timeout","milliseconds","info","timeoutCallback","code","timedOut","timer","clearTimeout","baseRange","step","nativeMax","nativeCeil","timeLimit","count","mapLimit","accumulator","k","tryEach","eachSeries","res","unmemoize","whilst","until","_defer","callArgs","hasSetImmediate","setImmediate","hasNextTick","nextTick","freeGlobal","freeSelf","self","root","Function","Symbol$1","objectProto","objectProto$1","iteratorSymbol","objectProto$3","hasOwnProperty$2","propertyIsEnumerable","freeExports","nodeType","freeModule","moduleExports","Buffer","nativeIsBuffer","argsTag$1","arrayTag","boolTag","dateTag","errorTag","funcTag$1","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","freeExports$1","freeModule$1","moduleExports$1","freeProcess","nodeUtil","types","require","binding","nodeIsTypedArray","objectProto$2","objectProto$4","eachOfGeneric","Infinity","eachOfImplementation","applyEach","mapSeries","applyEachSeries","enqueueTask","readyTasks","runTask","processQueue","runningTasks","run","addListener","taskName","taskListeners","listeners","taskComplete","hasError","taskCallback","safeResults","rkey","checkForDeadlocks","currentTask","readyToCheck","getDependents","dependent","uncheckedDependencies","numTasks","keys$$1","dependencies","remainingDependencies","dependencyName","symbolProto","rsAstralRange","rsComboMarksRange","reComboHalfMarksRange","rsComboSymbolsRange","rsComboRange","rsVarRange","rsZWJ","RegExp","rsAstralRange$1","rsComboMarksRange$1","reComboHalfMarksRange$1","rsComboSymbolsRange$1","rsComboRange$1","rsVarRange$1","rsAstral","rsCombo","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsZWJ$1","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsSymbol","removeLink","prev","insertAfter","newNode","insertBefore","toArray","curr","_defer$1","compose","_concat","concatLimit","mapResults","concatSeries","constant","values","detect","detectLimit","detectSeries","dir","every","everyLimit","everySeries","filterLimit","filterSeries","groupByLimit","groupBy","groupBySeries","log","mapValues","mapValuesSeries","queue$1","items","priorityQueue","priority","nextNode","reject","rejectLimit","rejectSeries","retryable","some","Boolean","someLimit","someSeries","ceil","timesSeries","waterfall","nextTask","taskIndex","each","parallel","timesLimit","all","allLimit","allSeries","any","anyLimit","anySeries","find","findLimit","findSeries","forEach","forEachSeries","forEachLimit","forEachOf","forEachOfSeries","forEachOfLimit","inject","foldl","foldr","select","selectLimit","selectSeries","wrapSync","defineProperty"],"mappings":"CAAC,SAAUA,EAAQC,GACE,gBAAZC,UAA0C,mBAAXC,QAAyBF,EAAQC,SACrD,kBAAXE,SAAyBA,OAAOC,IAAMD,QAAQ,WAAYH,GAChEA,EAASD,EAAOM,MAAQN,EAAOM,YAChCC,KAAM,SAAWL,GAAW,YAE9B,SAASM,GAAMC,EAAWC,GACtBA,GAAc,CAGd,KAAI,GAFAC,GAASC,KAAKC,IAAIJ,EAAUK,OAASJ,EAAO,GAC5CK,EAASC,MAAML,GACXM,EAAM,EAAGA,EAAMN,EAAQM,IAC3BF,EAAOE,GAAOR,EAAUC,EAAQO,EAEpC,OAAOF,GAyFX,QAASG,GAASC,GAChB,GAAIC,SAAcD,EAClB,OAAgB,OAATA,IAA0B,UAARC,GAA4B,YAARA,GAM/C,QAASC,GAASC,GACdC,WAAWD,EAAI,GAGnB,QAASE,GAAKC,GACV,MAAO,UAAUH,GACb,GAAII,GAAOlB,EAAMmB,UAAW,EAC5BF,GAAM,WACFH,EAAGM,MAAM,KAAMF,MAyE3B,QAASG,GAASC,GACd,MAAOC,IAAc,SAAUL,EAAMM,GACjC,GAAIC,EACJ,KACIA,EAASH,EAAKF,MAAMrB,KAAMmB,GAC5B,MAAOQ,GACL,MAAOF,GAASE,GAGhBhB,EAASe,IAAkC,kBAAhBA,GAAOE,KAClCF,EAAOE,KAAK,SAAShB,GACjBiB,EAAeJ,EAAU,KAAMb,IAChC,SAASkB,GACRD,EAAeJ,EAAUK,EAAIC,QAAUD,EAAM,GAAIE,OAAMF,MAG3DL,EAAS,KAAMC,KAK3B,QAASG,GAAeJ,EAAUQ,EAAOrB,GACrC,IACIa,EAASQ,EAAOrB,GAClB,MAAOe,GACLO,GAAeC,EAASR,IAIhC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dist/async.min.js"}
node_modules/async/doDuring.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = doDuring;
7
+
8
+ var _noop = require('lodash/noop');
9
+
10
+ var _noop2 = _interopRequireDefault(_noop);
11
+
12
+ var _slice = require('./internal/slice');
13
+
14
+ var _slice2 = _interopRequireDefault(_slice);
15
+
16
+ var _onlyOnce = require('./internal/onlyOnce');
17
+
18
+ var _onlyOnce2 = _interopRequireDefault(_onlyOnce);
19
+
20
+ var _wrapAsync = require('./internal/wrapAsync');
21
+
22
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+
26
+ /**
27
+ * The post-check version of [`during`]{@link module:ControlFlow.during}. To reflect the difference in
28
+ * the order of operations, the arguments `test` and `fn` are switched.
29
+ *
30
+ * Also a version of [`doWhilst`]{@link module:ControlFlow.doWhilst} with asynchronous `test` function.
31
+ * @name doDuring
32
+ * @static
33
+ * @memberOf module:ControlFlow
34
+ * @method
35
+ * @see [async.during]{@link module:ControlFlow.during}
36
+ * @category Control Flow
37
+ * @param {AsyncFunction} fn - An async function which is called each time
38
+ * `test` passes. Invoked with (callback).
39
+ * @param {AsyncFunction} test - asynchronous truth test to perform before each
40
+ * execution of `fn`. Invoked with (...args, callback), where `...args` are the
41
+ * non-error args from the previous callback of `fn`.
42
+ * @param {Function} [callback] - A callback which is called after the test
43
+ * function has failed and repeated execution of `fn` has stopped. `callback`
44
+ * will be passed an error if one occurred, otherwise `null`.
45
+ */
46
+ function doDuring(fn, test, callback) {
47
+ callback = (0, _onlyOnce2.default)(callback || _noop2.default);
48
+ var _fn = (0, _wrapAsync2.default)(fn);
49
+ var _test = (0, _wrapAsync2.default)(test);
50
+
51
+ function next(err /*, ...args*/) {
52
+ if (err) return callback(err);
53
+ var args = (0, _slice2.default)(arguments, 1);
54
+ args.push(check);
55
+ _test.apply(this, args);
56
+ };
57
+
58
+ function check(err, truth) {
59
+ if (err) return callback(err);
60
+ if (!truth) return callback(null);
61
+ _fn(next);
62
+ }
63
+
64
+ check(null, true);
65
+ }
66
+ module.exports = exports['default'];
node_modules/async/doUntil.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = doUntil;
7
+
8
+ var _doWhilst = require('./doWhilst');
9
+
10
+ var _doWhilst2 = _interopRequireDefault(_doWhilst);
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ /**
15
+ * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the
16
+ * argument ordering differs from `until`.
17
+ *
18
+ * @name doUntil
19
+ * @static
20
+ * @memberOf module:ControlFlow
21
+ * @method
22
+ * @see [async.doWhilst]{@link module:ControlFlow.doWhilst}
23
+ * @category Control Flow
24
+ * @param {AsyncFunction} iteratee - An async function which is called each time
25
+ * `test` fails. Invoked with (callback).
26
+ * @param {Function} test - synchronous truth test to perform after each
27
+ * execution of `iteratee`. Invoked with any non-error callback results of
28
+ * `iteratee`.
29
+ * @param {Function} [callback] - A callback which is called after the test
30
+ * function has passed and repeated execution of `iteratee` has stopped. `callback`
31
+ * will be passed an error and any arguments passed to the final `iteratee`'s
32
+ * callback. Invoked with (err, [results]);
33
+ */
34
+ function doUntil(iteratee, test, callback) {
35
+ (0, _doWhilst2.default)(iteratee, function () {
36
+ return !test.apply(this, arguments);
37
+ }, callback);
38
+ }
39
+ module.exports = exports['default'];
node_modules/async/doWhilst.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = doWhilst;
7
+
8
+ var _noop = require('lodash/noop');
9
+
10
+ var _noop2 = _interopRequireDefault(_noop);
11
+
12
+ var _slice = require('./internal/slice');
13
+
14
+ var _slice2 = _interopRequireDefault(_slice);
15
+
16
+ var _onlyOnce = require('./internal/onlyOnce');
17
+
18
+ var _onlyOnce2 = _interopRequireDefault(_onlyOnce);
19
+
20
+ var _wrapAsync = require('./internal/wrapAsync');
21
+
22
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+
26
+ /**
27
+ * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in
28
+ * the order of operations, the arguments `test` and `iteratee` are switched.
29
+ *
30
+ * `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.
31
+ *
32
+ * @name doWhilst
33
+ * @static
34
+ * @memberOf module:ControlFlow
35
+ * @method
36
+ * @see [async.whilst]{@link module:ControlFlow.whilst}
37
+ * @category Control Flow
38
+ * @param {AsyncFunction} iteratee - A function which is called each time `test`
39
+ * passes. Invoked with (callback).
40
+ * @param {Function} test - synchronous truth test to perform after each
41
+ * execution of `iteratee`. Invoked with any non-error callback results of
42
+ * `iteratee`.
43
+ * @param {Function} [callback] - A callback which is called after the test
44
+ * function has failed and repeated execution of `iteratee` has stopped.
45
+ * `callback` will be passed an error and any arguments passed to the final
46
+ * `iteratee`'s callback. Invoked with (err, [results]);
47
+ */
48
+ function doWhilst(iteratee, test, callback) {
49
+ callback = (0, _onlyOnce2.default)(callback || _noop2.default);
50
+ var _iteratee = (0, _wrapAsync2.default)(iteratee);
51
+ var next = function (err /*, ...args*/) {
52
+ if (err) return callback(err);
53
+ var args = (0, _slice2.default)(arguments, 1);
54
+ if (test.apply(this, args)) return _iteratee(next);
55
+ callback.apply(null, [null].concat(args));
56
+ };
57
+ _iteratee(next);
58
+ }
59
+ module.exports = exports['default'];
node_modules/async/during.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = during;
7
+
8
+ var _noop = require('lodash/noop');
9
+
10
+ var _noop2 = _interopRequireDefault(_noop);
11
+
12
+ var _onlyOnce = require('./internal/onlyOnce');
13
+
14
+ var _onlyOnce2 = _interopRequireDefault(_onlyOnce);
15
+
16
+ var _wrapAsync = require('./internal/wrapAsync');
17
+
18
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ /**
23
+ * Like [`whilst`]{@link module:ControlFlow.whilst}, except the `test` is an asynchronous function that
24
+ * is passed a callback in the form of `function (err, truth)`. If error is
25
+ * passed to `test` or `fn`, the main callback is immediately called with the
26
+ * value of the error.
27
+ *
28
+ * @name during
29
+ * @static
30
+ * @memberOf module:ControlFlow
31
+ * @method
32
+ * @see [async.whilst]{@link module:ControlFlow.whilst}
33
+ * @category Control Flow
34
+ * @param {AsyncFunction} test - asynchronous truth test to perform before each
35
+ * execution of `fn`. Invoked with (callback).
36
+ * @param {AsyncFunction} fn - An async function which is called each time
37
+ * `test` passes. Invoked with (callback).
38
+ * @param {Function} [callback] - A callback which is called after the test
39
+ * function has failed and repeated execution of `fn` has stopped. `callback`
40
+ * will be passed an error, if one occurred, otherwise `null`.
41
+ * @example
42
+ *
43
+ * var count = 0;
44
+ *
45
+ * async.during(
46
+ * function (callback) {
47
+ * return callback(null, count < 5);
48
+ * },
49
+ * function (callback) {
50
+ * count++;
51
+ * setTimeout(callback, 1000);
52
+ * },
53
+ * function (err) {
54
+ * // 5 seconds have passed
55
+ * }
56
+ * );
57
+ */
58
+ function during(test, fn, callback) {
59
+ callback = (0, _onlyOnce2.default)(callback || _noop2.default);
60
+ var _fn = (0, _wrapAsync2.default)(fn);
61
+ var _test = (0, _wrapAsync2.default)(test);
62
+
63
+ function next(err) {
64
+ if (err) return callback(err);
65
+ _test(check);
66
+ }
67
+
68
+ function check(err, truth) {
69
+ if (err) return callback(err);
70
+ if (!truth) return callback(null);
71
+ _fn(next);
72
+ }
73
+
74
+ _test(check);
75
+ }
76
+ module.exports = exports['default'];
node_modules/async/each.js ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = eachLimit;
7
+
8
+ var _eachOf = require('./eachOf');
9
+
10
+ var _eachOf2 = _interopRequireDefault(_eachOf);
11
+
12
+ var _withoutIndex = require('./internal/withoutIndex');
13
+
14
+ var _withoutIndex2 = _interopRequireDefault(_withoutIndex);
15
+
16
+ var _wrapAsync = require('./internal/wrapAsync');
17
+
18
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ /**
23
+ * Applies the function `iteratee` to each item in `coll`, in parallel.
24
+ * The `iteratee` is called with an item from the list, and a callback for when
25
+ * it has finished. If the `iteratee` passes an error to its `callback`, the
26
+ * main `callback` (for the `each` function) is immediately called with the
27
+ * error.
28
+ *
29
+ * Note, that since this function applies `iteratee` to each item in parallel,
30
+ * there is no guarantee that the iteratee functions will complete in order.
31
+ *
32
+ * @name each
33
+ * @static
34
+ * @memberOf module:Collections
35
+ * @method
36
+ * @alias forEach
37
+ * @category Collection
38
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
39
+ * @param {AsyncFunction} iteratee - An async function to apply to
40
+ * each item in `coll`. Invoked with (item, callback).
41
+ * The array index is not passed to the iteratee.
42
+ * If you need the index, use `eachOf`.
43
+ * @param {Function} [callback] - A callback which is called when all
44
+ * `iteratee` functions have finished, or an error occurs. Invoked with (err).
45
+ * @example
46
+ *
47
+ * // assuming openFiles is an array of file names and saveFile is a function
48
+ * // to save the modified contents of that file:
49
+ *
50
+ * async.each(openFiles, saveFile, function(err){
51
+ * // if any of the saves produced an error, err would equal that error
52
+ * });
53
+ *
54
+ * // assuming openFiles is an array of file names
55
+ * async.each(openFiles, function(file, callback) {
56
+ *
57
+ * // Perform operation on file here.
58
+ * console.log('Processing file ' + file);
59
+ *
60
+ * if( file.length > 32 ) {
61
+ * console.log('This file name is too long');
62
+ * callback('File name too long');
63
+ * } else {
64
+ * // Do work to process file here
65
+ * console.log('File processed');
66
+ * callback();
67
+ * }
68
+ * }, function(err) {
69
+ * // if any of the file processing produced an error, err would equal that error
70
+ * if( err ) {
71
+ * // One of the iterations produced an error.
72
+ * // All processing will now stop.
73
+ * console.log('A file failed to process');
74
+ * } else {
75
+ * console.log('All files have been processed successfully');
76
+ * }
77
+ * });
78
+ */
79
+ function eachLimit(coll, iteratee, callback) {
80
+ (0, _eachOf2.default)(coll, (0, _withoutIndex2.default)((0, _wrapAsync2.default)(iteratee)), callback);
81
+ }
82
+ module.exports = exports['default'];
node_modules/async/eachLimit.js ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = eachLimit;
7
+
8
+ var _eachOfLimit = require('./internal/eachOfLimit');
9
+
10
+ var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
11
+
12
+ var _withoutIndex = require('./internal/withoutIndex');
13
+
14
+ var _withoutIndex2 = _interopRequireDefault(_withoutIndex);
15
+
16
+ var _wrapAsync = require('./internal/wrapAsync');
17
+
18
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ /**
23
+ * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.
24
+ *
25
+ * @name eachLimit
26
+ * @static
27
+ * @memberOf module:Collections
28
+ * @method
29
+ * @see [async.each]{@link module:Collections.each}
30
+ * @alias forEachLimit
31
+ * @category Collection
32
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
33
+ * @param {number} limit - The maximum number of async operations at a time.
34
+ * @param {AsyncFunction} iteratee - An async function to apply to each item in
35
+ * `coll`.
36
+ * The array index is not passed to the iteratee.
37
+ * If you need the index, use `eachOfLimit`.
38
+ * Invoked with (item, callback).
39
+ * @param {Function} [callback] - A callback which is called when all
40
+ * `iteratee` functions have finished, or an error occurs. Invoked with (err).
41
+ */
42
+ function eachLimit(coll, limit, iteratee, callback) {
43
+ (0, _eachOfLimit2.default)(limit)(coll, (0, _withoutIndex2.default)((0, _wrapAsync2.default)(iteratee)), callback);
44
+ }
45
+ module.exports = exports['default'];
node_modules/async/eachOf.js ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ exports.default = function (coll, iteratee, callback) {
8
+ var eachOfImplementation = (0, _isArrayLike2.default)(coll) ? eachOfArrayLike : eachOfGeneric;
9
+ eachOfImplementation(coll, (0, _wrapAsync2.default)(iteratee), callback);
10
+ };
11
+
12
+ var _isArrayLike = require('lodash/isArrayLike');
13
+
14
+ var _isArrayLike2 = _interopRequireDefault(_isArrayLike);
15
+
16
+ var _breakLoop = require('./internal/breakLoop');
17
+
18
+ var _breakLoop2 = _interopRequireDefault(_breakLoop);
19
+
20
+ var _eachOfLimit = require('./eachOfLimit');
21
+
22
+ var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
23
+
24
+ var _doLimit = require('./internal/doLimit');
25
+
26
+ var _doLimit2 = _interopRequireDefault(_doLimit);
27
+
28
+ var _noop = require('lodash/noop');
29
+
30
+ var _noop2 = _interopRequireDefault(_noop);
31
+
32
+ var _once = require('./internal/once');
33
+
34
+ var _once2 = _interopRequireDefault(_once);
35
+
36
+ var _onlyOnce = require('./internal/onlyOnce');
37
+
38
+ var _onlyOnce2 = _interopRequireDefault(_onlyOnce);
39
+
40
+ var _wrapAsync = require('./internal/wrapAsync');
41
+
42
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
43
+
44
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45
+
46
+ // eachOf implementation optimized for array-likes
47
+ function eachOfArrayLike(coll, iteratee, callback) {
48
+ callback = (0, _once2.default)(callback || _noop2.default);
49
+ var index = 0,
50
+ completed = 0,
51
+ length = coll.length;
52
+ if (length === 0) {
53
+ callback(null);
54
+ }
55
+
56
+ function iteratorCallback(err, value) {
57
+ if (err) {
58
+ callback(err);
59
+ } else if (++completed === length || value === _breakLoop2.default) {
60
+ callback(null);
61
+ }
62
+ }
63
+
64
+ for (; index < length; index++) {
65
+ iteratee(coll[index], index, (0, _onlyOnce2.default)(iteratorCallback));
66
+ }
67
+ }
68
+
69
+ // a generic version of eachOf which can handle array, object, and iterator cases.
70
+ var eachOfGeneric = (0, _doLimit2.default)(_eachOfLimit2.default, Infinity);
71
+
72
+ /**
73
+ * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument
74
+ * to the iteratee.
75
+ *
76
+ * @name eachOf
77
+ * @static
78
+ * @memberOf module:Collections
79
+ * @method
80
+ * @alias forEachOf
81
+ * @category Collection
82
+ * @see [async.each]{@link module:Collections.each}
83
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
84
+ * @param {AsyncFunction} iteratee - A function to apply to each
85
+ * item in `coll`.
86
+ * The `key` is the item's key, or index in the case of an array.
87
+ * Invoked with (item, key, callback).
88
+ * @param {Function} [callback] - A callback which is called when all
89
+ * `iteratee` functions have finished, or an error occurs. Invoked with (err).
90
+ * @example
91
+ *
92
+ * var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"};
93
+ * var configs = {};
94
+ *
95
+ * async.forEachOf(obj, function (value, key, callback) {
96
+ * fs.readFile(__dirname + value, "utf8", function (err, data) {
97
+ * if (err) return callback(err);
98
+ * try {
99
+ * configs[key] = JSON.parse(data);
100
+ * } catch (e) {
101
+ * return callback(e);
102
+ * }
103
+ * callback();
104
+ * });
105
+ * }, function (err) {
106
+ * if (err) console.error(err.message);
107
+ * // configs is now a map of JSON data
108
+ * doSomethingWith(configs);
109
+ * });
110
+ */
111
+ module.exports = exports['default'];
node_modules/async/eachOfLimit.js ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = eachOfLimit;
7
+
8
+ var _eachOfLimit2 = require('./internal/eachOfLimit');
9
+
10
+ var _eachOfLimit3 = _interopRequireDefault(_eachOfLimit2);
11
+
12
+ var _wrapAsync = require('./internal/wrapAsync');
13
+
14
+ var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ /**
19
+ * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a
20
+ * time.
21
+ *
22
+ * @name eachOfLimit
23
+ * @static
24
+ * @memberOf module:Collections
25
+ * @method
26
+ * @see [async.eachOf]{@link module:Collections.eachOf}
27
+ * @alias forEachOfLimit
28
+ * @category Collection
29
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
30
+ * @param {number} limit - The maximum number of async operations at a time.
31
+ * @param {AsyncFunction} iteratee - An async function to apply to each
32
+ * item in `coll`. The `key` is the item's key, or index in the case of an
33
+ * array.
34
+ * Invoked with (item, key, callback).
35
+ * @param {Function} [callback] - A callback which is called when all
36
+ * `iteratee` functions have finished, or an error occurs. Invoked with (err).
37
+ */
38
+ function eachOfLimit(coll, limit, iteratee, callback) {
39
+ (0, _eachOfLimit3.default)(limit)(coll, (0, _wrapAsync2.default)(iteratee), callback);
40
+ }
41
+ module.exports = exports['default'];
node_modules/async/eachOfSeries.js ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _eachOfLimit = require('./eachOfLimit');
8
+
9
+ var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
10
+
11
+ var _doLimit = require('./internal/doLimit');
12
+
13
+ var _doLimit2 = _interopRequireDefault(_doLimit);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.
19
+ *
20
+ * @name eachOfSeries
21
+ * @static
22
+ * @memberOf module:Collections
23
+ * @method
24
+ * @see [async.eachOf]{@link module:Collections.eachOf}
25
+ * @alias forEachOfSeries
26
+ * @category Collection
27
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
28
+ * @param {AsyncFunction} iteratee - An async function to apply to each item in
29
+ * `coll`.
30
+ * Invoked with (item, key, callback).
31
+ * @param {Function} [callback] - A callback which is called when all `iteratee`
32
+ * functions have finished, or an error occurs. Invoked with (err).
33
+ */
34
+ exports.default = (0, _doLimit2.default)(_eachOfLimit2.default, 1);
35
+ module.exports = exports['default'];
node_modules/async/eachSeries.js ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _eachLimit = require('./eachLimit');
8
+
9
+ var _eachLimit2 = _interopRequireDefault(_eachLimit);
10
+
11
+ var _doLimit = require('./internal/doLimit');
12
+
13
+ var _doLimit2 = _interopRequireDefault(_doLimit);
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ /**
18
+ * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.
19
+ *
20
+ * @name eachSeries
21
+ * @static
22
+ * @memberOf module:Collections
23
+ * @method
24
+ * @see [async.each]{@link module:Collections.each}
25
+ * @alias forEachSeries
26
+ * @category Collection
27
+ * @param {Array|Iterable|Object} coll - A collection to iterate over.
28
+ * @param {AsyncFunction} iteratee - An async function to apply to each
29
+ * item in `coll`.
30
+ * The array index is not passed to the iteratee.
31
+ * If you need the index, use `eachOfSeries`.
32
+ * Invoked with (item, callback).
33
+ * @param {Function} [callback] - A callback which is called when all
34
+ * `iteratee` functions have finished, or an error occurs. Invoked with (err).
35
+ */
36
+ exports.default = (0, _doLimit2.default)(_eachLimit2.default, 1);
37
+ module.exports = exports['default'];