Skip to content

Commit f64c673

Browse files
author
Vitaly Puzrin
committed
Browser files rebuild
1 parent a567ef3 commit f64c673

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

dist/js-yaml.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* js-yaml 3.12.2 https://github.com/nodeca/js-yaml */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsyaml = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
1+
/* js-yaml 3.13.0 https://github.com/nodeca/js-yaml */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsyaml = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
22
'use strict';
33

44

@@ -1262,6 +1262,18 @@ function mergeMappings(state, destination, source, overridableKeys) {
12621262
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
12631263
var index, quantity;
12641264

1265+
// The output is a plain object here, so keys can only be strings.
1266+
// We need to convert keyNode to a string, but doing so can hang the process
1267+
// (deeply nested arrays that explode exponentially using aliases) or execute
1268+
// code via toString.
1269+
if (Array.isArray(keyNode)) {
1270+
for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
1271+
if (Array.isArray(keyNode[index])) {
1272+
throwError(state, 'nested arrays are not supported inside keys');
1273+
}
1274+
}
1275+
}
1276+
12651277
keyNode = String(keyNode);
12661278

12671279
if (_result === null) {

0 commit comments

Comments
 (0)