@wiotp/sdk 0.8.2-alpha.2 → 0.8.2-alpha.3
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 +253 -171
- package/dist/bundled/wiotp-bundle.min.js +1 -1
- package/package.json +2 -2
|
@@ -32347,6 +32347,7 @@ 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,
|
|
32350
32351
|
atRoot: true,
|
|
32351
32352
|
directives: doc.directives,
|
|
32352
32353
|
options: doc.options,
|
|
@@ -32382,6 +32383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
32382
32383
|
exports.composeEmptyNode = composeEmptyNode;
|
|
32383
32384
|
exports.composeNode = composeNode;
|
|
32384
32385
|
var _Alias = require("../nodes/Alias.js");
|
|
32386
|
+
var _identity = require("../nodes/identity.js");
|
|
32385
32387
|
var _composeCollection = require("./compose-collection.js");
|
|
32386
32388
|
var _composeScalar = require("./compose-scalar.js");
|
|
32387
32389
|
var _resolveEnd = require("./resolve-end.js");
|
|
@@ -32391,6 +32393,7 @@ var CN = {
|
|
|
32391
32393
|
composeEmptyNode: composeEmptyNode
|
|
32392
32394
|
};
|
|
32393
32395
|
function composeNode(ctx, token, props, onError) {
|
|
32396
|
+
var atKey = ctx.atKey;
|
|
32394
32397
|
var spaceBefore = props.spaceBefore,
|
|
32395
32398
|
comment = props.comment,
|
|
32396
32399
|
anchor = props.anchor,
|
|
@@ -32424,6 +32427,10 @@ function composeNode(ctx, token, props, onError) {
|
|
|
32424
32427
|
}
|
|
32425
32428
|
}
|
|
32426
32429
|
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
|
+
}
|
|
32427
32434
|
if (spaceBefore) node.spaceBefore = true;
|
|
32428
32435
|
if (comment) {
|
|
32429
32436
|
if (token.type === 'scalar' && token.source === '') node.comment = comment;else node.commentBefore = comment;
|
|
@@ -32471,7 +32478,7 @@ function composeAlias(_ref2, _ref3, onError) {
|
|
|
32471
32478
|
return alias;
|
|
32472
32479
|
}
|
|
32473
32480
|
|
|
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){
|
|
32481
|
+
},{"../nodes/Alias.js":248,"../nodes/identity.js":256,"./compose-collection.js":224,"./compose-scalar.js":227,"./resolve-end.js":232,"./util-empty-scalar-position.js":237}],227:[function(require,module,exports){
|
|
32475
32482
|
"use strict";
|
|
32476
32483
|
|
|
32477
32484
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -32494,7 +32501,10 @@ function composeScalar(ctx, token, tagToken, onError) {
|
|
|
32494
32501
|
var tagName = tagToken ? ctx.directives.tagName(tagToken.source, function (msg) {
|
|
32495
32502
|
return onError(tagToken, 'TAG_RESOLVE_FAILED', msg);
|
|
32496
32503
|
}) : null;
|
|
32497
|
-
var tag
|
|
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];
|
|
32498
32508
|
var scalar;
|
|
32499
32509
|
try {
|
|
32500
32510
|
var res = tag.resolve(value, function (msg) {
|
|
@@ -32550,11 +32560,12 @@ function findScalarTagByName(schema, value, tagName, tagToken, onError) {
|
|
|
32550
32560
|
return schema[_identity.SCALAR];
|
|
32551
32561
|
}
|
|
32552
32562
|
function findScalarTagByTest(_ref2, value, token, onError) {
|
|
32553
|
-
var
|
|
32563
|
+
var atKey = _ref2.atKey,
|
|
32564
|
+
directives = _ref2.directives,
|
|
32554
32565
|
schema = _ref2.schema;
|
|
32555
32566
|
var tag = schema.tags.find(function (tag) {
|
|
32556
32567
|
var _tag$test2;
|
|
32557
|
-
return tag["default"] && ((_tag$test2 = tag.test) === null || _tag$test2 === void 0 ? void 0 : _tag$test2.test(value));
|
|
32568
|
+
return (tag["default"] === true || atKey && tag["default"] === 'key') && ((_tag$test2 = tag.test) === null || _tag$test2 === void 0 ? void 0 : _tag$test2.test(value));
|
|
32558
32569
|
}) || schema[_identity.SCALAR];
|
|
32559
32570
|
if (schema.compat) {
|
|
32560
32571
|
var _schema$compat$find;
|
|
@@ -32949,9 +32960,11 @@ function resolveBlockMap(_ref, ctx, bm, onError, tag) {
|
|
|
32949
32960
|
onError(offset, 'BAD_INDENT', startColMsg);
|
|
32950
32961
|
}
|
|
32951
32962
|
// key value
|
|
32963
|
+
ctx.atKey = true;
|
|
32952
32964
|
var keyStart = keyProps.end;
|
|
32953
32965
|
var keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
|
32954
32966
|
if (ctx.schema.compat) (0, _utilFlowIndentCheck.flowIndentCheck)(bm.indent, key, onError);
|
|
32967
|
+
ctx.atKey = false;
|
|
32955
32968
|
if ((0, _utilMapIncludes.mapIncludes)(ctx, map.items, keyNode)) onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique');
|
|
32956
32969
|
// value properties
|
|
32957
32970
|
var valueProps = (0, _resolveProps.resolveProps)(sep !== null && sep !== void 0 ? sep : [], {
|
|
@@ -33217,6 +33230,7 @@ function resolveBlockSeq(_ref, ctx, bs, onError, tag) {
|
|
|
33217
33230
|
var NodeClass = (_tag$nodeClass = tag === null || tag === void 0 ? void 0 : tag.nodeClass) !== null && _tag$nodeClass !== void 0 ? _tag$nodeClass : _YAMLSeq.YAMLSeq;
|
|
33218
33231
|
var seq = new NodeClass(ctx.schema);
|
|
33219
33232
|
if (ctx.atRoot) ctx.atRoot = false;
|
|
33233
|
+
if (ctx.atKey) ctx.atKey = false;
|
|
33220
33234
|
var offset = bs.offset;
|
|
33221
33235
|
var commentEnd = null;
|
|
33222
33236
|
var _iterator = _createForOfIteratorHelper(bs.items),
|
|
@@ -33349,6 +33363,7 @@ function resolveFlowCollection(_ref, ctx, fc, onError, tag) {
|
|
|
33349
33363
|
coll.flow = true;
|
|
33350
33364
|
var atRoot = ctx.atRoot;
|
|
33351
33365
|
if (atRoot) ctx.atRoot = false;
|
|
33366
|
+
if (ctx.atKey) ctx.atKey = false;
|
|
33352
33367
|
var offset = fc.offset + fc.start.source.length;
|
|
33353
33368
|
for (var i = 0; i < fc.items.length; ++i) {
|
|
33354
33369
|
var collItem = fc.items[i];
|
|
@@ -33424,9 +33439,11 @@ function resolveFlowCollection(_ref, ctx, fc, onError, tag) {
|
|
|
33424
33439
|
} else {
|
|
33425
33440
|
// item is a key+value pair
|
|
33426
33441
|
// key value
|
|
33442
|
+
ctx.atKey = true;
|
|
33427
33443
|
var keyStart = props.end;
|
|
33428
33444
|
var keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
|
|
33429
33445
|
if (isBlock(key)) onError(keyNode.range, 'BLOCK_IN_FLOW', blockMsg);
|
|
33446
|
+
ctx.atKey = false;
|
|
33430
33447
|
// value properties
|
|
33431
33448
|
var valueProps = (0, _resolveProps.resolveProps)(sep !== null && sep !== void 0 ? sep : [], {
|
|
33432
33449
|
flow: fcName,
|
|
@@ -33479,6 +33496,8 @@ function resolveFlowCollection(_ref, ctx, fc, onError, tag) {
|
|
|
33479
33496
|
var _map = new _YAMLMap.YAMLMap(ctx.schema);
|
|
33480
33497
|
_map.flow = true;
|
|
33481
33498
|
_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]];
|
|
33482
33501
|
coll.items.push(_map);
|
|
33483
33502
|
}
|
|
33484
33503
|
offset = _valueNode ? _valueNode.range[2] : valueProps.end;
|
|
@@ -33604,7 +33623,7 @@ function foldLines(source) {
|
|
|
33604
33623
|
try {
|
|
33605
33624
|
first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
|
|
33606
33625
|
line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
|
|
33607
|
-
} catch (
|
|
33626
|
+
} catch (_unused) {
|
|
33608
33627
|
first = new RegExp("([^]*?)[ \\t]*\\r?\\n", "y");
|
|
33609
33628
|
line = new RegExp("[ \\t]*([^]*?)[ \\t]*\\r?\\n", "y");
|
|
33610
33629
|
}
|
|
@@ -34023,7 +34042,7 @@ function mapIncludes(ctx, items, search) {
|
|
|
34023
34042
|
var uniqueKeys = ctx.options.uniqueKeys;
|
|
34024
34043
|
if (uniqueKeys === false) return false;
|
|
34025
34044
|
var isEqual = typeof uniqueKeys === 'function' ? uniqueKeys : function (a, b) {
|
|
34026
|
-
return a === b || (0, _identity.isScalar)(a) && (0, _identity.isScalar)(b) && a.value === b.value
|
|
34045
|
+
return a === b || (0, _identity.isScalar)(a) && (0, _identity.isScalar)(b) && a.value === b.value;
|
|
34027
34046
|
};
|
|
34028
34047
|
return items.some(function (pair) {
|
|
34029
34048
|
return isEqual(pair.key, search);
|
|
@@ -34086,6 +34105,7 @@ var Document = exports.Document = /*#__PURE__*/function () {
|
|
|
34086
34105
|
logLevel: 'warn',
|
|
34087
34106
|
prettyErrors: true,
|
|
34088
34107
|
strict: true,
|
|
34108
|
+
stringKeys: false,
|
|
34089
34109
|
uniqueKeys: true,
|
|
34090
34110
|
version: '1.2'
|
|
34091
34111
|
}, options);
|
|
@@ -34327,7 +34347,6 @@ var Document = exports.Document = /*#__PURE__*/function () {
|
|
|
34327
34347
|
version: '1.1'
|
|
34328
34348
|
});
|
|
34329
34349
|
opt = {
|
|
34330
|
-
merge: true,
|
|
34331
34350
|
resolveKnownTags: false,
|
|
34332
34351
|
schema: 'yaml-1.1'
|
|
34333
34352
|
};
|
|
@@ -34338,7 +34357,6 @@ var Document = exports.Document = /*#__PURE__*/function () {
|
|
|
34338
34357
|
version: version
|
|
34339
34358
|
});
|
|
34340
34359
|
opt = {
|
|
34341
|
-
merge: false,
|
|
34342
34360
|
resolveKnownTags: true,
|
|
34343
34361
|
schema: 'core'
|
|
34344
34362
|
};
|
|
@@ -34431,7 +34449,7 @@ function assertCollection(contents) {
|
|
|
34431
34449
|
throw new Error('Expected a YAML collection as document contents');
|
|
34432
34450
|
}
|
|
34433
34451
|
|
|
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":
|
|
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":291,"./anchors.js":241,"./applyReviver.js":242,"./createNode.js":243,"./directives.js":244}],241:[function(require,module,exports){
|
|
34435
34453
|
"use strict";
|
|
34436
34454
|
|
|
34437
34455
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -34507,7 +34525,7 @@ function createNodeAnchors(doc, prefix) {
|
|
|
34507
34525
|
};
|
|
34508
34526
|
}
|
|
34509
34527
|
|
|
34510
|
-
},{"../nodes/identity.js":256,"../visit.js":
|
|
34528
|
+
},{"../nodes/identity.js":256,"../visit.js":295}],242:[function(require,module,exports){
|
|
34511
34529
|
"use strict";
|
|
34512
34530
|
|
|
34513
34531
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -34534,6 +34552,7 @@ function applyReviver(reviver, obj, key, val) {
|
|
|
34534
34552
|
for (var i = 0, len = val.length; i < len; ++i) {
|
|
34535
34553
|
var v0 = val[i];
|
|
34536
34554
|
var v1 = applyReviver(reviver, val, String(i), v0);
|
|
34555
|
+
// eslint-disable-next-line @typescript-eslint/no-array-delete
|
|
34537
34556
|
if (v1 === undefined) delete val[i];else if (v1 !== v0) val[i] = v1;
|
|
34538
34557
|
}
|
|
34539
34558
|
} else if (val instanceof Map) {
|
|
@@ -34877,7 +34896,7 @@ Directives.defaultTags = {
|
|
|
34877
34896
|
'!!': 'tag:yaml.org,2002:'
|
|
34878
34897
|
};
|
|
34879
34898
|
|
|
34880
|
-
},{"../nodes/identity.js":256,"../visit.js":
|
|
34899
|
+
},{"../nodes/identity.js":256,"../visit.js":295}],245:[function(require,module,exports){
|
|
34881
34900
|
"use strict";
|
|
34882
34901
|
|
|
34883
34902
|
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); }
|
|
@@ -35164,7 +35183,7 @@ var _visit = require("./visit.js");
|
|
|
35164
35183
|
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); }
|
|
35165
35184
|
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; }
|
|
35166
35185
|
|
|
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":
|
|
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":295}],247:[function(require,module,exports){
|
|
35168
35187
|
(function (process){(function (){
|
|
35169
35188
|
"use strict";
|
|
35170
35189
|
|
|
@@ -35182,8 +35201,6 @@ function debug(logLevel) {
|
|
|
35182
35201
|
}
|
|
35183
35202
|
function warn(logLevel, warning) {
|
|
35184
35203
|
if (logLevel === 'debug' || logLevel === 'warn') {
|
|
35185
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/7478
|
|
35186
|
-
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
35187
35204
|
if (typeof process !== 'undefined' && process.emitWarning) process.emitWarning(warning);else console.warn(warning);
|
|
35188
35205
|
}
|
|
35189
35206
|
}
|
|
@@ -35328,7 +35345,7 @@ function getAliasCount(doc, node, anchors) {
|
|
|
35328
35345
|
return 1;
|
|
35329
35346
|
}
|
|
35330
35347
|
|
|
35331
|
-
},{"../doc/anchors.js":241,"../visit.js":
|
|
35348
|
+
},{"../doc/anchors.js":241,"../visit.js":295,"./Node.js":250,"./identity.js":256,"./toJS.js":257}],249:[function(require,module,exports){
|
|
35332
35349
|
"use strict";
|
|
35333
35350
|
|
|
35334
35351
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -35634,7 +35651,7 @@ var Pair = exports.Pair = /*#__PURE__*/function () {
|
|
|
35634
35651
|
}]);
|
|
35635
35652
|
}();
|
|
35636
35653
|
|
|
35637
|
-
},{"../doc/createNode.js":243,"../stringify/stringifyPair.js":
|
|
35654
|
+
},{"../doc/createNode.js":243,"../stringify/stringifyPair.js":293,"./addPairToJSMap.js":255,"./identity.js":256}],252:[function(require,module,exports){
|
|
35638
35655
|
"use strict";
|
|
35639
35656
|
|
|
35640
35657
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -35908,7 +35925,7 @@ var YAMLMap = exports.YAMLMap = /*#__PURE__*/function (_Collection) {
|
|
|
35908
35925
|
}]);
|
|
35909
35926
|
}(_Collection2.Collection);
|
|
35910
35927
|
|
|
35911
|
-
},{"../stringify/stringifyCollection.js":
|
|
35928
|
+
},{"../stringify/stringifyCollection.js":289,"./Collection.js":249,"./Pair.js":251,"./Scalar.js":252,"./addPairToJSMap.js":255,"./identity.js":256}],254:[function(require,module,exports){
|
|
35912
35929
|
"use strict";
|
|
35913
35930
|
|
|
35914
35931
|
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); }
|
|
@@ -36076,7 +36093,7 @@ function asItemIndex(key) {
|
|
|
36076
36093
|
return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
36077
36094
|
}
|
|
36078
36095
|
|
|
36079
|
-
},{"../doc/createNode.js":243,"../stringify/stringifyCollection.js":
|
|
36096
|
+
},{"../doc/createNode.js":243,"../stringify/stringifyCollection.js":289,"./Collection.js":249,"./Scalar.js":252,"./identity.js":256,"./toJS.js":257}],255:[function(require,module,exports){
|
|
36080
36097
|
"use strict";
|
|
36081
36098
|
|
|
36082
36099
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36084,52 +36101,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
36084
36101
|
});
|
|
36085
36102
|
exports.addPairToJSMap = addPairToJSMap;
|
|
36086
36103
|
var _log = require("../log.js");
|
|
36104
|
+
var _merge = require("../schema/yaml-1.1/merge.js");
|
|
36087
36105
|
var _stringify = require("../stringify/stringify.js");
|
|
36088
36106
|
var _identity = require("./identity.js");
|
|
36089
|
-
var _Scalar = require("./Scalar.js");
|
|
36090
36107
|
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; }
|
|
36096
36108
|
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; } } }; }
|
|
36097
36109
|
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; } }
|
|
36098
36110
|
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; }
|
|
36099
|
-
|
|
36111
|
+
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); }
|
|
36100
36112
|
function addPairToJSMap(ctx, map, _ref) {
|
|
36101
36113
|
var key = _ref.key,
|
|
36102
36114
|
value = _ref.value;
|
|
36103
|
-
if (
|
|
36104
|
-
|
|
36105
|
-
|
|
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 {
|
|
36115
|
+
if ((0, _identity.isNode)(key) && key.addToJSMap) key.addToJSMap(ctx, map, value);
|
|
36116
|
+
// TODO: Should drop this special case for bare << handling
|
|
36117
|
+
else if ((0, _merge.isMergeKey)(ctx, key)) (0, _merge.addMergeToJSMap)(ctx, map, value);else {
|
|
36133
36118
|
var jsKey = (0, _toJS.toJS)(key, '', ctx);
|
|
36134
36119
|
if (map instanceof Map) {
|
|
36135
36120
|
map.set(jsKey, (0, _toJS.toJS)(value, jsKey, ctx));
|
|
@@ -36148,64 +36133,23 @@ function addPairToJSMap(ctx, map, _ref) {
|
|
|
36148
36133
|
}
|
|
36149
36134
|
return map;
|
|
36150
36135
|
}
|
|
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
|
-
}
|
|
36192
36136
|
function stringifyKey(key, jsKey, ctx) {
|
|
36193
36137
|
if (jsKey === null) return '';
|
|
36194
36138
|
if (_typeof(jsKey) !== 'object') return String(jsKey);
|
|
36195
36139
|
if ((0, _identity.isNode)(key) && ctx !== null && ctx !== void 0 && ctx.doc) {
|
|
36196
36140
|
var strCtx = (0, _stringify.createStringifyContext)(ctx.doc, {});
|
|
36197
36141
|
strCtx.anchors = new Set();
|
|
36198
|
-
var
|
|
36199
|
-
|
|
36142
|
+
var _iterator = _createForOfIteratorHelper(ctx.anchors.keys()),
|
|
36143
|
+
_step;
|
|
36200
36144
|
try {
|
|
36201
|
-
for (
|
|
36202
|
-
var node =
|
|
36145
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
36146
|
+
var node = _step.value;
|
|
36203
36147
|
strCtx.anchors.add(node.anchor);
|
|
36204
36148
|
}
|
|
36205
36149
|
} catch (err) {
|
|
36206
|
-
|
|
36150
|
+
_iterator.e(err);
|
|
36207
36151
|
} finally {
|
|
36208
|
-
|
|
36152
|
+
_iterator.f();
|
|
36209
36153
|
}
|
|
36210
36154
|
strCtx.inFlow = true;
|
|
36211
36155
|
strCtx.inStringifyKey = true;
|
|
@@ -36221,7 +36165,7 @@ function stringifyKey(key, jsKey, ctx) {
|
|
|
36221
36165
|
return JSON.stringify(jsKey);
|
|
36222
36166
|
}
|
|
36223
36167
|
|
|
36224
|
-
},{"../log.js":247,"../
|
|
36168
|
+
},{"../log.js":247,"../schema/yaml-1.1/merge.js":281,"../stringify/stringify.js":288,"./identity.js":256,"./toJS.js":257}],256:[function(require,module,exports){
|
|
36225
36169
|
"use strict";
|
|
36226
36170
|
|
|
36227
36171
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36663,7 +36607,7 @@ function setFlowScalarValue(token, source, type) {
|
|
|
36663
36607
|
}
|
|
36664
36608
|
}
|
|
36665
36609
|
|
|
36666
|
-
},{"../compose/resolve-block-scalar.js":230,"../compose/resolve-flow-scalar.js":234,"../errors.js":245,"../stringify/stringifyString.js":
|
|
36610
|
+
},{"../compose/resolve-block-scalar.js":230,"../compose/resolve-flow-scalar.js":234,"../errors.js":245,"../stringify/stringifyString.js":294}],259:[function(require,module,exports){
|
|
36667
36611
|
"use strict";
|
|
36668
36612
|
|
|
36669
36613
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -39379,7 +39323,9 @@ var Parser = exports.Parser = /*#__PURE__*/function () {
|
|
|
39379
39323
|
sep = it.sep;
|
|
39380
39324
|
sep.push(this.sourceToken);
|
|
39381
39325
|
// @ts-expect-error type guard is wrong here
|
|
39382
|
-
delete it.key
|
|
39326
|
+
delete it.key;
|
|
39327
|
+
// @ts-expect-error type guard is wrong here
|
|
39328
|
+
delete it.sep;
|
|
39383
39329
|
this.stack.push({
|
|
39384
39330
|
type: 'block-map',
|
|
39385
39331
|
offset: this.offset,
|
|
@@ -39852,6 +39798,7 @@ var _composer = require("./compose/composer.js");
|
|
|
39852
39798
|
var _Document = require("./doc/Document.js");
|
|
39853
39799
|
var _errors = require("./errors.js");
|
|
39854
39800
|
var _log = require("./log.js");
|
|
39801
|
+
var _identity = require("./nodes/identity.js");
|
|
39855
39802
|
var _lineCounter = require("./parse/line-counter.js");
|
|
39856
39803
|
var _parser = require("./parse/parser.js");
|
|
39857
39804
|
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); }
|
|
@@ -39975,10 +39922,11 @@ function stringify(value, replacer, options) {
|
|
|
39975
39922
|
keepUndefined = _ref.keepUndefined;
|
|
39976
39923
|
if (!keepUndefined) return undefined;
|
|
39977
39924
|
}
|
|
39925
|
+
if ((0, _identity.isDocument)(value) && !_replacer) return value.toString(options);
|
|
39978
39926
|
return new _Document.Document(value, _replacer, options).toString(options);
|
|
39979
39927
|
}
|
|
39980
39928
|
|
|
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){
|
|
39929
|
+
},{"./compose/composer.js":228,"./doc/Document.js":240,"./errors.js":245,"./log.js":247,"./nodes/identity.js":256,"./parse/line-counter.js":263,"./parse/parser.js":264}],266:[function(require,module,exports){
|
|
39982
39930
|
"use strict";
|
|
39983
39931
|
|
|
39984
39932
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40010,10 +39958,9 @@ var Schema = exports.Schema = /*#__PURE__*/function () {
|
|
|
40010
39958
|
toStringDefaults = _ref.toStringDefaults;
|
|
40011
39959
|
_classCallCheck(this, Schema);
|
|
40012
39960
|
this.compat = Array.isArray(compat) ? (0, _tags.getTags)(compat, 'compat') : compat ? (0, _tags.getTags)(null, compat) : null;
|
|
40013
|
-
this.merge = !!merge;
|
|
40014
39961
|
this.name = typeof schema === 'string' && schema || 'core';
|
|
40015
39962
|
this.knownTags = resolveKnownTags ? _tags.coreKnownTags : {};
|
|
40016
|
-
this.tags = (0, _tags.getTags)(customTags, this.name);
|
|
39963
|
+
this.tags = (0, _tags.getTags)(customTags, this.name, merge);
|
|
40017
39964
|
this.toStringOptions = toStringDefaults !== null && toStringDefaults !== void 0 ? toStringDefaults : null;
|
|
40018
39965
|
Object.defineProperty(this, _identity.MAP, {
|
|
40019
39966
|
value: _map.map
|
|
@@ -40135,7 +40082,7 @@ var string = exports.string = {
|
|
|
40135
40082
|
}
|
|
40136
40083
|
};
|
|
40137
40084
|
|
|
40138
|
-
},{"../../stringify/stringifyString.js":
|
|
40085
|
+
},{"../../stringify/stringifyString.js":294}],271:[function(require,module,exports){
|
|
40139
40086
|
"use strict";
|
|
40140
40087
|
|
|
40141
40088
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40217,7 +40164,7 @@ var _float = exports["float"] = {
|
|
|
40217
40164
|
stringify: _stringifyNumber.stringifyNumber
|
|
40218
40165
|
};
|
|
40219
40166
|
|
|
40220
|
-
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":
|
|
40167
|
+
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":292}],273:[function(require,module,exports){
|
|
40221
40168
|
"use strict";
|
|
40222
40169
|
|
|
40223
40170
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40278,7 +40225,7 @@ var intHex = exports.intHex = {
|
|
|
40278
40225
|
}
|
|
40279
40226
|
};
|
|
40280
40227
|
|
|
40281
|
-
},{"../../stringify/stringifyNumber.js":
|
|
40228
|
+
},{"../../stringify/stringifyNumber.js":292}],274:[function(require,module,exports){
|
|
40282
40229
|
"use strict";
|
|
40283
40230
|
|
|
40284
40231
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40341,7 +40288,7 @@ var jsonScalars = [{
|
|
|
40341
40288
|
},
|
|
40342
40289
|
"default": true,
|
|
40343
40290
|
tag: 'tag:yaml.org,2002:bool',
|
|
40344
|
-
test: /^true
|
|
40291
|
+
test: /^true$|^false$/,
|
|
40345
40292
|
resolve: function resolve(str) {
|
|
40346
40293
|
return str === 'true';
|
|
40347
40294
|
},
|
|
@@ -40400,6 +40347,7 @@ var _int2 = require("./core/int.js");
|
|
|
40400
40347
|
var _schema = require("./core/schema.js");
|
|
40401
40348
|
var _schema2 = require("./json/schema.js");
|
|
40402
40349
|
var _binary = require("./yaml-1.1/binary.js");
|
|
40350
|
+
var _merge = require("./yaml-1.1/merge.js");
|
|
40403
40351
|
var _omap = require("./yaml-1.1/omap.js");
|
|
40404
40352
|
var _pairs = require("./yaml-1.1/pairs.js");
|
|
40405
40353
|
var _schema3 = require("./yaml-1.1/schema.js");
|
|
@@ -40421,6 +40369,7 @@ var tagsByName = {
|
|
|
40421
40369
|
intOct: _int2.intOct,
|
|
40422
40370
|
intTime: _timestamp.intTime,
|
|
40423
40371
|
map: _map.map,
|
|
40372
|
+
merge: _merge.merge,
|
|
40424
40373
|
"null": _null.nullTag,
|
|
40425
40374
|
omap: _omap.omap,
|
|
40426
40375
|
pairs: _pairs.pairs,
|
|
@@ -40430,13 +40379,18 @@ var tagsByName = {
|
|
|
40430
40379
|
};
|
|
40431
40380
|
var coreKnownTags = exports.coreKnownTags = {
|
|
40432
40381
|
'tag:yaml.org,2002:binary': _binary.binary,
|
|
40382
|
+
'tag:yaml.org,2002:merge': _merge.merge,
|
|
40433
40383
|
'tag:yaml.org,2002:omap': _omap.omap,
|
|
40434
40384
|
'tag:yaml.org,2002:pairs': _pairs.pairs,
|
|
40435
40385
|
'tag:yaml.org,2002:set': _set.set,
|
|
40436
40386
|
'tag:yaml.org,2002:timestamp': _timestamp.timestamp
|
|
40437
40387
|
};
|
|
40438
|
-
function getTags(customTags, schemaName) {
|
|
40439
|
-
var
|
|
40388
|
+
function getTags(customTags, schemaName, addMergeTag) {
|
|
40389
|
+
var schemaTags = schemas.get(schemaName);
|
|
40390
|
+
if (schemaTags && !customTags) {
|
|
40391
|
+
return addMergeTag && !schemaTags.includes(_merge.merge) ? schemaTags.concat(_merge.merge) : schemaTags.slice();
|
|
40392
|
+
}
|
|
40393
|
+
var tags = schemaTags;
|
|
40440
40394
|
if (!tags) {
|
|
40441
40395
|
if (Array.isArray(customTags)) tags = [];else {
|
|
40442
40396
|
var keys = Array.from(schemas.keys()).filter(function (key) {
|
|
@@ -40463,18 +40417,22 @@ function getTags(customTags, schemaName) {
|
|
|
40463
40417
|
} else if (typeof customTags === 'function') {
|
|
40464
40418
|
tags = customTags(tags.slice());
|
|
40465
40419
|
}
|
|
40466
|
-
|
|
40467
|
-
|
|
40468
|
-
var tagObj = tagsByName[tag];
|
|
40469
|
-
if (tagObj)
|
|
40470
|
-
|
|
40471
|
-
|
|
40472
|
-
|
|
40473
|
-
|
|
40474
|
-
|
|
40420
|
+
if (addMergeTag) tags = tags.concat(_merge.merge);
|
|
40421
|
+
return tags.reduce(function (tags, tag) {
|
|
40422
|
+
var tagObj = typeof tag === 'string' ? tagsByName[tag] : tag;
|
|
40423
|
+
if (!tagObj) {
|
|
40424
|
+
var tagName = JSON.stringify(tag);
|
|
40425
|
+
var _keys = Object.keys(tagsByName).map(function (key) {
|
|
40426
|
+
return JSON.stringify(key);
|
|
40427
|
+
}).join(', ');
|
|
40428
|
+
throw new Error("Unknown custom tag ".concat(tagName, "; use one of ").concat(_keys));
|
|
40429
|
+
}
|
|
40430
|
+
if (!tags.includes(tagObj)) tags.push(tagObj);
|
|
40431
|
+
return tags;
|
|
40432
|
+
}, []);
|
|
40475
40433
|
}
|
|
40476
40434
|
|
|
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/
|
|
40435
|
+
},{"./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/merge.js":281,"./yaml-1.1/omap.js":282,"./yaml-1.1/pairs.js":283,"./yaml-1.1/schema.js":284,"./yaml-1.1/set.js":285,"./yaml-1.1/timestamp.js":286}],277:[function(require,module,exports){
|
|
40478
40436
|
(function (Buffer){(function (){
|
|
40479
40437
|
"use strict";
|
|
40480
40438
|
|
|
@@ -40547,7 +40505,7 @@ var binary = exports.binary = {
|
|
|
40547
40505
|
};
|
|
40548
40506
|
|
|
40549
40507
|
}).call(this)}).call(this,require("buffer").Buffer)
|
|
40550
|
-
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyString.js":
|
|
40508
|
+
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyString.js":294,"buffer":74}],278:[function(require,module,exports){
|
|
40551
40509
|
"use strict";
|
|
40552
40510
|
|
|
40553
40511
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40643,7 +40601,7 @@ var _float = exports["float"] = {
|
|
|
40643
40601
|
stringify: _stringifyNumber.stringifyNumber
|
|
40644
40602
|
};
|
|
40645
40603
|
|
|
40646
|
-
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":
|
|
40604
|
+
},{"../../nodes/Scalar.js":252,"../../stringify/stringifyNumber.js":292}],280:[function(require,module,exports){
|
|
40647
40605
|
"use strict";
|
|
40648
40606
|
|
|
40649
40607
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40735,7 +40693,116 @@ var intHex = exports.intHex = {
|
|
|
40735
40693
|
}
|
|
40736
40694
|
};
|
|
40737
40695
|
|
|
40738
|
-
},{"../../stringify/stringifyNumber.js":
|
|
40696
|
+
},{"../../stringify/stringifyNumber.js":292}],281:[function(require,module,exports){
|
|
40697
|
+
"use strict";
|
|
40698
|
+
|
|
40699
|
+
Object.defineProperty(exports, "__esModule", {
|
|
40700
|
+
value: true
|
|
40701
|
+
});
|
|
40702
|
+
exports.addMergeToJSMap = addMergeToJSMap;
|
|
40703
|
+
exports.merge = exports.isMergeKey = void 0;
|
|
40704
|
+
var _identity = require("../../nodes/identity.js");
|
|
40705
|
+
var _Scalar = require("../../nodes/Scalar.js");
|
|
40706
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
40707
|
+
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."); }
|
|
40708
|
+
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; } }
|
|
40709
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
40710
|
+
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; } } }; }
|
|
40711
|
+
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; } }
|
|
40712
|
+
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; }
|
|
40713
|
+
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); }
|
|
40714
|
+
// If the value associated with a merge key is a single mapping node, each of
|
|
40715
|
+
// its key/value pairs is inserted into the current mapping, unless the key
|
|
40716
|
+
// already exists in it. If the value associated with the merge key is a
|
|
40717
|
+
// sequence, then this sequence is expected to contain mapping nodes and each
|
|
40718
|
+
// of these nodes is merged in turn according to its order in the sequence.
|
|
40719
|
+
// Keys in mapping nodes earlier in the sequence override keys specified in
|
|
40720
|
+
// later mapping nodes. -- http://yaml.org/type/merge.html
|
|
40721
|
+
var MERGE_KEY = '<<';
|
|
40722
|
+
var merge = exports.merge = {
|
|
40723
|
+
identify: function identify(value) {
|
|
40724
|
+
return value === MERGE_KEY || _typeof(value) === 'symbol' && value.description === MERGE_KEY;
|
|
40725
|
+
},
|
|
40726
|
+
"default": 'key',
|
|
40727
|
+
tag: 'tag:yaml.org,2002:merge',
|
|
40728
|
+
test: /^<<$/,
|
|
40729
|
+
resolve: function resolve() {
|
|
40730
|
+
return Object.assign(new _Scalar.Scalar(Symbol(MERGE_KEY)), {
|
|
40731
|
+
addToJSMap: addMergeToJSMap
|
|
40732
|
+
});
|
|
40733
|
+
},
|
|
40734
|
+
stringify: function stringify() {
|
|
40735
|
+
return MERGE_KEY;
|
|
40736
|
+
}
|
|
40737
|
+
};
|
|
40738
|
+
var isMergeKey = exports.isMergeKey = function isMergeKey(ctx, key) {
|
|
40739
|
+
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) {
|
|
40740
|
+
return tag.tag === merge.tag && tag["default"];
|
|
40741
|
+
}));
|
|
40742
|
+
};
|
|
40743
|
+
function addMergeToJSMap(ctx, map, value) {
|
|
40744
|
+
value = ctx && (0, _identity.isAlias)(value) ? value.resolve(ctx.doc) : value;
|
|
40745
|
+
if ((0, _identity.isSeq)(value)) {
|
|
40746
|
+
var _iterator = _createForOfIteratorHelper(value.items),
|
|
40747
|
+
_step;
|
|
40748
|
+
try {
|
|
40749
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
40750
|
+
var it = _step.value;
|
|
40751
|
+
mergeValue(ctx, map, it);
|
|
40752
|
+
}
|
|
40753
|
+
} catch (err) {
|
|
40754
|
+
_iterator.e(err);
|
|
40755
|
+
} finally {
|
|
40756
|
+
_iterator.f();
|
|
40757
|
+
}
|
|
40758
|
+
} else if (Array.isArray(value)) {
|
|
40759
|
+
var _iterator2 = _createForOfIteratorHelper(value),
|
|
40760
|
+
_step2;
|
|
40761
|
+
try {
|
|
40762
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
40763
|
+
var _it = _step2.value;
|
|
40764
|
+
mergeValue(ctx, map, _it);
|
|
40765
|
+
}
|
|
40766
|
+
} catch (err) {
|
|
40767
|
+
_iterator2.e(err);
|
|
40768
|
+
} finally {
|
|
40769
|
+
_iterator2.f();
|
|
40770
|
+
}
|
|
40771
|
+
} else mergeValue(ctx, map, value);
|
|
40772
|
+
}
|
|
40773
|
+
function mergeValue(ctx, map, value) {
|
|
40774
|
+
var source = ctx && (0, _identity.isAlias)(value) ? value.resolve(ctx.doc) : value;
|
|
40775
|
+
if (!(0, _identity.isMap)(source)) throw new Error('Merge sources must be maps or map aliases');
|
|
40776
|
+
var srcMap = source.toJSON(null, ctx, Map);
|
|
40777
|
+
var _iterator3 = _createForOfIteratorHelper(srcMap),
|
|
40778
|
+
_step3;
|
|
40779
|
+
try {
|
|
40780
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
40781
|
+
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
40782
|
+
key = _step3$value[0],
|
|
40783
|
+
_value = _step3$value[1];
|
|
40784
|
+
if (map instanceof Map) {
|
|
40785
|
+
if (!map.has(key)) map.set(key, _value);
|
|
40786
|
+
} else if (map instanceof Set) {
|
|
40787
|
+
map.add(key);
|
|
40788
|
+
} else if (!Object.prototype.hasOwnProperty.call(map, key)) {
|
|
40789
|
+
Object.defineProperty(map, key, {
|
|
40790
|
+
value: _value,
|
|
40791
|
+
writable: true,
|
|
40792
|
+
enumerable: true,
|
|
40793
|
+
configurable: true
|
|
40794
|
+
});
|
|
40795
|
+
}
|
|
40796
|
+
}
|
|
40797
|
+
} catch (err) {
|
|
40798
|
+
_iterator3.e(err);
|
|
40799
|
+
} finally {
|
|
40800
|
+
_iterator3.f();
|
|
40801
|
+
}
|
|
40802
|
+
return map;
|
|
40803
|
+
}
|
|
40804
|
+
|
|
40805
|
+
},{"../../nodes/Scalar.js":252,"../../nodes/identity.js":256}],282:[function(require,module,exports){
|
|
40739
40806
|
"use strict";
|
|
40740
40807
|
|
|
40741
40808
|
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); }
|
|
@@ -40860,7 +40927,7 @@ var omap = exports.omap = {
|
|
|
40860
40927
|
}
|
|
40861
40928
|
};
|
|
40862
40929
|
|
|
40863
|
-
},{"../../nodes/YAMLMap.js":253,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256,"../../nodes/toJS.js":257,"./pairs.js":
|
|
40930
|
+
},{"../../nodes/YAMLMap.js":253,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256,"../../nodes/toJS.js":257,"./pairs.js":283}],283:[function(require,module,exports){
|
|
40864
40931
|
"use strict";
|
|
40865
40932
|
|
|
40866
40933
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40944,7 +41011,7 @@ var pairs = exports.pairs = {
|
|
|
40944
41011
|
createNode: createPairs
|
|
40945
41012
|
};
|
|
40946
41013
|
|
|
40947
|
-
},{"../../nodes/Pair.js":251,"../../nodes/Scalar.js":252,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256}],
|
|
41014
|
+
},{"../../nodes/Pair.js":251,"../../nodes/Scalar.js":252,"../../nodes/YAMLSeq.js":254,"../../nodes/identity.js":256}],284:[function(require,module,exports){
|
|
40948
41015
|
"use strict";
|
|
40949
41016
|
|
|
40950
41017
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -40959,13 +41026,14 @@ var _binary = require("./binary.js");
|
|
|
40959
41026
|
var _bool = require("./bool.js");
|
|
40960
41027
|
var _float2 = require("./float.js");
|
|
40961
41028
|
var _int2 = require("./int.js");
|
|
41029
|
+
var _merge = require("./merge.js");
|
|
40962
41030
|
var _omap = require("./omap.js");
|
|
40963
41031
|
var _pairs = require("./pairs.js");
|
|
40964
41032
|
var _set = require("./set.js");
|
|
40965
41033
|
var _timestamp = require("./timestamp.js");
|
|
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];
|
|
41034
|
+
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, _merge.merge, _omap.omap, _pairs.pairs, _set.set, _timestamp.intTime, _timestamp.floatTime, _timestamp.timestamp];
|
|
40967
41035
|
|
|
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,"./
|
|
41036
|
+
},{"../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,"./merge.js":281,"./omap.js":282,"./pairs.js":283,"./set.js":285,"./timestamp.js":286}],285:[function(require,module,exports){
|
|
40969
41037
|
"use strict";
|
|
40970
41038
|
|
|
40971
41039
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41089,7 +41157,7 @@ var set = exports.set = {
|
|
|
41089
41157
|
}
|
|
41090
41158
|
};
|
|
41091
41159
|
|
|
41092
|
-
},{"../../nodes/Pair.js":251,"../../nodes/YAMLMap.js":253,"../../nodes/identity.js":256}],
|
|
41160
|
+
},{"../../nodes/Pair.js":251,"../../nodes/YAMLMap.js":253,"../../nodes/identity.js":256}],286:[function(require,module,exports){
|
|
41093
41161
|
"use strict";
|
|
41094
41162
|
|
|
41095
41163
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41220,11 +41288,11 @@ var timestamp = exports.timestamp = {
|
|
|
41220
41288
|
},
|
|
41221
41289
|
stringify: function stringify(_ref2) {
|
|
41222
41290
|
var value = _ref2.value;
|
|
41223
|
-
return value.toISOString().replace(/(
|
|
41291
|
+
return value.toISOString().replace(/(T00:00:00)?\.000Z$/, '');
|
|
41224
41292
|
}
|
|
41225
41293
|
};
|
|
41226
41294
|
|
|
41227
|
-
},{"../../stringify/stringifyNumber.js":
|
|
41295
|
+
},{"../../stringify/stringifyNumber.js":292}],287:[function(require,module,exports){
|
|
41228
41296
|
"use strict";
|
|
41229
41297
|
|
|
41230
41298
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41362,7 +41430,7 @@ function consumeMoreIndentedLines(text, i, indent) {
|
|
|
41362
41430
|
return end;
|
|
41363
41431
|
}
|
|
41364
41432
|
|
|
41365
|
-
},{}],
|
|
41433
|
+
},{}],288:[function(require,module,exports){
|
|
41366
41434
|
"use strict";
|
|
41367
41435
|
|
|
41368
41436
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41435,6 +41503,12 @@ function getTagObject(tags, item) {
|
|
|
41435
41503
|
var _t$identify;
|
|
41436
41504
|
return (_t$identify = t.identify) === null || _t$identify === void 0 ? void 0 : _t$identify.call(t, obj);
|
|
41437
41505
|
});
|
|
41506
|
+
if (_match.length > 1) {
|
|
41507
|
+
var testMatch = _match.filter(function (t) {
|
|
41508
|
+
return t.test;
|
|
41509
|
+
});
|
|
41510
|
+
if (testMatch.length > 0) _match = testMatch;
|
|
41511
|
+
}
|
|
41438
41512
|
tagObj = (_match$find2 = _match.find(function (t) {
|
|
41439
41513
|
return t.format === item.format;
|
|
41440
41514
|
})) !== null && _match$find2 !== void 0 ? _match$find2 : _match.find(function (t) {
|
|
@@ -41495,7 +41569,7 @@ function stringify(item, ctx, onComment, onChompKeep) {
|
|
|
41495
41569
|
return (0, _identity.isScalar)(node) || str[0] === '{' || str[0] === '[' ? "".concat(props, " ").concat(str) : "".concat(props, "\n").concat(ctx.indent).concat(str);
|
|
41496
41570
|
}
|
|
41497
41571
|
|
|
41498
|
-
},{"../doc/anchors.js":241,"../nodes/identity.js":256,"./stringifyComment.js":
|
|
41572
|
+
},{"../doc/anchors.js":241,"../nodes/identity.js":256,"./stringifyComment.js":290,"./stringifyString.js":294}],289:[function(require,module,exports){
|
|
41499
41573
|
"use strict";
|
|
41500
41574
|
|
|
41501
41575
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41666,7 +41740,7 @@ function addCommentBefore(_ref5, lines, comment, chompKeep) {
|
|
|
41666
41740
|
}
|
|
41667
41741
|
}
|
|
41668
41742
|
|
|
41669
|
-
},{"../nodes/identity.js":256,"./stringify.js":
|
|
41743
|
+
},{"../nodes/identity.js":256,"./stringify.js":288,"./stringifyComment.js":290}],290:[function(require,module,exports){
|
|
41670
41744
|
"use strict";
|
|
41671
41745
|
|
|
41672
41746
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41692,7 +41766,7 @@ var lineComment = exports.lineComment = function lineComment(str, indent, commen
|
|
|
41692
41766
|
return str.endsWith('\n') ? indentComment(comment, indent) : comment.includes('\n') ? '\n' + indentComment(comment, indent) : (str.endsWith(' ') ? '' : ' ') + comment;
|
|
41693
41767
|
};
|
|
41694
41768
|
|
|
41695
|
-
},{}],
|
|
41769
|
+
},{}],291:[function(require,module,exports){
|
|
41696
41770
|
"use strict";
|
|
41697
41771
|
|
|
41698
41772
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41772,7 +41846,7 @@ function stringifyDocument(doc, options) {
|
|
|
41772
41846
|
return lines.join('\n') + '\n';
|
|
41773
41847
|
}
|
|
41774
41848
|
|
|
41775
|
-
},{"../nodes/identity.js":256,"./stringify.js":
|
|
41849
|
+
},{"../nodes/identity.js":256,"./stringify.js":288,"./stringifyComment.js":290}],292:[function(require,module,exports){
|
|
41776
41850
|
"use strict";
|
|
41777
41851
|
|
|
41778
41852
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41800,7 +41874,7 @@ function stringifyNumber(_ref) {
|
|
|
41800
41874
|
return n;
|
|
41801
41875
|
}
|
|
41802
41876
|
|
|
41803
|
-
},{}],
|
|
41877
|
+
},{}],293:[function(require,module,exports){
|
|
41804
41878
|
"use strict";
|
|
41805
41879
|
|
|
41806
41880
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -41938,7 +42012,7 @@ function stringifyPair(_ref, ctx, onComment, onChompKeep) {
|
|
|
41938
42012
|
return str;
|
|
41939
42013
|
}
|
|
41940
42014
|
|
|
41941
|
-
},{"../nodes/Scalar.js":252,"../nodes/identity.js":256,"./stringify.js":
|
|
42015
|
+
},{"../nodes/Scalar.js":252,"../nodes/identity.js":256,"./stringify.js":288,"./stringifyComment.js":290}],294:[function(require,module,exports){
|
|
41942
42016
|
"use strict";
|
|
41943
42017
|
|
|
41944
42018
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -42127,20 +42201,28 @@ function blockString(_ref, ctx, onComment, onChompKeep) {
|
|
|
42127
42201
|
start = start.replace(/\n+/g, "$&".concat(indent));
|
|
42128
42202
|
}
|
|
42129
42203
|
var indentSize = indent ? '2' : '1'; // root is at -1
|
|
42130
|
-
|
|
42204
|
+
// Leading | or > is added later
|
|
42205
|
+
var header = (startWithSpace ? indentSize : '') + chomp;
|
|
42131
42206
|
if (comment) {
|
|
42132
42207
|
header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' '));
|
|
42133
42208
|
if (onComment) onComment();
|
|
42134
42209
|
}
|
|
42135
|
-
if (literal) {
|
|
42136
|
-
|
|
42137
|
-
|
|
42210
|
+
if (!literal) {
|
|
42211
|
+
var foldedValue = value.replace(/\n+/g, '\n$&').replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
|
|
42212
|
+
// ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
|
|
42213
|
+
.replace(/\n+/g, "$&".concat(indent));
|
|
42214
|
+
var literalFallback = false;
|
|
42215
|
+
var foldOptions = getFoldOptions(ctx, true);
|
|
42216
|
+
if (blockQuote !== 'folded' && type !== _Scalar.Scalar.BLOCK_FOLDED) {
|
|
42217
|
+
foldOptions.onOverflow = function () {
|
|
42218
|
+
literalFallback = true;
|
|
42219
|
+
};
|
|
42220
|
+
}
|
|
42221
|
+
var body = (0, _foldFlowLines.foldFlowLines)("".concat(start).concat(foldedValue).concat(end), indent, _foldFlowLines.FOLD_BLOCK, foldOptions);
|
|
42222
|
+
if (!literalFallback) return ">".concat(header, "\n").concat(indent).concat(body);
|
|
42138
42223
|
}
|
|
42139
|
-
value = value.replace(/\n+/g,
|
|
42140
|
-
|
|
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);
|
|
42224
|
+
value = value.replace(/\n+/g, "$&".concat(indent));
|
|
42225
|
+
return "|".concat(header, "\n").concat(indent).concat(start).concat(value).concat(end);
|
|
42144
42226
|
}
|
|
42145
42227
|
function plainString(item, ctx, onComment, onChompKeep) {
|
|
42146
42228
|
var type = item.type,
|
|
@@ -42229,7 +42311,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
|
42229
42311
|
return res;
|
|
42230
42312
|
}
|
|
42231
42313
|
|
|
42232
|
-
},{"../nodes/Scalar.js":252,"./foldFlowLines.js":
|
|
42314
|
+
},{"../nodes/Scalar.js":252,"./foldFlowLines.js":287}],295:[function(require,module,exports){
|
|
42233
42315
|
"use strict";
|
|
42234
42316
|
|
|
42235
42317
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -42533,7 +42615,7 @@ function replaceNode(key, path, node) {
|
|
|
42533
42615
|
}
|
|
42534
42616
|
}
|
|
42535
42617
|
|
|
42536
|
-
},{"./nodes/identity.js":256}],
|
|
42618
|
+
},{"./nodes/identity.js":256}],296:[function(require,module,exports){
|
|
42537
42619
|
"use strict";
|
|
42538
42620
|
|
|
42539
42621
|
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); }
|
|
@@ -42560,7 +42642,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
42560
42642
|
// https://github.com/eemeli/yaml/issues/228
|
|
42561
42643
|
var _default = exports["default"] = YAML;
|
|
42562
42644
|
|
|
42563
|
-
},{"./dist/index.js":246}],
|
|
42645
|
+
},{"./dist/index.js":246}],297:[function(require,module,exports){
|
|
42564
42646
|
(function (Buffer){(function (){
|
|
42565
42647
|
"use strict";
|
|
42566
42648
|
|
|
@@ -42790,7 +42872,7 @@ var BaseClient = exports["default"] = /*#__PURE__*/function (_events$EventEmitte
|
|
|
42790
42872
|
}(_events["default"].EventEmitter);
|
|
42791
42873
|
|
|
42792
42874
|
}).call(this)}).call(this,{"isBuffer":require("../node_modules/is-buffer/index.js")})
|
|
42793
|
-
},{"../node_modules/is-buffer/index.js":113,"events":97,"loglevel":138,"mqtt":148,"tinycache":193,"uuid":204}],
|
|
42875
|
+
},{"../node_modules/is-buffer/index.js":113,"events":97,"loglevel":138,"mqtt":148,"tinycache":193,"uuid":204}],298:[function(require,module,exports){
|
|
42794
42876
|
"use strict";
|
|
42795
42877
|
|
|
42796
42878
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -42971,7 +43053,7 @@ var BaseConfig = exports["default"] = /*#__PURE__*/function () {
|
|
|
42971
43053
|
}();
|
|
42972
43054
|
;
|
|
42973
43055
|
|
|
42974
|
-
},{}],
|
|
43056
|
+
},{}],299:[function(require,module,exports){
|
|
42975
43057
|
"use strict";
|
|
42976
43058
|
|
|
42977
43059
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43478,7 +43560,7 @@ var ApiClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
43478
43560
|
}]);
|
|
43479
43561
|
}();
|
|
43480
43562
|
|
|
43481
|
-
},{"../util":
|
|
43563
|
+
},{"../util":313,"axios":2,"bluebird":70,"btoa":73,"form-data":99,"loglevel":138}],300:[function(require,module,exports){
|
|
43482
43564
|
"use strict";
|
|
43483
43565
|
|
|
43484
43566
|
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); }
|
|
@@ -43555,7 +43637,7 @@ var _default = exports["default"] = {
|
|
|
43555
43637
|
ServiceNotFound: ServiceNotFound
|
|
43556
43638
|
};
|
|
43557
43639
|
|
|
43558
|
-
},{}],
|
|
43640
|
+
},{}],301:[function(require,module,exports){
|
|
43559
43641
|
"use strict";
|
|
43560
43642
|
|
|
43561
43643
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43886,7 +43968,7 @@ var DscClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
43886
43968
|
}]);
|
|
43887
43969
|
}();
|
|
43888
43970
|
|
|
43889
|
-
},{"./ApiErrors":
|
|
43971
|
+
},{"./ApiErrors":300,"loglevel":138}],302:[function(require,module,exports){
|
|
43890
43972
|
"use strict";
|
|
43891
43973
|
|
|
43892
43974
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -43935,7 +44017,7 @@ var LecClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
43935
44017
|
}();
|
|
43936
44018
|
;
|
|
43937
44019
|
|
|
43938
|
-
},{"loglevel":138}],
|
|
44020
|
+
},{"loglevel":138}],303:[function(require,module,exports){
|
|
43939
44021
|
"use strict";
|
|
43940
44022
|
|
|
43941
44023
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -44013,7 +44095,7 @@ var MgmtClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
44013
44095
|
}();
|
|
44014
44096
|
;
|
|
44015
44097
|
|
|
44016
|
-
},{"loglevel":138}],
|
|
44098
|
+
},{"loglevel":138}],304:[function(require,module,exports){
|
|
44017
44099
|
"use strict";
|
|
44018
44100
|
|
|
44019
44101
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -44240,7 +44322,7 @@ var RegistryClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
44240
44322
|
}();
|
|
44241
44323
|
;
|
|
44242
44324
|
|
|
44243
|
-
},{}],
|
|
44325
|
+
},{}],305:[function(require,module,exports){
|
|
44244
44326
|
"use strict";
|
|
44245
44327
|
|
|
44246
44328
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -44346,7 +44428,7 @@ RulesClient.RuleNotificationStrategy = {
|
|
|
44346
44428
|
}
|
|
44347
44429
|
};
|
|
44348
44430
|
|
|
44349
|
-
},{"loglevel":138}],
|
|
44431
|
+
},{"loglevel":138}],306:[function(require,module,exports){
|
|
44350
44432
|
"use strict";
|
|
44351
44433
|
|
|
44352
44434
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -45069,7 +45151,7 @@ var StateClient = exports["default"] = /*#__PURE__*/function () {
|
|
|
45069
45151
|
}();
|
|
45070
45152
|
;
|
|
45071
45153
|
|
|
45072
|
-
},{"loglevel":138}],
|
|
45154
|
+
},{"loglevel":138}],307:[function(require,module,exports){
|
|
45073
45155
|
"use strict";
|
|
45074
45156
|
|
|
45075
45157
|
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); }
|
|
@@ -45427,7 +45509,7 @@ var ApplicationClient = exports["default"] = /*#__PURE__*/function (_BaseClient)
|
|
|
45427
45509
|
}(_BaseClient2["default"]);
|
|
45428
45510
|
;
|
|
45429
45511
|
|
|
45430
|
-
},{"../BaseClient":
|
|
45512
|
+
},{"../BaseClient":297,"../api/ApiClient":299,"../api/DscClient":301,"../api/LecClient":302,"../api/MgmtClient":303,"../api/RegistryClient":304,"../api/RulesClient":305,"../api/StateClient":306,"../util":313,"./ApplicationConfig":308}],308:[function(require,module,exports){
|
|
45431
45513
|
(function (process){(function (){
|
|
45432
45514
|
"use strict";
|
|
45433
45515
|
|
|
@@ -45671,7 +45753,7 @@ var ApplicationConfig = exports["default"] = /*#__PURE__*/function (_BaseConfig)
|
|
|
45671
45753
|
}(_BaseConfig2["default"]);
|
|
45672
45754
|
|
|
45673
45755
|
}).call(this)}).call(this,require('_process'))
|
|
45674
|
-
},{"../BaseConfig":
|
|
45756
|
+
},{"../BaseConfig":298,"_process":182,"fs":72,"loglevel":138,"uuid":204,"yaml":296}],309:[function(require,module,exports){
|
|
45675
45757
|
"use strict";
|
|
45676
45758
|
|
|
45677
45759
|
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); }
|
|
@@ -45773,7 +45855,7 @@ var DeviceClient = exports["default"] = /*#__PURE__*/function (_BaseClient) {
|
|
|
45773
45855
|
}]);
|
|
45774
45856
|
}(_BaseClient2["default"]);
|
|
45775
45857
|
|
|
45776
|
-
},{"../BaseClient":
|
|
45858
|
+
},{"../BaseClient":297,"../util":313,"./DeviceConfig":310,"util":203}],310:[function(require,module,exports){
|
|
45777
45859
|
(function (process){(function (){
|
|
45778
45860
|
"use strict";
|
|
45779
45861
|
|
|
@@ -45978,7 +46060,7 @@ var DeviceConfig = exports["default"] = /*#__PURE__*/function (_BaseConfig) {
|
|
|
45978
46060
|
}(_BaseConfig2["default"]);
|
|
45979
46061
|
|
|
45980
46062
|
}).call(this)}).call(this,require('_process'))
|
|
45981
|
-
},{"../BaseConfig":
|
|
46063
|
+
},{"../BaseConfig":298,"_process":182,"fs":72,"loglevel":138,"yaml":296}],311:[function(require,module,exports){
|
|
45982
46064
|
"use strict";
|
|
45983
46065
|
|
|
45984
46066
|
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); }
|
|
@@ -46109,7 +46191,7 @@ var GatewayClient = exports["default"] = /*#__PURE__*/function (_BaseClient) {
|
|
|
46109
46191
|
}]);
|
|
46110
46192
|
}(_BaseClient2["default"]);
|
|
46111
46193
|
|
|
46112
|
-
},{"../BaseClient":
|
|
46194
|
+
},{"../BaseClient":297,"./GatewayConfig":312,"util":203}],312:[function(require,module,exports){
|
|
46113
46195
|
"use strict";
|
|
46114
46196
|
|
|
46115
46197
|
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); }
|
|
@@ -46155,7 +46237,7 @@ var GatewayConfig = exports["default"] = /*#__PURE__*/function (_DeviceConfig) {
|
|
|
46155
46237
|
}(_DeviceConfig2["default"]);
|
|
46156
46238
|
;
|
|
46157
46239
|
|
|
46158
|
-
},{"../device/DeviceConfig":
|
|
46240
|
+
},{"../device/DeviceConfig":310}],313:[function(require,module,exports){
|
|
46159
46241
|
"use strict";
|
|
46160
46242
|
|
|
46161
46243
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -46201,7 +46283,7 @@ function generateUUID() {
|
|
|
46201
46283
|
});
|
|
46202
46284
|
}
|
|
46203
46285
|
|
|
46204
|
-
},{}],
|
|
46286
|
+
},{}],314:[function(require,module,exports){
|
|
46205
46287
|
"use strict";
|
|
46206
46288
|
|
|
46207
46289
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -46300,4 +46382,4 @@ var _RulesClient = _interopRequireDefault(require("./api/RulesClient"));
|
|
|
46300
46382
|
var _StateClient = _interopRequireDefault(require("./api/StateClient"));
|
|
46301
46383
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
46302
46384
|
|
|
46303
|
-
},{"./api/ApiClient":
|
|
46385
|
+
},{"./api/ApiClient":299,"./api/ApiErrors":300,"./api/DscClient":301,"./api/LecClient":302,"./api/MgmtClient":303,"./api/RegistryClient":304,"./api/RulesClient":305,"./api/StateClient":306,"./application/ApplicationClient":307,"./application/ApplicationConfig":308,"./device/DeviceClient":309,"./device/DeviceConfig":310,"./gateway/GatewayClient":311}]},{},[314]);
|