@wiotp/sdk 0.8.2-alpha.1 → 0.8.2-alpha.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/dist/bundled/wiotp-bundle.js +184 -258
- package/dist/bundled/wiotp-bundle.min.js +1 -1
- package/package.json +6 -2
|
@@ -32347,7 +32347,6 @@ function composeDoc(options, directives, _ref, onError) {
|
|
|
32347
32347
|
}, options);
|
|
32348
32348
|
var doc = new _Document.Document(undefined, opts);
|
|
32349
32349
|
var ctx = {
|
|
32350
|
-
atKey: false,
|
|
32351
32350
|
atRoot: true,
|
|
32352
32351
|
directives: doc.directives,
|
|
32353
32352
|
options: doc.options,
|
|
@@ -32383,7 +32382,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
32383
32382
|
exports.composeEmptyNode = composeEmptyNode;
|
|
32384
32383
|
exports.composeNode = composeNode;
|
|
32385
32384
|
var _Alias = require("../nodes/Alias.js");
|
|
32386
|
-
var _identity = require("../nodes/identity.js");
|
|
32387
32385
|
var _composeCollection = require("./compose-collection.js");
|
|
32388
32386
|
var _composeScalar = require("./compose-scalar.js");
|
|
32389
32387
|
var _resolveEnd = require("./resolve-end.js");
|
|
@@ -32393,7 +32391,6 @@ var CN = {
|
|
|
32393
32391
|
composeEmptyNode: composeEmptyNode
|
|
32394
32392
|
};
|
|
32395
32393
|
function composeNode(ctx, token, props, onError) {
|
|
32396
|
-
var atKey = ctx.atKey;
|
|
32397
32394
|
var spaceBefore = props.spaceBefore,
|
|
32398
32395
|
comment = props.comment,
|
|
32399
32396
|
anchor = props.anchor,
|
|
@@ -32427,10 +32424,6 @@ function composeNode(ctx, token, props, onError) {
|
|
|
32427
32424
|
}
|
|
32428
32425
|
}
|
|
32429
32426
|
if (anchor && node.anchor === '') onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string');
|
|
32430
|
-
if (atKey && ctx.options.stringKeys && (!(0, _identity.isScalar)(node) || typeof node.value !== 'string' || node.tag && node.tag !== 'tag:yaml.org,2002:str')) {
|
|
32431
|
-
var msg = 'With stringKeys, all keys must be strings';
|
|
32432
|
-
onError(tag !== null && tag !== void 0 ? tag : token, 'NON_STRING_KEY', msg);
|
|
32433
|
-
}
|
|
32434
32427
|
if (spaceBefore) node.spaceBefore = true;
|
|
32435
32428
|
if (comment) {
|
|
32436
32429
|
if (token.type === 'scalar' && token.source === '') node.comment = comment;else node.commentBefore = comment;
|
|
@@ -32478,7 +32471,7 @@ function composeAlias(_ref2, _ref3, onError) {
|
|
|
32478
32471
|
return alias;
|
|
32479
32472
|
}
|
|
32480
32473
|
|
|
32481
|
-
},{"../nodes/Alias.js":248,"
|
|
32474
|
+
},{"../nodes/Alias.js":248,"./compose-collection.js":224,"./compose-scalar.js":227,"./resolve-end.js":232,"./util-empty-scalar-position.js":237}],227:[function(require,module,exports){
|
|
32482
32475
|
"use strict";
|
|
32483
32476
|
|
|
32484
32477
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -32501,10 +32494,7 @@ function composeScalar(ctx, token, tagToken, onError) {
|
|
|
32501
32494
|
var tagName = tagToken ? ctx.directives.tagName(tagToken.source, function (msg) {
|
|
32502
32495
|
return onError(tagToken, 'TAG_RESOLVE_FAILED', msg);
|
|
32503
32496
|
}) : null;
|
|
32504
|
-
var tag;
|
|
32505
|
-
if (ctx.options.stringKeys && ctx.atKey) {
|
|
32506
|
-
tag = ctx.schema[_identity.SCALAR];
|
|
32507
|
-
} else if (tagName) tag = findScalarTagByName(ctx.schema, value, tagName, tagToken, onError);else if (token.type === 'scalar') tag = findScalarTagByTest(ctx, value, token, onError);else tag = ctx.schema[_identity.SCALAR];
|
|
32497
|
+
var tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token.type === 'scalar' ? findScalarTagByTest(ctx, value, token, onError) : ctx.schema[_identity.SCALAR];
|
|
32508
32498
|
var scalar;
|
|
32509
32499
|
try {
|
|
32510
32500
|
var res = tag.resolve(value, function (msg) {
|
|
@@ -32560,12 +32550,11 @@ function findScalarTagByName(schema, value, tagName, tagToken, onError) {
|
|
|
32560
32550
|
return schema[_identity.SCALAR];
|
|
32561
32551
|
}
|
|
32562
32552
|
function findScalarTagByTest(_ref2, value, token, onError) {
|
|
32563
|
-
var
|
|
32564
|
-
directives = _ref2.directives,
|
|
32553
|
+
var directives = _ref2.directives,
|
|
32565
32554
|
schema = _ref2.schema;
|
|
32566
32555
|
var tag = schema.tags.find(function (tag) {
|
|
32567
32556
|
var _tag$test2;
|
|
32568
|
-
return
|
|
32557
|
+
return tag["default"] && ((_tag$test2 = tag.test) === null || _tag$test2 === void 0 ? void 0 : _tag$test2.test(value));
|
|
32569
32558
|
}) || schema[_identity.SCALAR];
|
|
32570
32559
|
if (schema.compat) {
|
|
32571
32560
|
var _schema$compat$find;
|
|
@@ -32960,11 +32949,9 @@ function resolveBlockMap(_ref, ctx, bm, onError, tag) {
|
|
|
32960
32949
|
onError(offset, 'BAD_INDENT', startColMsg);
|
|
32961
32950
|
}
|
|
32962
32951
|
// key value
|
|
32963
|
-
ctx.atKey = true;
|
|
32964
32952
|
var keyStart = keyProps.end;
|
|
32965
32953
|
var keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
|
32966
32954
|
if (ctx.schema.compat) (0, _utilFlowIndentCheck.flowIndentCheck)(bm.indent, key, onError);
|
|
32967
|
-
ctx.atKey = false;
|
|
32968
32955
|
if ((0, _utilMapIncludes.mapIncludes)(ctx, map.items, keyNode)) onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique');
|
|
32969
32956
|
// value properties
|
|
32970
32957
|
var valueProps = (0, _resolveProps.resolveProps)(sep !== null && sep !== void 0 ? sep : [], {
|
|
@@ -33230,7 +33217,6 @@ function resolveBlockSeq(_ref, ctx, bs, onError, tag) {
|
|
|
33230
33217
|
var NodeClass = (_tag$nodeClass = tag === null || tag === void 0 ? void 0 : tag.nodeClass) !== null && _tag$nodeClass !== void 0 ? _tag$nodeClass : _YAMLSeq.YAMLSeq;
|
|
33231
33218
|
var seq = new NodeClass(ctx.schema);
|
|
33232
33219
|
if (ctx.atRoot) ctx.atRoot = false;
|
|
33233
|
-
if (ctx.atKey) ctx.atKey = false;
|
|
33234
33220
|
var offset = bs.offset;
|
|
33235
33221
|
var commentEnd = null;
|
|
33236
33222
|
var _iterator = _createForOfIteratorHelper(bs.items),
|
|
@@ -33363,7 +33349,6 @@ function resolveFlowCollection(_ref, ctx, fc, onError, tag) {
|
|
|
33363
33349
|
coll.flow = true;
|
|
33364
33350
|
var atRoot = ctx.atRoot;
|
|
33365
33351
|
if (atRoot) ctx.atRoot = false;
|
|
33366
|
-
if (ctx.atKey) ctx.atKey = false;
|
|
33367
33352
|
var offset = fc.offset + fc.start.source.length;
|
|
33368
33353
|
for (var i = 0; i < fc.items.length; ++i) {
|
|
33369
33354
|
var collItem = fc.items[i];
|
|
@@ -33439,11 +33424,9 @@ function resolveFlowCollection(_ref, ctx, fc, onError, tag) {
|
|
|
33439
33424
|
} else {
|
|
33440
33425
|
// item is a key+value pair
|
|
33441
33426
|
// key value
|
|
33442
|
-
ctx.atKey = true;
|
|
33443
33427
|
var keyStart = props.end;
|
|
33444
33428
|
var keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
|
|
33445
33429
|
if (isBlock(key)) onError(keyNode.range, 'BLOCK_IN_FLOW', blockMsg);
|
|
33446
|
-
ctx.atKey = false;
|
|
33447
33430
|
// value properties
|
|
33448
33431
|
var valueProps = (0, _resolveProps.resolveProps)(sep !== null && sep !== void 0 ? sep : [], {
|
|
33449
33432
|
flow: fcName,
|
|
@@ -33496,8 +33479,6 @@ function resolveFlowCollection(_ref, ctx, fc, onError, tag) {
|
|
|
33496
33479
|
var _map = new _YAMLMap.YAMLMap(ctx.schema);
|
|
33497
33480
|
_map.flow = true;
|
|
33498
33481
|
_map.items.push(pair);
|
|
33499
|
-
var endRange = (_valueNode !== null && _valueNode !== void 0 ? _valueNode : keyNode).range;
|
|
33500
|
-
_map.range = [keyNode.range[0], endRange[1], endRange[2]];
|
|
33501
33482
|
coll.items.push(_map);
|
|
33502
33483
|
}
|
|
33503
33484
|
offset = _valueNode ? _valueNode.range[2] : valueProps.end;
|
|
@@ -33623,7 +33604,7 @@ function foldLines(source) {
|
|
|
33623
33604
|
try {
|
|
33624
33605
|
first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
|
|
33625
33606
|
line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
|
|
33626
|
-
} catch (
|
|
33607
|
+
} catch (_) {
|
|
33627
33608
|
first = new RegExp("([^]*?)[ \\t]*\\r?\\n", "y");
|
|
33628
33609
|
line = new RegExp("[ \\t]*([^]*?)[ \\t]*\\r?\\n", "y");
|
|
33629
33610
|
}
|
|
@@ -33827,7 +33808,7 @@ function resolveProps(tokens, _ref) {
|
|
|
33827
33808
|
}
|
|
33828
33809
|
case 'newline':
|
|
33829
33810
|
if (atNewline) {
|
|
33830
|
-
if (comment) comment += token.source;else
|
|
33811
|
+
if (comment) comment += token.source;else spaceBefore = true;
|
|
33831
33812
|
} else commentSep += token.source;
|
|
33832
33813
|
atNewline = true;
|
|
33833
33814
|
hasNewline = true;
|
|
@@ -34042,7 +34023,7 @@ function mapIncludes(ctx, items, search) {
|
|
|
34042
34023
|
var uniqueKeys = ctx.options.uniqueKeys;
|
|
34043
34024
|
if (uniqueKeys === false) return false;
|
|
34044
34025
|
var isEqual = typeof uniqueKeys === 'function' ? uniqueKeys : function (a, b) {
|
|
34045
|
-
return a === b || (0, _identity.isScalar)(a) && (0, _identity.isScalar)(b) && a.value === b.value;
|
|
34026
|
+
return a === b || (0, _identity.isScalar)(a) && (0, _identity.isScalar)(b) && a.value === b.value && !(a.value === '<<' && ctx.schema.merge);
|
|
34046
34027
|
};
|
|
34047
34028
|
return items.some(function (pair) {
|
|
34048
34029
|
return isEqual(pair.key, search);
|
|
@@ -34105,7 +34086,6 @@ var Document = exports.Document = /*#__PURE__*/function () {
|
|
|
34105
34086
|
logLevel: 'warn',
|
|
34106
34087
|
prettyErrors: true,
|
|
34107
34088
|
strict: true,
|
|
34108
|
-
stringKeys: false,
|
|
34109
34089
|
uniqueKeys: true,
|
|
34110
34090
|
version: '1.2'
|
|
34111
34091
|
}, options);
|
|
@@ -34347,6 +34327,7 @@ var Document = exports.Document = /*#__PURE__*/function () {
|
|
|
34347
34327
|
version: '1.1'
|
|
34348
34328
|
});
|
|
34349
34329
|
opt = {
|
|
34330
|
+
merge: true,
|
|
34350
34331
|
resolveKnownTags: false,
|
|
34351
34332
|
schema: 'yaml-1.1'
|
|
34352
34333
|
};
|
|
@@ -34357,6 +34338,7 @@ var Document = exports.Document = /*#__PURE__*/function () {
|
|
|
34357
34338
|
version: version
|
|
34358
34339
|
});
|
|
34359
34340
|
opt = {
|
|
34341
|
+
merge: false,
|
|
34360
34342
|
resolveKnownTags: true,
|
|
34361
34343
|
schema: 'core'
|
|
34362
34344
|
};
|
|
@@ -34449,7 +34431,7 @@ function assertCollection(contents) {
|
|
|
34449
34431
|
throw new Error('Expected a YAML collection as document contents');
|
|
34450
34432
|
}
|
|
34451
34433
|
|
|
34452
|
-
},{"../nodes/Alias.js":248,"../nodes/Collection.js":249,"../nodes/Pair.js":251,"../nodes/identity.js":256,"../nodes/toJS.js":257,"../schema/Schema.js":266,"../stringify/stringifyDocument.js":
|
|
34434
|
+
},{"../nodes/Alias.js":248,"../nodes/Collection.js":249,"../nodes/Pair.js":251,"../nodes/identity.js":256,"../nodes/toJS.js":257,"../schema/Schema.js":266,"../stringify/stringifyDocument.js":290,"./anchors.js":241,"./applyReviver.js":242,"./createNode.js":243,"./directives.js":244}],241:[function(require,module,exports){
|
|
34453
34435
|
"use strict";
|
|
34454
34436
|
|
|
34455
34437
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -34525,7 +34507,7 @@ function createNodeAnchors(doc, prefix) {
|
|
|
34525
34507
|
};
|
|
34526
34508
|
}
|
|
34527
34509
|
|
|
34528
|
-
},{"../nodes/identity.js":256,"../visit.js":
|
|
34510
|
+
},{"../nodes/identity.js":256,"../visit.js":294}],242:[function(require,module,exports){
|
|
34529
34511
|
"use strict";
|
|
34530
34512
|
|
|
34531
34513
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -34552,7 +34534,6 @@ function applyReviver(reviver, obj, key, val) {
|
|
|
34552
34534
|
for (var i = 0, len = val.length; i < len; ++i) {
|
|
34553
34535
|
var v0 = val[i];
|
|
34554
34536
|
var v1 = applyReviver(reviver, val, String(i), v0);
|
|
34555
|
-
// eslint-disable-next-line @typescript-eslint/no-array-delete
|
|
34556
34537
|
if (v1 === undefined) delete val[i];else if (v1 !== v0) val[i] = v1;
|
|
34557
34538
|
}
|
|
34558
34539
|
} else if (val instanceof Map) {
|
|
@@ -34896,7 +34877,7 @@ Directives.defaultTags = {
|
|
|
34896
34877
|
'!!': 'tag:yaml.org,2002:'
|
|
34897
34878
|
};
|
|
34898
34879
|
|
|
34899
|
-
},{"../nodes/identity.js":256,"../visit.js":
|
|
34880
|
+
},{"../nodes/identity.js":256,"../visit.js":294}],245:[function(require,module,exports){
|
|
34900
34881
|
"use strict";
|
|
34901
34882
|
|
|
34902
34883
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -35183,7 +35164,8 @@ var _visit = require("./visit.js");
|
|
|
35183
35164
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
35184
35165
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
35185
35166
|
|
|
35186
|
-
},{"./compose/composer.js":228,"./doc/Document.js":240,"./errors.js":245,"./nodes/Alias.js":248,"./nodes/Pair.js":251,"./nodes/Scalar.js":252,"./nodes/YAMLMap.js":253,"./nodes/YAMLSeq.js":254,"./nodes/identity.js":256,"./parse/cst.js":261,"./parse/lexer.js":262,"./parse/line-counter.js":263,"./parse/parser.js":264,"./public-api.js":265,"./schema/Schema.js":266,"./visit.js":
|
|
35167
|
+
},{"./compose/composer.js":228,"./doc/Document.js":240,"./errors.js":245,"./nodes/Alias.js":248,"./nodes/Pair.js":251,"./nodes/Scalar.js":252,"./nodes/YAMLMap.js":253,"./nodes/YAMLSeq.js":254,"./nodes/identity.js":256,"./parse/cst.js":261,"./parse/lexer.js":262,"./parse/line-counter.js":263,"./parse/parser.js":264,"./public-api.js":265,"./schema/Schema.js":266,"./visit.js":294}],247:[function(require,module,exports){
|
|
35168
|
+
(function (process){(function (){
|
|
35187
35169
|
"use strict";
|
|
35188
35170
|
|
|
35189
35171
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -35200,11 +35182,14 @@ function debug(logLevel) {
|
|
|
35200
35182
|
}
|
|
35201
35183
|
function warn(logLevel, warning) {
|
|
35202
35184
|
if (logLevel === 'debug' || logLevel === 'warn') {
|
|
35203
|
-
|
|
35185
|
+
// https://github.com/typescript-eslint/typescript-eslint/issues/7478
|
|
35186
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
35187
|
+
if (typeof process !== 'undefined' && process.emitWarning) process.emitWarning(warning);else console.warn(warning);
|
|
35204
35188
|
}
|
|
35205
35189
|
}
|
|
35206
35190
|
|
|
35207
|
-
}
|
|
35191
|
+
}).call(this)}).call(this,require('_process'))
|
|
35192
|
+
},{"_process":182}],248:[function(require,module,exports){
|
|
35208
35193
|
"use strict";
|
|
35209
35194
|
|
|
35210
35195
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -35343,7 +35328,7 @@ function getAliasCount(doc, node, anchors) {
|
|
|
35343
35328
|
return 1;
|
|
35344
35329
|
}
|
|
35345
35330
|
|
|
35346
|
-
},{"../doc/anchors.js":241,"../visit.js":
|
|
35331
|
+
},{"../doc/anchors.js":241,"../visit.js":294,"./Node.js":250,"./identity.js":256,"./toJS.js":257}],249:[function(require,module,exports){
|
|
35347
35332
|
"use strict";
|
|
35348
35333
|
|
|
35349
35334
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -35649,7 +35634,7 @@ var Pair = exports.Pair = /*#__PURE__*/function () {
|
|
|
35649
35634
|
}]);
|
|
35650
35635
|
}();
|
|
35651
35636
|
|
|
35652
|
-
},{"../doc/createNode.js":243,"../stringify/stringifyPair.js":
|
|
35637
|
+
},{"../doc/createNode.js":243,"../stringify/stringifyPair.js":292,"./addPairToJSMap.js":255,"./identity.js":256}],252:[function(require,module,exports){
|
|
35653
35638
|
"use strict";
|
|
35654
35639
|
|
|
35655
35640
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -35923,7 +35908,7 @@ var YAMLMap = exports.YAMLMap = /*#__PURE__*/function (_Collection) {
|
|
|
35923
35908
|
}]);
|
|
35924
35909
|
}(_Collection2.Collection);
|
|
35925
35910
|
|
|
35926
|
-
},{"../stringify/stringifyCollection.js":
|
|
35911
|
+
},{"../stringify/stringifyCollection.js":288,"./Collection.js":249,"./Pair.js":251,"./Scalar.js":252,"./addPairToJSMap.js":255,"./identity.js":256}],254:[function(require,module,exports){
|
|
35927
35912
|
"use strict";
|
|
35928
35913
|
|
|
35929
35914
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -36091,7 +36076,7 @@ function asItemIndex(key) {
|
|
|
36091
36076
|
return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
36092
36077
|
}
|
|
36093
36078
|
|
|
36094
|
-
},{"../doc/createNode.js":243,"../stringify/stringifyCollection.js":
|
|
36079
|
+
},{"../doc/createNode.js":243,"../stringify/stringifyCollection.js":288,"./Collection.js":249,"./Scalar.js":252,"./identity.js":256,"./toJS.js":257}],255:[function(require,module,exports){
|
|
36095
36080
|
"use strict";
|
|
36096
36081
|
|
|
36097
36082
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36099,20 +36084,52 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
36099
36084
|
});
|
|
36100
36085
|
exports.addPairToJSMap = addPairToJSMap;
|
|
36101
36086
|
var _log = require("../log.js");
|
|
36102
|
-
var _merge = require("../schema/yaml-1.1/merge.js");
|
|
36103
36087
|
var _stringify = require("../stringify/stringify.js");
|
|
36104
36088
|
var _identity = require("./identity.js");
|
|
36089
|
+
var _Scalar = require("./Scalar.js");
|
|
36105
36090
|
var _toJS = require("./toJS.js");
|
|
36091
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
36092
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
36093
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
36094
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
36095
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
36106
36096
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
36107
36097
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
36108
36098
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
36109
|
-
|
|
36099
|
+
var MERGE_KEY = '<<';
|
|
36110
36100
|
function addPairToJSMap(ctx, map, _ref) {
|
|
36111
36101
|
var key = _ref.key,
|
|
36112
36102
|
value = _ref.value;
|
|
36113
|
-
if (
|
|
36114
|
-
|
|
36115
|
-
|
|
36103
|
+
if (ctx !== null && ctx !== void 0 && ctx.doc.schema.merge && isMergeKey(key)) {
|
|
36104
|
+
value = (0, _identity.isAlias)(value) ? value.resolve(ctx.doc) : value;
|
|
36105
|
+
if ((0, _identity.isSeq)(value)) {
|
|
36106
|
+
var _iterator = _createForOfIteratorHelper(value.items),
|
|
36107
|
+
_step;
|
|
36108
|
+
try {
|
|
36109
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
36110
|
+
var it = _step.value;
|
|
36111
|
+
mergeToJSMap(ctx, map, it);
|
|
36112
|
+
}
|
|
36113
|
+
} catch (err) {
|
|
36114
|
+
_iterator.e(err);
|
|
36115
|
+
} finally {
|
|
36116
|
+
_iterator.f();
|
|
36117
|
+
}
|
|
36118
|
+
} else if (Array.isArray(value)) {
|
|
36119
|
+
var _iterator2 = _createForOfIteratorHelper(value),
|
|
36120
|
+
_step2;
|
|
36121
|
+
try {
|
|
36122
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
36123
|
+
var _it = _step2.value;
|
|
36124
|
+
mergeToJSMap(ctx, map, _it);
|
|
36125
|
+
}
|
|
36126
|
+
} catch (err) {
|
|
36127
|
+
_iterator2.e(err);
|
|
36128
|
+
} finally {
|
|
36129
|
+
_iterator2.f();
|
|
36130
|
+
}
|
|
36131
|
+
} else mergeToJSMap(ctx, map, value);
|
|
36132
|
+
} else {
|
|
36116
36133
|
var jsKey = (0, _toJS.toJS)(key, '', ctx);
|
|
36117
36134
|
if (map instanceof Map) {
|
|
36118
36135
|
map.set(jsKey, (0, _toJS.toJS)(value, jsKey, ctx));
|
|
@@ -36131,23 +36148,64 @@ function addPairToJSMap(ctx, map, _ref) {
|
|
|
36131
36148
|
}
|
|
36132
36149
|
return map;
|
|
36133
36150
|
}
|
|
36151
|
+
var isMergeKey = function isMergeKey(key) {
|
|
36152
|
+
return key === MERGE_KEY || (0, _identity.isScalar)(key) && key.value === MERGE_KEY && (!key.type || key.type === _Scalar.Scalar.PLAIN);
|
|
36153
|
+
};
|
|
36154
|
+
// If the value associated with a merge key is a single mapping node, each of
|
|
36155
|
+
// its key/value pairs is inserted into the current mapping, unless the key
|
|
36156
|
+
// already exists in it. If the value associated with the merge key is a
|
|
36157
|
+
// sequence, then this sequence is expected to contain mapping nodes and each
|
|
36158
|
+
// of these nodes is merged in turn according to its order in the sequence.
|
|
36159
|
+
// Keys in mapping nodes earlier in the sequence override keys specified in
|
|
36160
|
+
// later mapping nodes. -- http://yaml.org/type/merge.html
|
|
36161
|
+
function mergeToJSMap(ctx, map, value) {
|
|
36162
|
+
var source = ctx && (0, _identity.isAlias)(value) ? value.resolve(ctx.doc) : value;
|
|
36163
|
+
if (!(0, _identity.isMap)(source)) throw new Error('Merge sources must be maps or map aliases');
|
|
36164
|
+
var srcMap = source.toJSON(null, ctx, Map);
|
|
36165
|
+
var _iterator3 = _createForOfIteratorHelper(srcMap),
|
|
36166
|
+
_step3;
|
|
36167
|
+
try {
|
|
36168
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
36169
|
+
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
36170
|
+
key = _step3$value[0],
|
|
36171
|
+
_value = _step3$value[1];
|
|
36172
|
+
if (map instanceof Map) {
|
|
36173
|
+
if (!map.has(key)) map.set(key, _value);
|
|
36174
|
+
} else if (map instanceof Set) {
|
|
36175
|
+
map.add(key);
|
|
36176
|
+
} else if (!Object.prototype.hasOwnProperty.call(map, key)) {
|
|
36177
|
+
Object.defineProperty(map, key, {
|
|
36178
|
+
value: _value,
|
|
36179
|
+
writable: true,
|
|
36180
|
+
enumerable: true,
|
|
36181
|
+
configurable: true
|
|
36182
|
+
});
|
|
36183
|
+
}
|
|
36184
|
+
}
|
|
36185
|
+
} catch (err) {
|
|
36186
|
+
_iterator3.e(err);
|
|
36187
|
+
} finally {
|
|
36188
|
+
_iterator3.f();
|
|
36189
|
+
}
|
|
36190
|
+
return map;
|
|
36191
|
+
}
|
|
36134
36192
|
function stringifyKey(key, jsKey, ctx) {
|
|
36135
36193
|
if (jsKey === null) return '';
|
|
36136
36194
|
if (_typeof(jsKey) !== 'object') return String(jsKey);
|
|
36137
36195
|
if ((0, _identity.isNode)(key) && ctx !== null && ctx !== void 0 && ctx.doc) {
|
|
36138
36196
|
var strCtx = (0, _stringify.createStringifyContext)(ctx.doc, {});
|
|
36139
36197
|
strCtx.anchors = new Set();
|
|
36140
|
-
var
|
|
36141
|
-
|
|
36198
|
+
var _iterator4 = _createForOfIteratorHelper(ctx.anchors.keys()),
|
|
36199
|
+
_step4;
|
|
36142
36200
|
try {
|
|
36143
|
-
for (
|
|
36144
|
-
var node =
|
|
36201
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
36202
|
+
var node = _step4.value;
|
|
36145
36203
|
strCtx.anchors.add(node.anchor);
|
|
36146
36204
|
}
|
|
36147
36205
|
} catch (err) {
|
|
36148
|
-
|
|
36206
|
+
_iterator4.e(err);
|
|
36149
36207
|
} finally {
|
|
36150
|
-
|
|
36208
|
+
_iterator4.f();
|
|
36151
36209
|
}
|
|
36152
36210
|
strCtx.inFlow = true;
|
|
36153
36211
|
strCtx.inStringifyKey = true;
|
|
@@ -36163,7 +36221,7 @@ function stringifyKey(key, jsKey, ctx) {
|
|
|
36163
36221
|
return JSON.stringify(jsKey);
|
|
36164
36222
|
}
|
|
36165
36223
|
|
|
36166
|
-
},{"../log.js":247,"../
|
|
36224
|
+
},{"../log.js":247,"../stringify/stringify.js":287,"./Scalar.js":252,"./identity.js":256,"./toJS.js":257}],256:[function(require,module,exports){
|
|
36167
36225
|
"use strict";
|
|
36168
36226
|
|
|
36169
36227
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36605,7 +36663,7 @@ function setFlowScalarValue(token, source, type) {
|
|
|
36605
36663
|
}
|
|
36606
36664
|
}
|
|
36607
36665
|
|
|
36608
|
-
},{"../compose/resolve-block-scalar.js":230,"../compose/resolve-flow-scalar.js":234,"../errors.js":245,"../stringify/stringifyString.js":
|
|
36666
|
+
},{"../compose/resolve-block-scalar.js":230,"../compose/resolve-flow-scalar.js":234,"../errors.js":245,"../stringify/stringifyString.js":293}],259:[function(require,module,exports){
|
|
36609
36667
|
"use strict";
|
|
36610
36668
|
|
|
36611
36669
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -39321,9 +39379,7 @@ var Parser = exports.Parser = /*#__PURE__*/function () {
|
|
|
39321
39379
|
sep = it.sep;
|
|
39322
39380
|
sep.push(this.sourceToken);
|
|
39323
39381
|
// @ts-expect-error type guard is wrong here
|
|
39324
|
-
delete it.key;
|
|
39325
|
-
// @ts-expect-error type guard is wrong here
|
|
39326
|
-
delete it.sep;
|
|
39382
|
+
delete it.key, delete it.sep;
|
|
39327
39383
|
this.stack.push({
|
|
39328
39384
|
type: 'block-map',
|
|
39329
39385
|
offset: this.offset,
|
|
@@ -39796,7 +39852,6 @@ var _composer = require("./compose/composer.js");
|
|
|
39796
39852
|
var _Document = require("./doc/Document.js");
|
|
39797
39853
|
var _errors = require("./errors.js");
|
|
39798
39854
|
var _log = require("./log.js");
|
|
39799
|
-
var _identity = require("./nodes/identity.js");
|
|
39800
39855
|
var _lineCounter = require("./parse/line-counter.js");
|
|
39801
39856
|
var _parser = require("./parse/parser.js");
|
|
39802
39857
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -39920,11 +39975,10 @@ function stringify(value, replacer, options) {
|
|
|
39920
39975
|
keepUndefined = _ref.keepUndefined;
|
|
39921
39976
|
if (!keepUndefined) return undefined;
|
|
39922
39977
|
}
|
|
39923
|
-
if ((0, _identity.isDocument)(value) && !_replacer) return value.toString(options);
|
|
39924
39978
|
return new _Document.Document(value, _replacer, options).toString(options);
|
|
39925
39979
|
}
|
|
39926
39980
|
|
|
39927
|
-
},{"./compose/composer.js":228,"./doc/Document.js":240,"./errors.js":245,"./log.js":247,"./
|
|
39981
|
+
},{"./compose/composer.js":228,"./doc/Document.js":240,"./errors.js":245,"./log.js":247,"./parse/line-counter.js":263,"./parse/parser.js":264}],266:[function(require,module,exports){
|
|
39928
39982
|
"use strict";
|
|
39929
39983
|
|
|
39930
39984
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -39956,9 +40010,10 @@ var Schema = exports.Schema = /*#__PURE__*/function () {
|
|
|
39956
40010
|
toStringDefaults = _ref.toStringDefaults;
|
|
39957
40011
|
_classCallCheck(this, Schema);
|
|
39958
40012
|
this.compat = Array.isArray(compat) ? (0, _tags.getTags)(compat, 'compat') : compat ? (0, _tags.getTags)(null, compat) : null;
|
|
40013
|
+
this.merge = !!merge;
|
|
39959
40014
|
this.name = typeof schema === 'string' && schema || 'core';
|
|
39960
40015
|
this.knownTags = resolveKnownTags ? _tags.coreKnownTags : {};
|
|
39961
|
-
this.tags = (0, _tags.getTags)(customTags, this.name
|
|
40016
|
+
this.tags = (0, _tags.getTags)(customTags, this.name);
|
|
39962
40017
|
this.toStringOptions = toStringDefaults !== null && toStringDefaults !== void 0 ? toStringDefaults : null;
|
|
39963
40018
|
Object.defineProperty(this, _identity.MAP, {
|
|
39964
40019
|
value: _map.map
|
|
@@ -40080,7 +40135,7 @@ var string = exports.string = {
|
|
|
40080
40135
|
}
|
|
40081
40136
|
};
|
|
40082
40137
|
|
|
40083
|
-
},{"../../stringify/stringifyString.js":
|
|
40138
|
+
},{"../../stringify/stringifyString.js":293}],271:[function(require,module,exports){
|
|
40084
40139
|
"use strict";
|
|
40085
40140
|
|
|
40086
40141
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40162,7 +40217,7 @@ var _float = exports["float"] = {
|
|
|
40162
40217
|
stringify: _stringifyNumber.stringifyNumber
|
|
40163
40218
|
};
|
|
40164
40219
|
|
|
40165
|
-
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":
|
|
40220
|
+
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":291}],273:[function(require,module,exports){
|
|
40166
40221
|
"use strict";
|
|
40167
40222
|
|
|
40168
40223
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40223,7 +40278,7 @@ var intHex = exports.intHex = {
|
|
|
40223
40278
|
}
|
|
40224
40279
|
};
|
|
40225
40280
|
|
|
40226
|
-
},{"../../stringify/stringifyNumber.js":
|
|
40281
|
+
},{"../../stringify/stringifyNumber.js":291}],274:[function(require,module,exports){
|
|
40227
40282
|
"use strict";
|
|
40228
40283
|
|
|
40229
40284
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40286,7 +40341,7 @@ var jsonScalars = [{
|
|
|
40286
40341
|
},
|
|
40287
40342
|
"default": true,
|
|
40288
40343
|
tag: 'tag:yaml.org,2002:bool',
|
|
40289
|
-
test: /^true
|
|
40344
|
+
test: /^true|false$/,
|
|
40290
40345
|
resolve: function resolve(str) {
|
|
40291
40346
|
return str === 'true';
|
|
40292
40347
|
},
|
|
@@ -40345,7 +40400,6 @@ var _int2 = require("./core/int.js");
|
|
|
40345
40400
|
var _schema = require("./core/schema.js");
|
|
40346
40401
|
var _schema2 = require("./json/schema.js");
|
|
40347
40402
|
var _binary = require("./yaml-1.1/binary.js");
|
|
40348
|
-
var _merge = require("./yaml-1.1/merge.js");
|
|
40349
40403
|
var _omap = require("./yaml-1.1/omap.js");
|
|
40350
40404
|
var _pairs = require("./yaml-1.1/pairs.js");
|
|
40351
40405
|
var _schema3 = require("./yaml-1.1/schema.js");
|
|
@@ -40367,7 +40421,6 @@ var tagsByName = {
|
|
|
40367
40421
|
intOct: _int2.intOct,
|
|
40368
40422
|
intTime: _timestamp.intTime,
|
|
40369
40423
|
map: _map.map,
|
|
40370
|
-
merge: _merge.merge,
|
|
40371
40424
|
"null": _null.nullTag,
|
|
40372
40425
|
omap: _omap.omap,
|
|
40373
40426
|
pairs: _pairs.pairs,
|
|
@@ -40377,18 +40430,13 @@ var tagsByName = {
|
|
|
40377
40430
|
};
|
|
40378
40431
|
var coreKnownTags = exports.coreKnownTags = {
|
|
40379
40432
|
'tag:yaml.org,2002:binary': _binary.binary,
|
|
40380
|
-
'tag:yaml.org,2002:merge': _merge.merge,
|
|
40381
40433
|
'tag:yaml.org,2002:omap': _omap.omap,
|
|
40382
40434
|
'tag:yaml.org,2002:pairs': _pairs.pairs,
|
|
40383
40435
|
'tag:yaml.org,2002:set': _set.set,
|
|
40384
40436
|
'tag:yaml.org,2002:timestamp': _timestamp.timestamp
|
|
40385
40437
|
};
|
|
40386
|
-
function getTags(customTags, schemaName
|
|
40387
|
-
var
|
|
40388
|
-
if (schemaTags && !customTags) {
|
|
40389
|
-
return addMergeTag && !schemaTags.includes(_merge.merge) ? schemaTags.concat(_merge.merge) : schemaTags.slice();
|
|
40390
|
-
}
|
|
40391
|
-
var tags = schemaTags;
|
|
40438
|
+
function getTags(customTags, schemaName) {
|
|
40439
|
+
var tags = schemas.get(schemaName);
|
|
40392
40440
|
if (!tags) {
|
|
40393
40441
|
if (Array.isArray(customTags)) tags = [];else {
|
|
40394
40442
|
var keys = Array.from(schemas.keys()).filter(function (key) {
|
|
@@ -40415,22 +40463,19 @@ function getTags(customTags, schemaName, addMergeTag) {
|
|
|
40415
40463
|
} else if (typeof customTags === 'function') {
|
|
40416
40464
|
tags = customTags(tags.slice());
|
|
40417
40465
|
}
|
|
40418
|
-
|
|
40419
|
-
|
|
40420
|
-
var tagObj =
|
|
40421
|
-
if (
|
|
40422
|
-
|
|
40423
|
-
|
|
40424
|
-
|
|
40425
|
-
|
|
40426
|
-
|
|
40427
|
-
}
|
|
40428
|
-
if (!tags.includes(tagObj)) tags.push(tagObj);
|
|
40429
|
-
return tags;
|
|
40430
|
-
}, []);
|
|
40466
|
+
return tags.map(function (tag) {
|
|
40467
|
+
if (typeof tag !== 'string') return tag;
|
|
40468
|
+
var tagObj = tagsByName[tag];
|
|
40469
|
+
if (tagObj) return tagObj;
|
|
40470
|
+
var keys = Object.keys(tagsByName).map(function (key) {
|
|
40471
|
+
return JSON.stringify(key);
|
|
40472
|
+
}).join(', ');
|
|
40473
|
+
throw new Error("Unknown custom tag \"".concat(tag, "\"; use one of ").concat(keys));
|
|
40474
|
+
});
|
|
40431
40475
|
}
|
|
40432
40476
|
|
|
40433
|
-
},{"./common/map.js":267,"./common/null.js":268,"./common/seq.js":269,"./common/string.js":270,"./core/bool.js":271,"./core/float.js":272,"./core/int.js":273,"./core/schema.js":274,"./json/schema.js":275,"./yaml-1.1/binary.js":277,"./yaml-1.1/
|
|
40477
|
+
},{"./common/map.js":267,"./common/null.js":268,"./common/seq.js":269,"./common/string.js":270,"./core/bool.js":271,"./core/float.js":272,"./core/int.js":273,"./core/schema.js":274,"./json/schema.js":275,"./yaml-1.1/binary.js":277,"./yaml-1.1/omap.js":281,"./yaml-1.1/pairs.js":282,"./yaml-1.1/schema.js":283,"./yaml-1.1/set.js":284,"./yaml-1.1/timestamp.js":285}],277:[function(require,module,exports){
|
|
40478
|
+
(function (Buffer){(function (){
|
|
40434
40479
|
"use strict";
|
|
40435
40480
|
|
|
40436
40481
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40455,7 +40500,9 @@ var binary = exports.binary = {
|
|
|
40455
40500
|
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
40456
40501
|
*/
|
|
40457
40502
|
resolve: function resolve(src, onError) {
|
|
40458
|
-
if (typeof
|
|
40503
|
+
if (typeof Buffer === 'function') {
|
|
40504
|
+
return Buffer.from(src, 'base64');
|
|
40505
|
+
} else if (typeof atob === 'function') {
|
|
40459
40506
|
// On IE 11, atob() can't handle newlines
|
|
40460
40507
|
var str = atob(src.replace(/[\n\r]/g, ''));
|
|
40461
40508
|
var buffer = new Uint8Array(str.length);
|
|
@@ -40472,7 +40519,9 @@ var binary = exports.binary = {
|
|
|
40472
40519
|
value = _ref.value;
|
|
40473
40520
|
var buf = value; // checked earlier by binary.identify()
|
|
40474
40521
|
var str;
|
|
40475
|
-
if (typeof
|
|
40522
|
+
if (typeof Buffer === 'function') {
|
|
40523
|
+
str = buf instanceof Buffer ? buf.toString('base64') : Buffer.from(buf.buffer).toString('base64');
|
|
40524
|
+
} else if (typeof btoa === 'function') {
|
|
40476
40525
|
var s = '';
|
|
40477
40526
|
for (var i = 0; i < buf.length; ++i) s += String.fromCharCode(buf[i]);
|
|
40478
40527
|
str = btoa(s);
|
|
@@ -40497,7 +40546,8 @@ var binary = exports.binary = {
|
|
|
40497
40546
|
}
|
|
40498
40547
|
};
|
|
40499
40548
|
|
|
40500
|
-
}
|
|
40549
|
+
}).call(this)}).call(this,require("buffer").Buffer)
|
|
40550
|
+
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyString.js":293,"buffer":74}],278:[function(require,module,exports){
|
|
40501
40551
|
"use strict";
|
|
40502
40552
|
|
|
40503
40553
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40593,7 +40643,7 @@ var _float = exports["float"] = {
|
|
|
40593
40643
|
stringify: _stringifyNumber.stringifyNumber
|
|
40594
40644
|
};
|
|
40595
40645
|
|
|
40596
|
-
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":
|
|
40646
|
+
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":291}],280:[function(require,module,exports){
|
|
40597
40647
|
"use strict";
|
|
40598
40648
|
|
|
40599
40649
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40685,116 +40735,7 @@ var intHex = exports.intHex = {
|
|
|
40685
40735
|
}
|
|
40686
40736
|
};
|
|
40687
40737
|
|
|
40688
|
-
},{"../../stringify/stringifyNumber.js":
|
|
40689
|
-
"use strict";
|
|
40690
|
-
|
|
40691
|
-
Object.defineProperty(exports, "__esModule", {
|
|
40692
|
-
value: true
|
|
40693
|
-
});
|
|
40694
|
-
exports.addMergeToJSMap = addMergeToJSMap;
|
|
40695
|
-
exports.merge = exports.isMergeKey = void 0;
|
|
40696
|
-
var _identity = require("../../nodes/identity.js");
|
|
40697
|
-
var _Scalar = require("../../nodes/Scalar.js");
|
|
40698
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
40699
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
40700
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
40701
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
40702
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
40703
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
40704
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
40705
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
40706
|
-
// If the value associated with a merge key is a single mapping node, each of
|
|
40707
|
-
// its key/value pairs is inserted into the current mapping, unless the key
|
|
40708
|
-
// already exists in it. If the value associated with the merge key is a
|
|
40709
|
-
// sequence, then this sequence is expected to contain mapping nodes and each
|
|
40710
|
-
// of these nodes is merged in turn according to its order in the sequence.
|
|
40711
|
-
// Keys in mapping nodes earlier in the sequence override keys specified in
|
|
40712
|
-
// later mapping nodes. -- http://yaml.org/type/merge.html
|
|
40713
|
-
var MERGE_KEY = '<<';
|
|
40714
|
-
var merge = exports.merge = {
|
|
40715
|
-
identify: function identify(value) {
|
|
40716
|
-
return value === MERGE_KEY || _typeof(value) === 'symbol' && value.description === MERGE_KEY;
|
|
40717
|
-
},
|
|
40718
|
-
"default": 'key',
|
|
40719
|
-
tag: 'tag:yaml.org,2002:merge',
|
|
40720
|
-
test: /^<<$/,
|
|
40721
|
-
resolve: function resolve() {
|
|
40722
|
-
return Object.assign(new _Scalar.Scalar(Symbol(MERGE_KEY)), {
|
|
40723
|
-
addToJSMap: addMergeToJSMap
|
|
40724
|
-
});
|
|
40725
|
-
},
|
|
40726
|
-
stringify: function stringify() {
|
|
40727
|
-
return MERGE_KEY;
|
|
40728
|
-
}
|
|
40729
|
-
};
|
|
40730
|
-
var isMergeKey = exports.isMergeKey = function isMergeKey(ctx, key) {
|
|
40731
|
-
return (merge.identify(key) || (0, _identity.isScalar)(key) && (!key.type || key.type === _Scalar.Scalar.PLAIN) && merge.identify(key.value)) && (ctx === null || ctx === void 0 ? void 0 : ctx.doc.schema.tags.some(function (tag) {
|
|
40732
|
-
return tag.tag === merge.tag && tag["default"];
|
|
40733
|
-
}));
|
|
40734
|
-
};
|
|
40735
|
-
function addMergeToJSMap(ctx, map, value) {
|
|
40736
|
-
value = ctx && (0, _identity.isAlias)(value) ? value.resolve(ctx.doc) : value;
|
|
40737
|
-
if ((0, _identity.isSeq)(value)) {
|
|
40738
|
-
var _iterator = _createForOfIteratorHelper(value.items),
|
|
40739
|
-
_step;
|
|
40740
|
-
try {
|
|
40741
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
40742
|
-
var it = _step.value;
|
|
40743
|
-
mergeValue(ctx, map, it);
|
|
40744
|
-
}
|
|
40745
|
-
} catch (err) {
|
|
40746
|
-
_iterator.e(err);
|
|
40747
|
-
} finally {
|
|
40748
|
-
_iterator.f();
|
|
40749
|
-
}
|
|
40750
|
-
} else if (Array.isArray(value)) {
|
|
40751
|
-
var _iterator2 = _createForOfIteratorHelper(value),
|
|
40752
|
-
_step2;
|
|
40753
|
-
try {
|
|
40754
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
40755
|
-
var _it = _step2.value;
|
|
40756
|
-
mergeValue(ctx, map, _it);
|
|
40757
|
-
}
|
|
40758
|
-
} catch (err) {
|
|
40759
|
-
_iterator2.e(err);
|
|
40760
|
-
} finally {
|
|
40761
|
-
_iterator2.f();
|
|
40762
|
-
}
|
|
40763
|
-
} else mergeValue(ctx, map, value);
|
|
40764
|
-
}
|
|
40765
|
-
function mergeValue(ctx, map, value) {
|
|
40766
|
-
var source = ctx && (0, _identity.isAlias)(value) ? value.resolve(ctx.doc) : value;
|
|
40767
|
-
if (!(0, _identity.isMap)(source)) throw new Error('Merge sources must be maps or map aliases');
|
|
40768
|
-
var srcMap = source.toJSON(null, ctx, Map);
|
|
40769
|
-
var _iterator3 = _createForOfIteratorHelper(srcMap),
|
|
40770
|
-
_step3;
|
|
40771
|
-
try {
|
|
40772
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
40773
|
-
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
40774
|
-
key = _step3$value[0],
|
|
40775
|
-
_value = _step3$value[1];
|
|
40776
|
-
if (map instanceof Map) {
|
|
40777
|
-
if (!map.has(key)) map.set(key, _value);
|
|
40778
|
-
} else if (map instanceof Set) {
|
|
40779
|
-
map.add(key);
|
|
40780
|
-
} else if (!Object.prototype.hasOwnProperty.call(map, key)) {
|
|
40781
|
-
Object.defineProperty(map, key, {
|
|
40782
|
-
value: _value,
|
|
40783
|
-
writable: true,
|
|
40784
|
-
enumerable: true,
|
|
40785
|
-
configurable: true
|
|
40786
|
-
});
|
|
40787
|
-
}
|
|
40788
|
-
}
|
|
40789
|
-
} catch (err) {
|
|
40790
|
-
_iterator3.e(err);
|
|
40791
|
-
} finally {
|
|
40792
|
-
_iterator3.f();
|
|
40793
|
-
}
|
|
40794
|
-
return map;
|
|
40795
|
-
}
|
|
40796
|
-
|
|
40797
|
-
},{"../../nodes/Scalar.js":252,"../../nodes/identity.js":256}],282:[function(require,module,exports){
|
|
40738
|
+
},{"../../stringify/stringifyNumber.js":291}],281:[function(require,module,exports){
|
|
40798
40739
|
"use strict";
|
|
40799
40740
|
|
|
40800
40741
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -40919,7 +40860,7 @@ var omap = exports.omap = {
|
|
|
40919
40860
|
}
|
|
40920
40861
|
};
|
|
40921
40862
|
|
|
40922
|
-
},{"../../nodes/YAMLMap.js":253,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256,"../../nodes/toJS.js":257,"./pairs.js":
|
|
40863
|
+
},{"../../nodes/YAMLMap.js":253,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256,"../../nodes/toJS.js":257,"./pairs.js":282}],282:[function(require,module,exports){
|
|
40923
40864
|
"use strict";
|
|
40924
40865
|
|
|
40925
40866
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41003,7 +40944,7 @@ var pairs = exports.pairs = {
|
|
|
41003
40944
|
createNode: createPairs
|
|
41004
40945
|
};
|
|
41005
40946
|
|
|
41006
|
-
},{"../../nodes/Pair.js":251,"../../nodes/Scalar.js":252,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256}],
|
|
40947
|
+
},{"../../nodes/Pair.js":251,"../../nodes/Scalar.js":252,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256}],283:[function(require,module,exports){
|
|
41007
40948
|
"use strict";
|
|
41008
40949
|
|
|
41009
40950
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41018,14 +40959,13 @@ var _binary = require("./binary.js");
|
|
|
41018
40959
|
var _bool = require("./bool.js");
|
|
41019
40960
|
var _float2 = require("./float.js");
|
|
41020
40961
|
var _int2 = require("./int.js");
|
|
41021
|
-
var _merge = require("./merge.js");
|
|
41022
40962
|
var _omap = require("./omap.js");
|
|
41023
40963
|
var _pairs = require("./pairs.js");
|
|
41024
40964
|
var _set = require("./set.js");
|
|
41025
40965
|
var _timestamp = require("./timestamp.js");
|
|
41026
|
-
var schema = exports.schema = [_map.map, _seq.seq, _string.string, _null.nullTag, _bool.trueTag, _bool.falseTag, _int2.intBin, _int2.intOct, _int2["int"], _int2.intHex, _float2.floatNaN, _float2.floatExp, _float2["float"], _binary.binary,
|
|
40966
|
+
var schema = exports.schema = [_map.map, _seq.seq, _string.string, _null.nullTag, _bool.trueTag, _bool.falseTag, _int2.intBin, _int2.intOct, _int2["int"], _int2.intHex, _float2.floatNaN, _float2.floatExp, _float2["float"], _binary.binary, _omap.omap, _pairs.pairs, _set.set, _timestamp.intTime, _timestamp.floatTime, _timestamp.timestamp];
|
|
41027
40967
|
|
|
41028
|
-
},{"../common/map.js":267,"../common/null.js":268,"../common/seq.js":269,"../common/string.js":270,"./binary.js":277,"./bool.js":278,"./float.js":279,"./int.js":280,"./
|
|
40968
|
+
},{"../common/map.js":267,"../common/null.js":268,"../common/seq.js":269,"../common/string.js":270,"./binary.js":277,"./bool.js":278,"./float.js":279,"./int.js":280,"./omap.js":281,"./pairs.js":282,"./set.js":284,"./timestamp.js":285}],284:[function(require,module,exports){
|
|
41029
40969
|
"use strict";
|
|
41030
40970
|
|
|
41031
40971
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41149,7 +41089,7 @@ var set = exports.set = {
|
|
|
41149
41089
|
}
|
|
41150
41090
|
};
|
|
41151
41091
|
|
|
41152
|
-
},{"../../nodes/Pair.js":251,"../../nodes/YAMLMap.js":253,"../../nodes/identity.js":256}],
|
|
41092
|
+
},{"../../nodes/Pair.js":251,"../../nodes/YAMLMap.js":253,"../../nodes/identity.js":256}],285:[function(require,module,exports){
|
|
41153
41093
|
"use strict";
|
|
41154
41094
|
|
|
41155
41095
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41280,11 +41220,11 @@ var timestamp = exports.timestamp = {
|
|
|
41280
41220
|
},
|
|
41281
41221
|
stringify: function stringify(_ref2) {
|
|
41282
41222
|
var value = _ref2.value;
|
|
41283
|
-
return value.toISOString().replace(/(T00:00
|
|
41223
|
+
return value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '');
|
|
41284
41224
|
}
|
|
41285
41225
|
};
|
|
41286
41226
|
|
|
41287
|
-
},{"../../stringify/stringifyNumber.js":
|
|
41227
|
+
},{"../../stringify/stringifyNumber.js":291}],286:[function(require,module,exports){
|
|
41288
41228
|
"use strict";
|
|
41289
41229
|
|
|
41290
41230
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41422,7 +41362,7 @@ function consumeMoreIndentedLines(text, i, indent) {
|
|
|
41422
41362
|
return end;
|
|
41423
41363
|
}
|
|
41424
41364
|
|
|
41425
|
-
},{}],
|
|
41365
|
+
},{}],287:[function(require,module,exports){
|
|
41426
41366
|
"use strict";
|
|
41427
41367
|
|
|
41428
41368
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41495,12 +41435,6 @@ function getTagObject(tags, item) {
|
|
|
41495
41435
|
var _t$identify;
|
|
41496
41436
|
return (_t$identify = t.identify) === null || _t$identify === void 0 ? void 0 : _t$identify.call(t, obj);
|
|
41497
41437
|
});
|
|
41498
|
-
if (_match.length > 1) {
|
|
41499
|
-
var testMatch = _match.filter(function (t) {
|
|
41500
|
-
return t.test;
|
|
41501
|
-
});
|
|
41502
|
-
if (testMatch.length > 0) _match = testMatch;
|
|
41503
|
-
}
|
|
41504
41438
|
tagObj = (_match$find2 = _match.find(function (t) {
|
|
41505
41439
|
return t.format === item.format;
|
|
41506
41440
|
})) !== null && _match$find2 !== void 0 ? _match$find2 : _match.find(function (t) {
|
|
@@ -41561,7 +41495,7 @@ function stringify(item, ctx, onComment, onChompKeep) {
|
|
|
41561
41495
|
return (0, _identity.isScalar)(node) || str[0] === '{' || str[0] === '[' ? "".concat(props, " ").concat(str) : "".concat(props, "\n").concat(ctx.indent).concat(str);
|
|
41562
41496
|
}
|
|
41563
41497
|
|
|
41564
|
-
},{"../doc/anchors.js":241,"../nodes/identity.js":256,"./stringifyComment.js":
|
|
41498
|
+
},{"../doc/anchors.js":241,"../nodes/identity.js":256,"./stringifyComment.js":289,"./stringifyString.js":293}],288:[function(require,module,exports){
|
|
41565
41499
|
"use strict";
|
|
41566
41500
|
|
|
41567
41501
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41732,7 +41666,7 @@ function addCommentBefore(_ref5, lines, comment, chompKeep) {
|
|
|
41732
41666
|
}
|
|
41733
41667
|
}
|
|
41734
41668
|
|
|
41735
|
-
},{"../nodes/identity.js":256,"./stringify.js":
|
|
41669
|
+
},{"../nodes/identity.js":256,"./stringify.js":287,"./stringifyComment.js":289}],289:[function(require,module,exports){
|
|
41736
41670
|
"use strict";
|
|
41737
41671
|
|
|
41738
41672
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41758,7 +41692,7 @@ var lineComment = exports.lineComment = function lineComment(str, indent, commen
|
|
|
41758
41692
|
return str.endsWith('\n') ? indentComment(comment, indent) : comment.includes('\n') ? '\n' + indentComment(comment, indent) : (str.endsWith(' ') ? '' : ' ') + comment;
|
|
41759
41693
|
};
|
|
41760
41694
|
|
|
41761
|
-
},{}],
|
|
41695
|
+
},{}],290:[function(require,module,exports){
|
|
41762
41696
|
"use strict";
|
|
41763
41697
|
|
|
41764
41698
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41838,7 +41772,7 @@ function stringifyDocument(doc, options) {
|
|
|
41838
41772
|
return lines.join('\n') + '\n';
|
|
41839
41773
|
}
|
|
41840
41774
|
|
|
41841
|
-
},{"../nodes/identity.js":256,"./stringify.js":
|
|
41775
|
+
},{"../nodes/identity.js":256,"./stringify.js":287,"./stringifyComment.js":289}],291:[function(require,module,exports){
|
|
41842
41776
|
"use strict";
|
|
41843
41777
|
|
|
41844
41778
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41866,7 +41800,7 @@ function stringifyNumber(_ref) {
|
|
|
41866
41800
|
return n;
|
|
41867
41801
|
}
|
|
41868
41802
|
|
|
41869
|
-
},{}],
|
|
41803
|
+
},{}],292:[function(require,module,exports){
|
|
41870
41804
|
"use strict";
|
|
41871
41805
|
|
|
41872
41806
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -42004,7 +41938,7 @@ function stringifyPair(_ref, ctx, onComment, onChompKeep) {
|
|
|
42004
41938
|
return str;
|
|
42005
41939
|
}
|
|
42006
41940
|
|
|
42007
|
-
},{"../nodes/Scalar.js":252,"../nodes/identity.js":256,"./stringify.js":
|
|
41941
|
+
},{"../nodes/Scalar.js":252,"../nodes/identity.js":256,"./stringify.js":287,"./stringifyComment.js":289}],293:[function(require,module,exports){
|
|
42008
41942
|
"use strict";
|
|
42009
41943
|
|
|
42010
41944
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -42193,28 +42127,20 @@ function blockString(_ref, ctx, onComment, onChompKeep) {
|
|
|
42193
42127
|
start = start.replace(/\n+/g, "$&".concat(indent));
|
|
42194
42128
|
}
|
|
42195
42129
|
var indentSize = indent ? '2' : '1'; // root is at -1
|
|
42196
|
-
|
|
42197
|
-
var header = (startWithSpace ? indentSize : '') + chomp;
|
|
42130
|
+
var header = (literal ? '|' : '>') + (startWithSpace ? indentSize : '') + chomp;
|
|
42198
42131
|
if (comment) {
|
|
42199
42132
|
header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' '));
|
|
42200
42133
|
if (onComment) onComment();
|
|
42201
42134
|
}
|
|
42202
|
-
if (
|
|
42203
|
-
|
|
42204
|
-
|
|
42205
|
-
.replace(/\n+/g, "$&".concat(indent));
|
|
42206
|
-
var literalFallback = false;
|
|
42207
|
-
var foldOptions = getFoldOptions(ctx, true);
|
|
42208
|
-
if (blockQuote !== 'folded' && type !== _Scalar.Scalar.BLOCK_FOLDED) {
|
|
42209
|
-
foldOptions.onOverflow = function () {
|
|
42210
|
-
literalFallback = true;
|
|
42211
|
-
};
|
|
42212
|
-
}
|
|
42213
|
-
var body = (0, _foldFlowLines.foldFlowLines)("".concat(start).concat(foldedValue).concat(end), indent, _foldFlowLines.FOLD_BLOCK, foldOptions);
|
|
42214
|
-
if (!literalFallback) return ">".concat(header, "\n").concat(indent).concat(body);
|
|
42135
|
+
if (literal) {
|
|
42136
|
+
value = value.replace(/\n+/g, "$&".concat(indent));
|
|
42137
|
+
return "".concat(header, "\n").concat(indent).concat(start).concat(value).concat(end);
|
|
42215
42138
|
}
|
|
42216
|
-
value = value.replace(/\n+/g,
|
|
42217
|
-
|
|
42139
|
+
value = value.replace(/\n+/g, '\n$&').replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
|
|
42140
|
+
// ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
|
|
42141
|
+
.replace(/\n+/g, "$&".concat(indent));
|
|
42142
|
+
var body = (0, _foldFlowLines.foldFlowLines)("".concat(start).concat(value).concat(end), indent, _foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true));
|
|
42143
|
+
return "".concat(header, "\n").concat(indent).concat(body);
|
|
42218
42144
|
}
|
|
42219
42145
|
function plainString(item, ctx, onComment, onChompKeep) {
|
|
42220
42146
|
var type = item.type,
|
|
@@ -42303,7 +42229,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
|
42303
42229
|
return res;
|
|
42304
42230
|
}
|
|
42305
42231
|
|
|
42306
|
-
},{"../nodes/Scalar.js":252,"./foldFlowLines.js":
|
|
42232
|
+
},{"../nodes/Scalar.js":252,"./foldFlowLines.js":286}],294:[function(require,module,exports){
|
|
42307
42233
|
"use strict";
|
|
42308
42234
|
|
|
42309
42235
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -42607,7 +42533,7 @@ function replaceNode(key, path, node) {
|
|
|
42607
42533
|
}
|
|
42608
42534
|
}
|
|
42609
42535
|
|
|
42610
|
-
},{"./nodes/identity.js":256}],
|
|
42536
|
+
},{"./nodes/identity.js":256}],295:[function(require,module,exports){
|
|
42611
42537
|
"use strict";
|
|
42612
42538
|
|
|
42613
42539
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -42634,7 +42560,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
42634
42560
|
// https://github.com/eemeli/yaml/issues/228
|
|
42635
42561
|
var _default = exports["default"] = YAML;
|
|
42636
42562
|
|
|
42637
|
-
},{"./dist/index.js":246}],
|
|
42563
|
+
},{"./dist/index.js":246}],296:[function(require,module,exports){
|
|
42638
42564
|
(function (Buffer){(function (){
|
|
42639
42565
|
"use strict";
|
|
42640
42566
|
|
|
@@ -42864,7 +42790,7 @@ var BaseClient = exports["default"] = /*#__PURE__*/function (_events$EventEmitte
|
|
|
42864
42790
|
}(_events["default"].EventEmitter);
|
|
42865
42791
|
|
|
42866
42792
|
}).call(this)}).call(this,{"isBuffer":require("../node_modules/is-buffer/index.js")})
|
|
42867
|
-
},{"../node_modules/is-buffer/index.js":113,"events":97,"loglevel":138,"mqtt":148,"tinycache":193,"uuid":204}],
|
|
42793
|
+
},{"../node_modules/is-buffer/index.js":113,"events":97,"loglevel":138,"mqtt":148,"tinycache":193,"uuid":204}],297:[function(require,module,exports){
|
|
42868
42794
|
"use strict";
|
|
42869
42795
|
|
|
42870
42796
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43045,7 +42971,7 @@ var BaseConfig = exports["default"] = /*#__PURE__*/function () {
|
|
|
43045
42971
|
}();
|
|
43046
42972
|
;
|
|
43047
42973
|
|
|
43048
|
-
},{}],
|
|
42974
|
+
},{}],298:[function(require,module,exports){
|
|
43049
42975
|
"use strict";
|
|
43050
42976
|
|
|
43051
42977
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43552,7 +43478,7 @@ var ApiClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
43552
43478
|
}]);
|
|
43553
43479
|
}();
|
|
43554
43480
|
|
|
43555
|
-
},{"../util":
|
|
43481
|
+
},{"../util":312,"axios":2,"bluebird":70,"btoa":73,"form-data":99,"loglevel":138}],299:[function(require,module,exports){
|
|
43556
43482
|
"use strict";
|
|
43557
43483
|
|
|
43558
43484
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -43629,7 +43555,7 @@ var _default = exports["default"] = {
|
|
|
43629
43555
|
ServiceNotFound: ServiceNotFound
|
|
43630
43556
|
};
|
|
43631
43557
|
|
|
43632
|
-
},{}],
|
|
43558
|
+
},{}],300:[function(require,module,exports){
|
|
43633
43559
|
"use strict";
|
|
43634
43560
|
|
|
43635
43561
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43960,7 +43886,7 @@ var DscClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
43960
43886
|
}]);
|
|
43961
43887
|
}();
|
|
43962
43888
|
|
|
43963
|
-
},{"./ApiErrors":
|
|
43889
|
+
},{"./ApiErrors":299,"loglevel":138}],301:[function(require,module,exports){
|
|
43964
43890
|
"use strict";
|
|
43965
43891
|
|
|
43966
43892
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -44009,7 +43935,7 @@ var LecClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
44009
43935
|
}();
|
|
44010
43936
|
;
|
|
44011
43937
|
|
|
44012
|
-
},{"loglevel":138}],
|
|
43938
|
+
},{"loglevel":138}],302:[function(require,module,exports){
|
|
44013
43939
|
"use strict";
|
|
44014
43940
|
|
|
44015
43941
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -44087,7 +44013,7 @@ var MgmtClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
44087
44013
|
}();
|
|
44088
44014
|
;
|
|
44089
44015
|
|
|
44090
|
-
},{"loglevel":138}],
|
|
44016
|
+
},{"loglevel":138}],303:[function(require,module,exports){
|
|
44091
44017
|
"use strict";
|
|
44092
44018
|
|
|
44093
44019
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -44314,7 +44240,7 @@ var RegistryClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
44314
44240
|
}();
|
|
44315
44241
|
;
|
|
44316
44242
|
|
|
44317
|
-
},{}],
|
|
44243
|
+
},{}],304:[function(require,module,exports){
|
|
44318
44244
|
"use strict";
|
|
44319
44245
|
|
|
44320
44246
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -44420,7 +44346,7 @@ RulesClient.RuleNotificationStrategy = {
|
|
|
44420
44346
|
}
|
|
44421
44347
|
};
|
|
44422
44348
|
|
|
44423
|
-
},{"loglevel":138}],
|
|
44349
|
+
},{"loglevel":138}],305:[function(require,module,exports){
|
|
44424
44350
|
"use strict";
|
|
44425
44351
|
|
|
44426
44352
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -45143,7 +45069,7 @@ var StateClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
45143
45069
|
}();
|
|
45144
45070
|
;
|
|
45145
45071
|
|
|
45146
|
-
},{"loglevel":138}],
|
|
45072
|
+
},{"loglevel":138}],306:[function(require,module,exports){
|
|
45147
45073
|
"use strict";
|
|
45148
45074
|
|
|
45149
45075
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -45501,7 +45427,7 @@ var ApplicationClient = exports["default"] = /*#__PURE__*/function (_BaseClient)
|
|
|
45501
45427
|
}(_BaseClient2["default"]);
|
|
45502
45428
|
;
|
|
45503
45429
|
|
|
45504
|
-
},{"../BaseClient":
|
|
45430
|
+
},{"../BaseClient":296,"../api/ApiClient":298,"../api/DscClient":300,"../api/LecClient":301,"../api/MgmtClient":302,"../api/RegistryClient":303,"../api/RulesClient":304,"../api/StateClient":305,"../util":312,"./ApplicationConfig":307}],307:[function(require,module,exports){
|
|
45505
45431
|
(function (process){(function (){
|
|
45506
45432
|
"use strict";
|
|
45507
45433
|
|
|
@@ -45745,7 +45671,7 @@ var ApplicationConfig = exports["default"] = /*#__PURE__*/function (_BaseConfig)
|
|
|
45745
45671
|
}(_BaseConfig2["default"]);
|
|
45746
45672
|
|
|
45747
45673
|
}).call(this)}).call(this,require('_process'))
|
|
45748
|
-
},{"../BaseConfig":
|
|
45674
|
+
},{"../BaseConfig":297,"_process":182,"fs":72,"loglevel":138,"uuid":204,"yaml":295}],308:[function(require,module,exports){
|
|
45749
45675
|
"use strict";
|
|
45750
45676
|
|
|
45751
45677
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -45847,7 +45773,7 @@ var DeviceClient = exports["default"] = /*#__PURE__*/function (_BaseClient) {
|
|
|
45847
45773
|
}]);
|
|
45848
45774
|
}(_BaseClient2["default"]);
|
|
45849
45775
|
|
|
45850
|
-
},{"../BaseClient":
|
|
45776
|
+
},{"../BaseClient":296,"../util":312,"./DeviceConfig":309,"util":203}],309:[function(require,module,exports){
|
|
45851
45777
|
(function (process){(function (){
|
|
45852
45778
|
"use strict";
|
|
45853
45779
|
|
|
@@ -46052,7 +45978,7 @@ var DeviceConfig = exports["default"] = /*#__PURE__*/function (_BaseConfig) {
|
|
|
46052
45978
|
}(_BaseConfig2["default"]);
|
|
46053
45979
|
|
|
46054
45980
|
}).call(this)}).call(this,require('_process'))
|
|
46055
|
-
},{"../BaseConfig":
|
|
45981
|
+
},{"../BaseConfig":297,"_process":182,"fs":72,"loglevel":138,"yaml":295}],310:[function(require,module,exports){
|
|
46056
45982
|
"use strict";
|
|
46057
45983
|
|
|
46058
45984
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -46183,7 +46109,7 @@ var GatewayClient = exports["default"] = /*#__PURE__*/function (_BaseClient) {
|
|
|
46183
46109
|
}]);
|
|
46184
46110
|
}(_BaseClient2["default"]);
|
|
46185
46111
|
|
|
46186
|
-
},{"../BaseClient":
|
|
46112
|
+
},{"../BaseClient":296,"./GatewayConfig":311,"util":203}],311:[function(require,module,exports){
|
|
46187
46113
|
"use strict";
|
|
46188
46114
|
|
|
46189
46115
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -46229,7 +46155,7 @@ var GatewayConfig = exports["default"] = /*#__PURE__*/function (_DeviceConfig) {
|
|
|
46229
46155
|
}(_DeviceConfig2["default"]);
|
|
46230
46156
|
;
|
|
46231
46157
|
|
|
46232
|
-
},{"../device/DeviceConfig":
|
|
46158
|
+
},{"../device/DeviceConfig":309}],312:[function(require,module,exports){
|
|
46233
46159
|
"use strict";
|
|
46234
46160
|
|
|
46235
46161
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -46275,7 +46201,7 @@ function generateUUID() {
|
|
|
46275
46201
|
});
|
|
46276
46202
|
}
|
|
46277
46203
|
|
|
46278
|
-
},{}],
|
|
46204
|
+
},{}],313:[function(require,module,exports){
|
|
46279
46205
|
"use strict";
|
|
46280
46206
|
|
|
46281
46207
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -46374,4 +46300,4 @@ var _RulesClient = _interopRequireDefault(require("./api/RulesClient"));
|
|
|
46374
46300
|
var _StateClient = _interopRequireDefault(require("./api/StateClient"));
|
|
46375
46301
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
46376
46302
|
|
|
46377
|
-
},{"./api/ApiClient":
|
|
46303
|
+
},{"./api/ApiClient":298,"./api/ApiErrors":299,"./api/DscClient":300,"./api/LecClient":301,"./api/MgmtClient":302,"./api/RegistryClient":303,"./api/RulesClient":304,"./api/StateClient":305,"./application/ApplicationClient":306,"./application/ApplicationConfig":307,"./device/DeviceClient":308,"./device/DeviceConfig":309,"./gateway/GatewayClient":310}]},{},[313]);
|