js-beautify 1.13.7 → 1.14.0

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.
@@ -65,100 +65,15 @@
65
65
  (function() {
66
66
 
67
67
  /* GENERATED_BUILD_OUTPUT */
68
- var legacy_beautify_css =
69
- /******/ (function(modules) { // webpackBootstrap
70
- /******/ // The module cache
71
- /******/ var installedModules = {};
72
- /******/
73
- /******/ // The require function
74
- /******/ function __webpack_require__(moduleId) {
75
- /******/
76
- /******/ // Check if module is in cache
77
- /******/ if(installedModules[moduleId]) {
78
- /******/ return installedModules[moduleId].exports;
79
- /******/ }
80
- /******/ // Create a new module (and put it into the cache)
81
- /******/ var module = installedModules[moduleId] = {
82
- /******/ i: moduleId,
83
- /******/ l: false,
84
- /******/ exports: {}
85
- /******/ };
86
- /******/
87
- /******/ // Execute the module function
88
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
89
- /******/
90
- /******/ // Flag the module as loaded
91
- /******/ module.l = true;
92
- /******/
93
- /******/ // Return the exports of the module
94
- /******/ return module.exports;
95
- /******/ }
96
- /******/
97
- /******/
98
- /******/ // expose the modules object (__webpack_modules__)
99
- /******/ __webpack_require__.m = modules;
100
- /******/
101
- /******/ // expose the module cache
102
- /******/ __webpack_require__.c = installedModules;
103
- /******/
104
- /******/ // define getter function for harmony exports
105
- /******/ __webpack_require__.d = function(exports, name, getter) {
106
- /******/ if(!__webpack_require__.o(exports, name)) {
107
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
108
- /******/ }
109
- /******/ };
110
- /******/
111
- /******/ // define __esModule on exports
112
- /******/ __webpack_require__.r = function(exports) {
113
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
114
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
115
- /******/ }
116
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
117
- /******/ };
118
- /******/
119
- /******/ // create a fake namespace object
120
- /******/ // mode & 1: value is a module id, require it
121
- /******/ // mode & 2: merge all properties of value into the ns
122
- /******/ // mode & 4: return value when already ns object
123
- /******/ // mode & 8|1: behave like require
124
- /******/ __webpack_require__.t = function(value, mode) {
125
- /******/ if(mode & 1) value = __webpack_require__(value);
126
- /******/ if(mode & 8) return value;
127
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
128
- /******/ var ns = Object.create(null);
129
- /******/ __webpack_require__.r(ns);
130
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
131
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
132
- /******/ return ns;
133
- /******/ };
134
- /******/
135
- /******/ // getDefaultExport function for compatibility with non-harmony modules
136
- /******/ __webpack_require__.n = function(module) {
137
- /******/ var getter = module && module.__esModule ?
138
- /******/ function getDefault() { return module['default']; } :
139
- /******/ function getModuleExports() { return module; };
140
- /******/ __webpack_require__.d(getter, 'a', getter);
141
- /******/ return getter;
142
- /******/ };
143
- /******/
144
- /******/ // Object.prototype.hasOwnProperty.call
145
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
146
- /******/
147
- /******/ // __webpack_public_path__
148
- /******/ __webpack_require__.p = "";
149
- /******/
150
- /******/
151
- /******/ // Load entry module and return exports
152
- /******/ return __webpack_require__(__webpack_require__.s = 15);
153
- /******/ })
154
- /************************************************************************/
155
- /******/ ([
68
+ var legacy_beautify_css;
69
+ /******/ (function() { // webpackBootstrap
70
+ /******/ "use strict";
71
+ /******/ var __webpack_modules__ = ([
156
72
  /* 0 */,
157
73
  /* 1 */,
158
74
  /* 2 */
159
- /***/ (function(module, exports, __webpack_require__) {
75
+ /***/ (function(module) {
160
76
 
161
- "use strict";
162
77
  /*jshint node:true */
163
78
  /*
164
79
  The MIT License (MIT)
@@ -585,9 +500,8 @@ module.exports.Output = Output;
585
500
  /* 4 */,
586
501
  /* 5 */,
587
502
  /* 6 */
588
- /***/ (function(module, exports, __webpack_require__) {
503
+ /***/ (function(module) {
589
504
 
590
- "use strict";
591
505
  /*jshint node:true */
592
506
  /*
593
507
 
@@ -786,9 +700,8 @@ module.exports.mergeOpts = _mergeOpts;
786
700
  /***/ }),
787
701
  /* 7 */,
788
702
  /* 8 */
789
- /***/ (function(module, exports, __webpack_require__) {
703
+ /***/ (function(module) {
790
704
 
791
- "use strict";
792
705
  /*jshint node:true */
793
706
  /*
794
707
 
@@ -989,9 +902,8 @@ module.exports.InputScanner = InputScanner;
989
902
  /* 11 */,
990
903
  /* 12 */,
991
904
  /* 13 */
992
- /***/ (function(module, exports, __webpack_require__) {
905
+ /***/ (function(module) {
993
906
 
994
- "use strict";
995
907
  /*jshint node:true */
996
908
  /*
997
909
 
@@ -1059,9 +971,8 @@ module.exports.Directives = Directives;
1059
971
  /***/ }),
1060
972
  /* 14 */,
1061
973
  /* 15 */
1062
- /***/ (function(module, exports, __webpack_require__) {
974
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1063
975
 
1064
- "use strict";
1065
976
  /*jshint node:true */
1066
977
  /*
1067
978
 
@@ -1108,9 +1019,8 @@ module.exports.defaultOptions = function() {
1108
1019
 
1109
1020
  /***/ }),
1110
1021
  /* 16 */
1111
- /***/ (function(module, exports, __webpack_require__) {
1022
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1112
1023
 
1113
- "use strict";
1114
1024
  /*jshint node:true */
1115
1025
  /*
1116
1026
 
@@ -1546,7 +1456,7 @@ Beautifier.prototype.beautify = function() {
1546
1456
  } else if (this._ch === ',') {
1547
1457
  this.print_string(this._ch);
1548
1458
  this.eatWhitespace(true);
1549
- if (this._options.selector_separator_newline && !insidePropertyValue && parenLevel === 0 && !insideAtImport) {
1459
+ if (this._options.selector_separator_newline && !insidePropertyValue && parenLevel === 0 && !insideAtImport && !insideAtExtend) {
1550
1460
  this._output.add_new_line();
1551
1461
  } else {
1552
1462
  this._output.space_before_token = true;
@@ -1595,9 +1505,8 @@ module.exports.Beautifier = Beautifier;
1595
1505
 
1596
1506
  /***/ }),
1597
1507
  /* 17 */
1598
- /***/ (function(module, exports, __webpack_require__) {
1508
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1599
1509
 
1600
- "use strict";
1601
1510
  /*jshint node:true */
1602
1511
  /*
1603
1512
 
@@ -1657,7 +1566,42 @@ module.exports.Options = Options;
1657
1566
 
1658
1567
 
1659
1568
  /***/ })
1660
- /******/ ]);
1569
+ /******/ ]);
1570
+ /************************************************************************/
1571
+ /******/ // The module cache
1572
+ /******/ var __webpack_module_cache__ = {};
1573
+ /******/
1574
+ /******/ // The require function
1575
+ /******/ function __webpack_require__(moduleId) {
1576
+ /******/ // Check if module is in cache
1577
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1578
+ /******/ if (cachedModule !== undefined) {
1579
+ /******/ return cachedModule.exports;
1580
+ /******/ }
1581
+ /******/ // Create a new module (and put it into the cache)
1582
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1583
+ /******/ // no module.id needed
1584
+ /******/ // no module.loaded needed
1585
+ /******/ exports: {}
1586
+ /******/ };
1587
+ /******/
1588
+ /******/ // Execute the module function
1589
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1590
+ /******/
1591
+ /******/ // Return the exports of the module
1592
+ /******/ return module.exports;
1593
+ /******/ }
1594
+ /******/
1595
+ /************************************************************************/
1596
+ /******/
1597
+ /******/ // startup
1598
+ /******/ // Load entry module and return exports
1599
+ /******/ // This entry module is referenced by other modules so it can't be inlined
1600
+ /******/ var __webpack_exports__ = __webpack_require__(15);
1601
+ /******/ legacy_beautify_css = __webpack_exports__;
1602
+ /******/
1603
+ /******/ })()
1604
+ ;
1661
1605
  var css_beautify = legacy_beautify_css;
1662
1606
  /* Footer */
1663
1607
  if (typeof define === "function" && define.amd) {
@@ -75,100 +75,15 @@
75
75
  (function() {
76
76
 
77
77
  /* GENERATED_BUILD_OUTPUT */
78
- var legacy_beautify_html =
79
- /******/ (function(modules) { // webpackBootstrap
80
- /******/ // The module cache
81
- /******/ var installedModules = {};
82
- /******/
83
- /******/ // The require function
84
- /******/ function __webpack_require__(moduleId) {
85
- /******/
86
- /******/ // Check if module is in cache
87
- /******/ if(installedModules[moduleId]) {
88
- /******/ return installedModules[moduleId].exports;
89
- /******/ }
90
- /******/ // Create a new module (and put it into the cache)
91
- /******/ var module = installedModules[moduleId] = {
92
- /******/ i: moduleId,
93
- /******/ l: false,
94
- /******/ exports: {}
95
- /******/ };
96
- /******/
97
- /******/ // Execute the module function
98
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
99
- /******/
100
- /******/ // Flag the module as loaded
101
- /******/ module.l = true;
102
- /******/
103
- /******/ // Return the exports of the module
104
- /******/ return module.exports;
105
- /******/ }
106
- /******/
107
- /******/
108
- /******/ // expose the modules object (__webpack_modules__)
109
- /******/ __webpack_require__.m = modules;
110
- /******/
111
- /******/ // expose the module cache
112
- /******/ __webpack_require__.c = installedModules;
113
- /******/
114
- /******/ // define getter function for harmony exports
115
- /******/ __webpack_require__.d = function(exports, name, getter) {
116
- /******/ if(!__webpack_require__.o(exports, name)) {
117
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
118
- /******/ }
119
- /******/ };
120
- /******/
121
- /******/ // define __esModule on exports
122
- /******/ __webpack_require__.r = function(exports) {
123
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
124
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
125
- /******/ }
126
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
127
- /******/ };
128
- /******/
129
- /******/ // create a fake namespace object
130
- /******/ // mode & 1: value is a module id, require it
131
- /******/ // mode & 2: merge all properties of value into the ns
132
- /******/ // mode & 4: return value when already ns object
133
- /******/ // mode & 8|1: behave like require
134
- /******/ __webpack_require__.t = function(value, mode) {
135
- /******/ if(mode & 1) value = __webpack_require__(value);
136
- /******/ if(mode & 8) return value;
137
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
138
- /******/ var ns = Object.create(null);
139
- /******/ __webpack_require__.r(ns);
140
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
141
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
142
- /******/ return ns;
143
- /******/ };
144
- /******/
145
- /******/ // getDefaultExport function for compatibility with non-harmony modules
146
- /******/ __webpack_require__.n = function(module) {
147
- /******/ var getter = module && module.__esModule ?
148
- /******/ function getDefault() { return module['default']; } :
149
- /******/ function getModuleExports() { return module; };
150
- /******/ __webpack_require__.d(getter, 'a', getter);
151
- /******/ return getter;
152
- /******/ };
153
- /******/
154
- /******/ // Object.prototype.hasOwnProperty.call
155
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
156
- /******/
157
- /******/ // __webpack_public_path__
158
- /******/ __webpack_require__.p = "";
159
- /******/
160
- /******/
161
- /******/ // Load entry module and return exports
162
- /******/ return __webpack_require__(__webpack_require__.s = 18);
163
- /******/ })
164
- /************************************************************************/
165
- /******/ ([
78
+ var legacy_beautify_html;
79
+ /******/ (function() { // webpackBootstrap
80
+ /******/ "use strict";
81
+ /******/ var __webpack_modules__ = ([
166
82
  /* 0 */,
167
83
  /* 1 */,
168
84
  /* 2 */
169
- /***/ (function(module, exports, __webpack_require__) {
85
+ /***/ (function(module) {
170
86
 
171
- "use strict";
172
87
  /*jshint node:true */
173
88
  /*
174
89
  The MIT License (MIT)
@@ -592,9 +507,8 @@ module.exports.Output = Output;
592
507
 
593
508
  /***/ }),
594
509
  /* 3 */
595
- /***/ (function(module, exports, __webpack_require__) {
510
+ /***/ (function(module) {
596
511
 
597
- "use strict";
598
512
  /*jshint node:true */
599
513
  /*
600
514
 
@@ -655,9 +569,8 @@ module.exports.Token = Token;
655
569
  /* 4 */,
656
570
  /* 5 */,
657
571
  /* 6 */
658
- /***/ (function(module, exports, __webpack_require__) {
572
+ /***/ (function(module) {
659
573
 
660
- "use strict";
661
574
  /*jshint node:true */
662
575
  /*
663
576
 
@@ -856,9 +769,8 @@ module.exports.mergeOpts = _mergeOpts;
856
769
  /***/ }),
857
770
  /* 7 */,
858
771
  /* 8 */
859
- /***/ (function(module, exports, __webpack_require__) {
772
+ /***/ (function(module) {
860
773
 
861
- "use strict";
862
774
  /*jshint node:true */
863
775
  /*
864
776
 
@@ -1055,9 +967,8 @@ module.exports.InputScanner = InputScanner;
1055
967
 
1056
968
  /***/ }),
1057
969
  /* 9 */
1058
- /***/ (function(module, exports, __webpack_require__) {
970
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1059
971
 
1060
- "use strict";
1061
972
  /*jshint node:true */
1062
973
  /*
1063
974
 
@@ -1202,9 +1113,8 @@ module.exports.TOKEN = TOKEN;
1202
1113
 
1203
1114
  /***/ }),
1204
1115
  /* 10 */
1205
- /***/ (function(module, exports, __webpack_require__) {
1116
+ /***/ (function(module) {
1206
1117
 
1207
- "use strict";
1208
1118
  /*jshint node:true */
1209
1119
  /*
1210
1120
 
@@ -1287,9 +1197,8 @@ module.exports.TokenStream = TokenStream;
1287
1197
 
1288
1198
  /***/ }),
1289
1199
  /* 11 */
1290
- /***/ (function(module, exports, __webpack_require__) {
1200
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1291
1201
 
1292
- "use strict";
1293
1202
  /*jshint node:true */
1294
1203
  /*
1295
1204
 
@@ -1399,9 +1308,8 @@ module.exports.WhitespacePattern = WhitespacePattern;
1399
1308
 
1400
1309
  /***/ }),
1401
1310
  /* 12 */
1402
- /***/ (function(module, exports, __webpack_require__) {
1311
+ /***/ (function(module) {
1403
1312
 
1404
- "use strict";
1405
1313
  /*jshint node:true */
1406
1314
  /*
1407
1315
 
@@ -1500,9 +1408,8 @@ module.exports.Pattern = Pattern;
1500
1408
 
1501
1409
  /***/ }),
1502
1410
  /* 13 */
1503
- /***/ (function(module, exports, __webpack_require__) {
1411
+ /***/ (function(module) {
1504
1412
 
1505
- "use strict";
1506
1413
  /*jshint node:true */
1507
1414
  /*
1508
1415
 
@@ -1569,9 +1476,8 @@ module.exports.Directives = Directives;
1569
1476
 
1570
1477
  /***/ }),
1571
1478
  /* 14 */
1572
- /***/ (function(module, exports, __webpack_require__) {
1479
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1573
1480
 
1574
- "use strict";
1575
1481
  /*jshint node:true */
1576
1482
  /*
1577
1483
 
@@ -1790,9 +1696,8 @@ module.exports.TemplatablePattern = TemplatablePattern;
1790
1696
  /* 16 */,
1791
1697
  /* 17 */,
1792
1698
  /* 18 */
1793
- /***/ (function(module, exports, __webpack_require__) {
1699
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1794
1700
 
1795
- "use strict";
1796
1701
  /*jshint node:true */
1797
1702
  /*
1798
1703
 
@@ -1839,9 +1744,8 @@ module.exports.defaultOptions = function() {
1839
1744
 
1840
1745
  /***/ }),
1841
1746
  /* 19 */
1842
- /***/ (function(module, exports, __webpack_require__) {
1747
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1843
1748
 
1844
- "use strict";
1845
1749
  /*jshint node:true */
1846
1750
  /*
1847
1751
 
@@ -2711,9 +2615,8 @@ module.exports.Beautifier = Beautifier;
2711
2615
 
2712
2616
  /***/ }),
2713
2617
  /* 20 */
2714
- /***/ (function(module, exports, __webpack_require__) {
2618
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2715
2619
 
2716
- "use strict";
2717
2620
  /*jshint node:true */
2718
2621
  /*
2719
2622
 
@@ -2809,9 +2712,8 @@ module.exports.Options = Options;
2809
2712
 
2810
2713
  /***/ }),
2811
2714
  /* 21 */
2812
- /***/ (function(module, exports, __webpack_require__) {
2715
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2813
2716
 
2814
- "use strict";
2815
2717
  /*jshint node:true */
2816
2718
  /*
2817
2719
 
@@ -3147,7 +3049,42 @@ module.exports.TOKEN = TOKEN;
3147
3049
 
3148
3050
 
3149
3051
  /***/ })
3150
- /******/ ]);
3052
+ /******/ ]);
3053
+ /************************************************************************/
3054
+ /******/ // The module cache
3055
+ /******/ var __webpack_module_cache__ = {};
3056
+ /******/
3057
+ /******/ // The require function
3058
+ /******/ function __webpack_require__(moduleId) {
3059
+ /******/ // Check if module is in cache
3060
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
3061
+ /******/ if (cachedModule !== undefined) {
3062
+ /******/ return cachedModule.exports;
3063
+ /******/ }
3064
+ /******/ // Create a new module (and put it into the cache)
3065
+ /******/ var module = __webpack_module_cache__[moduleId] = {
3066
+ /******/ // no module.id needed
3067
+ /******/ // no module.loaded needed
3068
+ /******/ exports: {}
3069
+ /******/ };
3070
+ /******/
3071
+ /******/ // Execute the module function
3072
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
3073
+ /******/
3074
+ /******/ // Return the exports of the module
3075
+ /******/ return module.exports;
3076
+ /******/ }
3077
+ /******/
3078
+ /************************************************************************/
3079
+ /******/
3080
+ /******/ // startup
3081
+ /******/ // Load entry module and return exports
3082
+ /******/ // This entry module is referenced by other modules so it can't be inlined
3083
+ /******/ var __webpack_exports__ = __webpack_require__(18);
3084
+ /******/ legacy_beautify_html = __webpack_exports__;
3085
+ /******/
3086
+ /******/ })()
3087
+ ;
3151
3088
  var style_html = legacy_beautify_html;
3152
3089
  /* Footer */
3153
3090
  if (typeof define === "function" && define.amd) {