yapp 2.2.100 → 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.
Files changed (49) hide show
  1. package/example.js +931 -866
  2. package/lib/colours.js +1 -1
  3. package/lib/element/scrollable.js +9 -9
  4. package/lib/example/div/sizeable/left.js +4 -4
  5. package/lib/example/div/sizeable/middle.js +4 -4
  6. package/lib/example/div/sizeable/right.js +4 -4
  7. package/lib/example/div/sizeable/top.js +4 -4
  8. package/lib/example/textarea/bnf.js +6 -6
  9. package/lib/example/textarea/lexicalEntries.js +6 -6
  10. package/lib/example/textarea/parseTree.js +6 -6
  11. package/lib/example/textarea/tokens.js +6 -6
  12. package/lib/example/view/javascript.js +6 -6
  13. package/lib/example/view/json.js +6 -6
  14. package/lib/example/view/xml.js +6 -6
  15. package/lib/example/view.js +7 -7
  16. package/lib/example/yapp.js +4 -4
  17. package/lib/gutter.js +7 -7
  18. package/lib/lexer/javascript.js +6 -6
  19. package/lib/lexer/json.js +6 -6
  20. package/lib/lexer/plainText.js +6 -6
  21. package/lib/lexer/xml.js +6 -6
  22. package/lib/lexer/yapp.js +4 -4
  23. package/lib/lineNumbers.js +7 -7
  24. package/lib/parser/javascript.js +6 -6
  25. package/lib/parser/json.js +6 -6
  26. package/lib/parser/plainText.js +6 -6
  27. package/lib/parser/xml.js +6 -6
  28. package/lib/parser/yapp.js +4 -4
  29. package/lib/plugin/javascript.js +9 -9
  30. package/lib/plugin/json.js +9 -9
  31. package/lib/plugin/plainText.js +9 -9
  32. package/lib/plugin/xml.js +9 -9
  33. package/lib/prettyPrinter.js +9 -9
  34. package/lib/processor/javascript.js +4 -4
  35. package/lib/processor/json.js +4 -4
  36. package/lib/processor/plainText.js +4 -4
  37. package/lib/processor/xml.js +4 -4
  38. package/lib/richTextarea.js +6 -6
  39. package/lib/syntax.js +4 -4
  40. package/lib/token/significant/argument.js +4 -4
  41. package/lib/token/significant/attribute.js +4 -4
  42. package/lib/token/significant/comment.js +4 -4
  43. package/lib/token/significant/error.js +4 -4
  44. package/lib/token/significant/jsx.js +4 -4
  45. package/lib/token/significant/name.js +4 -4
  46. package/lib/token/significant/string.js +4 -4
  47. package/lib/token/significant/variable.js +4 -4
  48. package/lib/yapp.js +7 -7
  49. package/package.json +3 -3
@@ -45,7 +45,7 @@ function _defineProperty(obj, key, value) {
45
45
  }
46
46
  return obj;
47
47
  }
48
- function _get(target, property, receiver) {
48
+ function _get(target1, property1, receiver1) {
49
49
  if (typeof Reflect !== "undefined" && Reflect.get) {
50
50
  _get = Reflect.get;
51
51
  } else {
@@ -59,13 +59,13 @@ function _get(target, property, receiver) {
59
59
  return desc.value;
60
60
  };
61
61
  }
62
- return _get(target, property, receiver || target);
62
+ return _get(target1, property1, receiver1 || target1);
63
63
  }
64
- function _getPrototypeOf(o) {
64
+ function _getPrototypeOf(o1) {
65
65
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
66
66
  return o.__proto__ || Object.getPrototypeOf(o);
67
67
  };
68
- return _getPrototypeOf(o);
68
+ return _getPrototypeOf(o1);
69
69
  }
70
70
  function _inherits(subClass, superClass) {
71
71
  if (typeof superClass !== "function" && superClass !== null) {
@@ -91,12 +91,12 @@ function _possibleConstructorReturn(self, call) {
91
91
  }
92
92
  return _assertThisInitialized(self);
93
93
  }
94
- function _setPrototypeOf(o, p) {
94
+ function _setPrototypeOf(o2, p1) {
95
95
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
96
96
  o.__proto__ = p;
97
97
  return o;
98
98
  };
99
- return _setPrototypeOf(o, p);
99
+ return _setPrototypeOf(o2, p1);
100
100
  }
101
101
  function _superPropBase(object, property) {
102
102
  while(!Object.prototype.hasOwnProperty.call(object, property)){
package/lib/syntax.js CHANGED
@@ -43,11 +43,11 @@ function _defineProperty(obj, key, value) {
43
43
  }
44
44
  return obj;
45
45
  }
46
- function _getPrototypeOf(o) {
46
+ function _getPrototypeOf(o1) {
47
47
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
48
48
  return o.__proto__ || Object.getPrototypeOf(o);
49
49
  };
50
- return _getPrototypeOf(o);
50
+ return _getPrototypeOf(o1);
51
51
  }
52
52
  function _inherits(subClass, superClass) {
53
53
  if (typeof superClass !== "function" && superClass !== null) {
@@ -73,12 +73,12 @@ function _possibleConstructorReturn(self, call) {
73
73
  }
74
74
  return _assertThisInitialized(self);
75
75
  }
76
- function _setPrototypeOf(o, p) {
76
+ function _setPrototypeOf(o2, p1) {
77
77
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
78
78
  o.__proto__ = p;
79
79
  return o;
80
80
  };
81
- return _setPrototypeOf(o, p);
81
+ return _setPrototypeOf(o2, p1);
82
82
  }
83
83
  function _taggedTemplateLiteral(strings, raw) {
84
84
  if (!raw) {
@@ -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(o) {
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(o);
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(o, p) {
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(o, p);
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(o) {
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(o);
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(o, p) {
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(o, p);
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(o) {
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(o);
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(o, p) {
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(o, p);
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(o) {
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(o);
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(o, p) {
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(o, p);
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(o) {
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(o);
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(o, p) {
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(o, p);
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(o) {
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(o);
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(o, p) {
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(o, p);
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(o) {
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(o);
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(o, p) {
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(o, p);
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(o) {
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(o);
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(o, p) {
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(o, p);
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(Parent, args, Class) {
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(o) {
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(o);
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(o, p) {
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(o, p);
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(Class) {
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(Class);
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.100",
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,13 +15,13 @@
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.128",
18
+ "occam-grammar-utilities": "^5.0.136",
19
19
  "occam-lexers": "^16.0.20",
20
20
  "occam-parsers": "^16.0.22"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@swc/core": "^1.2.106",
24
- "easy-layout": "^5.0.107",
24
+ "easy-layout": "^5.1.3",
25
25
  "esbuild": "^0.11.7",
26
26
  "express": "^4.17.1",
27
27
  "juxtapose": "^4.0.42",