prettier 0.15.1 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
6
 
5
7
  var os = _interopDefault(require('os'));
@@ -31,199 +33,119 @@ function _createClass(Constructor, protoProps, staticProps) {
31
33
  return Constructor;
32
34
  }
33
35
 
34
- function _toArray(arr) {
35
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest();
36
- }
37
-
38
- function _arrayWithHoles(arr) {
39
- if (Array.isArray(arr)) return arr;
40
- }
41
-
42
- function _iterableToArray(iter) {
43
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
44
- }
45
-
46
- function _nonIterableRest() {
47
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
48
- }
49
-
50
- function _toPrimitive(input, hint) {
51
- if (typeof input !== "object" || input === null) return input;
52
- var prim = input[Symbol.toPrimitive];
53
-
54
- if (prim !== undefined) {
55
- var res = prim.call(input, hint || "default");
56
- if (typeof res !== "object") return res;
57
- throw new TypeError("@@toPrimitive must return a primitive value.");
58
- }
59
-
60
- return (hint === "string" ? String : Number)(input);
61
- }
62
-
63
- function _toPropertyKey(arg) {
64
- var key = _toPrimitive(arg, "string");
65
-
66
- return typeof key === "symbol" ? key : String(key);
67
- }
68
-
69
- function _addElementPlacement(element, placements, silent) {
70
- var keys = placements[element.placement];
71
-
72
- if (!silent && keys.indexOf(element.key) !== -1) {
73
- throw new TypeError("Duplicated element (" + element.key + ")");
36
+ function _inherits(subClass, superClass) {
37
+ if (typeof superClass !== "function" && superClass !== null) {
38
+ throw new TypeError("Super expression must either be null or a function");
74
39
  }
75
40
 
76
- keys.push(element.key);
41
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
42
+ constructor: {
43
+ value: subClass,
44
+ writable: true,
45
+ configurable: true
46
+ }
47
+ });
48
+ if (superClass) _setPrototypeOf(subClass, superClass);
77
49
  }
78
50
 
