prettier 1.9.1 → 1.10.2
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.
- package/README.md +6 -4
- package/bin-prettier.js +40201 -0
- package/index.js +17486 -11446
- package/package.json +8 -8
- package/parser-babylon.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-glimmer.js +1964 -0
- package/parser-graphql.js +1 -1
- package/parser-markdown.js +1 -1
- package/parser-parse5.js +1 -1
- package/parser-postcss.js +10 -0
- package/parser-typescript.js +1 -1
- package/parser-vue.js +1 -0
- package/third-party.js +193 -295
- package/bin/prettier.js +0 -21010
package/third-party.js
CHANGED
|
@@ -9,9 +9,21 @@ var fs = _interopDefault(require('fs'));
|
|
|
9
9
|
var util = _interopDefault(require('util'));
|
|
10
10
|
var module$1 = _interopDefault(require('module'));
|
|
11
11
|
|
|
12
|
+
function commonjsRequire () {
|
|
13
|
+
throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function createCommonjsModule(fn, module) {
|
|
19
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var bufferStream = createCommonjsModule(function (module) {
|
|
23
|
+
'use strict';
|
|
12
24
|
const PassThrough = stream.PassThrough;
|
|
13
25
|
|
|
14
|
-
|
|
26
|
+
module.exports = opts => {
|
|
15
27
|
opts = Object.assign({}, opts);
|
|
16
28
|
|
|
17
29
|
const array = opts.array;
|
|
@@ -59,10 +71,9 @@ var bufferStream$1 = opts => {
|
|
|
59
71
|
|
|
60
72
|
return stream$$1;
|
|
61
73
|
};
|
|
74
|
+
});
|
|
62
75
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
function getStream$1(inputStream, opts) {
|
|
76
|
+
function getStream(inputStream, opts) {
|
|
66
77
|
if (!inputStream) {
|
|
67
78
|
return Promise.reject(new Error('Expected a stream'));
|
|
68
79
|
}
|
|
@@ -107,25 +118,19 @@ function getStream$1(inputStream, opts) {
|
|
|
107
118
|
return p.then(() => stream$$1.getBufferedValue());
|
|
108
119
|
}
|
|
109
120
|
|
|
110
|
-
var
|
|
111
|
-
var buffer = (stream$$1, opts) => getStream
|
|
112
|
-
var array = (stream$$1, opts) => getStream
|
|
113
|
-
|
|
114
|
-
index.buffer = buffer;
|
|
115
|
-
index.array = array;
|
|
121
|
+
var getStream_1 = getStream;
|
|
122
|
+
var buffer = (stream$$1, opts) => getStream(stream$$1, Object.assign({}, opts, {encoding: 'buffer'}));
|
|
123
|
+
var array = (stream$$1, opts) => getStream(stream$$1, Object.assign({}, opts, {array: true}));
|
|
116
124
|
|
|
117
|
-
|
|
125
|
+
getStream_1.buffer = buffer;
|
|
126
|
+
getStream_1.array = array;
|
|
118
127
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
function readFile$1(filepath , options ) {
|
|
128
|
+
function readFile(filepath , options ) {
|
|
124
129
|
options = options || {};
|
|
125
130
|
const throwNotFound = options.throwNotFound || false;
|
|
126
131
|
|
|
127
132
|
return new Promise((resolve, reject) => {
|
|
128
|
-
fs
|
|
133
|
+
fs.readFile(filepath, 'utf8', (err, content) => {
|
|
129
134
|
if (err && err.code === 'ENOENT' && !throwNotFound) {
|
|
130
135
|
return resolve(null);
|
|
131
136
|
}
|
|
@@ -135,7 +140,7 @@ function readFile$1(filepath , options ) {
|
|
|
135
140
|
});
|
|
136
141
|
}
|
|
137
142
|
|
|
138
|
-
readFile
|
|
143
|
+
readFile.sync = function readFileSync(
|
|
139
144
|
filepath ,
|
|
140
145
|
options
|
|
141
146
|
) {
|
|
@@ -143,7 +148,7 @@ readFile$1.sync = function readFileSync(
|
|
|
143
148
|
const throwNotFound = options.throwNotFound || false;
|
|
144
149
|
|
|
145
150
|
try {
|
|
146
|
-
return fs
|
|
151
|
+
return fs.readFileSync(filepath, 'utf8');
|
|
147
152
|
} catch (err) {
|
|
148
153
|
if (err.code === 'ENOENT' && !throwNotFound) {
|
|
149
154
|
return null;
|
|
@@ -152,9 +157,9 @@ readFile$1.sync = function readFileSync(
|
|
|
152
157
|
}
|
|
153
158
|
};
|
|
154
159
|
|
|
155
|
-
var readFile_1 = readFile
|
|
160
|
+
var readFile_1 = readFile;
|
|
156
161
|
|
|
157
|
-
var
|
|
162
|
+
var isArrayish = function isArrayish(obj) {
|
|
158
163
|
if (!obj) {
|
|
159
164
|
return false;
|
|
160
165
|
}
|
|
@@ -163,10 +168,7 @@ var index$8 = function isArrayish(obj) {
|
|
|
163
168
|
(obj.length >= 0 && obj.splice instanceof Function);
|
|
164
169
|
};
|
|
165
170
|
|
|
166
|
-
var
|
|
167
|
-
var isArrayish = index$8;
|
|
168
|
-
|
|
169
|
-
var errorEx$1 = function errorEx(name, properties) {
|
|
171
|
+
var errorEx = function errorEx(name, properties) {
|
|
170
172
|
if (!name || name.constructor !== String) {
|
|
171
173
|
properties = name || {};
|
|
172
174
|
name = Error.name;
|
|
@@ -259,13 +261,13 @@ var errorEx$1 = function errorEx(name, properties) {
|
|
|
259
261
|
Object.setPrototypeOf(errorExError.prototype, Error.prototype);
|
|
260
262
|
Object.setPrototypeOf(errorExError, Error);
|
|
261
263
|
} else {
|
|
262
|
-
util
|
|
264
|
+
util.inherits(errorExError, Error);
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
return errorExError;
|
|
266
268
|
};
|
|
267
269
|
|
|
268
|
-
errorEx
|
|
270
|
+
errorEx.append = function (str, def) {
|
|
269
271
|
return {
|
|
270
272
|
message: function (v, message) {
|
|
271
273
|
v = v || def;
|
|
@@ -279,7 +281,7 @@ errorEx$1.append = function (str, def) {
|
|
|
279
281
|
};
|
|
280
282
|
};
|
|
281
283
|
|
|
282
|
-
errorEx
|
|
284
|
+
errorEx.line = function (str, def) {
|
|
283
285
|
return {
|
|
284
286
|
line: function (v) {
|
|
285
287
|
v = v || def;
|
|
@@ -293,17 +295,7 @@ errorEx$1.line = function (str, def) {
|
|
|
293
295
|
};
|
|
294
296
|
};
|
|
295
297
|
|
|
296
|
-
var
|
|
297
|
-
|
|
298
|
-
function commonjsRequire () {
|
|
299
|
-
throw new Error('Dynamic requires are not currently supported by rollup-plugin-commonjs');
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
function createCommonjsModule(fn, module) {
|
|
305
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
306
|
-
}
|
|
298
|
+
var errorEx_1 = errorEx;
|
|
307
299
|
|
|
308
300
|
var unicode = createCommonjsModule(function (module) {
|
|
309
301
|
// This is autogenerated with esprima tools, see:
|
|
@@ -387,7 +379,7 @@ var parse_1 = createCommonjsModule(function (module) {
|
|
|
387
379
|
|
|
388
380
|
// RTFM: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
|
|
389
381
|
|
|
390
|
-
|
|
382
|
+
|
|
391
383
|
|
|
392
384
|
function isHexDigit(x) {
|
|
393
385
|
return (x >= '0' && x <= '9')
|
|
@@ -422,7 +414,7 @@ function formatError(input, msg, position, lineno, column, json5) {
|
|
|
422
414
|
, srcline = ''
|
|
423
415
|
, underline = '';
|
|
424
416
|
|
|
425
|
-
var isLineTerminator = json5 ?
|
|
417
|
+
var isLineTerminator = json5 ? unicode.isLineTerminator : unicode.isLineTerminatorJSON;
|
|
426
418
|
|
|
427
419
|
// output no more than 70 characters before the wrong ones
|
|
428
420
|
if (tmppos < position - 70) {
|
|
@@ -457,8 +449,8 @@ function formatError(input, msg, position, lineno, column, json5) {
|
|
|
457
449
|
function parse(input, options) {
|
|
458
450
|
// parse as a standard JSON mode
|
|
459
451
|
var json5 = !(options.mode === 'json' || options.legacy);
|
|
460
|
-
var isLineTerminator = json5 ?
|
|
461
|
-
var isWhiteSpace = json5 ?
|
|
452
|
+
var isLineTerminator = json5 ? unicode.isLineTerminator : unicode.isLineTerminatorJSON;
|
|
453
|
+
var isWhiteSpace = json5 ? unicode.isWhiteSpace : unicode.isWhiteSpaceJSON;
|
|
462
454
|
|
|
463
455
|
var length = input.length
|
|
464
456
|
, lineno = 0
|
|
@@ -601,7 +593,7 @@ function parse(input, options) {
|
|
|
601
593
|
return tokenEnd(parseNumber(true), 'key')
|
|
602
594
|
|
|
603
595
|
} else if (json5
|
|
604
|
-
&&
|
|
596
|
+
&& unicode.isIdentifierStart(chr) || (chr === '\\' && input[position] === 'u')) {
|
|
605
597
|
// unicode char or a unicode sequence
|
|
606
598
|
var rollback = position - 1;
|
|
607
599
|
var result = parseIdentifier();
|
|
@@ -946,7 +938,7 @@ function parse(input, options) {
|
|
|
946
938
|
|
|
947
939
|
if (result.length) {
|
|
948
940
|
// identifier started
|
|
949
|
-
if (
|
|
941
|
+
if (unicode.isIdentifierPart(chr)) {
|
|
950
942
|
result += chr;
|
|
951
943
|
} else {
|
|
952
944
|
position--;
|
|
@@ -954,7 +946,7 @@ function parse(input, options) {
|
|
|
954
946
|
}
|
|
955
947
|
|
|
956
948
|
} else {
|
|
957
|
-
if (
|
|
949
|
+
if (unicode.isIdentifierStart(chr)) {
|
|
958
950
|
result += chr;
|
|
959
951
|
} else {
|
|
960
952
|
return undefined
|
|
@@ -1132,8 +1124,10 @@ module.exports.tokenize = function tokenizeJSON(input, options) {
|
|
|
1132
1124
|
};
|
|
1133
1125
|
});
|
|
1134
1126
|
|
|
1135
|
-
|
|
1136
|
-
|
|
1127
|
+
var parseJson = createCommonjsModule(function (module) {
|
|
1128
|
+
'use strict';
|
|
1129
|
+
|
|
1130
|
+
|
|
1137
1131
|
|
|
1138
1132
|
function appendPosition(message) {
|
|
1139
1133
|
const posRe = / at (\d+:\d+) in/;
|
|
@@ -1141,8 +1135,8 @@ function appendPosition(message) {
|
|
|
1141
1135
|
return message.replace(posRe, ' in') + ':' + numbers[1];
|
|
1142
1136
|
}
|
|
1143
1137
|
|
|
1144
|
-
const JSONError =
|
|
1145
|
-
fileName:
|
|
1138
|
+
const JSONError = errorEx_1('JSONError', {
|
|
1139
|
+
fileName: errorEx_1.append('in %s'),
|
|
1146
1140
|
appendPosition: {
|
|
1147
1141
|
message: (shouldAppend, original) => {
|
|
1148
1142
|
if (shouldAppend) {
|
|
@@ -1153,7 +1147,7 @@ const JSONError = errorEx('JSONError', {
|
|
|
1153
1147
|
}
|
|
1154
1148
|
});
|
|
1155
1149
|
|
|
1156
|
-
|
|
1150
|
+
module.exports = (input, reviver, filename) => {
|
|
1157
1151
|
if (typeof reviver === 'string') {
|
|
1158
1152
|
filename = reviver;
|
|
1159
1153
|
reviver = null;
|
|
@@ -1163,7 +1157,7 @@ var index$4 = (input, reviver, filename) => {
|
|
|
1163
1157
|
try {
|
|
1164
1158
|
return JSON.parse(input, reviver);
|
|
1165
1159
|
} catch (err) {
|
|
1166
|
-
|
|
1160
|
+
parse_1.parse(input, {
|
|
1167
1161
|
mode: 'json',
|
|
1168
1162
|
reviver
|
|
1169
1163
|
});
|
|
@@ -1181,37 +1175,32 @@ var index$4 = (input, reviver, filename) => {
|
|
|
1181
1175
|
throw jsonErr;
|
|
1182
1176
|
}
|
|
1183
1177
|
};
|
|
1184
|
-
|
|
1185
|
-
const parseJson$1 = index$4;
|
|
1178
|
+
});
|
|
1186
1179
|
|
|
1187
1180
|
var parseJson_1 = function parseJsonWrapper(
|
|
1188
1181
|
json ,
|
|
1189
1182
|
filepath
|
|
1190
1183
|
) {
|
|
1191
1184
|
try {
|
|
1192
|
-
return parseJson
|
|
1185
|
+
return parseJson(json);
|
|
1193
1186
|
} catch (err) {
|
|
1194
1187
|
err.message = `JSON Error in ${filepath}:\n${err.message}`;
|
|
1195
1188
|
throw err;
|
|
1196
1189
|
}
|
|
1197
1190
|
};
|
|
1198
1191
|
|
|
1199
|
-
|
|
1200
|
-
const readFile = readFile_1;
|
|
1201
|
-
const parseJson = parseJson_1;
|
|
1202
|
-
|
|
1203
|
-
var loadPackageProp$1 = function loadPackageProp(
|
|
1192
|
+
var loadPackageProp = function loadPackageProp(
|
|
1204
1193
|
packageDir ,
|
|
1205
1194
|
options
|
|
1206
1195
|
|
|
1207
1196
|
|
|
1208
1197
|
|
|
1209
1198
|
) {
|
|
1210
|
-
const packagePath = path
|
|
1199
|
+
const packagePath = path.join(packageDir, 'package.json');
|
|
1211
1200
|
|
|
1212
1201
|
function parseContent(content ) {
|
|
1213
1202
|
if (!content) return null;
|
|
1214
|
-
const parsedContent =
|
|
1203
|
+
const parsedContent = parseJson_1(content, packagePath);
|
|
1215
1204
|
const packagePropValue = parsedContent[options.packageProp];
|
|
1216
1205
|
if (!packagePropValue) return null;
|
|
1217
1206
|
|
|
@@ -1222,8 +1211,8 @@ var loadPackageProp$1 = function loadPackageProp(
|
|
|
1222
1211
|
}
|
|
1223
1212
|
|
|
1224
1213
|
return !options.sync
|
|
1225
|
-
?
|
|
1226
|
-
: parseContent(
|
|
1214
|
+
? readFile_1(packagePath).then(parseContent)
|
|
1215
|
+
: parseContent(readFile_1.sync(packagePath));
|
|
1227
1216
|
};
|
|
1228
1217
|
|
|
1229
1218
|
function isNothing(subject) {
|
|
@@ -1283,7 +1272,7 @@ var repeat_1 = repeat;
|
|
|
1283
1272
|
var isNegativeZero_1 = isNegativeZero;
|
|
1284
1273
|
var extend_1 = extend;
|
|
1285
1274
|
|
|
1286
|
-
var common
|
|
1275
|
+
var common = {
|
|
1287
1276
|
isNothing: isNothing_1,
|
|
1288
1277
|
isObject: isObject_1,
|
|
1289
1278
|
toArray: toArray_1,
|
|
@@ -1294,7 +1283,7 @@ var common$1 = {
|
|
|
1294
1283
|
|
|
1295
1284
|
// YAML error class. http://stackoverflow.com/questions/8458984
|
|
1296
1285
|
//
|
|
1297
|
-
function YAMLException$
|
|
1286
|
+
function YAMLException$1(reason, mark) {
|
|
1298
1287
|
// Super constructor
|
|
1299
1288
|
Error.call(this);
|
|
1300
1289
|
|
|
@@ -1315,11 +1304,11 @@ function YAMLException$2(reason, mark) {
|
|
|
1315
1304
|
|
|
1316
1305
|
|
|
1317
1306
|
// Inherit from Error
|
|
1318
|
-
YAMLException$
|
|
1319
|
-
YAMLException$
|
|
1307
|
+
YAMLException$1.prototype = Object.create(Error.prototype);
|
|
1308
|
+
YAMLException$1.prototype.constructor = YAMLException$1;
|
|
1320
1309
|
|
|
1321
1310
|
|
|
1322
|
-
YAMLException$
|
|
1311
|
+
YAMLException$1.prototype.toString = function toString(compact) {
|
|
1323
1312
|
var result = this.name + ': ';
|
|
1324
1313
|
|
|
1325
1314
|
result += this.reason || '(unknown reason)';
|
|
@@ -1332,12 +1321,9 @@ YAMLException$2.prototype.toString = function toString(compact) {
|
|
|
1332
1321
|
};
|
|
1333
1322
|
|
|
1334
1323
|
|
|
1335
|
-
var exception = YAMLException$
|
|
1324
|
+
var exception = YAMLException$1;
|
|
1336
1325
|
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
function Mark$1(name, buffer, position, line, column) {
|
|
1326
|
+
function Mark(name, buffer, position, line, column) {
|
|
1341
1327
|
this.name = name;
|
|
1342
1328
|
this.buffer = buffer;
|
|
1343
1329
|
this.position = position;
|
|
@@ -1346,7 +1332,7 @@ function Mark$1(name, buffer, position, line, column) {
|
|
|
1346
1332
|
}
|
|
1347
1333
|
|
|
1348
1334
|
|
|
1349
|
-
Mark
|
|
1335
|
+
Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
|
|
1350
1336
|
var head, start, tail, end, snippet;
|
|
1351
1337
|
|
|
1352
1338
|
if (!this.buffer) return null;
|
|
@@ -1380,12 +1366,12 @@ Mark$1.prototype.getSnippet = function getSnippet(indent, maxLength) {
|
|
|
1380
1366
|
|
|
1381
1367
|
snippet = this.buffer.slice(start, end);
|
|
1382
1368
|
|
|
1383
|
-
return common
|
|
1384
|
-
common
|
|
1369
|
+
return common.repeat(' ', indent) + head + snippet + tail + '\n' +
|
|
1370
|
+
common.repeat(' ', indent + this.position - start + head.length) + '^';
|
|
1385
1371
|
};
|
|
1386
1372
|
|
|
1387
1373
|
|
|
1388
|
-
Mark
|
|
1374
|
+
Mark.prototype.toString = function toString(compact) {
|
|
1389
1375
|
var snippet, where = '';
|
|
1390
1376
|
|
|
1391
1377
|
if (this.name) {
|
|
@@ -1406,9 +1392,7 @@ Mark$1.prototype.toString = function toString(compact) {
|
|
|
1406
1392
|
};
|
|
1407
1393
|
|
|
1408
1394
|
|
|
1409
|
-
var mark = Mark
|
|
1410
|
-
|
|
1411
|
-
var YAMLException$4 = exception;
|
|
1395
|
+
var mark = Mark;
|
|
1412
1396
|
|
|
1413
1397
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
1414
1398
|
'kind',
|
|
@@ -1441,12 +1425,12 @@ function compileStyleAliases(map) {
|
|
|
1441
1425
|
return result;
|
|
1442
1426
|
}
|
|
1443
1427
|
|
|
1444
|
-
function Type$
|
|
1428
|
+
function Type$1(tag, options) {
|
|
1445
1429
|
options = options || {};
|
|
1446
1430
|
|
|
1447
1431
|
Object.keys(options).forEach(function (name) {
|
|
1448
1432
|
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
1449
|
-
throw new
|
|
1433
|
+
throw new exception('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
1450
1434
|
}
|
|
1451
1435
|
});
|
|
1452
1436
|
|
|
@@ -1462,17 +1446,17 @@ function Type$2(tag, options) {
|
|
|
1462
1446
|
this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
|
|
1463
1447
|
|
|
1464
1448
|
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
1465
|
-
throw new
|
|
1449
|
+
throw new exception('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
1466
1450
|
}
|
|
1467
1451
|
}
|
|
1468
1452
|
|
|
1469
|
-
var type = Type$
|
|
1453
|
+
var type = Type$1;
|
|
1470
1454
|
|
|
1471
1455
|
/*eslint-disable max-len*/
|
|
1472
1456
|
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
|
|
1476
1460
|
|
|
1477
1461
|
|
|
1478
1462
|
function compileList(schema, name, result) {
|
|
@@ -1517,14 +1501,14 @@ function compileMap(/* lists... */) {
|
|
|
1517
1501
|
}
|
|
1518
1502
|
|
|
1519
1503
|
|
|
1520
|
-
function Schema$
|
|
1504
|
+
function Schema$1(definition) {
|
|
1521
1505
|
this.include = definition.include || [];
|
|
1522
1506
|
this.implicit = definition.implicit || [];
|
|
1523
1507
|
this.explicit = definition.explicit || [];
|
|
1524
1508
|
|
|
1525
1509
|
this.implicit.forEach(function (type$$1) {
|
|
1526
1510
|
if (type$$1.loadKind && type$$1.loadKind !== 'scalar') {
|
|
1527
|
-
throw new
|
|
1511
|
+
throw new exception('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
|
|
1528
1512
|
}
|
|
1529
1513
|
});
|
|
1530
1514
|
|
|
@@ -1534,15 +1518,15 @@ function Schema$2(definition) {
|
|
|
1534
1518
|
}
|
|
1535
1519
|
|
|
1536
1520
|
|
|
1537
|
-
Schema$
|
|
1521
|
+
Schema$1.DEFAULT = null;
|
|
1538
1522
|
|
|
1539
1523
|
|
|
1540
|
-
Schema$
|
|
1524
|
+
Schema$1.create = function createSchema() {
|
|
1541
1525
|
var schemas, types;
|
|
1542
1526
|
|
|
1543
1527
|
switch (arguments.length) {
|
|
1544
1528
|
case 1:
|
|
1545
|
-
schemas = Schema$
|
|
1529
|
+
schemas = Schema$1.DEFAULT;
|
|
1546
1530
|
types = arguments[0];
|
|
1547
1531
|
break;
|
|
1548
1532
|
|
|
@@ -1552,54 +1536,45 @@ Schema$2.create = function createSchema() {
|
|
|
1552
1536
|
break;
|
|
1553
1537
|
|
|
1554
1538
|
default:
|
|
1555
|
-
throw new
|
|
1539
|
+
throw new exception('Wrong number of arguments for Schema.create function');
|
|
1556
1540
|
}
|
|
1557
1541
|
|
|
1558
|
-
schemas = common
|
|
1559
|
-
types = common
|
|
1542
|
+
schemas = common.toArray(schemas);
|
|
1543
|
+
types = common.toArray(types);
|
|
1560
1544
|
|
|
1561
|
-
if (!schemas.every(function (schema) { return schema instanceof Schema$
|
|
1562
|
-
throw new
|
|
1545
|
+
if (!schemas.every(function (schema) { return schema instanceof Schema$1; })) {
|
|
1546
|
+
throw new exception('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
|
|
1563
1547
|
}
|
|
1564
1548
|
|
|
1565
|
-
if (!types.every(function (type$$1) { return type$$1 instanceof
|
|
1566
|
-
throw new
|
|
1549
|
+
if (!types.every(function (type$$1) { return type$$1 instanceof type; })) {
|
|
1550
|
+
throw new exception('Specified list of YAML types (or a single Type object) contains a non-Type object.');
|
|
1567
1551
|
}
|
|
1568
1552
|
|
|
1569
|
-
return new Schema$
|
|
1553
|
+
return new Schema$1({
|
|
1570
1554
|
include: schemas,
|
|
1571
1555
|
explicit: types
|
|
1572
1556
|
});
|
|
1573
1557
|
};
|
|
1574
1558
|
|
|
1575
1559
|
|
|
1576
|
-
var schema = Schema$
|
|
1577
|
-
|
|
1578
|
-
var Type$3 = type;
|
|
1560
|
+
var schema = Schema$1;
|
|
1579
1561
|
|
|
1580
|
-
var str = new
|
|
1562
|
+
var str = new type('tag:yaml.org,2002:str', {
|
|
1581
1563
|
kind: 'scalar',
|
|
1582
1564
|
construct: function (data) { return data !== null ? data : ''; }
|
|
1583
1565
|
});
|
|
1584
1566
|
|
|
1585
|
-
var
|
|
1586
|
-
|
|
1587
|
-
var seq = new Type$4('tag:yaml.org,2002:seq', {
|
|
1567
|
+
var seq = new type('tag:yaml.org,2002:seq', {
|
|
1588
1568
|
kind: 'sequence',
|
|
1589
1569
|
construct: function (data) { return data !== null ? data : []; }
|
|
1590
1570
|
});
|
|
1591
1571
|
|
|
1592
|
-
var
|
|
1593
|
-
|
|
1594
|
-
var map = new Type$5('tag:yaml.org,2002:map', {
|
|
1572
|
+
var map = new type('tag:yaml.org,2002:map', {
|
|
1595
1573
|
kind: 'mapping',
|
|
1596
1574
|
construct: function (data) { return data !== null ? data : {}; }
|
|
1597
1575
|
});
|
|
1598
1576
|
|
|
1599
|
-
var
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
var failsafe = new Schema$5({
|
|
1577
|
+
var failsafe = new schema({
|
|
1603
1578
|
explicit: [
|
|
1604
1579
|
str,
|
|
1605
1580
|
seq,
|
|
@@ -1607,8 +1582,6 @@ var failsafe = new Schema$5({
|
|
|
1607
1582
|
]
|
|
1608
1583
|
});
|
|
1609
1584
|
|
|
1610
|
-
var Type$6 = type;
|
|
1611
|
-
|
|
1612
1585
|
function resolveYamlNull(data) {
|
|
1613
1586
|
if (data === null) return true;
|
|
1614
1587
|
|
|
@@ -1626,7 +1599,7 @@ function isNull(object) {
|
|
|
1626
1599
|
return object === null;
|
|
1627
1600
|
}
|
|
1628
1601
|
|
|
1629
|
-
var _null = new
|
|
1602
|
+
var _null = new type('tag:yaml.org,2002:null', {
|
|
1630
1603
|
kind: 'scalar',
|
|
1631
1604
|
resolve: resolveYamlNull,
|
|
1632
1605
|
construct: constructYamlNull,
|
|
@@ -1640,8 +1613,6 @@ var _null = new Type$6('tag:yaml.org,2002:null', {
|
|
|
1640
1613
|
defaultStyle: 'lowercase'
|
|
1641
1614
|
});
|
|
1642
1615
|
|
|
1643
|
-
var Type$7 = type;
|
|
1644
|
-
|
|
1645
1616
|
function resolveYamlBoolean(data) {
|
|
1646
1617
|
if (data === null) return false;
|
|
1647
1618
|
|
|
@@ -1661,7 +1632,7 @@ function isBoolean(object) {
|
|
|
1661
1632
|
return Object.prototype.toString.call(object) === '[object Boolean]';
|
|
1662
1633
|
}
|
|
1663
1634
|
|
|
1664
|
-
var bool = new
|
|
1635
|
+
var bool = new type('tag:yaml.org,2002:bool', {
|
|
1665
1636
|
kind: 'scalar',
|
|
1666
1637
|
resolve: resolveYamlBoolean,
|
|
1667
1638
|
construct: constructYamlBoolean,
|
|
@@ -1674,9 +1645,6 @@ var bool = new Type$7('tag:yaml.org,2002:bool', {
|
|
|
1674
1645
|
defaultStyle: 'lowercase'
|
|
1675
1646
|
});
|
|
1676
1647
|
|
|
1677
|
-
var common$5 = common$1;
|
|
1678
|
-
var Type$8 = type;
|
|
1679
|
-
|
|
1680
1648
|
function isHexCode(c) {
|
|
1681
1649
|
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
|
|
1682
1650
|
((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
|
|
@@ -1822,10 +1790,10 @@ function constructYamlInteger(data) {
|
|
|
1822
1790
|
|
|
1823
1791
|
function isInteger(object) {
|
|
1824
1792
|
return (Object.prototype.toString.call(object)) === '[object Number]' &&
|
|
1825
|
-
(object % 1 === 0 && !common
|
|
1793
|
+
(object % 1 === 0 && !common.isNegativeZero(object));
|
|
1826
1794
|
}
|
|
1827
1795
|
|
|
1828
|
-
var int_1 = new
|
|
1796
|
+
var int_1 = new type('tag:yaml.org,2002:int', {
|
|
1829
1797
|
kind: 'scalar',
|
|
1830
1798
|
resolve: resolveYamlInteger,
|
|
1831
1799
|
construct: constructYamlInteger,
|
|
@@ -1845,9 +1813,6 @@ var int_1 = new Type$8('tag:yaml.org,2002:int', {
|
|
|
1845
1813
|
}
|
|
1846
1814
|
});
|
|
1847
1815
|
|
|
1848
|
-
var common$6 = common$1;
|
|
1849
|
-
var Type$9 = type;
|
|
1850
|
-
|
|
1851
1816
|
var YAML_FLOAT_PATTERN = new RegExp(
|
|
1852
1817
|
// 2.5e4, 2.5 and integers
|
|
1853
1818
|
'^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
|
|
@@ -1934,7 +1899,7 @@ function representYamlFloat(object, style) {
|
|
|
1934
1899
|
case 'uppercase': return '-.INF';
|
|
1935
1900
|
case 'camelcase': return '-.Inf';
|
|
1936
1901
|
}
|
|
1937
|
-
} else if (common
|
|
1902
|
+
} else if (common.isNegativeZero(object)) {
|
|
1938
1903
|
return '-0.0';
|
|
1939
1904
|
}
|
|
1940
1905
|
|
|
@@ -1948,10 +1913,10 @@ function representYamlFloat(object, style) {
|
|
|
1948
1913
|
|
|
1949
1914
|
function isFloat(object) {
|
|
1950
1915
|
return (Object.prototype.toString.call(object) === '[object Number]') &&
|
|
1951
|
-
(object % 1 !== 0 || common
|
|
1916
|
+
(object % 1 !== 0 || common.isNegativeZero(object));
|
|
1952
1917
|
}
|
|
1953
1918
|
|
|
1954
|
-
var float_1 = new
|
|
1919
|
+
var float_1 = new type('tag:yaml.org,2002:float', {
|
|
1955
1920
|
kind: 'scalar',
|
|
1956
1921
|
resolve: resolveYamlFloat,
|
|
1957
1922
|
construct: constructYamlFloat,
|
|
@@ -1960,10 +1925,7 @@ var float_1 = new Type$9('tag:yaml.org,2002:float', {
|
|
|
1960
1925
|
defaultStyle: 'lowercase'
|
|
1961
1926
|
});
|
|
1962
1927
|
|
|
1963
|
-
var
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
var json = new Schema$4({
|
|
1928
|
+
var json = new schema({
|
|
1967
1929
|
include: [
|
|
1968
1930
|
failsafe
|
|
1969
1931
|
],
|
|
@@ -1975,17 +1937,12 @@ var json = new Schema$4({
|
|
|
1975
1937
|
]
|
|
1976
1938
|
});
|
|
1977
1939
|
|
|
1978
|
-
var
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
var core = new Schema$3({
|
|
1940
|
+
var core = new schema({
|
|
1982
1941
|
include: [
|
|
1983
1942
|
json
|
|
1984
1943
|
]
|
|
1985
1944
|
});
|
|
1986
1945
|
|
|
1987
|
-
var Type$10 = type;
|
|
1988
|
-
|
|
1989
1946
|
var YAML_DATE_REGEXP = new RegExp(
|
|
1990
1947
|
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
|
1991
1948
|
'-([0-9][0-9])' + // [2] month
|
|
@@ -2063,7 +2020,7 @@ function representYamlTimestamp(object /*, style*/) {
|
|
|
2063
2020
|
return object.toISOString();
|
|
2064
2021
|
}
|
|
2065
2022
|
|
|
2066
|
-
var timestamp = new
|
|
2023
|
+
var timestamp = new type('tag:yaml.org,2002:timestamp', {
|
|
2067
2024
|
kind: 'scalar',
|
|
2068
2025
|
resolve: resolveYamlTimestamp,
|
|
2069
2026
|
construct: constructYamlTimestamp,
|
|
@@ -2071,13 +2028,11 @@ var timestamp = new Type$10('tag:yaml.org,2002:timestamp', {
|
|
|
2071
2028
|
represent: representYamlTimestamp
|
|
2072
2029
|
});
|
|
2073
2030
|
|
|
2074
|
-
var Type$11 = type;
|
|
2075
|
-
|
|
2076
2031
|
function resolveYamlMerge(data) {
|
|
2077
2032
|
return data === '<<' || data === null;
|
|
2078
2033
|
}
|
|
2079
2034
|
|
|
2080
|
-
var merge = new
|
|
2035
|
+
var merge = new type('tag:yaml.org,2002:merge', {
|
|
2081
2036
|
kind: 'scalar',
|
|
2082
2037
|
resolve: resolveYamlMerge
|
|
2083
2038
|
});
|
|
@@ -2092,7 +2047,7 @@ try {
|
|
|
2092
2047
|
NodeBuffer = _require('buffer').Buffer;
|
|
2093
2048
|
} catch (__) {}
|
|
2094
2049
|
|
|
2095
|
-
|
|
2050
|
+
|
|
2096
2051
|
|
|
2097
2052
|
|
|
2098
2053
|
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
|
|
@@ -2211,7 +2166,7 @@ function isBinary(object) {
|
|
|
2211
2166
|
return NodeBuffer && NodeBuffer.isBuffer(object);
|
|
2212
2167
|
}
|
|
2213
2168
|
|
|
2214
|
-
var binary = new
|
|
2169
|
+
var binary = new type('tag:yaml.org,2002:binary', {
|
|
2215
2170
|
kind: 'scalar',
|
|
2216
2171
|
resolve: resolveYamlBinary,
|
|
2217
2172
|
construct: constructYamlBinary,
|
|
@@ -2219,8 +2174,6 @@ var binary = new Type$12('tag:yaml.org,2002:binary', {
|
|
|
2219
2174
|
represent: representYamlBinary
|
|
2220
2175
|
});
|
|
2221
2176
|
|
|
2222
|
-
var Type$13 = type;
|
|
2223
|
-
|
|
2224
2177
|
var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
2225
2178
|
var _toString = Object.prototype.toString;
|
|
2226
2179
|
|
|
@@ -2256,14 +2209,12 @@ function constructYamlOmap(data) {
|
|
|
2256
2209
|
return data !== null ? data : [];
|
|
2257
2210
|
}
|
|
2258
2211
|
|
|
2259
|
-
var omap = new
|
|
2212
|
+
var omap = new type('tag:yaml.org,2002:omap', {
|
|
2260
2213
|
kind: 'sequence',
|
|
2261
2214
|
resolve: resolveYamlOmap,
|
|
2262
2215
|
construct: constructYamlOmap
|
|
2263
2216
|
});
|
|
2264
2217
|
|
|
2265
|
-
var Type$14 = type;
|
|
2266
|
-
|
|
2267
2218
|
var _toString$1 = Object.prototype.toString;
|
|
2268
2219
|
|
|
2269
2220
|
function resolveYamlPairs(data) {
|
|
@@ -2308,14 +2259,12 @@ function constructYamlPairs(data) {
|
|
|
2308
2259
|
return result;
|
|
2309
2260
|
}
|
|
2310
2261
|
|
|
2311
|
-
var pairs = new
|
|
2262
|
+
var pairs = new type('tag:yaml.org,2002:pairs', {
|
|
2312
2263
|
kind: 'sequence',
|
|
2313
2264
|
resolve: resolveYamlPairs,
|
|
2314
2265
|
construct: constructYamlPairs
|
|
2315
2266
|
});
|
|
2316
2267
|
|
|
2317
|
-
var Type$15 = type;
|
|
2318
|
-
|
|
2319
2268
|
var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
2320
2269
|
|
|
2321
2270
|
function resolveYamlSet(data) {
|
|
@@ -2336,16 +2285,13 @@ function constructYamlSet(data) {
|
|
|
2336
2285
|
return data !== null ? data : {};
|
|
2337
2286
|
}
|
|
2338
2287
|
|
|
2339
|
-
var set = new
|
|
2288
|
+
var set = new type('tag:yaml.org,2002:set', {
|
|
2340
2289
|
kind: 'mapping',
|
|
2341
2290
|
resolve: resolveYamlSet,
|
|
2342
2291
|
construct: constructYamlSet
|
|
2343
2292
|
});
|
|
2344
2293
|
|
|
2345
|
-
var
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
var default_safe = new Schema$1({
|
|
2294
|
+
var default_safe = new schema({
|
|
2349
2295
|
include: [
|
|
2350
2296
|
core
|
|
2351
2297
|
],
|
|
@@ -2361,8 +2307,6 @@ var default_safe = new Schema$1({
|
|
|
2361
2307
|
]
|
|
2362
2308
|
});
|
|
2363
2309
|
|
|
2364
|
-
var Type$16 = type;
|
|
2365
|
-
|
|
2366
2310
|
function resolveJavascriptUndefined() {
|
|
2367
2311
|
return true;
|
|
2368
2312
|
}
|
|
@@ -2380,7 +2324,7 @@ function isUndefined(object) {
|
|
|
2380
2324
|
return typeof object === 'undefined';
|
|
2381
2325
|
}
|
|
2382
2326
|
|
|
2383
|
-
var _undefined = new
|
|
2327
|
+
var _undefined = new type('tag:yaml.org,2002:js/undefined', {
|
|
2384
2328
|
kind: 'scalar',
|
|
2385
2329
|
resolve: resolveJavascriptUndefined,
|
|
2386
2330
|
construct: constructJavascriptUndefined,
|
|
@@ -2388,8 +2332,6 @@ var _undefined = new Type$16('tag:yaml.org,2002:js/undefined', {
|
|
|
2388
2332
|
represent: representJavascriptUndefined
|
|
2389
2333
|
});
|
|
2390
2334
|
|
|
2391
|
-
var Type$17 = type;
|
|
2392
|
-
|
|
2393
2335
|
function resolveJavascriptRegExp(data) {
|
|
2394
2336
|
if (data === null) return false;
|
|
2395
2337
|
if (data.length === 0) return false;
|
|
@@ -2439,7 +2381,7 @@ function isRegExp(object) {
|
|
|
2439
2381
|
return Object.prototype.toString.call(object) === '[object RegExp]';
|
|
2440
2382
|
}
|
|
2441
2383
|
|
|
2442
|
-
var regexp = new
|
|
2384
|
+
var regexp = new type('tag:yaml.org,2002:js/regexp', {
|
|
2443
2385
|
kind: 'scalar',
|
|
2444
2386
|
resolve: resolveJavascriptRegExp,
|
|
2445
2387
|
construct: constructJavascriptRegExp,
|
|
@@ -2465,7 +2407,7 @@ try {
|
|
|
2465
2407
|
if (typeof window !== 'undefined') esprima = window.esprima;
|
|
2466
2408
|
}
|
|
2467
2409
|
|
|
2468
|
-
|
|
2410
|
+
|
|
2469
2411
|
|
|
2470
2412
|
function resolveJavascriptFunction(data) {
|
|
2471
2413
|
if (data === null) return false;
|
|
@@ -2522,7 +2464,7 @@ function isFunction(object) {
|
|
|
2522
2464
|
return Object.prototype.toString.call(object) === '[object Function]';
|
|
2523
2465
|
}
|
|
2524
2466
|
|
|
2525
|
-
var _function = new
|
|
2467
|
+
var _function = new type('tag:yaml.org,2002:js/function', {
|
|
2526
2468
|
kind: 'scalar',
|
|
2527
2469
|
resolve: resolveJavascriptFunction,
|
|
2528
2470
|
construct: constructJavascriptFunction,
|
|
@@ -2530,10 +2472,7 @@ var _function = new Type$18('tag:yaml.org,2002:js/function', {
|
|
|
2530
2472
|
represent: representJavascriptFunction
|
|
2531
2473
|
});
|
|
2532
2474
|
|
|
2533
|
-
var
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
var default_full = Schema$6.DEFAULT = new Schema$6({
|
|
2475
|
+
var default_full = schema.DEFAULT = new schema({
|
|
2537
2476
|
include: [
|
|
2538
2477
|
default_safe
|
|
2539
2478
|
],
|
|
@@ -2546,11 +2485,11 @@ var default_full = Schema$6.DEFAULT = new Schema$6({
|
|
|
2546
2485
|
|
|
2547
2486
|
/*eslint-disable max-len,no-use-before-define*/
|
|
2548
2487
|
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
|
|
2554
2493
|
|
|
2555
2494
|
|
|
2556
2495
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -2675,7 +2614,7 @@ function State(input, options) {
|
|
|
2675
2614
|
this.input = input;
|
|
2676
2615
|
|
|
2677
2616
|
this.filename = options['filename'] || null;
|
|
2678
|
-
this.schema = options['schema'] ||
|
|
2617
|
+
this.schema = options['schema'] || default_full;
|
|
2679
2618
|
this.onWarning = options['onWarning'] || null;
|
|
2680
2619
|
this.legacy = options['legacy'] || false;
|
|
2681
2620
|
this.json = options['json'] || false;
|
|
@@ -2706,9 +2645,9 @@ function State(input, options) {
|
|
|
2706
2645
|
|
|
2707
2646
|
|
|
2708
2647
|
function generateError(state, message) {
|
|
2709
|
-
return new
|
|
2648
|
+
return new exception(
|
|
2710
2649
|
message,
|
|
2711
|
-
new
|
|
2650
|
+
new mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));
|
|
2712
2651
|
}
|
|
2713
2652
|
|
|
2714
2653
|
function throwError(state, message) {
|
|
@@ -4118,21 +4057,21 @@ function load$1(input, options) {
|
|
|
4118
4057
|
} else if (documents.length === 1) {
|
|
4119
4058
|
return documents[0];
|
|
4120
4059
|
}
|
|
4121
|
-
throw new
|
|
4060
|
+
throw new exception('expected a single document in the stream, but found more');
|
|
4122
4061
|
}
|
|
4123
4062
|
|
|
4124
4063
|
|
|
4125
4064
|
function safeLoadAll$1(input, output, options) {
|
|
4126
4065
|
if (typeof output === 'function') {
|
|
4127
|
-
loadAll$1(input, output, common.extend({ schema:
|
|
4066
|
+
loadAll$1(input, output, common.extend({ schema: default_safe }, options));
|
|
4128
4067
|
} else {
|
|
4129
|
-
return loadAll$1(input, common.extend({ schema:
|
|
4068
|
+
return loadAll$1(input, common.extend({ schema: default_safe }, options));
|
|
4130
4069
|
}
|
|
4131
4070
|
}
|
|
4132
4071
|
|
|
4133
4072
|
|
|
4134
4073
|
function safeLoad$1(input, options) {
|
|
4135
|
-
return load$1(input, common.extend({ schema:
|
|
4074
|
+
return load$1(input, common.extend({ schema: default_safe }, options));
|
|
4136
4075
|
}
|
|
4137
4076
|
|
|
4138
4077
|
|
|
@@ -4141,7 +4080,7 @@ var load_1 = load$1;
|
|
|
4141
4080
|
var safeLoadAll_1 = safeLoadAll$1;
|
|
4142
4081
|
var safeLoad_1 = safeLoad$1;
|
|
4143
4082
|
|
|
4144
|
-
var loader
|
|
4083
|
+
var loader = {
|
|
4145
4084
|
loadAll: loadAll_1,
|
|
4146
4085
|
load: load_1,
|
|
4147
4086
|
safeLoadAll: safeLoadAll_1,
|
|
@@ -4150,10 +4089,10 @@ var loader$1 = {
|
|
|
4150
4089
|
|
|
4151
4090
|
/*eslint-disable no-use-before-define*/
|
|
4152
4091
|
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4092
|
+
|
|
4093
|
+
|
|
4094
|
+
|
|
4095
|
+
|
|
4157
4096
|
|
|
4158
4097
|
var _toString$2 = Object.prototype.toString;
|
|
4159
4098
|
var _hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
@@ -4246,17 +4185,17 @@ function encodeHex(character) {
|
|
|
4246
4185
|
handle = 'U';
|
|
4247
4186
|
length = 8;
|
|
4248
4187
|
} else {
|
|
4249
|
-
throw new
|
|
4188
|
+
throw new exception('code point within a string may not be greater than 0xFFFFFFFF');
|
|
4250
4189
|
}
|
|
4251
4190
|
|
|
4252
|
-
return '\\' + handle + common
|
|
4191
|
+
return '\\' + handle + common.repeat('0', length - string.length) + string;
|
|
4253
4192
|
}
|
|
4254
4193
|
|
|
4255
4194
|
function State$1(options) {
|
|
4256
|
-
this.schema = options['schema'] ||
|
|
4195
|
+
this.schema = options['schema'] || default_full;
|
|
4257
4196
|
this.indent = Math.max(1, (options['indent'] || 2));
|
|
4258
4197
|
this.skipInvalid = options['skipInvalid'] || false;
|
|
4259
|
-
this.flowLevel = (common
|
|
4198
|
+
this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
|
|
4260
4199
|
this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
|
|
4261
4200
|
this.sortKeys = options['sortKeys'] || false;
|
|
4262
4201
|
this.lineWidth = options['lineWidth'] || 80;
|
|
@@ -4276,7 +4215,7 @@ function State$1(options) {
|
|
|
4276
4215
|
|
|
4277
4216
|
// Indents every line in a string. Empty lines (\n only) are not indented.
|
|
4278
4217
|
function indentString(string, spaces) {
|
|
4279
|
-
var ind = common
|
|
4218
|
+
var ind = common.repeat(' ', spaces),
|
|
4280
4219
|
position = 0,
|
|
4281
4220
|
next = -1,
|
|
4282
4221
|
result = '',
|
|
@@ -4302,7 +4241,7 @@ function indentString(string, spaces) {
|
|
|
4302
4241
|
}
|
|
4303
4242
|
|
|
4304
4243
|
function generateNextLine(state, level) {
|
|
4305
|
-
return '\n' + common
|
|
4244
|
+
return '\n' + common.repeat(' ', state.indent * level);
|
|
4306
4245
|
}
|
|
4307
4246
|
|
|
4308
4247
|
function testImplicitResolving(state, str) {
|
|
@@ -4506,7 +4445,7 @@ function writeScalar(state, string, level, iskey) {
|
|
|
4506
4445
|
case STYLE_DOUBLE:
|
|
4507
4446
|
return '"' + escapeString(string, lineWidth) + '"';
|
|
4508
4447
|
default:
|
|
4509
|
-
throw new
|
|
4448
|
+
throw new exception('impossible error: invalid scalar style');
|
|
4510
4449
|
}
|
|
4511
4450
|
}());
|
|
4512
4451
|
}
|
|
@@ -4728,7 +4667,7 @@ function writeBlockMapping(state, level, object, compact) {
|
|
|
4728
4667
|
objectKeyList.sort(state.sortKeys);
|
|
4729
4668
|
} else if (state.sortKeys) {
|
|
4730
4669
|
// Something is wrong
|
|
4731
|
-
throw new
|
|
4670
|
+
throw new exception('sortKeys must be a boolean or a function');
|
|
4732
4671
|
}
|
|
4733
4672
|
|
|
4734
4673
|
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
@@ -4804,7 +4743,7 @@ function detectType(state, object, explicit) {
|
|
|
4804
4743
|
} else if (_hasOwnProperty$3.call(type.represent, style)) {
|
|
4805
4744
|
_result = type.represent[style](object, style);
|
|
4806
4745
|
} else {
|
|
4807
|
-
throw new
|
|
4746
|
+
throw new exception('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
|
|
4808
4747
|
}
|
|
4809
4748
|
|
|
4810
4749
|
state.dump = _result;
|
|
@@ -4883,7 +4822,7 @@ function writeNode(state, level, object, block, compact, iskey) {
|
|
|
4883
4822
|
}
|
|
4884
4823
|
} else {
|
|
4885
4824
|
if (state.skipInvalid) return false;
|
|
4886
|
-
throw new
|
|
4825
|
+
throw new exception('unacceptable kind of an object to dump ' + type);
|
|
4887
4826
|
}
|
|
4888
4827
|
|
|
4889
4828
|
if (state.tag !== null && state.tag !== '?') {
|
|
@@ -4950,21 +4889,17 @@ function dump$1(input, options) {
|
|
|
4950
4889
|
}
|
|
4951
4890
|
|
|
4952
4891
|
function safeDump$1(input, options) {
|
|
4953
|
-
return dump$1(input, common
|
|
4892
|
+
return dump$1(input, common.extend({ schema: default_safe }, options));
|
|
4954
4893
|
}
|
|
4955
4894
|
|
|
4956
4895
|
var dump_1 = dump$1;
|
|
4957
4896
|
var safeDump_1 = safeDump$1;
|
|
4958
4897
|
|
|
4959
|
-
var dumper
|
|
4898
|
+
var dumper = {
|
|
4960
4899
|
dump: dump_1,
|
|
4961
4900
|
safeDump: safeDump_1
|
|
4962
4901
|
};
|
|
4963
4902
|
|
|
4964
|
-
var loader = loader$1;
|
|
4965
|
-
var dumper = dumper$1;
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
4903
|
function deprecated(name) {
|
|
4969
4904
|
return function () {
|
|
4970
4905
|
throw new Error('Function ' + name + ' is deprecated and cannot be used.');
|
|
@@ -4998,7 +4933,7 @@ var parse = deprecated('parse');
|
|
|
4998
4933
|
var compose = deprecated('compose');
|
|
4999
4934
|
var addConstructor = deprecated('addConstructor');
|
|
5000
4935
|
|
|
5001
|
-
var jsYaml = {
|
|
4936
|
+
var jsYaml$2 = {
|
|
5002
4937
|
Type: Type,
|
|
5003
4938
|
Schema: Schema,
|
|
5004
4939
|
FAILSAFE_SCHEMA: FAILSAFE_SCHEMA,
|
|
@@ -5022,16 +4957,13 @@ var jsYaml = {
|
|
|
5022
4957
|
addConstructor: addConstructor
|
|
5023
4958
|
};
|
|
5024
4959
|
|
|
5025
|
-
var
|
|
4960
|
+
var jsYaml = jsYaml$2;
|
|
5026
4961
|
|
|
4962
|
+
var requireFromString = createCommonjsModule(function (module) {
|
|
4963
|
+
'use strict';
|
|
5027
4964
|
|
|
5028
|
-
var index$10 = yaml$1;
|
|
5029
4965
|
|
|
5030
|
-
var index$12 = createCommonjsModule(function (module) {
|
|
5031
|
-
'use strict';
|
|
5032
4966
|
|
|
5033
|
-
var Module = module$1;
|
|
5034
|
-
var path$$1 = path;
|
|
5035
4967
|
|
|
5036
4968
|
module.exports = function requireFromString(code, filename, opts) {
|
|
5037
4969
|
if (typeof filename === 'object') {
|
|
@@ -5049,10 +4981,10 @@ module.exports = function requireFromString(code, filename, opts) {
|
|
|
5049
4981
|
throw new Error('code must be a string, not ' + typeof code);
|
|
5050
4982
|
}
|
|
5051
4983
|
|
|
5052
|
-
var paths =
|
|
4984
|
+
var paths = module$1._nodeModulePaths(path.dirname(filename));
|
|
5053
4985
|
|
|
5054
4986
|
var parent = (module.parent || module);
|
|
5055
|
-
var m = new
|
|
4987
|
+
var m = new module$1(filename, parent);
|
|
5056
4988
|
m.filename = filename;
|
|
5057
4989
|
m.paths = [].concat(opts.prependPaths).concat(paths).concat(opts.appendPaths);
|
|
5058
4990
|
m._compile(code, filename);
|
|
@@ -5073,7 +5005,7 @@ const chainFuncsSync = (result, func) => func(result);
|
|
|
5073
5005
|
* functions are chained using `p.then()`. Otherwise, functions are chained by passing
|
|
5074
5006
|
* the result of each function to the next.
|
|
5075
5007
|
*/
|
|
5076
|
-
var funcRunner
|
|
5008
|
+
var funcRunner = function funcRunner(
|
|
5077
5009
|
init ,
|
|
5078
5010
|
funcs
|
|
5079
5011
|
) {
|
|
@@ -5085,13 +5017,7 @@ var funcRunner$2 = function funcRunner(
|
|
|
5085
5017
|
);
|
|
5086
5018
|
};
|
|
5087
5019
|
|
|
5088
|
-
|
|
5089
|
-
const requireFromString = index$12;
|
|
5090
|
-
const readFile$2 = readFile_1;
|
|
5091
|
-
const parseJson$2 = parseJson_1;
|
|
5092
|
-
const funcRunner$1 = funcRunner$2;
|
|
5093
|
-
|
|
5094
|
-
var loadRc$1 = function loadRc(
|
|
5020
|
+
var loadRc = function loadRc(
|
|
5095
5021
|
filepath ,
|
|
5096
5022
|
options
|
|
5097
5023
|
|
|
@@ -5100,12 +5026,12 @@ var loadRc$1 = function loadRc(
|
|
|
5100
5026
|
|
|
5101
5027
|
) {
|
|
5102
5028
|
if (!options.sync) {
|
|
5103
|
-
return
|
|
5029
|
+
return readFile_1(filepath)
|
|
5104
5030
|
.then(parseExtensionlessRcFile)
|
|
5105
5031
|
.then(checkExtensionlessRcResult);
|
|
5106
5032
|
} else {
|
|
5107
5033
|
return checkExtensionlessRcResult(
|
|
5108
|
-
parseExtensionlessRcFile(
|
|
5034
|
+
parseExtensionlessRcFile(readFile_1.sync(filepath))
|
|
5109
5035
|
);
|
|
5110
5036
|
}
|
|
5111
5037
|
|
|
@@ -5118,8 +5044,8 @@ var loadRc$1 = function loadRc(
|
|
|
5118
5044
|
function parseExtensionlessRcFile(content ) {
|
|
5119
5045
|
if (!content) return null;
|
|
5120
5046
|
const pasedConfig = options.rcStrictJson
|
|
5121
|
-
?
|
|
5122
|
-
:
|
|
5047
|
+
? parseJson_1(content, filepath)
|
|
5048
|
+
: jsYaml.safeLoad(content, { filename: filepath });
|
|
5123
5049
|
return {
|
|
5124
5050
|
config: pasedConfig,
|
|
5125
5051
|
filepath,
|
|
@@ -5128,14 +5054,14 @@ var loadRc$1 = function loadRc(
|
|
|
5128
5054
|
|
|
5129
5055
|
function loadRcWithExtensions() {
|
|
5130
5056
|
let foundConfig = null;
|
|
5131
|
-
return funcRunner
|
|
5057
|
+
return funcRunner(readRcFile('json'), [
|
|
5132
5058
|
(jsonContent ) => {
|
|
5133
5059
|
// Since this is the first try, config cannot have been found, so don't
|
|
5134
5060
|
// check `if (foundConfig)`.
|
|
5135
5061
|
if (jsonContent) {
|
|
5136
5062
|
const successFilepath = `${filepath}.json`;
|
|
5137
5063
|
foundConfig = {
|
|
5138
|
-
config:
|
|
5064
|
+
config: parseJson_1(jsonContent, successFilepath),
|
|
5139
5065
|
filepath: successFilepath,
|
|
5140
5066
|
};
|
|
5141
5067
|
} else {
|
|
@@ -5148,7 +5074,7 @@ var loadRc$1 = function loadRc(
|
|
|
5148
5074
|
} else if (yamlContent) {
|
|
5149
5075
|
const successFilepath = `${filepath}.yaml`;
|
|
5150
5076
|
foundConfig = {
|
|
5151
|
-
config:
|
|
5077
|
+
config: jsYaml.safeLoad(yamlContent, { filename: successFilepath }),
|
|
5152
5078
|
filepath: successFilepath,
|
|
5153
5079
|
};
|
|
5154
5080
|
} else {
|
|
@@ -5161,7 +5087,7 @@ var loadRc$1 = function loadRc(
|
|
|
5161
5087
|
} else if (ymlContent) {
|
|
5162
5088
|
const successFilepath = `${filepath}.yml`;
|
|
5163
5089
|
foundConfig = {
|
|
5164
|
-
config:
|
|
5090
|
+
config: jsYaml.safeLoad(ymlContent, { filename: successFilepath }),
|
|
5165
5091
|
filepath: successFilepath,
|
|
5166
5092
|
};
|
|
5167
5093
|
} else {
|
|
@@ -5188,15 +5114,12 @@ var loadRc$1 = function loadRc(
|
|
|
5188
5114
|
function readRcFile(extension ) {
|
|
5189
5115
|
const filepathWithExtension = `${filepath}.${extension}`;
|
|
5190
5116
|
return !options.sync
|
|
5191
|
-
?
|
|
5192
|
-
:
|
|
5117
|
+
? readFile_1(filepathWithExtension)
|
|
5118
|
+
: readFile_1.sync(filepathWithExtension);
|
|
5193
5119
|
}
|
|
5194
5120
|
};
|
|
5195
5121
|
|
|
5196
|
-
|
|
5197
|
-
const readFile$3 = readFile_1;
|
|
5198
|
-
|
|
5199
|
-
var loadJs$1 = function loadJs(
|
|
5122
|
+
var loadJs = function loadJs(
|
|
5200
5123
|
filepath ,
|
|
5201
5124
|
options
|
|
5202
5125
|
) {
|
|
@@ -5204,23 +5127,17 @@ var loadJs$1 = function loadJs(
|
|
|
5204
5127
|
if (!content) return null;
|
|
5205
5128
|
|
|
5206
5129
|
return {
|
|
5207
|
-
config: requireFromString
|
|
5130
|
+
config: requireFromString(content, filepath),
|
|
5208
5131
|
filepath,
|
|
5209
5132
|
};
|
|
5210
5133
|
}
|
|
5211
5134
|
|
|
5212
5135
|
return !options.sync
|
|
5213
|
-
?
|
|
5214
|
-
: parseJsFile(
|
|
5136
|
+
? readFile_1(filepath).then(parseJsFile)
|
|
5137
|
+
: parseJsFile(readFile_1.sync(filepath));
|
|
5215
5138
|
};
|
|
5216
5139
|
|
|
5217
|
-
|
|
5218
|
-
const requireFromString$2 = index$12;
|
|
5219
|
-
const readFile$4 = readFile_1;
|
|
5220
|
-
const parseJson$3 = parseJson_1;
|
|
5221
|
-
const path$3 = path;
|
|
5222
|
-
|
|
5223
|
-
var loadDefinedFile$1 = function loadDefinedFile(
|
|
5140
|
+
var loadDefinedFile = function loadDefinedFile(
|
|
5224
5141
|
filepath ,
|
|
5225
5142
|
options
|
|
5226
5143
|
|
|
@@ -5236,15 +5153,15 @@ var loadDefinedFile$1 = function loadDefinedFile(
|
|
|
5236
5153
|
|
|
5237
5154
|
switch (options.format || inferFormat(filepath)) {
|
|
5238
5155
|
case 'json':
|
|
5239
|
-
parsedConfig =
|
|
5156
|
+
parsedConfig = parseJson_1(content, filepath);
|
|
5240
5157
|
break;
|
|
5241
5158
|
case 'yaml':
|
|
5242
|
-
parsedConfig =
|
|
5159
|
+
parsedConfig = jsYaml.safeLoad(content, {
|
|
5243
5160
|
filename: filepath,
|
|
5244
5161
|
});
|
|
5245
5162
|
break;
|
|
5246
5163
|
case 'js':
|
|
5247
|
-
parsedConfig = requireFromString
|
|
5164
|
+
parsedConfig = requireFromString(content, filepath);
|
|
5248
5165
|
break;
|
|
5249
5166
|
default:
|
|
5250
5167
|
parsedConfig = tryAllParsing(content, filepath);
|
|
@@ -5261,12 +5178,12 @@ var loadDefinedFile$1 = function loadDefinedFile(
|
|
|
5261
5178
|
}
|
|
5262
5179
|
|
|
5263
5180
|
return !options.sync
|
|
5264
|
-
?
|
|
5265
|
-
: parseContent(
|
|
5181
|
+
? readFile_1(filepath, { throwNotFound: true }).then(parseContent)
|
|
5182
|
+
: parseContent(readFile_1.sync(filepath, { throwNotFound: true }));
|
|
5266
5183
|
};
|
|
5267
5184
|
|
|
5268
5185
|
function inferFormat(filepath ) {
|
|
5269
|
-
switch (path
|
|
5186
|
+
switch (path.extname(filepath)) {
|
|
5270
5187
|
case '.js':
|
|
5271
5188
|
return 'js';
|
|
5272
5189
|
case '.json':
|
|
@@ -5290,7 +5207,7 @@ function tryAllParsing(content , filepath ) {
|
|
|
5290
5207
|
|
|
5291
5208
|
function tryYaml(content , filepath , cb ) {
|
|
5292
5209
|
try {
|
|
5293
|
-
const result =
|
|
5210
|
+
const result = jsYaml.safeLoad(content, {
|
|
5294
5211
|
filename: filepath,
|
|
5295
5212
|
});
|
|
5296
5213
|
if (typeof result === 'string') {
|
|
@@ -5304,19 +5221,17 @@ function tryYaml(content , filepath , cb ) {
|
|
|
5304
5221
|
|
|
5305
5222
|
function tryRequire(content , filepath , cb ) {
|
|
5306
5223
|
try {
|
|
5307
|
-
return requireFromString
|
|
5224
|
+
return requireFromString(content, filepath);
|
|
5308
5225
|
} catch (e) {
|
|
5309
5226
|
return cb();
|
|
5310
5227
|
}
|
|
5311
5228
|
}
|
|
5312
5229
|
|
|
5313
|
-
var fs$2 = fs;
|
|
5314
|
-
|
|
5315
5230
|
/**
|
|
5316
5231
|
* async
|
|
5317
5232
|
*/
|
|
5318
5233
|
|
|
5319
|
-
function isDirectory
|
|
5234
|
+
function isDirectory(filepath, cb) {
|
|
5320
5235
|
if (typeof cb !== 'function') {
|
|
5321
5236
|
throw new Error('expected a callback function');
|
|
5322
5237
|
}
|
|
@@ -5326,7 +5241,7 @@ function isDirectory$1(filepath, cb) {
|
|
|
5326
5241
|
return;
|
|
5327
5242
|
}
|
|
5328
5243
|
|
|
5329
|
-
fs
|
|
5244
|
+
fs.stat(filepath, function(err, stats) {
|
|
5330
5245
|
if (err) {
|
|
5331
5246
|
if (err.code === 'ENOENT') {
|
|
5332
5247
|
cb(null, false);
|
|
@@ -5343,13 +5258,13 @@ function isDirectory$1(filepath, cb) {
|
|
|
5343
5258
|
* sync
|
|
5344
5259
|
*/
|
|
5345
5260
|
|
|
5346
|
-
isDirectory
|
|
5261
|
+
isDirectory.sync = function isDirectorySync(filepath) {
|
|
5347
5262
|
if (typeof filepath !== 'string') {
|
|
5348
5263
|
throw new Error('expected filepath to be a string');
|
|
5349
5264
|
}
|
|
5350
5265
|
|
|
5351
5266
|
try {
|
|
5352
|
-
var stat = fs
|
|
5267
|
+
var stat = fs.statSync(filepath);
|
|
5353
5268
|
return stat.isDirectory();
|
|
5354
5269
|
} catch (err) {
|
|
5355
5270
|
if (err.code === 'ENOENT') {
|
|
@@ -5365,38 +5280,27 @@ isDirectory$1.sync = function isDirectorySync(filepath) {
|
|
|
5365
5280
|
* Expose `isDirectory`
|
|
5366
5281
|
*/
|
|
5367
5282
|
|
|
5368
|
-
var
|
|
5369
|
-
|
|
5370
|
-
const path$4 = path;
|
|
5371
|
-
const isDirectory = index$14;
|
|
5283
|
+
var isDirectory_1 = isDirectory;
|
|
5372
5284
|
|
|
5373
|
-
var getDirectory
|
|
5285
|
+
var getDirectory = function getDirectory(
|
|
5374
5286
|
filepath ,
|
|
5375
5287
|
sync
|
|
5376
5288
|
) {
|
|
5377
5289
|
if (sync === true) {
|
|
5378
|
-
return
|
|
5290
|
+
return isDirectory_1.sync(filepath) ? filepath : path.dirname(filepath);
|
|
5379
5291
|
}
|
|
5380
5292
|
|
|
5381
5293
|
return new Promise((resolve, reject) => {
|
|
5382
|
-
return
|
|
5294
|
+
return isDirectory_1(filepath, (err, filepathIsDirectory) => {
|
|
5383
5295
|
if (err) {
|
|
5384
5296
|
return reject(err);
|
|
5385
5297
|
}
|
|
5386
|
-
return resolve(filepathIsDirectory ? filepath : path
|
|
5298
|
+
return resolve(filepathIsDirectory ? filepath : path.dirname(filepath));
|
|
5387
5299
|
});
|
|
5388
5300
|
});
|
|
5389
5301
|
};
|
|
5390
5302
|
|
|
5391
|
-
|
|
5392
|
-
const loadPackageProp = loadPackageProp$1;
|
|
5393
|
-
const loadRc = loadRc$1;
|
|
5394
|
-
const loadJs = loadJs$1;
|
|
5395
|
-
const loadDefinedFile = loadDefinedFile$1;
|
|
5396
|
-
const funcRunner = funcRunner$2;
|
|
5397
|
-
const getDirectory = getDirectory$1;
|
|
5398
|
-
|
|
5399
|
-
var createExplorer$1 = function createExplorer(options
|
|
5303
|
+
var createExplorer = function createExplorer(options
|
|
5400
5304
|
|
|
5401
5305
|
|
|
5402
5306
|
|
|
@@ -5446,13 +5350,13 @@ var createExplorer$1 = function createExplorer(options
|
|
|
5446
5350
|
}
|
|
5447
5351
|
|
|
5448
5352
|
if (configPath) {
|
|
5449
|
-
const absoluteConfigPath = path
|
|
5353
|
+
const absoluteConfigPath = path.resolve(process.cwd(), configPath);
|
|
5450
5354
|
if (fileCache && fileCache.has(absoluteConfigPath)) {
|
|
5451
5355
|
return fileCache.get(absoluteConfigPath);
|
|
5452
5356
|
}
|
|
5453
5357
|
|
|
5454
5358
|
let load;
|
|
5455
|
-
if (path
|
|
5359
|
+
if (path.basename(absoluteConfigPath) === 'package.json') {
|
|
5456
5360
|
if (!packageProp) {
|
|
5457
5361
|
return throwError(
|
|
5458
5362
|
new Error(
|
|
@@ -5461,7 +5365,7 @@ var createExplorer$1 = function createExplorer(options
|
|
|
5461
5365
|
);
|
|
5462
5366
|
}
|
|
5463
5367
|
load = () =>
|
|
5464
|
-
loadPackageProp(path
|
|
5368
|
+
loadPackageProp(path.dirname(absoluteConfigPath), {
|
|
5465
5369
|
packageProp,
|
|
5466
5370
|
sync: options.sync,
|
|
5467
5371
|
});
|
|
@@ -5484,7 +5388,7 @@ var createExplorer$1 = function createExplorer(options
|
|
|
5484
5388
|
|
|
5485
5389
|
if (!searchPath) return !options.sync ? Promise.resolve(null) : null;
|
|
5486
5390
|
|
|
5487
|
-
const absoluteSearchPath = path
|
|
5391
|
+
const absoluteSearchPath = path.resolve(process.cwd(), searchPath);
|
|
5488
5392
|
const searchPathDir = getDirectory(absoluteSearchPath, options.sync);
|
|
5489
5393
|
|
|
5490
5394
|
return searchPathDir instanceof Promise
|
|
@@ -5509,7 +5413,7 @@ var createExplorer$1 = function createExplorer(options
|
|
|
5509
5413
|
},
|
|
5510
5414
|
result => {
|
|
5511
5415
|
if (result || !options.rc) return result;
|
|
5512
|
-
return loadRc(path
|
|
5416
|
+
return loadRc(path.join(directory, options.rc), {
|
|
5513
5417
|
sync: options.sync,
|
|
5514
5418
|
rcStrictJson: options.rcStrictJson,
|
|
5515
5419
|
rcExtensions: options.rcExtensions,
|
|
@@ -5517,12 +5421,12 @@ var createExplorer$1 = function createExplorer(options
|
|
|
5517
5421
|
},
|
|
5518
5422
|
result => {
|
|
5519
5423
|
if (result || !options.js) return result;
|
|
5520
|
-
return loadJs(path
|
|
5424
|
+
return loadJs(path.join(directory, options.js), { sync: options.sync });
|
|
5521
5425
|
},
|
|
5522
5426
|
result => {
|
|
5523
5427
|
if (result) return result;
|
|
5524
5428
|
|
|
5525
|
-
const nextDirectory = path
|
|
5429
|
+
const nextDirectory = path.dirname(directory);
|
|
5526
5430
|
|
|
5527
5431
|
if (nextDirectory === directory || directory === options.stopDir)
|
|
5528
5432
|
return null;
|
|
@@ -5548,12 +5452,9 @@ function identity(x) {
|
|
|
5548
5452
|
return x;
|
|
5549
5453
|
}
|
|
5550
5454
|
|
|
5551
|
-
const
|
|
5552
|
-
const createExplorer = createExplorer$1;
|
|
5455
|
+
const homedir = os.homedir();
|
|
5553
5456
|
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
var index$2 = function cosmiconfig(
|
|
5457
|
+
var dist = function cosmiconfig(
|
|
5557
5458
|
moduleName ,
|
|
5558
5459
|
options
|
|
5559
5460
|
|
|
@@ -5586,12 +5487,9 @@ var index$2 = function cosmiconfig(
|
|
|
5586
5487
|
return createExplorer(options);
|
|
5587
5488
|
};
|
|
5588
5489
|
|
|
5589
|
-
const getStream = index;
|
|
5590
|
-
const cosmiconfig = index$2;
|
|
5591
|
-
|
|
5592
5490
|
var thirdParty = {
|
|
5593
|
-
getStream,
|
|
5594
|
-
cosmiconfig
|
|
5491
|
+
getStream: getStream_1,
|
|
5492
|
+
cosmiconfig: dist
|
|
5595
5493
|
};
|
|
5596
5494
|
|
|
5597
5495
|
module.exports = thirdParty;
|