Skip to content

Commit 8d7ac5a

Browse files
committed
publish v0.2.4
1 parent 8b103da commit 8d7ac5a

File tree

6 files changed

+87
-78
lines changed

6 files changed

+87
-78
lines changed

dist/yaml.debug.js

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

dist/yaml.js

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Dumper = (function() {
5353
module.exports = Dumper;
5454

5555

56+
5657
},{"./Inline":5,"./Utils":9}],2:[function(require,module,exports){
5758
var Escaper, Pattern;
5859

@@ -111,6 +112,7 @@ Escaper = (function() {
111112
module.exports = Escaper;
112113

113114

115+
114116
},{"./Pattern":7}],3:[function(require,module,exports){
115117
var DumpException,
116118
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
@@ -140,6 +142,7 @@ DumpException = (function(superClass) {
140142
module.exports = DumpException;
141143

142144

145+
143146
},{}],4:[function(require,module,exports){
144147
var ParseException,
145148
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
@@ -169,6 +172,7 @@ ParseException = (function(superClass) {
169172
module.exports = ParseException;
170173

171174

175+
172176
},{}],5:[function(require,module,exports){
173177
var DumpException, Escaper, Inline, ParseException, Pattern, Unescaper, Utils,
174178
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
@@ -654,6 +658,7 @@ Inline = (function() {
654658
module.exports = Inline;
655659

656660

661+
657662
},{"./Escaper":2,"./Exception/DumpException":3,"./Exception/ParseException":4,"./Pattern":7,"./Unescaper":8,"./Utils":9}],6:[function(require,module,exports){
658663
var Inline, ParseException, Parser, Pattern, Utils;
659664

@@ -1255,6 +1260,7 @@ Parser = (function() {
12551260
module.exports = Parser;
12561261

12571262

1263+
12581264
},{"./Exception/ParseException":4,"./Inline":5,"./Pattern":7,"./Utils":9}],7:[function(require,module,exports){
12591265
var Pattern;
12601266

@@ -1268,7 +1274,7 @@ Pattern = (function() {
12681274
Pattern.prototype.mapping = null;
12691275

12701276
function Pattern(rawRegex, modifiers) {
1271-
var capturingBracketNumber, char, cleanedRegex, i, len, mapping, name, part, subChar;
1277+
var _char, capturingBracketNumber, cleanedRegex, i, len, mapping, name, part, subChar;
12721278
if (modifiers == null) {
12731279
modifiers = '';
12741280
}
@@ -1278,11 +1284,11 @@ Pattern = (function() {
12781284
capturingBracketNumber = 0;
12791285
i = 0;
12801286
while (i < len) {
1281-
char = rawRegex.charAt(i);
1282-
if (char === '\\') {
1287+
_char = rawRegex.charAt(i);
1288+
if (_char === '\\') {
12831289
cleanedRegex += rawRegex.slice(i, +(i + 1) + 1 || 9e9);
12841290
i++;
1285-
} else if (char === '(') {
1291+
} else if (_char === '(') {
12861292
if (i < len - 2) {
12871293
part = rawRegex.slice(i, +(i + 2) + 1 || 9e9);
12881294
if (part === '(?:') {
@@ -1310,14 +1316,14 @@ Pattern = (function() {
13101316
i++;
13111317
}
13121318
} else {
1313-
cleanedRegex += char;
1319+
cleanedRegex += _char;
13141320
capturingBracketNumber++;
13151321
}
13161322
} else {
1317-
cleanedRegex += char;
1323+
cleanedRegex += _char;
13181324
}
13191325
} else {
1320-
cleanedRegex += char;
1326+
cleanedRegex += _char;
13211327
}
13221328
i++;
13231329
}
@@ -1376,6 +1382,7 @@ Pattern = (function() {
13761382
module.exports = Pattern;
13771383

13781384

1385+
13791386
},{}],8:[function(require,module,exports){
13801387
var Pattern, Unescaper, Utils;
13811388

@@ -1461,6 +1468,7 @@ Unescaper = (function() {
14611468
module.exports = Unescaper;
14621469

14631470

1471+
14641472
},{"./Pattern":7,"./Utils":9}],9:[function(require,module,exports){
14651473
var Pattern, Utils;
14661474

@@ -1485,46 +1493,46 @@ Utils = (function() {
14851493

14861494
Utils.LOCAL_TIMEZONE_OFFSET = new Date().getTimezoneOffset() * 60 * 1000;
14871495

1488-
Utils.trim = function(str, char) {
1496+
Utils.trim = function(str, _char) {
14891497
var regexLeft, regexRight;
1490-
if (char == null) {
1491-
char = '\\s';
1498+
if (_char == null) {
1499+
_char = '\\s';
14921500
}
14931501
return str.trim();
1494-
regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[char];
1502+
regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[_char];
14951503
if (regexLeft == null) {
1496-
this.REGEX_LEFT_TRIM_BY_CHAR[char] = regexLeft = new RegExp('^' + char + '' + char + '*');
1504+
this.REGEX_LEFT_TRIM_BY_CHAR[_char] = regexLeft = new RegExp('^' + _char + '' + _char + '*');
14971505
}
14981506
regexLeft.lastIndex = 0;
1499-
regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[char];
1507+
regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[_char];
15001508
if (regexRight == null) {
1501-
this.REGEX_RIGHT_TRIM_BY_CHAR[char] = regexRight = new RegExp(char + '' + char + '*$');
1509+
this.REGEX_RIGHT_TRIM_BY_CHAR[_char] = regexRight = new RegExp(_char + '' + _char + '*$');
15021510
}
15031511
regexRight.lastIndex = 0;
15041512
return str.replace(regexLeft, '').replace(regexRight, '');
15051513
};
15061514

1507-
Utils.ltrim = function(str, char) {
1515+
Utils.ltrim = function(str, _char) {
15081516
var regexLeft;
1509-
if (char == null) {
1510-
char = '\\s';
1517+
if (_char == null) {
1518+
_char = '\\s';
15111519
}
1512-
regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[char];
1520+
regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[_char];
15131521
if (regexLeft == null) {
1514-
this.REGEX_LEFT_TRIM_BY_CHAR[char] = regexLeft = new RegExp('^' + char + '' + char + '*');
1522+
this.REGEX_LEFT_TRIM_BY_CHAR[_char] = regexLeft = new RegExp('^' + _char + '' + _char + '*');
15151523
}
15161524
regexLeft.lastIndex = 0;
15171525
return str.replace(regexLeft, '');
15181526
};
15191527

1520-
Utils.rtrim = function(str, char) {
1528+
Utils.rtrim = function(str, _char) {
15211529
var regexRight;
1522-
if (char == null) {
1523-
char = '\\s';
1530+
if (_char == null) {
1531+
_char = '\\s';
15241532
}
1525-
regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[char];
1533+
regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[_char];
15261534
if (regexRight == null) {
1527-
this.REGEX_RIGHT_TRIM_BY_CHAR[char] = regexRight = new RegExp(char + '' + char + '*$');
1535+
this.REGEX_RIGHT_TRIM_BY_CHAR[_char] = regexRight = new RegExp(_char + '' + _char + '*$');
15281536
}
15291537
regexRight.lastIndex = 0;
15301538
return str.replace(regexRight, '');
@@ -1747,6 +1755,7 @@ Utils = (function() {
17471755
module.exports = Utils;
17481756

17491757

1758+
17501759
},{"./Pattern":7}],10:[function(require,module,exports){
17511760
var Dumper, Parser, Utils, Yaml;
17521761

@@ -1853,4 +1862,5 @@ if (typeof window === "undefined" || window === null) {
18531862
module.exports = Yaml;
18541863

18551864

1865+
18561866
},{"./Dumper":1,"./Parser":6,"./Utils":9}]},{},[10]);

dist/yaml.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Pattern.js

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

lib/Utils.js

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

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yamljs",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools.",
55
"keywords": [
66
"yaml",
@@ -12,8 +12,7 @@
1212
"main": "./lib/Yaml.js",
1313
"dependencies": {
1414
"argparse": "^0.1.15",
15-
"glob": "^4.0.0",
16-
"mkdirp": "^0.5.1"
15+
"glob": "^4.0.0"
1716
},
1817
"devDependencies": {
1918
"coffeeify": "^0.7.0",

0 commit comments

Comments
 (0)