Skip to content

Commit 7b9d29b

Browse files
committed
Update compiled code
1 parent af54a68 commit 7b9d29b

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

dist/yaml.debug.js

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/yaml.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,8 @@ module.exports = Unescaper;
14651465

14661466

14671467
},{"./Pattern":7,"./Utils":9}],9:[function(require,module,exports){
1468-
var Pattern, Utils;
1468+
var Pattern, Utils,
1469+
hasProp = {}.hasOwnProperty;
14691470

14701471
Pattern = require('./Pattern');
14711472

@@ -1534,7 +1535,16 @@ Utils = (function() {
15341535
};
15351536

15361537
Utils.isEmpty = function(value) {
1537-
return !value || value === '' || value === '0' || (value instanceof Array && value.length === 0);
1538+
var k;
1539+
return !value || value === '' || value === '0' || (value instanceof Array && value.length === 0) || (value instanceof Object && ((function() {
1540+
var results;
1541+
results = [];
1542+
for (k in value) {
1543+
if (!hasProp.call(value, k)) continue;
1544+
results.push(k);
1545+
}
1546+
return results;
1547+
})()).length === 0);
15381548
};
15391549

15401550
Utils.subStrCount = function(string, subString, start, length) {

0 commit comments

Comments
 (0)