79
- function _fromElementDescriptor(element) {
80
- var obj = {
81
- kind: element.kind,
82
- key: element.key,
83
- placement: element.placement,
84
- descriptor: element.descriptor
51
+ function _getPrototypeOf(o) {
52
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
53
+ return o.__proto__ || Object.getPrototypeOf(o);
85
54
  };
86
- var desc = {
87
- value: "Descriptor",
88
- configurable: true
89
- };
90
- Object.defineProperty(obj, Symbol.toStringTag, desc);
91
- if (element.kind === "field") obj.initializer = element.initializer;
92
- return obj;
55
+ return _getPrototypeOf(o);
93
56
  }
94
57
 
95
- function _toElementDescriptors(elementObjects) {
96
- if (elementObjects === undefined) return;
97
- return _toArray(elementObjects).map(function (elementObject) {
98
- var element = _toElementDescriptor(elementObject);
99
-
100
- _disallowProperty(elementObject, "finisher", "An element descriptor");
101
-
102
- _disallowProperty(elementObject, "extras", "An element descriptor");
58
+ function _setPrototypeOf(o, p) {
59
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
60
+ o.__proto__ = p;
61
+ return o;
62
+ };
103
63
 
104
- return element;
105
- });
64
+ return _setPrototypeOf(o, p);
106
65
  }
107
66
 
108
- function _toElementDescriptor(elementObject) {
109
- var kind = String(elementObject.kind);
67
+ function isNativeReflectConstruct() {
68
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
69
+ if (Reflect.construct.sham) return false;
70
+ if (typeof Proxy === "function") return true;
110
71
 
111
- if (kind !== "method" && kind !== "field") {
112
- throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"');
113
- }
114
-
115
- var key = _toPropertyKey(elementObject.key);
116
-
117
- var placement = String(elementObject.placement);
118
-
119
- if (placement !== "static" && placement !== "prototype" && placement !== "own") {
120
- throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"');
72
+ try {
73
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
74
+ return true;
75
+ } catch (e) {
76
+ return false;
121
77
  }
78
+ }
122
79
 
123
- var descriptor = elementObject.descriptor;
124
-
125
- _disallowProperty(elementObject, "elements", "An element descriptor");
126
-
127
- var element = {
128
- kind: kind,
129
- key: key,
130
- placement: placement,
131
- descriptor: Object.assign({}, descriptor)
132
- };
133
-
134
- if (kind !== "field") {
135
- _disallowProperty(elementObject, "initializer", "A method descriptor");
80
+ function _construct(Parent, args, Class) {
81
+ if (isNativeReflectConstruct()) {
82
+ _construct = Reflect.construct;
136
83
  } else {
137
- _disallowProperty(descriptor, "get", "The property descriptor of a field descriptor");
138
-
139
- _disallowProperty(descriptor, "set", "The property descriptor of a field descriptor");
140
-
141
- _disallowProperty(descriptor, "value", "The property descriptor of a field descriptor");
142
-
143
- element.initializer = elementObject.initializer;
84
+ _construct = function _construct(Parent, args, Class) {
85
+ var a = [null];
86
+ a.push.apply(a, args);
87
+ var Constructor = Function.bind.apply(Parent, a);
88
+ var instance = new Constructor();
89
+ if (Class) _setPrototypeOf(instance, Class.prototype);
90
+ return instance;
91
+ };
144
92
  }
145
93
 
146
- return element;
94
+ return _construct.apply(null, arguments);
147
95
  }
148
96
 
149
- function _toElementFinisherExtras(elementObject) {
150
- var element = _toElementDescriptor(elementObject);
151
-
152
- var finisher = _optionalCallableProperty(elementObject, "finisher");
153
-
154
- var extras = _toElementDescriptors(elementObject.extras);
155
-
156
- return {
157
- element: element,
158
- finisher: finisher,
159
- extras: extras
160
- };
97
+ function _isNativeFunction(fn) {
98
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
161
99
  }
162
100
 
163
- function _fromClassDescriptor(elements) {
164
- var obj = {
165
- kind: "class",
166
- elements: elements.map(_fromElementDescriptor)
167
- };
168
- var desc = {
169
- value: "Descriptor",
170
- configurable: true
171
- };
172
- Object.defineProperty(obj, Symbol.toStringTag, desc);
173
- return obj;
174
- }
101
+ function _wrapNativeSuper(Class) {
102
+ var _cache = typeof Map === "function" ? new Map() : undefined;
175
103
 
176
- function _toClassDescriptor(obj) {
177
- var kind = String(obj.kind);
104
+ _wrapNativeSuper = function _wrapNativeSuper(Class) {
105
+ if (Class === null || !_isNativeFunction(Class)) return Class;
178
106
 
179
- if (kind !== "class") {
180
- throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"');
181
- }
182
-
183
- _disallowProperty(obj, "key", "A class descriptor");
184
-
185
- _disallowProperty(obj, "placement", "A class descriptor");
186
-
187
- _disallowProperty(obj, "descriptor", "A class descriptor");
188
-
189
- _disallowProperty(obj, "initializer", "A class descriptor");
107
+ if (typeof Class !== "function") {
108
+ throw new TypeError("Super expression must either be null or a function");
109
+ }
190
110
 
191
- _disallowProperty(obj, "extras", "A class descriptor");
111
+ if (typeof _cache !== "undefined") {
112
+ if (_cache.has(Class)) return _cache.get(Class);
192
113
 
193
- var finisher = _optionalCallableProperty(obj, "finisher");
114
+ _cache.set(Class, Wrapper);
115
+ }
194
116
 
195
- var elements = _toElementDescriptors(obj.elements);
117
+ function Wrapper() {
118
+ return _construct(Class, arguments, _getPrototypeOf(this).constructor);
119
+ }
196
120
 
197
- return {
198
- elements: elements,
199
- finisher: finisher
121
+ Wrapper.prototype = Object.create(Class.prototype, {
122
+ constructor: {
123
+ value: Wrapper,
124
+ enumerable: false,
125
+ writable: true,
126
+ configurable: true
127
+ }
128
+ });
129
+ return _setPrototypeOf(Wrapper, Class);
200
130
  };
201
- }
202
131
 
203
- function _disallowProperty(obj, name, objectType) {
204
- if (obj[name] !== undefined) {
205
- throw new TypeError(objectType + " can't have a ." + name + " property.");
206
- }
132
+ return _wrapNativeSuper(Class);
207
133
  }
208
134
 
209
- function _optionalCallableProperty(obj, name) {
210
- var value = obj[name];
211
-
212
- if (value !== undefined && typeof value !== "function") {
213
- throw new TypeError("Expected '" + name + "' to be a function");
135
+ function _assertThisInitialized(self) {
136
+ if (self === void 0) {
137
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
214
138
  }
215
139
 
216
- return value;
217
- }
218
-
219
- function commonjsRequire () {
220
- throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
140
+ return self;
221
141
  }
222
142
 
143
+ function _possibleConstructorReturn(self, call) {
144
+ if (call && (typeof call === "object" || typeof call === "function")) {
145
+ return call;
146
+ }
223
147
 
224
-
225
- function createCommonjsModule(fn, module) {
226
- return module = { exports: {} }, fn(module, module.exports), module.exports;
148
+ return _assertThisInitialized(self);
227
149
  }
228
150
 
229
151
  var isArrayish = function isArrayish(obj) {
@@ -364,9 +286,9 @@ errorEx.line = function (str, def) {
364
286
 
365
287
  var errorEx_1 = errorEx;
366
288
 
367
- var jsonParseBetterErrors = parseJson$2;
289
+ var jsonParseBetterErrors = parseJson;
368
290
 
369
- function parseJson$2(txt, reviver, context) {
291
+ function parseJson(txt, reviver, context) {
370
292
  context = context || 20;
371
293
 
372
294
  try {
@@ -393,38 +315,34 @@ function parseJson$2(txt, reviver, context) {
393
315
  }
394
316
  }
395
317
 
396
- var parseJson = createCommonjsModule(function (module) {
397
- 'use strict';
398
-
399
- var JSONError = errorEx_1('JSONError', {
400
- fileName: errorEx_1.append('in %s')
401
- });
318
+ var JSONError = errorEx_1('JSONError', {
319
+ fileName: errorEx_1.append('in %s')
320
+ });
402
321
 
403
- module.exports = function (input, reviver, filename) {
404
- if (typeof reviver === 'string') {
405
- filename = reviver;
406
- reviver = null;
407
- }
322
+ var parseJson$1 = function parseJson(input, reviver, filename) {
323
+ if (typeof reviver === 'string') {
324
+ filename = reviver;
325
+ reviver = null;
326
+ }
408
327
 
328
+ try {
409
329
  try {
410
- try {
411
- return JSON.parse(input, reviver);
412
- } catch (err) {
413
- jsonParseBetterErrors(input, reviver);
414
- throw err;
415
- }
330
+ return JSON.parse(input, reviver);
416
331
  } catch (err) {
417
- err.message = err.message.replace(/\n/g, '');
418
- var jsonErr = new JSONError(err);
419
-
420
- if (filename) {
421
- jsonErr.fileName = filename;
422
- }
332
+ jsonParseBetterErrors(input, reviver);
333
+ throw err;
334
+ }
335
+ } catch (err) {
336
+ err.message = err.message.replace(/\n/g, '');
337
+ var jsonErr = new JSONError(err);
423
338
 
424
- throw jsonErr;
339
+ if (filename) {
340
+ jsonErr.fileName = filename;
425
341
  }
426
- };
427
- });
342
+
343
+ throw jsonErr;
344
+ }
345
+ };
428
346
 
429
347
  function isNothing(subject) {
430
348
  return typeof subject === 'undefined' || subject === null;
@@ -485,8 +403,8 @@ var common = {
485
403
  };
486
404
 
487
405
  // YAML error class. http://stackoverflow.com/questions/8458984
488
- //
489
- function YAMLException$1(reason, mark) {
406
+
407
+ function YAMLException(reason, mark) {
490
408
  // Super constructor
491
409
  Error.call(this);
492
410
  this.name = 'YAMLException';
@@ -504,10 +422,10 @@ function YAMLException$1(reason, mark) {
504
422
  } // Inherit from Error
505
423
 
506
424
 
507
- YAMLException$1.prototype = Object.create(Error.prototype);
508
- YAMLException$1.prototype.constructor = YAMLException$1;
425
+ YAMLException.prototype = Object.create(Error.prototype);
426
+ YAMLException.prototype.constructor = YAMLException;
509
427
 
510
- YAMLException$1.prototype.toString = function toString(compact) {
428
+ YAMLException.prototype.toString = function toString(compact) {
511
429
  var result = this.name + ': ';
512
430
  result += this.reason || '(unknown reason)';
513
431
 
@@ -518,7 +436,7 @@ YAMLException$1.prototype.toString = function toString(compact) {
518
436
  return result;
519
437
  };
520
438
 
521
- var exception = YAMLException$1;
439
+ var exception = YAMLException;
522
440
 
523
441
  function Mark(name, buffer, position, line, column) {
524
442
  this.name = name;
@@ -603,7 +521,7 @@ function compileStyleAliases(map) {
603
521
  return result;
604
522
  }
605
523
 
606
- function Type$1(tag, options) {
524
+ function Type(tag, options) {
607
525
  options = options || {};
608
526
  Object.keys(options).forEach(function (name) {
609
527
  if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
@@ -633,7 +551,7 @@ function Type$1(tag, options) {
633
551
  }
634
552
  }
635
553
 
636
- var type = Type$1;
554
+ var type = Type;
637
555
 
638
556
  /*eslint-disable max-len*/
639
557
 
@@ -651,7 +569,7 @@ function compileList(schema, name, result) {
651
569
  });
652
570
  result.push(currentType);
653
571
  });
654
- return result.filter(function (type$$1, index) {
572
+ return result.filter(function (type, index) {
655
573
  return exclude.indexOf(index) === -1;
656
574
  });
657
575
  }
@@ -668,8 +586,8 @@ function compileMap()
668
586
  index,
669
587
  length;
670
588
 
671
- function collectType(type$$1) {
672
- result[type$$1.kind][type$$1.tag] = result['fallback'][type$$1.tag] = type$$1;
589
+ function collectType(type) {
590
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
673
591
  }
674
592
 
675
593
  for (index = 0, length = arguments.length; index < length; index += 1) {
@@ -679,12 +597,12 @@ function compileMap()
679
597
  return result;
680
598
  }
681
599
 
682
- function Schema$1(definition) {
600
+ function Schema(definition) {
683
601
  this.include = definition.include || [];
684
602
  this.implicit = definition.implicit || [];
685
603
  this.explicit = definition.explicit || [];
686
- this.implicit.forEach(function (type$$1) {
687
- if (type$$1.loadKind && type$$1.loadKind !== 'scalar') {
604
+ this.implicit.forEach(function (type) {
605
+ if (type.loadKind && type.loadKind !== 'scalar') {
688
606
  throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
689
607
  }
690
608
  });
@@ -693,14 +611,14 @@ function Schema$1(definition) {
693
611
  this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
694
612
  }
695
613
 
696
- Schema$1.DEFAULT = null;
614
+ Schema.DEFAULT = null;
697
615
 
698
- Schema$1.create = function createSchema() {
616
+ Schema.create = function createSchema() {
699
617
  var schemas, types;
700
618
 
701
619
  switch (arguments.length) {
702
620
  case 1:
703
- schemas = Schema$1.DEFAULT;
621
+ schemas = Schema.DEFAULT;
704
622
  types = arguments[0];
705
623
  break;
706
624
 
@@ -717,24 +635,24 @@ Schema$1.create = function createSchema() {
717
635
  types = common.toArray(types);
718
636
 
719
637
  if (!schemas.every(function (schema) {
720
- return schema instanceof Schema$1;
638
+ return schema instanceof Schema;
721
639
  })) {
722
640
  throw new exception('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
723
641
  }
724
642
 
725
- if (!types.every(function (type$$1) {
726
- return type$$1 instanceof type;
643
+ if (!types.every(function (type$1) {
644
+ return type$1 instanceof type;
727
645
  })) {
728
646
  throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
729
647
  }
730
648
 
731
- return new Schema$1({
649
+ return new Schema({
732
650
  include: schemas,
733
651
  explicit: types
734
652
  });
735
653
  };
736
654
 
737
- var schema = Schema$1;
655
+ var schema = Schema;
738
656
 
739
657
  var str = new type('tag:yaml.org,2002:str', {
740
658
  kind: 'scalar',
@@ -1242,6 +1160,18 @@ var merge = new type('tag:yaml.org,2002:merge', {
1242
1160
  resolve: resolveYamlMerge
1243
1161
  });
1244
1162
 
1163
+ function commonjsRequire () {
1164
+ throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
1165
+ }
1166
+
1167
+ function createCommonjsModule(fn, module) {
1168
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
1169
+ }
1170
+
1171
+ function getCjsExportFromNamespace (n) {
1172
+ return n && n['default'] || n;
1173
+ }
1174
+
1245
1175
  /*eslint-disable no-bitwise*/
1246
1176
 
1247
1177
 
@@ -1376,7 +1306,7 @@ var binary = new type('tag:yaml.org,2002:binary', {
1376
1306
  represent: representYamlBinary
1377
1307
  });
1378
1308
 
1379
- var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1309
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
1380
1310
  var _toString = Object.prototype.toString;
1381
1311
 
1382
1312
  function resolveYamlOmap(data) {
@@ -1395,7 +1325,7 @@ function resolveYamlOmap(data) {
1395
1325
  if (_toString.call(pair) !== '[object Object]') return false;
1396
1326
 
1397
1327
  for (pairKey in pair) {
1398
- if (_hasOwnProperty$1.call(pair, pairKey)) {
1328
+ if (_hasOwnProperty.call(pair, pairKey)) {
1399
1329
  if (!pairHasKey) pairHasKey = true;else return false;
1400
1330
  }
1401
1331
  }
@@ -1465,7 +1395,7 @@ var pairs = new type('tag:yaml.org,2002:pairs', {
1465
1395
  construct: constructYamlPairs
1466
1396
  });
1467
1397
 
1468
- var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1398
+ var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1469
1399
 
1470
1400
  function resolveYamlSet(data) {
1471
1401
  if (data === null) return true;
@@ -1473,7 +1403,7 @@ function resolveYamlSet(data) {
1473
1403
  object = data;
1474
1404
 
1475
1405
  for (key in object) {
1476
- if (_hasOwnProperty$2.call(object, key)) {
1406
+ if (_hasOwnProperty$1.call(object, key)) {
1477
1407
  if (object[key] !== null) return false;
1478
1408
  }
1479
1409
  }
@@ -1485,7 +1415,7 @@ function constructYamlSet(data) {
1485
1415
  return data !== null ? data : {};
1486
1416
  }
1487
1417
 
1488
- var set$1 = new type('tag:yaml.org,2002:set', {
1418
+ var set = new type('tag:yaml.org,2002:set', {
1489
1419
  kind: 'mapping',
1490
1420
  resolve: resolveYamlSet,
1491
1421
  construct: constructYamlSet
@@ -1494,7 +1424,7 @@ var set$1 = new type('tag:yaml.org,2002:set', {
1494
1424
  var default_safe = new schema({
1495
1425
  include: [core],
1496
1426
  implicit: [timestamp, merge],
1497
- explicit: [binary, omap, pairs, set$1]
1427
+ explicit: [binary, omap, pairs, set]
1498
1428
  });
1499
1429
 
1500
1430
  function resolveJavascriptUndefined() {
@@ -1668,7 +1598,7 @@ var default_full = schema.DEFAULT = new schema({
1668
1598
  /*eslint-disable max-len,no-use-before-define*/
1669
1599
 
1670
1600
 
1671
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
1601
+ var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1672
1602
  var CONTEXT_FLOW_IN = 1;
1673
1603
  var CONTEXT_FLOW_OUT = 2;
1674
1604
  var CONTEXT_BLOCK_IN = 3;
@@ -1935,7 +1865,7 @@ var directiveHandlers = {
1935
1865
  throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
1936
1866
  }
1937
1867
 
1938
- if (_hasOwnProperty.call(state.tagMap, handle)) {
1868
+ if (_hasOwnProperty$2.call(state.tagMap, handle)) {
1939
1869
  throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
1940
1870
  }
1941
1871
 
@@ -1981,7 +1911,7 @@ function mergeMappings(state, destination, source, overridableKeys) {
1981
1911
  for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
1982
1912
  key = sourceKeys[index];
1983
1913
 
1984
- if (!_hasOwnProperty.call(destination, key)) {
1914
+ if (!_hasOwnProperty$2.call(destination, key)) {
1985
1915
  destination[key] = source[key];
1986
1916
  overridableKeys[key] = true;
1987
1917
  }
@@ -2029,7 +1959,7 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
2029
1959
  mergeMappings(state, _result, valueNode, overridableKeys);
2030
1960
  }
2031
1961
  } else {
2032
- if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
1962
+ if (!state.json && !_hasOwnProperty$2.call(overridableKeys, keyNode) && _hasOwnProperty$2.call(_result, keyNode)) {
2033
1963
  state.line = startLine || state.line;
2034
1964
  state.position = startPos || state.position;
2035
1965
  throwError(state, 'duplicated mapping key');
@@ -2944,7 +2874,7 @@ function readTagProperty(state) {
2944
2874
 
2945
2875
  if (isVerbatim) {
2946
2876
  state.tag = tagName;
2947
- } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
2877
+ } else if (_hasOwnProperty$2.call(state.tagMap, tagHandle)) {
2948
2878
  state.tag = state.tagMap[tagHandle] + tagName;
2949
2879
  } else if (tagHandle === '!') {
2950
2880
  state.tag = '!' + tagName;
@@ -3133,7 +3063,7 @@ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact
3133
3063
  break;
3134
3064
  }
3135
3065
  }
3136
- } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
3066
+ } else if (_hasOwnProperty$2.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
3137
3067
  type = state.typeMap[state.kind || 'fallback'][state.tag];
3138
3068
 
3139
3069
  if (state.result !== null && type.kind !== state.kind) {
@@ -3227,7 +3157,7 @@ function readDocument(state) {
3227
3157
 
3228
3158
  if (ch !== 0) readLineBreak(state);
3229
3159
 
3230
- if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
3160
+ if (_hasOwnProperty$2.call(directiveHandlers, directiveName)) {
3231
3161
  directiveHandlers[directiveName](state, directiveName, directiveArgs);
3232
3162
  } else {
3233
3163
  throwWarning(state, 'unknown document directive "' + directiveName + '"');
@@ -3314,7 +3244,7 @@ function loadDocuments(input, options) {
3314
3244
  return state.documents;
3315
3245
  }
3316
3246
 
3317
- function loadAll$1(input, iterator, options) {
3247
+ function loadAll(input, iterator, options) {
3318
3248
  var documents = loadDocuments(input, options),
3319
3249
  index,
3320
3250
  length;
@@ -3328,7 +3258,7 @@ function loadAll$1(input, iterator, options) {
3328
3258
  }
3329
3259
  }
3330
3260
 
3331
- function load$1(input, options) {
3261
+ function load(input, options) {
3332
3262
  var documents = loadDocuments(input, options);
3333
3263
 
3334
3264
  if (documents.length === 0) {
@@ -3341,28 +3271,28 @@ function load$1(input, options) {
3341
3271
  throw new exception('expected a single document in the stream, but found more');
3342
3272
  }
3343
3273
 
3344
- function safeLoadAll$1(input, output, options) {
3274
+ function safeLoadAll(input, output, options) {
3345
3275
  if (typeof output === 'function') {
3346
- loadAll$1(input, output, common.extend({
3276
+ loadAll(input, output, common.extend({
3347
3277
  schema: default_safe
3348
3278
  }, options));
3349
3279
  } else {
3350
- return loadAll$1(input, common.extend({
3280
+ return loadAll(input, common.extend({
3351
3281
  schema: default_safe
3352
3282
  }, options));
3353
3283
  }
3354
3284
  }
3355
3285
 
3356
- function safeLoad$1(input, options) {
3357
- return load$1(input, common.extend({
3286
+ function safeLoad(input, options) {
3287
+ return load(input, common.extend({
3358
3288
  schema: default_safe
3359
3289
  }, options));
3360
3290
  }
3361
3291
 
3362
- var loadAll_1 = loadAll$1;
3363
- var load_1 = load$1;
3364
- var safeLoadAll_1 = safeLoadAll$1;
3365
- var safeLoad_1 = safeLoad$1;
3292
+ var loadAll_1 = loadAll;
3293
+ var load_1 = load;
3294
+ var safeLoadAll_1 = safeLoadAll;
3295
+ var safeLoad_1 = safeLoad;
3366
3296
  var loader = {
3367
3297
  loadAll: loadAll_1,
3368
3298
  load: load_1,
@@ -3612,11 +3542,11 @@ function needIndentIndicator(string) {
3612
3542
  return leadingSpaceRe.test(string);
3613
3543
  }
3614
3544
 
3615
- var STYLE_PLAIN = 1;
3616
- var STYLE_SINGLE = 2;
3617
- var STYLE_LITERAL = 3;
3618
- var STYLE_FOLDED = 4;
3619
- var STYLE_DOUBLE = 5; // Determines which scalar styles are possible and returns the preferred style.
3545
+ var STYLE_PLAIN = 1,
3546
+ STYLE_SINGLE = 2,
3547
+ STYLE_LITERAL = 3,
3548
+ STYLE_FOLDED = 4,
3549
+ STYLE_DOUBLE = 5; // Determines which scalar styles are possible and returns the preferred style.
3620
3550
  // lineWidth = -1 => no limit.
3621
3551
  // Pre-conditions: str.length > 0.
3622
3552
  // Post-conditions:
@@ -3738,7 +3668,7 @@ function writeScalar(state, string, level, iskey) {
3738
3668
  return '>' + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
3739
3669
 
3740
3670
  case STYLE_DOUBLE:
3741
- return '"' + escapeString(string, lineWidth) + '"';
3671
+ return '"' + escapeString(string) + '"';
3742
3672
 
3743
3673
  default:
3744
3674
  throw new exception('impossible error: invalid scalar style');
@@ -4183,7 +4113,7 @@ function inspectNode(object, objects, duplicatesIndexes) {
4183
4113
  }
4184
4114
  }
4185
4115
 
4186
- function dump$1(input, options) {
4116
+ function dump(input, options) {
4187
4117
  options = options || {};
4188
4118
  var state = new State$1(options);
4189
4119
  if (!state.noRefs) getDuplicateReferences(input, state);
@@ -4191,14 +4121,14 @@ function dump$1(input, options) {
4191
4121
  return '';
4192
4122
  }
4193
4123
 
4194
- function safeDump$1(input, options) {
4195
- return dump$1(input, common.extend({
4124
+ function safeDump(input, options) {
4125
+ return dump(input, common.extend({
4196
4126
  schema: default_safe
4197
4127
  }, options));
4198
4128
  }
4199
4129
 
4200
- var dump_1 = dump$1;
4201
- var safeDump_1 = safeDump$1;
4130
+ var dump_1 = dump;
4131
+ var safeDump_1 = safeDump;
4202
4132
  var dumper = {
4203
4133
  dump: dump_1,
4204
4134
  safeDump: safeDump_1
@@ -4210,20 +4140,20 @@ function deprecated(name) {
4210
4140
  };
4211
4141
  }
4212
4142
 
4213
- var Type = type;
4214
- var Schema = schema;
4143
+ var Type$1 = type;
4144
+ var Schema$1 = schema;
4215
4145
  var FAILSAFE_SCHEMA = failsafe;
4216
4146
  var JSON_SCHEMA = json;
4217
4147
  var CORE_SCHEMA = core;
4218
4148
  var DEFAULT_SAFE_SCHEMA = default_safe;
4219
4149
  var DEFAULT_FULL_SCHEMA = default_full;
4220
- var load = loader.load;
4221
- var loadAll = loader.loadAll;
4222
- var safeLoad = loader.safeLoad;
4223
- var safeLoadAll = loader.safeLoadAll;
4224
- var dump = dumper.dump;
4225
- var safeDump = dumper.safeDump;
4226
- var YAMLException = exception; // Deprecated schema names from JS-YAML 2.0.x
4150
+ var load$1 = loader.load;
4151
+ var loadAll$1 = loader.loadAll;
4152
+ var safeLoad$1 = loader.safeLoad;
4153
+ var safeLoadAll$1 = loader.safeLoadAll;
4154
+ var dump$1 = dumper.dump;
4155
+ var safeDump$1 = dumper.safeDump;
4156
+ var YAMLException$1 = exception; // Deprecated schema names from JS-YAML 2.0.x
4227
4157
 
4228
4158
  var MINIMAL_SCHEMA = failsafe;
4229
4159
  var SAFE_SCHEMA = default_safe;
@@ -4233,21 +4163,21 @@ var scan = deprecated('scan');
4233
4163
  var parse = deprecated('parse');
4234
4164
  var compose = deprecated('compose');
4235
4165
  var addConstructor = deprecated('addConstructor');
4236
- var jsYaml$2 = {
4237
- Type: Type,
4238
- Schema: Schema,
4166
+ var jsYaml = {
4167
+ Type: Type$1,
4168
+ Schema: Schema$1,
4239
4169
  FAILSAFE_SCHEMA: FAILSAFE_SCHEMA,
4240
4170
  JSON_SCHEMA: JSON_SCHEMA,
4241
4171
  CORE_SCHEMA: CORE_SCHEMA,
4242
4172
  DEFAULT_SAFE_SCHEMA: DEFAULT_SAFE_SCHEMA,
4243
4173
  DEFAULT_FULL_SCHEMA: DEFAULT_FULL_SCHEMA,
4244
- load: load,
4245
- loadAll: loadAll,
4246
- safeLoad: safeLoad,
4247
- safeLoadAll: safeLoadAll,
4248
- dump: dump,
4249
- safeDump: safeDump,
4250
- YAMLException: YAMLException,
4174
+ load: load$1,
4175
+ loadAll: loadAll$1,
4176
+ safeLoad: safeLoad$1,
4177
+ safeLoadAll: safeLoadAll$1,
4178
+ dump: dump$1,
4179
+ safeDump: safeDump$1,
4180
+ YAMLException: YAMLException$1,
4251
4181
  MINIMAL_SCHEMA: MINIMAL_SCHEMA,
4252
4182
  SAFE_SCHEMA: SAFE_SCHEMA,
4253
4183
  DEFAULT_SCHEMA: DEFAULT_SCHEMA,
@@ -4257,117 +4187,102 @@ var jsYaml$2 = {
4257
4187
  addConstructor: addConstructor
4258
4188
  };
4259
4189
 
4260
- var jsYaml = jsYaml$2;
4261
-
4262
- var resolveFrom_1 = createCommonjsModule(function (module) {
4263
- 'use strict';
4264
-
4265
- var resolveFrom = function resolveFrom(fromDir, moduleId, silent) {
4266
- if (typeof fromDir !== 'string') {
4267
- throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
4268
- }
4190
+ var jsYaml$1 = jsYaml;
4269
4191
 
4270
- if (typeof moduleId !== 'string') {
4271
- throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
4272
- }
4192
+ var resolveFrom = function resolveFrom(fromDir, moduleId, silent) {
4193
+ if (typeof fromDir !== 'string') {
4194
+ throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
4195
+ }
4273
4196
 
4274
- fromDir = path.resolve(fromDir);
4275
- var fromFile = path.join(fromDir, 'noop.js');
4197
+ if (typeof moduleId !== 'string') {
4198
+ throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
4199
+ }
4276
4200
 
4277
- var resolveFileName = function resolveFileName() {
4278
- return module$1._resolveFilename(moduleId, {
4279
- id: fromFile,
4280
- filename: fromFile,
4281
- paths: module$1._nodeModulePaths(fromDir)
4282
- });
4283
- };
4201
+ fromDir = path.resolve(fromDir);
4202
+ var fromFile = path.join(fromDir, 'noop.js');
4284
4203
 
4285
- if (silent) {
4286
- try {
4287
- return resolveFileName();
4288
- } catch (err) {
4289
- return null;
4290
- }
4291
- }
4292
-
4293
- return resolveFileName();
4204
+ var resolveFileName = function resolveFileName() {
4205
+ return module$1._resolveFilename(moduleId, {
4206
+ id: fromFile,
4207
+ filename: fromFile,
4208
+ paths: module$1._nodeModulePaths(fromDir)
4209
+ });
4294
4210
  };
4295
4211
 
4296
- module.exports = function (fromDir, moduleId) {
4297
- return resolveFrom(fromDir, moduleId);
4298
- };
4212
+ if (silent) {
4213
+ try {
4214
+ return resolveFileName();
4215
+ } catch (err) {
4216
+ return null;
4217
+ }
4218
+ }
4299
4219
 
4300
- module.exports.silent = function (fromDir, moduleId) {
4301
- return resolveFrom(fromDir, moduleId, true);
4302
- };
4303
- });
4220
+ return resolveFileName();
4221
+ };
4304
4222
 
4305
- var callsites = createCommonjsModule(function (module) {
4306
- 'use strict';
4223
+ var resolveFrom_1 = function resolveFrom_1(fromDir, moduleId) {
4224
+ return resolveFrom(fromDir, moduleId);
4225
+ };
4307
4226
 
4308
- module.exports = function () {
4309
- var _ = Error.prepareStackTrace;
4227
+ var silent = function silent(fromDir, moduleId) {
4228
+ return resolveFrom(fromDir, moduleId, true);
4229
+ };
4230
+ resolveFrom_1.silent = silent;
4310
4231
 
4311
- Error.prepareStackTrace = function (_, stack) {
4312
- return stack;
4313
- };
4232
+ var callsites = function callsites() {
4233
+ var _ = Error.prepareStackTrace;
4314
4234
 
4315
- var stack = new Error().stack.slice(1);
4316
- Error.prepareStackTrace = _;
4235
+ Error.prepareStackTrace = function (_, stack) {
4317
4236
  return stack;
4318
4237
  };
4319
- });
4320
4238
 
4321
- var callerCallsite = createCommonjsModule(function (module) {
4322
- 'use strict';
4239
+ var stack = new Error().stack.slice(1);
4240
+ Error.prepareStackTrace = _;
4241
+ return stack;
4242
+ };
4323
4243
 
4324
- module.exports = function () {
4325
- var c = callsites();
4326
- var caller;
4244
+ var callerCallsite = function callerCallsite() {
4245
+ var c = callsites();
4246
+ var caller;
4327
4247
 
4328
- for (var i = 0; i < c.length; i++) {
4329
- var hasReceiver = c[i].getTypeName() !== null;
4248
+ for (var i = 0; i < c.length; i++) {
4249
+ var hasReceiver = c[i].getTypeName() !== null;
4330
4250
 
4331
- if (hasReceiver) {
4332
- caller = i;
4333
- break;
4334
- }
4251
+ if (hasReceiver) {
4252
+ caller = i;
4253
+ break;
4335
4254
  }
4255
+ }
4336
4256
 
4337
- return c[caller];
4338
- };
4339
- });
4257
+ return c[caller];
4258
+ };
4340
4259
 
4341
4260
  var callerPath = function callerPath() {
4342
4261
  return callerCallsite().getFileName();
4343
4262
  };
4344
4263
 
4345
- var importFresh = createCommonjsModule(function (module) {
4346
- 'use strict';
4347
-
4348
- module.exports = function (moduleId) {
4349
- if (typeof moduleId !== 'string') {
4350
- throw new TypeError('Expected a string');
4351
- }
4264
+ var importFresh = function importFresh(moduleId) {
4265
+ if (typeof moduleId !== 'string') {
4266
+ throw new TypeError('Expected a string');
4267
+ }
4352
4268
 
4353
- var filePath = resolveFrom_1(path.dirname(callerPath()), moduleId); // Delete itself from module parent
4269
+ var filePath = resolveFrom_1(path.dirname(callerPath()), moduleId); // Delete itself from module parent
4354
4270
 
4355
- if (require.cache[filePath] && require.cache[filePath].parent) {
4356
- var i = require.cache[filePath].parent.children.length;
4271
+ if (require.cache[filePath] && require.cache[filePath].parent) {
4272
+ var i = require.cache[filePath].parent.children.length;
4357
4273
 
4358
- while (i--) {
4359
- if (require.cache[filePath].parent.children[i].id === filePath) {
4360
- require.cache[filePath].parent.children.splice(i, 1);
4361
- }
4274
+ while (i--) {
4275
+ if (require.cache[filePath].parent.children[i].id === filePath) {
4276
+ require.cache[filePath].parent.children.splice(i, 1);
4362
4277
  }
4363
- } // Delete module from cache
4278
+ }
4279
+ } // Delete module from cache
4364
4280
 
4365
4281
 
4366
- delete require.cache[filePath]; // Return fresh module
4282
+ delete require.cache[filePath]; // Return fresh module
4367
4283
 
4368
- return require(filePath);
4369
- };
4370
- });
4284
+ return require(filePath);
4285
+ };
4371
4286
 
4372
4287
  function loadJs(filepath) {
4373
4288
  var result = importFresh(filepath);
@@ -4376,7 +4291,7 @@ function loadJs(filepath) {
4376
4291
 
4377
4292
  function loadJson(filepath, content) {
4378
4293
  try {
4379
- return parseJson(content);
4294
+ return parseJson$1(content);
4380
4295
  } catch (err) {
4381
4296
  err.message = `JSON Error in ${filepath}:\n${err.message}`;
4382
4297
  throw err;
@@ -4384,7 +4299,7 @@ function loadJson(filepath, content) {
4384
4299
  }
4385
4300
 
4386
4301
  function loadYaml(filepath, content) {
4387
- return jsYaml.safeLoad(content, {
4302
+ return jsYaml$1.safeLoad(content, {
4388
4303
  filename: filepath
4389
4304
  });
4390
4305
  }
@@ -4428,6 +4343,7 @@ readFile.sync = function readFileSync(filepath, options) {
4428
4343
  var readFile_1 = readFile;
4429
4344
 
4430
4345
  //
4346
+
4431
4347
  function cacheWrapper(cache, key, fn) {
4432
4348
  if (!cache) {
4433
4349
  return fn();
@@ -4523,6 +4439,29 @@ getDirectory.sync = function getDirectorySync(filepath) {
4523
4439
 
4524
4440
  var getDirectory_1 = getDirectory;
4525
4441
 
4442
+ //
4443
+ // strings or arrays of strings. Property names that are found on the source
4444
+ // object are used directly (even if they include a period).
4445
+ // Nested property names that include periods, within a path, are only
4446
+ // understood in array paths.
4447
+
4448
+ function getPropertyByPath(source, path) {
4449
+ if (typeof path === 'string' && source.hasOwnProperty(path)) {
4450
+ return source[path];
4451
+ }
4452
+
4453
+ var parsedPath = typeof path === 'string' ? path.split('.') : path;
4454
+ return parsedPath.reduce(function (previous, key) {
4455
+ if (previous === undefined) {
4456
+ return previous;
4457
+ }
4458
+
4459
+ return previous[key];
4460
+ }, source);
4461
+ }
4462
+
4463
+ var getPropertyByPath_1 = getPropertyByPath;
4464
+
4526
4465
  var MODE_SYNC = 'sync'; // An object value represents a config object.
4527
4466
  // null represents that the loader did not find anything relevant.
4528
4467
  // undefined represents that the loader found something relevant
@@ -4739,7 +4678,7 @@ function () {
4739
4678
  key: "loadPackageProp",
4740
4679
  value: function loadPackageProp(filepath, content) {
4741
4680
  var parsedContent = loaders.loadJson(filepath, content);
4742
- var packagePropValue = parsedContent[this.config.packageProp];
4681
+ var packagePropValue = getPropertyByPath_1(parsedContent, this.config.packageProp);
4743
4682
  return packagePropValue || null;
4744
4683
  }
4745
4684
  }, {
@@ -4969,14 +4908,13 @@ function identity(x) {
4969
4908
  return x;
4970
4909
  }
4971
4910
 
4972
- var findParentDir$1 = createCommonjsModule(function (module, exports) {
4973
- 'use strict';
4911
+ var findParentDir = createCommonjsModule(function (module, exports) {
4974
4912
 
4975
4913
  var exists = fs.exists || path.exists,
4976
4914
  existsSync = fs.existsSync || path.existsSync;
4977
4915
 
4978
- function splitPath(path$$2) {
4979
- var parts = path$$2.split(/(\/|\\)/);
4916
+ function splitPath(path) {
4917
+ var parts = path.split(/(\/|\\)/);
4980
4918
  if (!parts.length) return parts; // when path starts with a slash, the first part is empty string
4981
4919
 
4982
4920
  return !parts[0].length ? parts.slice(1) : parts;
@@ -5006,278 +4944,565 @@ var findParentDir$1 = createCommonjsModule(function (module, exports) {
5006
4944
  return testDir(splitPath(currentFullPath));
5007
4945
  };
5008
4946
  });
4947
+ var findParentDir_1 = findParentDir.sync;
4948
+
4949
+ // Returns a wrapper function that returns a wrapped callback
4950
+ // The wrapper function should do some stuff, and return a
4951
+ // presumably different callback function.
4952
+ // This makes sure that own properties are retained, so that
4953
+ // decorations and such are not lost along the way.
4954
+ var wrappy_1 = wrappy;
4955
+
4956
+ function wrappy(fn, cb) {
4957
+ if (fn && cb) return wrappy(fn)(cb);
4958
+ if (typeof fn !== 'function') throw new TypeError('need wrapper function');
4959
+ Object.keys(fn).forEach(function (k) {
4960
+ wrapper[k] = fn[k];
4961
+ });
4962
+ return wrapper;
5009
4963
 
5010
- var bufferStream = createCommonjsModule(function (module) {
5011
- 'use strict';
4964
+ function wrapper() {
4965
+ var args = new Array(arguments.length);
5012
4966
 
5013
- var PassThrough = stream.PassThrough;
4967
+ for (var i = 0; i < args.length; i++) {
4968
+ args[i] = arguments[i];
4969
+ }
5014
4970
 
5015
- module.exports = function (opts) {
5016
- opts = Object.assign({}, opts);
5017
- var array = opts.array;
5018
- var encoding = opts.encoding;
5019
- var buffer = encoding === 'buffer';
5020
- var objectMode = false;
4971
+ var ret = fn.apply(this, args);
4972
+ var cb = args[args.length - 1];
5021
4973
 
5022
- if (array) {
5023
- objectMode = !(encoding || buffer);
5024
- } else {
5025
- encoding = encoding || 'utf8';
4974
+ if (typeof ret === 'function' && ret !== cb) {
4975
+ Object.keys(cb).forEach(function (k) {
4976
+ ret[k] = cb[k];
4977
+ });
5026
4978
  }
5027
4979
 
5028
- if (buffer) {
5029
- encoding = null;
5030
- }
4980
+ return ret;
4981
+ }
4982
+ }
5031
4983
 
5032
- var len = 0;
5033
- var ret = [];
5034
- var stream$$1 = new PassThrough({
5035
- objectMode
5036
- });
4984
+ var once_1 = wrappy_1(once);
4985
+ var strict = wrappy_1(onceStrict);
4986
+ once.proto = once(function () {
4987
+ Object.defineProperty(Function.prototype, 'once', {
4988
+ value: function value() {
4989
+ return once(this);
4990
+ },
4991
+ configurable: true
4992
+ });
4993
+ Object.defineProperty(Function.prototype, 'onceStrict', {
4994
+ value: function value() {
4995
+ return onceStrict(this);
4996
+ },
4997
+ configurable: true
4998
+ });
4999
+ });
5037
5000
 
5038
- if (encoding) {
5039
- stream$$1.setEncoding(encoding);
5040
- }
5001
+ function once(fn) {
5002
+ var f = function f() {
5003
+ if (f.called) return f.value;
5004
+ f.called = true;
5005
+ return f.value = fn.apply(this, arguments);
5006
+ };
5007
+
5008
+ f.called = false;
5009
+ return f;
5010
+ }
5041
5011
 
5042
- stream$$1.on('data', function (chunk) {
5043
- ret.push(chunk);
5012
+ function onceStrict(fn) {
5013
+ var f = function f() {
5014
+ if (f.called) throw new Error(f.onceError);
5015
+ f.called = true;
5016
+ return f.value = fn.apply(this, arguments);
5017
+ };
5044
5018
 
5045
- if (objectMode) {
5046
- len = ret.length;
5047
- } else {
5048
- len += chunk.length;
5049
- }
5019
+ var name = fn.name || 'Function wrapped with `once`';
5020
+ f.onceError = name + " shouldn't be called more than once";
5021
+ f.called = false;
5022
+ return f;
5023
+ }
5024
+ once_1.strict = strict;
5025
+
5026
+ var noop = function noop() {};
5027
+
5028
+ var isRequest = function isRequest(stream) {
5029
+ return stream.setHeader && typeof stream.abort === 'function';
5030
+ };
5031
+
5032
+ var isChildProcess = function isChildProcess(stream) {
5033
+ return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3;
5034
+ };
5035
+
5036
+ var eos = function eos(stream, opts, callback) {
5037
+ if (typeof opts === 'function') return eos(stream, null, opts);
5038
+ if (!opts) opts = {};
5039
+ callback = once_1(callback || noop);
5040
+ var ws = stream._writableState;
5041
+ var rs = stream._readableState;
5042
+ var readable = opts.readable || opts.readable !== false && stream.readable;
5043
+ var writable = opts.writable || opts.writable !== false && stream.writable;
5044
+
5045
+ var onlegacyfinish = function onlegacyfinish() {
5046
+ if (!stream.writable) onfinish();
5047
+ };
5048
+
5049
+ var onfinish = function onfinish() {
5050
+ writable = false;
5051
+ if (!readable) callback.call(stream);
5052
+ };
5053
+
5054
+ var onend = function onend() {
5055
+ readable = false;
5056
+ if (!writable) callback.call(stream);
5057
+ };
5058
+
5059
+ var onexit = function onexit(exitCode) {
5060
+ callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
5061
+ };
5062
+
5063
+ var onerror = function onerror(err) {
5064
+ callback.call(stream, err);
5065
+ };
5066
+
5067
+ var onclose = function onclose() {
5068
+ if (readable && !(rs && rs.ended)) return callback.call(stream, new Error('premature close'));
5069
+ if (writable && !(ws && ws.ended)) return callback.call(stream, new Error('premature close'));
5070
+ };
5071
+
5072
+ var onrequest = function onrequest() {
5073
+ stream.req.on('finish', onfinish);
5074
+ };
5075
+
5076
+ if (isRequest(stream)) {
5077
+ stream.on('complete', onfinish);
5078
+ stream.on('abort', onclose);
5079
+ if (stream.req) onrequest();else stream.on('request', onrequest);
5080
+ } else if (writable && !ws) {
5081
+ // legacy streams
5082
+ stream.on('end', onlegacyfinish);
5083
+ stream.on('close', onlegacyfinish);
5084
+ }
5085
+
5086
+ if (isChildProcess(stream)) stream.on('exit', onexit);
5087
+ stream.on('end', onend);
5088
+ stream.on('finish', onfinish);
5089
+ if (opts.error !== false) stream.on('error', onerror);
5090
+ stream.on('close', onclose);
5091
+ return function () {
5092
+ stream.removeListener('complete', onfinish);
5093
+ stream.removeListener('abort', onclose);
5094
+ stream.removeListener('request', onrequest);
5095
+ if (stream.req) stream.req.removeListener('finish', onfinish);
5096
+ stream.removeListener('end', onlegacyfinish);
5097
+ stream.removeListener('close', onlegacyfinish);
5098
+ stream.removeListener('finish', onfinish);
5099
+ stream.removeListener('exit', onexit);
5100
+ stream.removeListener('end', onend);
5101
+ stream.removeListener('error', onerror);
5102
+ stream.removeListener('close', onclose);
5103
+ };
5104
+ };
5105
+
5106
+ var endOfStream = eos;
5107
+
5108
+ var noop$1 = function noop() {};
5109
+
5110
+ var ancient = /^v?\.0/.test(process.version);
5111
+
5112
+ var isFn = function isFn(fn) {
5113
+ return typeof fn === 'function';
5114
+ };
5115
+
5116
+ var isFS = function isFS(stream) {
5117
+ if (!ancient) return false; // newer node version do not need to care about fs is a special way
5118
+
5119
+ if (!fs) return false; // browser
5120
+
5121
+ return (stream instanceof (fs.ReadStream || noop$1) || stream instanceof (fs.WriteStream || noop$1)) && isFn(stream.close);
5122
+ };
5123
+
5124
+ var isRequest$1 = function isRequest(stream) {
5125
+ return stream.setHeader && isFn(stream.abort);
5126
+ };
5127
+
5128
+ var destroyer = function destroyer(stream, reading, writing, callback) {
5129
+ callback = once_1(callback);
5130
+ var closed = false;
5131
+ stream.on('close', function () {
5132
+ closed = true;
5133
+ });
5134
+ endOfStream(stream, {
5135
+ readable: reading,
5136
+ writable: writing
5137
+ }, function (err) {
5138
+ if (err) return callback(err);
5139
+ closed = true;
5140
+ callback();
5141
+ });
5142
+ var destroyed = false;
5143
+ return function (err) {
5144
+ if (closed) return;
5145
+ if (destroyed) return;
5146
+ destroyed = true;
5147
+ if (isFS(stream)) return stream.close(noop$1); // use close for fs streams to avoid fd leaks
5148
+
5149
+ if (isRequest$1(stream)) return stream.abort(); // request.destroy just do .end - .abort is what we want
5150
+
5151
+ if (isFn(stream.destroy)) return stream.destroy();
5152
+ callback(err || new Error('stream was destroyed'));
5153
+ };
5154
+ };
5155
+
5156
+ var call = function call(fn) {
5157
+ fn();
5158
+ };
5159
+
5160
+ var pipe = function pipe(from, to) {
5161
+ return from.pipe(to);
5162
+ };
5163
+
5164
+ var pump = function pump() {
5165
+ var streams = Array.prototype.slice.call(arguments);
5166
+ var callback = isFn(streams[streams.length - 1] || noop$1) && streams.pop() || noop$1;
5167
+ if (Array.isArray(streams[0])) streams = streams[0];
5168
+ if (streams.length < 2) throw new Error('pump requires two streams per minimum');
5169
+ var error;
5170
+ var destroys = streams.map(function (stream, i) {
5171
+ var reading = i < streams.length - 1;
5172
+ var writing = i > 0;
5173
+ return destroyer(stream, reading, writing, function (err) {
5174
+ if (!error) error = err;
5175
+ if (err) destroys.forEach(call);
5176
+ if (reading) return;
5177
+ destroys.forEach(call);
5178
+ callback(error);
5050
5179
  });
5180
+ });
5181
+ return streams.reduce(pipe);
5182
+ };
5051
5183
 
5052
- stream$$1.getBufferedValue = function () {
5053
- if (array) {
5054
- return ret;
5055
- }
5184
+ var pump_1 = pump;
5056
5185
 
5057
- return buffer ? Buffer.concat(ret, len) : ret.join('');
5058
- };
5186
+ var PassThrough = stream.PassThrough;
5059
5187
 
5060
- stream$$1.getBufferedLength = function () {
5061
- return len;
5062
- };
5188
+ var bufferStream = function bufferStream(options) {
5189
+ options = Object.assign({}, options);
5190
+ var _options = options,
5191
+ array = _options.array;
5192
+ var _options2 = options,
5193
+ encoding = _options2.encoding;
5194
+ var buffer = encoding === 'buffer';
5195
+ var objectMode = false;
5196
+
5197
+ if (array) {
5198
+ objectMode = !(encoding || buffer);
5199
+ } else {
5200
+ encoding = encoding || 'utf8';
5201
+ }
5202
+
5203
+ if (buffer) {
5204
+ encoding = null;
5205
+ }
5063
5206
 
5064
- return stream$$1;
5207
+ var len = 0;
5208
+ var ret = [];
5209
+ var stream = new PassThrough({
5210
+ objectMode
5211
+ });
5212
+
5213
+ if (encoding) {
5214
+ stream.setEncoding(encoding);
5215
+ }
5216
+
5217
+ stream.on('data', function (chunk) {
5218
+ ret.push(chunk);
5219
+
5220
+ if (objectMode) {
5221
+ len = ret.length;
5222
+ } else {
5223
+ len += chunk.length;
5224
+ }
5225
+ });
5226
+
5227
+ stream.getBufferedValue = function () {
5228
+ if (array) {
5229
+ return ret;
5230
+ }
5231
+
5232
+ return buffer ? Buffer.concat(ret, len) : ret.join('');
5065
5233
  };
5066
- });
5067
5234
 
5068
- function getStream(inputStream, opts) {
5235
+ stream.getBufferedLength = function () {
5236
+ return len;
5237
+ };
5238
+
5239
+ return stream;
5240
+ };
5241
+
5242
+ var MaxBufferError =
5243
+ /*#__PURE__*/
5244
+ function (_Error) {
5245
+ _inherits(MaxBufferError, _Error);
5246
+
5247
+ function MaxBufferError() {
5248
+ var _this;
5249
+
5250
+ _classCallCheck(this, MaxBufferError);
5251
+
5252
+ _this = _possibleConstructorReturn(this, _getPrototypeOf(MaxBufferError).call(this, 'maxBuffer exceeded'));
5253
+ _this.name = 'MaxBufferError';
5254
+ return _this;
5255
+ }
5256
+
5257
+ return MaxBufferError;
5258
+ }(_wrapNativeSuper(Error));
5259
+
5260
+ function getStream(inputStream, options) {
5069
5261
  if (!inputStream) {
5070
5262
  return Promise.reject(new Error('Expected a stream'));
5071
5263
  }
5072
5264
 
5073
- opts = Object.assign({
5265
+ options = Object.assign({
5074
5266
  maxBuffer: Infinity
5075
- }, opts);
5076
- var maxBuffer = opts.maxBuffer;
5077
- var stream$$1;
5078
- var clean;
5079
- var p = new Promise(function (resolve, reject) {
5080
- var error = function error(err) {
5081
- if (err) {
5082
- // null check
5083
- err.bufferedData = stream$$1.getBufferedValue();
5267
+ }, options);
5268
+ var _options = options,
5269
+ maxBuffer = _options.maxBuffer;
5270
+ var stream;
5271
+ return new Promise(function (resolve, reject) {
5272
+ var rejectPromise = function rejectPromise(error) {
5273
+ if (error) {
5274
+ // A null check
5275
+ error.bufferedData = stream.getBufferedValue();
5084
5276
  }
5085
5277
 
5086
- reject(err);
5278
+ reject(error);
5087
5279
  };
5088
5280
 
5089
- stream$$1 = bufferStream(opts);
5090
- inputStream.once('error', error);
5091
- inputStream.pipe(stream$$1);
5092
- stream$$1.on('data', function () {
5093
- if (stream$$1.getBufferedLength() > maxBuffer) {
5094
- reject(new Error('maxBuffer exceeded'));
5281
+ stream = pump_1(inputStream, bufferStream(options), function (error) {
5282
+ if (error) {
5283
+ rejectPromise(error);
5284
+ return;
5095
5285
  }
5096
- });
5097
- stream$$1.once('error', error);
5098
- stream$$1.on('end', resolve);
5099
5286
 
5100
- clean = function clean() {
5101
- // some streams doesn't implement the `stream.Readable` interface correctly
5102
- if (inputStream.unpipe) {
5103
- inputStream.unpipe(stream$$1);
5287
+ resolve();
5288
+ });
5289
+ stream.on('data', function () {
5290
+ if (stream.getBufferedLength() > maxBuffer) {
5291
+ rejectPromise(new MaxBufferError());
5104
5292
  }
5105
- };
5106
- });
5107
- p.then(clean, clean);
5108
- return p.then(function () {
5109
- return stream$$1.getBufferedValue();
5293
+ });
5294
+ }).then(function () {
5295
+ return stream.getBufferedValue();
5110
5296
  });
5111
5297
  }
5112
5298
 
5113
5299
  var getStream_1 = getStream;
5114
5300
 
5115
- var buffer = function buffer(stream$$1, opts) {
5116
- return getStream(stream$$1, Object.assign({}, opts, {
5301
+ var buffer = function buffer(stream, options) {
5302
+ return getStream(stream, Object.assign({}, options, {
5117
5303
  encoding: 'buffer'
5118
5304
  }));
5119
5305
  };
5120
5306
 
5121
- var array = function array(stream$$1, opts) {
5122
- return getStream(stream$$1, Object.assign({}, opts, {
5307
+ var array = function array(stream, options) {
5308
+ return getStream(stream, Object.assign({}, options, {
5123
5309
  array: true
5124
5310
  }));
5125
5311
  };
5126
5312
 
5313
+ var MaxBufferError_1 = MaxBufferError;
5127
5314
  getStream_1.buffer = buffer;
5128
5315
  getStream_1.array = array;
5129
-
5130
- var vendors = [{
5131
- "name": "AppVeyor",
5132
- "constant": "APPVEYOR",
5133
- "env": "APPVEYOR",
5134
- "pr": "APPVEYOR_PULL_REQUEST_NUMBER"
5135
- }, {
5136
- "name": "Azure Pipelines",
5137
- "constant": "AZURE_PIPELINES",
5138
- "env": "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",
5139
- "pr": "SYSTEM_PULLREQUEST_PULLREQUESTID"
5140
- }, {
5141
- "name": "Bamboo",
5142
- "constant": "BAMBOO",
5143
- "env": "bamboo_planKey"
5144
- }, {
5145
- "name": "Bitbucket Pipelines",
5146
- "constant": "BITBUCKET",
5147
- "env": "BITBUCKET_COMMIT",
5148
- "pr": "BITBUCKET_PR_ID"
5149
- }, {
5150
- "name": "Bitrise",
5151
- "constant": "BITRISE",
5152
- "env": "BITRISE_IO",
5153
- "pr": "BITRISE_PULL_REQUEST"
5154
- }, {
5155
- "name": "Buddy",
5156
- "constant": "BUDDY",
5157
- "env": "BUDDY_WORKSPACE_ID",
5158
- "pr": "BUDDY_EXECUTION_PULL_REQUEST_ID"
5159
- }, {
5160
- "name": "Buildkite",
5161
- "constant": "BUILDKITE",
5162
- "env": "BUILDKITE",
5163
- "pr": {
5164
- "env": "BUILDKITE_PULL_REQUEST",
5165
- "ne": "false"
5166
- }
5167
- }, {
5168
- "name": "CircleCI",
5169
- "constant": "CIRCLE",
5170
- "env": "CIRCLECI",
5171
- "pr": "CIRCLE_PULL_REQUEST"
5172
- }, {
5173
- "name": "Cirrus CI",
5174
- "constant": "CIRRUS",
5175
- "env": "CIRRUS_CI",
5176
- "pr": "CIRRUS_PR"
5177
- }, {
5178
- "name": "AWS CodeBuild",
5179
- "constant": "CODEBUILD",
5180
- "env": "CODEBUILD_BUILD_ARN"
5181
- }, {
5182
- "name": "Codeship",
5183
- "constant": "CODESHIP",
5184
- "env": {
5185
- "CI_NAME": "codeship"
5186
- }
5187
- }, {
5188
- "name": "Drone",
5189
- "constant": "DRONE",
5190
- "env": "DRONE",
5191
- "pr": {
5192
- "DRONE_BUILD_EVENT": "pull_request"
5193
- }
5194
- }, {
5195
- "name": "dsari",
5196
- "constant": "DSARI",
5197
- "env": "DSARI"
5198
- }, {
5199
- "name": "GitLab CI",
5200
- "constant": "GITLAB",
5201
- "env": "GITLAB_CI"
5202
- }, {
5203
- "name": "GoCD",
5204
- "constant": "GOCD",
5205
- "env": "GO_PIPELINE_LABEL"
5206
- }, {
5207
- "name": "Hudson",
5208
- "constant": "HUDSON",
5209
- "env": "HUDSON_URL"
5210
- }, {
5211
- "name": "Jenkins",
5212
- "constant": "JENKINS",
5213
- "env": ["JENKINS_URL", "BUILD_ID"],
5214
- "pr": {
5215
- "any": ["ghprbPullId", "CHANGE_ID"]
5216
- }
5217
- }, {
5218
- "name": "Magnum CI",
5219
- "constant": "MAGNUM",
5220
- "env": "MAGNUM"
5221
- }, {
5222
- "name": "Netlify CI",
5223
- "constant": "NETLIFY",
5224
- "env": "NETLIFY_BUILD_BASE",
5225
- "pr": {
5226
- "env": "PULL_REQUEST",
5227
- "ne": "false"
5228
- }
5229
- }, {
5230
- "name": "Sail CI",
5231
- "constant": "SAIL",
5232
- "env": "SAILCI",
5233
- "pr": "SAIL_PULL_REQUEST_NUMBER"
5234
- }, {
5235
- "name": "Semaphore",
5236
- "constant": "SEMAPHORE",
5237
- "env": "SEMAPHORE",
5238
- "pr": "PULL_REQUEST_NUMBER"
5239
- }, {
5240
- "name": "Shippable",
5241
- "constant": "SHIPPABLE",
5242
- "env": "SHIPPABLE",
5243
- "pr": {
5244
- "IS_PULL_REQUEST": "true"
5245
- }
5246
- }, {
5247
- "name": "Solano CI",
5248
- "constant": "SOLANO",
5249
- "env": "TDDIUM",
5250
- "pr": "TDDIUM_PR_ID"
5251
- }, {
5252
- "name": "Strider CD",
5253
- "constant": "STRIDER",
5254
- "env": "STRIDER"
5255
- }, {
5256
- "name": "TaskCluster",
5257
- "constant": "TASKCLUSTER",
5258
- "env": ["TASK_ID", "RUN_ID"]
5259
- }, {
5260
- "name": "TeamCity",
5261
- "constant": "TEAMCITY",
5262
- "env": "TEAMCITY_VERSION"
5263
- }, {
5264
- "name": "Travis CI",
5265
- "constant": "TRAVIS",
5266
- "env": "TRAVIS",
5267
- "pr": {
5268
- "env": "TRAVIS_PULL_REQUEST",
5269
- "ne": "false"
5270
- }
5271
- }];
5272
-
5273
- var vendors$1 = Object.freeze({
5274
- default: vendors
5316
+ getStream_1.MaxBufferError = MaxBufferError_1;
5317
+
5318
+ var vendors = [
5319
+ {
5320
+ name: "AppVeyor",
5321
+ constant: "APPVEYOR",
5322
+ env: "APPVEYOR",
5323
+ pr: "APPVEYOR_PULL_REQUEST_NUMBER"
5324
+ },
5325
+ {
5326
+ name: "Azure Pipelines",
5327
+ constant: "AZURE_PIPELINES",
5328
+ env: "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",
5329
+ pr: "SYSTEM_PULLREQUEST_PULLREQUESTID"
5330
+ },
5331
+ {
5332
+ name: "Bamboo",
5333
+ constant: "BAMBOO",
5334
+ env: "bamboo_planKey"
5335
+ },
5336
+ {
5337
+ name: "Bitbucket Pipelines",
5338
+ constant: "BITBUCKET",
5339
+ env: "BITBUCKET_COMMIT",
5340
+ pr: "BITBUCKET_PR_ID"
5341
+ },
5342
+ {
5343
+ name: "Bitrise",
5344
+ constant: "BITRISE",
5345
+ env: "BITRISE_IO",
5346
+ pr: "BITRISE_PULL_REQUEST"
5347
+ },
5348
+ {
5349
+ name: "Buddy",
5350
+ constant: "BUDDY",
5351
+ env: "BUDDY_WORKSPACE_ID",
5352
+ pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
5353
+ },
5354
+ {
5355
+ name: "Buildkite",
5356
+ constant: "BUILDKITE",
5357
+ env: "BUILDKITE",
5358
+ pr: {
5359
+ env: "BUILDKITE_PULL_REQUEST",
5360
+ ne: "false"
5361
+ }
5362
+ },
5363
+ {
5364
+ name: "CircleCI",
5365
+ constant: "CIRCLE",
5366
+ env: "CIRCLECI",
5367
+ pr: "CIRCLE_PULL_REQUEST"
5368
+ },
5369
+ {
5370
+ name: "Cirrus CI",
5371
+ constant: "CIRRUS",
5372
+ env: "CIRRUS_CI",
5373
+ pr: "CIRRUS_PR"
5374
+ },
5375
+ {
5376
+ name: "AWS CodeBuild",
5377
+ constant: "CODEBUILD",
5378
+ env: "CODEBUILD_BUILD_ARN"
5379
+ },
5380
+ {
5381
+ name: "Codeship",
5382
+ constant: "CODESHIP",
5383
+ env: {
5384
+ CI_NAME: "codeship"
5385
+ }
5386
+ },
5387
+ {
5388
+ name: "Drone",
5389
+ constant: "DRONE",
5390
+ env: "DRONE",
5391
+ pr: {
5392
+ DRONE_BUILD_EVENT: "pull_request"
5393
+ }
5394
+ },
5395
+ {
5396
+ name: "dsari",
5397
+ constant: "DSARI",
5398
+ env: "DSARI"
5399
+ },
5400
+ {
5401
+ name: "GitLab CI",
5402
+ constant: "GITLAB",
5403
+ env: "GITLAB_CI"
5404
+ },
5405
+ {
5406
+ name: "GoCD",
5407
+ constant: "GOCD",
5408
+ env: "GO_PIPELINE_LABEL"
5409
+ },
5410
+ {
5411
+ name: "Hudson",
5412
+ constant: "HUDSON",
5413
+ env: "HUDSON_URL"
5414
+ },
5415
+ {
5416
+ name: "Jenkins",
5417
+ constant: "JENKINS",
5418
+ env: [
5419
+ "JENKINS_URL",
5420
+ "BUILD_ID"
5421
+ ],
5422
+ pr: {
5423
+ any: [
5424
+ "ghprbPullId",
5425
+ "CHANGE_ID"
5426
+ ]
5427
+ }
5428
+ },
5429
+ {
5430
+ name: "Magnum CI",
5431
+ constant: "MAGNUM",
5432
+ env: "MAGNUM"
5433
+ },
5434
+ {
5435
+ name: "Netlify CI",
5436
+ constant: "NETLIFY",
5437
+ env: "NETLIFY_BUILD_BASE",
5438
+ pr: {
5439
+ env: "PULL_REQUEST",
5440
+ ne: "false"
5441
+ }
5442
+ },
5443
+ {
5444
+ name: "Sail CI",
5445
+ constant: "SAIL",
5446
+ env: "SAILCI",
5447
+ pr: "SAIL_PULL_REQUEST_NUMBER"
5448
+ },
5449
+ {
5450
+ name: "Semaphore",
5451
+ constant: "SEMAPHORE",
5452
+ env: "SEMAPHORE",
5453
+ pr: "PULL_REQUEST_NUMBER"
5454
+ },
5455
+ {
5456
+ name: "Shippable",
5457
+ constant: "SHIPPABLE",
5458
+ env: "SHIPPABLE",
5459
+ pr: {
5460
+ IS_PULL_REQUEST: "true"
5461
+ }
5462
+ },
5463
+ {
5464
+ name: "Solano CI",
5465
+ constant: "SOLANO",
5466
+ env: "TDDIUM",
5467
+ pr: "TDDIUM_PR_ID"
5468
+ },
5469
+ {
5470
+ name: "Strider CD",
5471
+ constant: "STRIDER",
5472
+ env: "STRIDER"
5473
+ },
5474
+ {
5475
+ name: "TaskCluster",
5476
+ constant: "TASKCLUSTER",
5477
+ env: [
5478
+ "TASK_ID",
5479
+ "RUN_ID"
5480
+ ]
5481
+ },
5482
+ {
5483
+ name: "TeamCity",
5484
+ constant: "TEAMCITY",
5485
+ env: "TEAMCITY_VERSION"
5486
+ },
5487
+ {
5488
+ name: "Travis CI",
5489
+ constant: "TRAVIS",
5490
+ env: "TRAVIS",
5491
+ pr: {
5492
+ env: "TRAVIS_PULL_REQUEST",
5493
+ ne: "false"
5494
+ }
5495
+ }
5496
+ ];
5497
+
5498
+ var vendors$1 = /*#__PURE__*/Object.freeze({
5499
+ __proto__: null,
5500
+ 'default': vendors
5275
5501
  });
5276
5502
 
5277
- var vendors$2 = ( vendors$1 && vendors ) || vendors$1;
5503
+ var vendors$2 = getCjsExportFromNamespace(vendors$1);
5278
5504
 
5279
5505
  var ciInfo = createCommonjsModule(function (module, exports) {
5280
- 'use strict';
5281
5506
 
5282
5507
  var env = process.env; // Used for testing only
5283
5508
 
@@ -5339,19 +5564,27 @@ var ciInfo = createCommonjsModule(function (module, exports) {
5339
5564
  });
5340
5565
  }
5341
5566
  });
5567
+ var ciInfo_1 = ciInfo.name;
5568
+ var ciInfo_2 = ciInfo.isPR;
5569
+ var ciInfo_3 = ciInfo.isCI;
5342
5570
 
5343
5571
  var isCi = ciInfo.isCI;
5344
5572
 
5345
- var findParentDir = findParentDir$1.sync;
5346
5573
  var thirdParty = {
5347
5574
  cosmiconfig: dist,
5348
- findParentDir,
5575
+ findParentDir: findParentDir.sync,
5349
5576
  getStream: getStream_1,
5350
- isCI:
5351
- /* istanbul ignore next */
5352
- function isCI() {
5577
+ isCI: function isCI() {
5353
5578
  return isCi;
5354
5579
  }
5355
5580
  };
5356
-
5357
- module.exports = thirdParty;
5581
+ var thirdParty_1 = thirdParty.cosmiconfig;
5582
+ var thirdParty_2 = thirdParty.findParentDir;
5583
+ var thirdParty_3 = thirdParty.getStream;
5584
+ var thirdParty_4 = thirdParty.isCI;
5585
+
5586
+ exports.cosmiconfig = thirdParty_1;
5587
+ exports.default = thirdParty;
5588
+ exports.findParentDir = thirdParty_2;
5589
+ exports.getStream = thirdParty_3;
5590
+ exports.isCI = thirdParty_4;