@@ -116116,7 +116116,7 @@ function isInterestingFile(path) {
116116116116}
116117116117
116118116118;// CONCATENATED MODULE: ./node_modules/js-yaml/dist/js-yaml.mjs
116119- /*! js-yaml 5.2.0 https://github.com/nodeca/js-yaml @license MIT */
116119+ /*! js-yaml 5.2.1 https://github.com/nodeca/js-yaml @license MIT */
116120116120//#region src/tag.ts
116121116121var NOT_RESOLVED = Symbol("NOT_RESOLVED");
116122116122var MERGE_KEY = Symbol("MERGE_KEY");
@@ -116621,18 +116621,40 @@ var seqTag = defineSequenceTag("tag:yaml.org,2002:seq", {
116621116621 identify: Array.isArray
116622116622});
116623116623//#endregion
116624+ //#region src/common/object.ts
116625+ function isPlainObject(data) {
116626+ if (data === null || typeof data !== "object" || Array.isArray(data)) return false;
116627+ const prototype = Object.getPrototypeOf(data);
116628+ return prototype === null || prototype === Object.prototype;
116629+ }
116630+ function pick(object, keys) {
116631+ const result = {};
116632+ for (const key of keys) if (object[key] !== void 0) result[key] = object[key];
116633+ return result;
116634+ }
116635+ //#endregion
116624116636//#region src/tag/sequence/omap.ts
116625116637var omapTag = defineSequenceTag("tag:yaml.org,2002:omap", {
116626- create: () => [],
116627- addItem: (container, item) => {
116628- if (Object.prototype.toString.call(item) !== "[object Object]") return "cannot resolve an ordered map item";
116629- const object = item;
116630- const itemKeys = Object.keys(object);
116631- if (itemKeys.length !== 1) return "cannot resolve an ordered map item";
116632- for (const existing of container) if (Object.prototype.hasOwnProperty.call(existing, itemKeys[0])) return "cannot resolve an ordered map item";
116633- container.push(object);
116638+ create: () => ({
116639+ list: [],
116640+ seen: /* @__PURE__ */ new Set()
116641+ }),
116642+ addItem: (carrier, item) => {
116643+ let key;
116644+ if (item instanceof Map) {
116645+ if (item.size !== 1) return "cannot resolve an ordered map item";
116646+ key = item.keys().next().value;
116647+ } else if (isPlainObject(item)) {
116648+ const itemKeys = Object.keys(item);
116649+ if (itemKeys.length !== 1) return "cannot resolve an ordered map item";
116650+ key = itemKeys[0];
116651+ } else return "cannot resolve an ordered map item";
116652+ if (carrier.seen.has(key)) return "duplicate key in ordered map";
116653+ carrier.seen.add(key);
116654+ carrier.list.push(item);
116634116655 return "";
116635- }
116656+ },
116657+ finalize: (carrier) => carrier.list
116636116658});
116637116659//#endregion
116638116660//#region src/tag/sequence/pairs.ts
@@ -116653,18 +116675,6 @@ var pairsTag = defineSequenceTag("tag:yaml.org,2002:pairs", {
116653116675 }
116654116676});
116655116677//#endregion
116656- //#region src/common/object.ts
116657- function isPlainObject(data) {
116658- if (data === null || typeof data !== "object" || Array.isArray(data)) return false;
116659- const prototype = Object.getPrototypeOf(data);
116660- return prototype === null || prototype === Object.prototype;
116661- }
116662- function pick(object, keys) {
116663- const result = {};
116664- for (const key of keys) if (object[key] !== void 0) result[key] = object[key];
116665- return result;
116666- }
116667- //#endregion
116668116678//#region src/tag/mapping/map.ts
116669116679var mapTag = defineMappingTag("tag:yaml.org,2002:map", {
116670116680 create: () => ({}),
0 commit comments