yapp 2.2.102 → 2.2.103
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.
- package/example.js +750 -728
- package/lib/element/scrollable.js +7 -7
- package/lib/example/div/sizeable/left.js +4 -4
- package/lib/example/div/sizeable/middle.js +4 -4
- package/lib/example/div/sizeable/right.js +4 -4
- package/lib/example/div/sizeable/top.js +4 -4
- package/lib/example/textarea/bnf.js +4 -4
- package/lib/example/textarea/lexicalEntries.js +4 -4
- package/lib/example/textarea/parseTree.js +4 -4
- package/lib/example/textarea/tokens.js +4 -4
- package/lib/example/view/javascript.js +4 -4
- package/lib/example/view/json.js +4 -4
- package/lib/example/view/xml.js +4 -4
- package/lib/example/view.js +7 -7
- package/lib/example/yapp.js +4 -4
- package/lib/gutter.js +7 -7
- package/lib/lexer/javascript.js +4 -4
- package/lib/lexer/json.js +4 -4
- package/lib/lexer/plainText.js +4 -4
- package/lib/lexer/xml.js +4 -4
- package/lib/lexer/yapp.js +4 -4
- package/lib/lineNumbers.js +7 -7
- package/lib/parser/javascript.js +4 -4
- package/lib/parser/json.js +4 -4
- package/lib/parser/plainText.js +4 -4
- package/lib/parser/xml.js +4 -4
- package/lib/parser/yapp.js +4 -4
- package/lib/plugin/javascript.js +7 -7
- package/lib/plugin/json.js +7 -7
- package/lib/plugin/plainText.js +7 -7
- package/lib/plugin/xml.js +7 -7
- package/lib/prettyPrinter.js +9 -9
- package/lib/processor/javascript.js +4 -4
- package/lib/processor/json.js +4 -4
- package/lib/processor/plainText.js +4 -4
- package/lib/processor/xml.js +4 -4
- package/lib/richTextarea.js +6 -6
- package/lib/syntax.js +4 -4
- package/lib/token/significant/argument.js +4 -4
- package/lib/token/significant/attribute.js +4 -4
- package/lib/token/significant/comment.js +4 -4
- package/lib/token/significant/error.js +4 -4
- package/lib/token/significant/jsx.js +4 -4
- package/lib/token/significant/name.js +4 -4
- package/lib/token/significant/string.js +4 -4
- package/lib/token/significant/variable.js +4 -4
- package/lib/yapp.js +7 -7
- package/package.json +2 -2
|
@@ -30,11 +30,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
31
|
return Constructor;
|
|
32
32
|
}
|
|
33
|
-
function _getPrototypeOf(
|
|
33
|
+
function _getPrototypeOf(o1) {
|
|
34
34
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
35
35
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
36
36
|
};
|
|
37
|
-
return _getPrototypeOf(
|
|
37
|
+
return _getPrototypeOf(o1);
|
|
38
38
|
}
|
|
39
39
|
function _inherits(subClass, superClass) {
|
|
40
40
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -55,12 +55,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
55
55
|
}
|
|
56
56
|
return _assertThisInitialized(self);
|
|
57
57
|
}
|
|
58
|
-
function _setPrototypeOf(
|
|
58
|
+
function _setPrototypeOf(o2, p1) {
|
|
59
59
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
60
60
|
o.__proto__ = p;
|
|
61
61
|
return o;
|
|
62
62
|
};
|
|
63
|
-
return _setPrototypeOf(
|
|
63
|
+
return _setPrototypeOf(o2, p1);
|
|
64
64
|
}
|
|
65
65
|
var _typeof = function(obj) {
|
|
66
66
|
"@swc/helpers - typeof";
|
|
@@ -30,11 +30,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
31
|
return Constructor;
|
|
32
32
|
}
|
|
33
|
-
function _getPrototypeOf(
|
|
33
|
+
function _getPrototypeOf(o1) {
|
|
34
34
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
35
35
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
36
36
|
};
|
|
37
|
-
return _getPrototypeOf(
|
|
37
|
+
return _getPrototypeOf(o1);
|
|
38
38
|
}
|
|
39
39
|
function _inherits(subClass, superClass) {
|
|
40
40
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -55,12 +55,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
55
55
|
}
|
|
56
56
|
return _assertThisInitialized(self);
|
|
57
57
|
}
|
|
58
|
-
function _setPrototypeOf(
|
|
58
|
+
function _setPrototypeOf(o2, p1) {
|
|
59
59
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
60
60
|
o.__proto__ = p;
|
|
61
61
|
return o;
|
|
62
62
|
};
|
|
63
|
-
return _setPrototypeOf(
|
|
63
|
+
return _setPrototypeOf(o2, p1);
|
|
64
64
|
}
|
|
65
65
|
var _typeof = function(obj) {
|
|
66
66
|
"@swc/helpers - typeof";
|
|
@@ -30,11 +30,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
31
|
return Constructor;
|
|
32
32
|
}
|
|
33
|
-
function _getPrototypeOf(
|
|
33
|
+
function _getPrototypeOf(o1) {
|
|
34
34
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
35
35
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
36
36
|
};
|
|
37
|
-
return _getPrototypeOf(
|
|
37
|
+
return _getPrototypeOf(o1);
|
|
38
38
|
}
|
|
39
39
|
function _inherits(subClass, superClass) {
|
|
40
40
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -55,12 +55,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
55
55
|
}
|
|
56
56
|
return _assertThisInitialized(self);
|
|
57
57
|
}
|
|
58
|
-
function _setPrototypeOf(
|
|
58
|
+
function _setPrototypeOf(o2, p1) {
|
|
59
59
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
60
60
|
o.__proto__ = p;
|
|
61
61
|
return o;
|
|
62
62
|
};
|
|
63
|
-
return _setPrototypeOf(
|
|
63
|
+
return _setPrototypeOf(o2, p1);
|
|
64
64
|
}
|
|
65
65
|
var _typeof = function(obj) {
|
|
66
66
|
"@swc/helpers - typeof";
|
|
@@ -30,11 +30,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
31
|
return Constructor;
|
|
32
32
|
}
|
|
33
|
-
function _getPrototypeOf(
|
|
33
|
+
function _getPrototypeOf(o1) {
|
|
34
34
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
35
35
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
36
36
|
};
|
|
37
|
-
return _getPrototypeOf(
|
|
37
|
+
return _getPrototypeOf(o1);
|
|
38
38
|
}
|
|
39
39
|
function _inherits(subClass, superClass) {
|
|
40
40
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -55,12 +55,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
55
55
|
}
|
|
56
56
|
return _assertThisInitialized(self);
|
|
57
57
|
}
|
|
58
|
-
function _setPrototypeOf(
|
|
58
|
+
function _setPrototypeOf(o2, p1) {
|
|
59
59
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
60
60
|
o.__proto__ = p;
|
|
61
61
|
return o;
|
|
62
62
|
};
|
|
63
|
-
return _setPrototypeOf(
|
|
63
|
+
return _setPrototypeOf(o2, p1);
|
|
64
64
|
}
|
|
65
65
|
var _typeof = function(obj) {
|
|
66
66
|
"@swc/helpers - typeof";
|
|
@@ -30,11 +30,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
31
|
return Constructor;
|
|
32
32
|
}
|
|
33
|
-
function _getPrototypeOf(
|
|
33
|
+
function _getPrototypeOf(o1) {
|
|
34
34
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
35
35
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
36
36
|
};
|
|
37
|
-
return _getPrototypeOf(
|
|
37
|
+
return _getPrototypeOf(o1);
|
|
38
38
|
}
|
|
39
39
|
function _inherits(subClass, superClass) {
|
|
40
40
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -55,12 +55,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
55
55
|
}
|
|
56
56
|
return _assertThisInitialized(self);
|
|
57
57
|
}
|
|
58
|
-
function _setPrototypeOf(
|
|
58
|
+
function _setPrototypeOf(o2, p1) {
|
|
59
59
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
60
60
|
o.__proto__ = p;
|
|
61
61
|
return o;
|
|
62
62
|
};
|
|
63
|
-
return _setPrototypeOf(
|
|
63
|
+
return _setPrototypeOf(o2, p1);
|
|
64
64
|
}
|
|
65
65
|
var _typeof = function(obj) {
|
|
66
66
|
"@swc/helpers - typeof";
|
|
@@ -30,11 +30,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
31
|
return Constructor;
|
|
32
32
|
}
|
|
33
|
-
function _getPrototypeOf(
|
|
33
|
+
function _getPrototypeOf(o1) {
|
|
34
34
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
35
35
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
36
36
|
};
|
|
37
|
-
return _getPrototypeOf(
|
|
37
|
+
return _getPrototypeOf(o1);
|
|
38
38
|
}
|
|
39
39
|
function _inherits(subClass, superClass) {
|
|
40
40
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -55,12 +55,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
55
55
|
}
|
|
56
56
|
return _assertThisInitialized(self);
|
|
57
57
|
}
|
|
58
|
-
function _setPrototypeOf(
|
|
58
|
+
function _setPrototypeOf(o2, p1) {
|
|
59
59
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
60
60
|
o.__proto__ = p;
|
|
61
61
|
return o;
|
|
62
62
|
};
|
|
63
|
-
return _setPrototypeOf(
|
|
63
|
+
return _setPrototypeOf(o2, p1);
|
|
64
64
|
}
|
|
65
65
|
var _typeof = function(obj) {
|
|
66
66
|
"@swc/helpers - typeof";
|
|
@@ -29,11 +29,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
29
29
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
30
30
|
return Constructor;
|
|
31
31
|
}
|
|
32
|
-
function _getPrototypeOf(
|
|
32
|
+
function _getPrototypeOf(o1) {
|
|
33
33
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
34
34
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
35
35
|
};
|
|
36
|
-
return _getPrototypeOf(
|
|
36
|
+
return _getPrototypeOf(o1);
|
|
37
37
|
}
|
|
38
38
|
function _inherits(subClass, superClass) {
|
|
39
39
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -54,12 +54,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
54
54
|
}
|
|
55
55
|
return _assertThisInitialized(self);
|
|
56
56
|
}
|
|
57
|
-
function _setPrototypeOf(
|
|
57
|
+
function _setPrototypeOf(o2, p1) {
|
|
58
58
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
59
59
|
o.__proto__ = p;
|
|
60
60
|
return o;
|
|
61
61
|
};
|
|
62
|
-
return _setPrototypeOf(
|
|
62
|
+
return _setPrototypeOf(o2, p1);
|
|
63
63
|
}
|
|
64
64
|
var _typeof = function(obj) {
|
|
65
65
|
"@swc/helpers - typeof";
|
|
@@ -30,11 +30,11 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
30
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
31
31
|
return Constructor;
|
|
32
32
|
}
|
|
33
|
-
function _getPrototypeOf(
|
|
33
|
+
function _getPrototypeOf(o1) {
|
|
34
34
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
35
35
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
36
36
|
};
|
|
37
|
-
return _getPrototypeOf(
|
|
37
|
+
return _getPrototypeOf(o1);
|
|
38
38
|
}
|
|
39
39
|
function _inherits(subClass, superClass) {
|
|
40
40
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -55,12 +55,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
55
55
|
}
|
|
56
56
|
return _assertThisInitialized(self);
|
|
57
57
|
}
|
|
58
|
-
function _setPrototypeOf(
|
|
58
|
+
function _setPrototypeOf(o2, p1) {
|
|
59
59
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
60
60
|
o.__proto__ = p;
|
|
61
61
|
return o;
|
|
62
62
|
};
|
|
63
|
-
return _setPrototypeOf(
|
|
63
|
+
return _setPrototypeOf(o2, p1);
|
|
64
64
|
}
|
|
65
65
|
var _typeof = function(obj) {
|
|
66
66
|
"@swc/helpers - typeof";
|
package/lib/yapp.js
CHANGED
|
@@ -36,7 +36,7 @@ function isNativeReflectConstruct() {
|
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function _construct(
|
|
39
|
+
function _construct(Parent1, args1, Class1) {
|
|
40
40
|
if (isNativeReflectConstruct()) {
|
|
41
41
|
_construct = Reflect.construct;
|
|
42
42
|
} else {
|
|
@@ -80,11 +80,11 @@ function _defineProperty(obj, key, value) {
|
|
|
80
80
|
}
|
|
81
81
|
return obj;
|
|
82
82
|
}
|
|
83
|
-
function _getPrototypeOf(
|
|
83
|
+
function _getPrototypeOf(o1) {
|
|
84
84
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
85
85
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
86
86
|
};
|
|
87
|
-
return _getPrototypeOf(
|
|
87
|
+
return _getPrototypeOf(o1);
|
|
88
88
|
}
|
|
89
89
|
function _inherits(subClass, superClass) {
|
|
90
90
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -113,12 +113,12 @@ function _possibleConstructorReturn(self, call) {
|
|
|
113
113
|
}
|
|
114
114
|
return _assertThisInitialized(self);
|
|
115
115
|
}
|
|
116
|
-
function _setPrototypeOf(
|
|
116
|
+
function _setPrototypeOf(o2, p1) {
|
|
117
117
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
118
118
|
o.__proto__ = p;
|
|
119
119
|
return o;
|
|
120
120
|
};
|
|
121
|
-
return _setPrototypeOf(
|
|
121
|
+
return _setPrototypeOf(o2, p1);
|
|
122
122
|
}
|
|
123
123
|
function _taggedTemplateLiteral(strings, raw) {
|
|
124
124
|
if (!raw) {
|
|
@@ -134,7 +134,7 @@ var _typeof = function(obj) {
|
|
|
134
134
|
"@swc/helpers - typeof";
|
|
135
135
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
136
136
|
};
|
|
137
|
-
function _wrapNativeSuper(
|
|
137
|
+
function _wrapNativeSuper(Class2) {
|
|
138
138
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
139
139
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
140
140
|
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
@@ -158,7 +158,7 @@ function _wrapNativeSuper(Class) {
|
|
|
158
158
|
});
|
|
159
159
|
return _setPrototypeOf(Wrapper, Class);
|
|
160
160
|
};
|
|
161
|
-
return _wrapNativeSuper(
|
|
161
|
+
return _wrapNativeSuper(Class2);
|
|
162
162
|
}
|
|
163
163
|
function _isNativeReflectConstruct() {
|
|
164
164
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yapp",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.103",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/yapp",
|
|
7
7
|
"description": "Yet Another Pretty Printer.",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"easy-with-style": "^3.0.128",
|
|
16
16
|
"necessary": "^11.0.40",
|
|
17
17
|
"occam-dom": "^3.0.91",
|
|
18
|
-
"occam-grammar-utilities": "^5.0.
|
|
18
|
+
"occam-grammar-utilities": "^5.0.136",
|
|
19
19
|
"occam-lexers": "^16.0.20",
|
|
20
20
|
"occam-parsers": "^16.0.22"
|
|
21
21
|
},
|