@tinacms/app 1.0.2 → 1.0.4

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 (68) hide show
  1. package/appFiles/node_modules/.package-lock.json +24 -24
  2. package/appFiles/node_modules/@babel/generator/lib/node/parentheses.js +5 -1
  3. package/appFiles/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
  4. package/appFiles/node_modules/@babel/generator/lib/printer.js +3 -2
  5. package/appFiles/node_modules/@babel/generator/lib/printer.js.map +1 -1
  6. package/appFiles/node_modules/@babel/generator/package.json +3 -3
  7. package/appFiles/node_modules/@babel/parser/lib/index.js +22 -11
  8. package/appFiles/node_modules/@babel/parser/lib/index.js.map +1 -1
  9. package/appFiles/node_modules/@babel/parser/package.json +1 -1
  10. package/appFiles/node_modules/@babel/runtime/helpers/applyDecs.js +3 -9
  11. package/appFiles/node_modules/@babel/runtime/helpers/applyDecs2203.js +3 -9
  12. package/appFiles/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +1 -3
  13. package/appFiles/node_modules/@babel/runtime/helpers/classNameTDZError.js +1 -1
  14. package/appFiles/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
  15. package/appFiles/node_modules/@babel/runtime/helpers/esm/applyDecs.js +3 -9
  16. package/appFiles/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +3 -9
  17. package/appFiles/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -3
  18. package/appFiles/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +1 -1
  19. package/appFiles/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +7 -0
  20. package/appFiles/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -3
  21. package/appFiles/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +1 -3
  22. package/appFiles/node_modules/@babel/runtime/helpers/esm/jsx.js +2 -6
  23. package/appFiles/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +3 -9
  24. package/appFiles/node_modules/@babel/runtime/helpers/esm/set.js +1 -1
  25. package/appFiles/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +1 -3
  26. package/appFiles/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +1 -3
  27. package/appFiles/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +1 -3
  28. package/appFiles/node_modules/@babel/runtime/helpers/jsx.js +2 -6
  29. package/appFiles/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +3 -9
  30. package/appFiles/node_modules/@babel/runtime/helpers/set.js +1 -1
  31. package/appFiles/node_modules/@babel/runtime/helpers/wrapRegExp.js +1 -3
  32. package/appFiles/node_modules/@babel/runtime/package.json +10 -1
  33. package/appFiles/node_modules/@babel/template/lib/builder.js +3 -15
  34. package/appFiles/node_modules/@babel/template/lib/builder.js.map +1 -0
  35. package/appFiles/node_modules/@babel/template/lib/formatters.js +3 -8
  36. package/appFiles/node_modules/@babel/template/lib/formatters.js.map +1 -0
  37. package/appFiles/node_modules/@babel/template/lib/index.js +2 -5
  38. package/appFiles/node_modules/@babel/template/lib/index.js.map +1 -0
  39. package/appFiles/node_modules/@babel/template/lib/literal.js +3 -13
  40. package/appFiles/node_modules/@babel/template/lib/literal.js.map +1 -0
  41. package/appFiles/node_modules/@babel/template/lib/options.js +10 -19
  42. package/appFiles/node_modules/@babel/template/lib/options.js.map +1 -0
  43. package/appFiles/node_modules/@babel/template/lib/parse.js +3 -23
  44. package/appFiles/node_modules/@babel/template/lib/parse.js.map +1 -0
  45. package/appFiles/node_modules/@babel/template/lib/populate.js +3 -15
  46. package/appFiles/node_modules/@babel/template/lib/populate.js.map +1 -0
  47. package/appFiles/node_modules/@babel/template/lib/string.js +3 -5
  48. package/appFiles/node_modules/@babel/template/lib/string.js.map +1 -0
  49. package/appFiles/node_modules/@babel/template/package.json +3 -3
  50. package/appFiles/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  51. package/appFiles/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  52. package/appFiles/node_modules/@babel/traverse/lib/path/introspection.js +7 -2
  53. package/appFiles/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -1
  54. package/appFiles/node_modules/@babel/traverse/lib/path/modification.js +9 -4
  55. package/appFiles/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  56. package/appFiles/node_modules/@babel/traverse/lib/scope/index.js +20 -11
  57. package/appFiles/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  58. package/appFiles/node_modules/@babel/traverse/lib/scope/lib/renamer.js +6 -8
  59. package/appFiles/node_modules/@babel/traverse/lib/scope/lib/renamer.js.map +1 -1
  60. package/appFiles/node_modules/@babel/traverse/package.json +4 -4
  61. package/appFiles/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -1
  62. package/appFiles/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -1
  63. package/appFiles/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +2 -1
  64. package/appFiles/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -1
  65. package/appFiles/node_modules/@babel/types/package.json +3 -3
  66. package/appFiles/src/preview.tsx +7 -7
  67. package/dist/index.js +3 -1
  68. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/parser",
3
- "version": "7.20.5",
3
+ "version": "7.20.7",
4
4
  "description": "A JavaScript parser",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-parser",
@@ -157,9 +157,7 @@ function old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate,
157
157
  };else if ("function" != typeof initializer) {
158
158
  var ownInitializers = initializer;
159
159
  initializer = function initializer(instance, init) {
160
- for (var value = init, i = 0; i < ownInitializers.length; i++) {
161
- value = ownInitializers[i].call(instance, value);
162
- }
160
+ for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
163
161
  return value;
164
162
  };
165
163
  } else {
@@ -202,9 +200,7 @@ function old_applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, de
202
200
  }
203
201
  function old_pushInitializers(ret, initializers) {
204
202
  initializers && ret.push(function (instance) {
205
- for (var i = 0; i < initializers.length; i++) {
206
- initializers[i].call(instance);
207
- }
203
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
208
204
  return instance;
209
205
  });
210
206
  }
@@ -227,9 +223,7 @@ function old_applyClassDecs(ret, targetClass, metadataMap, classDecs) {
227
223
  void 0 !== nextNewClass && (old_assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
228
224
  }
229
225
  ret.push(newClass, function () {
230
- for (var i = 0; i < initializers.length; i++) {
231
- initializers[i].call(newClass);
232
- }
226
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
233
227
  });
234
228
  }
235
229
  }
@@ -109,9 +109,7 @@ function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, ini
109
109
  };else if ("function" != typeof init) {
110
110
  var ownInitializers = init;
111
111
  init = function init(instance, _init2) {
112
- for (var value = _init2, i = 0; i < ownInitializers.length; i++) {
113
- value = ownInitializers[i].call(instance, value);
114
- }
112
+ for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
115
113
  return value;
116
114
  };
117
115
  } else {
@@ -153,9 +151,7 @@ function applyMemberDecs(ret, Class, decInfos) {
153
151
  }
154
152
  function pushInitializers(ret, initializers) {
155
153
  initializers && ret.push(function (instance) {
156
- for (var i = 0; i < initializers.length; i++) {
157
- initializers[i].call(instance);
158
- }
154
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
159
155
  return instance;
160
156
  });
161
157
  }
@@ -177,9 +173,7 @@ function applyClassDecs(ret, targetClass, classDecs) {
177
173
  void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
178
174
  }
179
175
  ret.push(newClass, function () {
180
- for (var i = 0; i < initializers.length; i++) {
181
- initializers[i].call(newClass);
182
- }
176
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
183
177
  });
184
178
  }
185
179
  }
@@ -1,8 +1,6 @@
1
1
  function _arrayLikeToArray(arr, len) {
2
2
  if (len == null || len > arr.length) len = arr.length;
3
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
4
- arr2[i] = arr[i];
5
- }
3
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6
4
  return arr2;
7
5
  }
8
6
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -1,4 +1,4 @@
1
1
  function _classNameTDZError(name) {
2
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
2
+ throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys.");
3
3
  }
4
4
  module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -0,0 +1,8 @@
1
+ function _defineAccessor(type, obj, key, fn) {
2
+ var desc = {
3
+ configurable: !0,
4
+ enumerable: !0
5
+ };
6
+ return desc[type] = fn, Object.defineProperty(obj, key, desc);
7
+ }
8
+ module.exports = _defineAccessor, module.exports.__esModule = true, module.exports["default"] = module.exports;
@@ -157,9 +157,7 @@ function old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate,
157
157
  };else if ("function" != typeof initializer) {
158
158
  var ownInitializers = initializer;
159
159
  initializer = function initializer(instance, init) {
160
- for (var value = init, i = 0; i < ownInitializers.length; i++) {
161
- value = ownInitializers[i].call(instance, value);
162
- }
160
+ for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
163
161
  return value;
164
162
  };
165
163
  } else {
@@ -202,9 +200,7 @@ function old_applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, de
202
200
  }
203
201
  function old_pushInitializers(ret, initializers) {
204
202
  initializers && ret.push(function (instance) {
205
- for (var i = 0; i < initializers.length; i++) {
206
- initializers[i].call(instance);
207
- }
203
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
208
204
  return instance;
209
205
  });
210
206
  }
@@ -227,9 +223,7 @@ function old_applyClassDecs(ret, targetClass, metadataMap, classDecs) {
227
223
  void 0 !== nextNewClass && (old_assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
228
224
  }
229
225
  ret.push(newClass, function () {
230
- for (var i = 0; i < initializers.length; i++) {
231
- initializers[i].call(newClass);
232
- }
226
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
233
227
  });
234
228
  }
235
229
  }
@@ -109,9 +109,7 @@ function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, ini
109
109
  };else if ("function" != typeof init) {
110
110
  var ownInitializers = init;
111
111
  init = function init(instance, _init2) {
112
- for (var value = _init2, i = 0; i < ownInitializers.length; i++) {
113
- value = ownInitializers[i].call(instance, value);
114
- }
112
+ for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
115
113
  return value;
116
114
  };
117
115
  } else {
@@ -153,9 +151,7 @@ function applyMemberDecs(ret, Class, decInfos) {
153
151
  }
154
152
  function pushInitializers(ret, initializers) {
155
153
  initializers && ret.push(function (instance) {
156
- for (var i = 0; i < initializers.length; i++) {
157
- initializers[i].call(instance);
158
- }
154
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
159
155
  return instance;
160
156
  });
161
157
  }
@@ -177,9 +173,7 @@ function applyClassDecs(ret, targetClass, classDecs) {
177
173
  void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
178
174
  }
179
175
  ret.push(newClass, function () {
180
- for (var i = 0; i < initializers.length; i++) {
181
- initializers[i].call(newClass);
182
- }
176
+ for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
183
177
  });
184
178
  }
185
179
  }
@@ -1,7 +1,5 @@
1
1
  export default function _arrayLikeToArray(arr, len) {
2
2
  if (len == null || len > arr.length) len = arr.length;
3
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
4
- arr2[i] = arr[i];
5
- }
3
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6
4
  return arr2;
7
5
  }
@@ -1,3 +1,3 @@
1
1
  export default function _classNameTDZError(name) {
2
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
2
+ throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys.");
3
3
  }
@@ -0,0 +1,7 @@
1
+ export default function _defineAccessor(type, obj, key, fn) {
2
+ var desc = {
3
+ configurable: !0,
4
+ enumerable: !0
5
+ };
6
+ return desc[type] = fn, Object.defineProperty(obj, key, desc);
7
+ }
@@ -12,9 +12,7 @@ export default function _iterableToArrayLimit(arr, i) {
12
12
  if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
13
  if (Object(_i) !== _i) return;
14
14
  _n = !1;
15
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
16
- ;
17
- }
15
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
18
16
  } catch (err) {
19
17
  _d = !0, _e = err;
20
18
  } finally {
@@ -3,9 +3,7 @@ export default function _iterableToArrayLimitLoose(arr, i) {
3
3
  if (null != _i) {
4
4
  var _s,
5
5
  _arr = [];
6
- for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) {
7
- _arr.push(_s.value);
8
- }
6
+ for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value);
9
7
  return _arr;
10
8
  }
11
9
  }
@@ -6,14 +6,10 @@ export default function _createRawReactElement(type, props, key, children) {
6
6
  if (props || 0 === childrenLength || (props = {
7
7
  children: void 0
8
8
  }), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
9
- for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) {
10
- childArray[i] = arguments[i + 3];
11
- }
9
+ for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
12
10
  props.children = childArray;
13
11
  }
14
- if (props && defaultProps) for (var propName in defaultProps) {
15
- void 0 === props[propName] && (props[propName] = defaultProps[propName]);
16
- } else props || (props = defaultProps || {});
12
+ if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {});
17
13
  return {
18
14
  $$typeof: REACT_ELEMENT_TYPE,
19
15
  type: type,
@@ -166,9 +166,7 @@ export default function _regeneratorRuntime() {
166
166
  if (!isNaN(iterable.length)) {
167
167
  var i = -1,
168
168
  next = function next() {
169
- for (; ++i < iterable.length;) {
170
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
171
- }
169
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
172
170
  return next.value = undefined, next.done = !0, next;
173
171
  };
174
172
  return next.next = next;
@@ -214,9 +212,7 @@ export default function _regeneratorRuntime() {
214
212
  }), exports.keys = function (val) {
215
213
  var object = Object(val),
216
214
  keys = [];
217
- for (var key in object) {
218
- keys.push(key);
219
- }
215
+ for (var key in object) keys.push(key);
220
216
  return keys.reverse(), function next() {
221
217
  for (; keys.length;) {
222
218
  var key = keys.pop();
@@ -227,9 +223,7 @@ export default function _regeneratorRuntime() {
227
223
  }, exports.values = values, Context.prototype = {
228
224
  constructor: Context,
229
225
  reset: function reset(skipTempReset) {
230
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
231
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
232
- }
226
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
233
227
  },
234
228
  stop: function stop() {
235
229
  this.done = !0;
@@ -34,7 +34,7 @@ function set(target, property, value, receiver) {
34
34
  export default function _set(target, property, value, receiver, isStrict) {
35
35
  var s = set(target, property, value, receiver || target);
36
36
  if (!s && isStrict) {
37
- throw new Error('failed to set property');
37
+ throw new TypeError('failed to set property');
38
38
  }
39
39
  return value;
40
40
  }
@@ -16,9 +16,7 @@ export default function _wrapRegExp() {
16
16
  return Object.keys(g).reduce(function (groups, name) {
17
17
  var i = g[name];
18
18
  if ("number" == typeof i) groups[name] = result[i];else {
19
- for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) {
20
- k++;
21
- }
19
+ for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
22
20
  groups[name] = result[i[k]];
23
21
  }
24
22
  return groups;
@@ -12,9 +12,7 @@ function _iterableToArrayLimit(arr, i) {
12
12
  if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
13
  if (Object(_i) !== _i) return;
14
14
  _n = !1;
15
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
16
- ;
17
- }
15
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
18
16
  } catch (err) {
19
17
  _d = !0, _e = err;
20
18
  } finally {
@@ -3,9 +3,7 @@ function _iterableToArrayLimitLoose(arr, i) {
3
3
  if (null != _i) {
4
4
  var _s,
5
5
  _arr = [];
6
- for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) {
7
- _arr.push(_s.value);
8
- }
6
+ for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value);
9
7
  return _arr;
10
8
  }
11
9
  }
@@ -6,14 +6,10 @@ function _createRawReactElement(type, props, key, children) {
6
6
  if (props || 0 === childrenLength || (props = {
7
7
  children: void 0
8
8
  }), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
9
- for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) {
10
- childArray[i] = arguments[i + 3];
11
- }
9
+ for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
12
10
  props.children = childArray;
13
11
  }
14
- if (props && defaultProps) for (var propName in defaultProps) {
15
- void 0 === props[propName] && (props[propName] = defaultProps[propName]);
16
- } else props || (props = defaultProps || {});
12
+ if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {});
17
13
  return {
18
14
  $$typeof: REACT_ELEMENT_TYPE,
19
15
  type: type,
@@ -166,9 +166,7 @@ function _regeneratorRuntime() {
166
166
  if (!isNaN(iterable.length)) {
167
167
  var i = -1,
168
168
  next = function next() {
169
- for (; ++i < iterable.length;) {
170
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
171
- }
169
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
172
170
  return next.value = undefined, next.done = !0, next;
173
171
  };
174
172
  return next.next = next;
@@ -214,9 +212,7 @@ function _regeneratorRuntime() {
214
212
  }), exports.keys = function (val) {
215
213
  var object = Object(val),
216
214
  keys = [];
217
- for (var key in object) {
218
- keys.push(key);
219
- }
215
+ for (var key in object) keys.push(key);
220
216
  return keys.reverse(), function next() {
221
217
  for (; keys.length;) {
222
218
  var key = keys.pop();
@@ -227,9 +223,7 @@ function _regeneratorRuntime() {
227
223
  }, exports.values = values, Context.prototype = {
228
224
  constructor: Context,
229
225
  reset: function reset(skipTempReset) {
230
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
231
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
232
- }
226
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
233
227
  },
234
228
  stop: function stop() {
235
229
  this.done = !0;
@@ -34,7 +34,7 @@ function set(target, property, value, receiver) {
34
34
  function _set(target, property, value, receiver, isStrict) {
35
35
  var s = set(target, property, value, receiver || target);
36
36
  if (!s && isStrict) {
37
- throw new Error('failed to set property');
37
+ throw new TypeError('failed to set property');
38
38
  }
39
39
  return value;
40
40
  }
@@ -16,9 +16,7 @@ function _wrapRegExp() {
16
16
  return Object.keys(g).reduce(function (groups, name) {
17
17
  var i = g[name];
18
18
  if ("number" == typeof i) groups[name] = result[i];else {
19
- for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) {
20
- k++;
21
- }
19
+ for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
22
20
  groups[name] = result[i[k]];
23
21
  }
24
22
  return groups;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/runtime",
3
- "version": "7.20.6",
3
+ "version": "7.20.7",
4
4
  "description": "babel's modular runtime helpers",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -89,6 +89,15 @@
89
89
  "./helpers/checkInRHS.js"
90
90
  ],
91
91
  "./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js",
92
+ "./helpers/defineAccessor": [
93
+ {
94
+ "node": "./helpers/defineAccessor.js",
95
+ "import": "./helpers/esm/defineAccessor.js",
96
+ "default": "./helpers/defineAccessor.js"
97
+ },
98
+ "./helpers/defineAccessor.js"
99
+ ],
100
+ "./helpers/esm/defineAccessor": "./helpers/esm/defineAccessor.js",
92
101
  "./helpers/iterableToArrayLimit": [
93
102
  {
94
103
  "node": "./helpers/iterableToArrayLimit.js",
@@ -4,17 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = createTemplateBuilder;
7
-
8
7
  var _options = require("./options");
9
-
10
8
  var _string = require("./string");
11
-
12
9
  var _literal = require("./literal");
13
-
14
10
  const NO_PLACEHOLDER = (0, _options.validate)({
15
11
  placeholderPattern: false
16
12
  });
17
-
18
13
  function createTemplateBuilder(formatter, defaultOpts) {
19
14
  const templateFnCache = new WeakMap();
20
15
  const templateAstCache = new WeakMap();
@@ -25,18 +20,15 @@ function createTemplateBuilder(formatter, defaultOpts) {
25
20
  return extendedTrace((0, _string.default)(formatter, tpl, (0, _options.merge)(cachedOpts, (0, _options.validate)(args[0]))));
26
21
  } else if (Array.isArray(tpl)) {
27
22
  let builder = templateFnCache.get(tpl);
28
-
29
23
  if (!builder) {
30
24
  builder = (0, _literal.default)(formatter, tpl, cachedOpts);
31
25
  templateFnCache.set(tpl, builder);
32
26
  }
33
-
34
27
  return extendedTrace(builder(args));
35
28
  } else if (typeof tpl === "object" && tpl) {
36
29
  if (args.length > 0) throw new Error("Unexpected extra params.");
37
30
  return createTemplateBuilder(formatter, (0, _options.merge)(cachedOpts, (0, _options.validate)(tpl)));
38
31
  }
39
-
40
32
  throw new Error(`Unexpected template param ${typeof tpl}`);
41
33
  }, {
42
34
  ast: (tpl, ...args) => {
@@ -45,23 +37,18 @@ function createTemplateBuilder(formatter, defaultOpts) {
45
37
  return (0, _string.default)(formatter, tpl, (0, _options.merge)((0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])), NO_PLACEHOLDER))();
46
38
  } else if (Array.isArray(tpl)) {
47
39
  let builder = templateAstCache.get(tpl);
48
-
49
40
  if (!builder) {
50
41
  builder = (0, _literal.default)(formatter, tpl, (0, _options.merge)(cachedOpts, NO_PLACEHOLDER));
51
42
  templateAstCache.set(tpl, builder);
52
43
  }
53
-
54
44
  return builder(args)();
55
45
  }
56
-
57
46
  throw new Error(`Unexpected template param ${typeof tpl}`);
58
47
  }
59
48
  });
60
49
  }
61
-
62
50
  function extendedTrace(fn) {
63
51
  let rootStack = "";
64
-
65
52
  try {
66
53
  throw new Error();
67
54
  } catch (error) {
@@ -69,7 +56,6 @@ function extendedTrace(fn) {
69
56
  rootStack = error.stack.split("\n").slice(3).join("\n");
70
57
  }
71
58
  }
72
-
73
59
  return arg => {
74
60
  try {
75
61
  return fn(arg);
@@ -78,4 +64,6 @@ function extendedTrace(fn) {
78
64
  throw err;
79
65
  }
80
66
  };
81
- }
67
+ }
68
+
69
+ //# sourceMappingURL=builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NO_PLACEHOLDER","validate","placeholderPattern","createTemplateBuilder","formatter","defaultOpts","templateFnCache","WeakMap","templateAstCache","cachedOpts","Object","assign","tpl","args","length","Error","extendedTrace","stringTemplate","merge","Array","isArray","builder","get","literalTemplate","set","ast","fn","rootStack","error","stack","split","slice","join","arg","err"],"sources":["../src/builder.ts"],"sourcesContent":["import { merge, validate } from \"./options\";\nimport type { TemplateOpts, PublicOpts, PublicReplacements } from \"./options\";\nimport type { Formatter } from \"./formatters\";\n\nimport stringTemplate from \"./string\";\nimport literalTemplate from \"./literal\";\n\nexport type TemplateBuilder<T> = {\n // Build a new builder, merging the given options with the previous ones.\n (opts: PublicOpts): TemplateBuilder<T>;\n\n // Building from a string produces an AST builder function by default.\n (tpl: string, opts?: PublicOpts): (replacements?: PublicReplacements) => T;\n\n // Building from a template literal produces an AST builder function by default.\n (tpl: TemplateStringsArray, ...args: Array<unknown>): (\n replacements?: PublicReplacements,\n ) => T;\n\n // Allow users to explicitly create templates that produce ASTs, skipping\n // the need for an intermediate function.\n ast: {\n (tpl: string, opts?: PublicOpts): T;\n (tpl: TemplateStringsArray, ...args: Array<unknown>): T;\n };\n};\n\n// Prebuild the options that will be used when parsing a `.ast` template.\n// These do not use a pattern because there is no way for users to pass in\n// replacement patterns to begin with, and disabling pattern matching means\n// users have more flexibility in what type of content they have in their\n// template JS.\nconst NO_PLACEHOLDER: TemplateOpts = validate({\n placeholderPattern: false,\n});\n\nexport default function createTemplateBuilder<T>(\n formatter: Formatter<T>,\n defaultOpts?: TemplateOpts,\n): TemplateBuilder<T> {\n const templateFnCache = new WeakMap();\n const templateAstCache = new WeakMap();\n const cachedOpts = defaultOpts || validate(null);\n\n return Object.assign(\n ((tpl, ...args) => {\n if (typeof tpl === \"string\") {\n if (args.length > 1) throw new Error(\"Unexpected extra params.\");\n return extendedTrace(\n stringTemplate(formatter, tpl, merge(cachedOpts, validate(args[0]))),\n );\n } else if (Array.isArray(tpl)) {\n let builder = templateFnCache.get(tpl);\n if (!builder) {\n builder = literalTemplate(formatter, tpl, cachedOpts);\n templateFnCache.set(tpl, builder);\n }\n return extendedTrace(builder(args));\n } else if (typeof tpl === \"object\" && tpl) {\n if (args.length > 0) throw new Error(\"Unexpected extra params.\");\n return createTemplateBuilder(\n formatter,\n merge(cachedOpts, validate(tpl)),\n );\n }\n throw new Error(`Unexpected template param ${typeof tpl}`);\n }) as TemplateBuilder<T>,\n {\n ast: (tpl: string | Array<string>, ...args: Array<unknown>) => {\n if (typeof tpl === \"string\") {\n if (args.length > 1) throw new Error(\"Unexpected extra params.\");\n return stringTemplate(\n formatter,\n tpl,\n merge(merge(cachedOpts, validate(args[0])), NO_PLACEHOLDER),\n )();\n } else if (Array.isArray(tpl)) {\n let builder = templateAstCache.get(tpl);\n if (!builder) {\n builder = literalTemplate(\n formatter,\n tpl,\n merge(cachedOpts, NO_PLACEHOLDER),\n );\n templateAstCache.set(tpl, builder);\n }\n return builder(args)();\n }\n\n throw new Error(`Unexpected template param ${typeof tpl}`);\n },\n },\n );\n}\n\nfunction extendedTrace<Arg, Result>(\n fn: (_: Arg) => Result,\n): (_: Arg) => Result {\n // Since we lazy parse the template, we get the current stack so we have the\n // original stack to append if it errors when parsing\n let rootStack = \"\";\n try {\n // error stack gets populated in IE only on throw\n // (https://msdn.microsoft.com/en-us/library/hh699850(v=vs.94).aspx)\n throw new Error();\n } catch (error) {\n if (error.stack) {\n // error.stack does not exists in IE <= 9\n // We slice off the top 3 items in the stack to remove the call to\n // 'extendedTrace', and the anonymous builder function, with the final\n // stripped line being the error message itself since we threw it\n // in the first place and it doesn't matter.\n rootStack = error.stack.split(\"\\n\").slice(3).join(\"\\n\");\n }\n }\n\n return (arg: Arg) => {\n try {\n return fn(arg);\n } catch (err) {\n err.stack += `\\n =============\\n${rootStack}`;\n throw err;\n }\n };\n}\n"],"mappings":"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"}
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.statements = exports.statement = exports.smart = exports.program = exports.expression = void 0;
7
-
8
7
  var _t = require("@babel/types");
9
-
10
8
  const {
11
9
  assertExpressionStatement
12
10
  } = _t;
13
-
14
11
  function makeStatementFormatter(fn) {
15
12
  return {
16
13
  code: str => `/* @babel/template */;\n${str}`,
@@ -20,7 +17,6 @@ function makeStatementFormatter(fn) {
20
17
  }
21
18
  };
22
19
  }
23
-
24
20
  const smart = makeStatementFormatter(body => {
25
21
  if (body.length > 1) {
26
22
  return body;
@@ -35,11 +31,9 @@ const statement = makeStatementFormatter(body => {
35
31
  if (body.length === 0) {
36
32
  throw new Error("Found nothing to return.");
37
33
  }
38
-
39
34
  if (body.length > 1) {
40
35
  throw new Error("Found multiple statements but wanted one");
41
36
  }
42
-
43
37
  return body[0];
44
38
  });
45
39
  exports.statement = statement;
@@ -49,7 +43,6 @@ const expression = {
49
43
  if (ast.program.body.length > 1) {
50
44
  throw new Error("Found multiple statements but wanted one");
51
45
  }
52
-
53
46
  if (expression.unwrap(ast).start === 0) {
54
47
  throw new Error("Parse result included parens.");
55
48
  }
@@ -68,4 +61,6 @@ const program = {
68
61
  validate: () => {},
69
62
  unwrap: ast => ast.program
70
63
  };
71
- exports.program = program;
64
+ exports.program = program;
65
+
66
+ //# sourceMappingURL=formatters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["assertExpressionStatement","makeStatementFormatter","fn","code","str","validate","unwrap","ast","program","body","slice","smart","length","statements","statement","Error","expression","start","stmt"],"sources":["../src/formatters.ts"],"sourcesContent":["import { assertExpressionStatement } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nexport type Formatter<T> = {\n code: (source: string) => string;\n validate: (ast: t.File) => void;\n unwrap: (ast: t.File) => T;\n};\n\nfunction makeStatementFormatter<T>(\n fn: (statements: Array<t.Statement>) => T,\n): Formatter<T> {\n return {\n // We need to prepend a \";\" to force statement parsing so that\n // ExpressionStatement strings won't be parsed as directives.\n // Alongside that, we also prepend a comment so that when a syntax error\n // is encountered, the user will be less likely to get confused about\n // where the random semicolon came from.\n code: str => `/* @babel/template */;\\n${str}`,\n validate: () => {},\n unwrap: (ast: t.File): T => {\n return fn(ast.program.body.slice(1));\n },\n };\n}\n\nexport const smart = makeStatementFormatter(body => {\n if (body.length > 1) {\n return body;\n } else {\n return body[0];\n }\n});\n\nexport const statements = makeStatementFormatter(body => body);\n\nexport const statement = makeStatementFormatter(body => {\n // We do this validation when unwrapping since the replacement process\n // could have added or removed statements.\n if (body.length === 0) {\n throw new Error(\"Found nothing to return.\");\n }\n if (body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n\n return body[0];\n});\n\nexport const expression: Formatter<t.Expression> = {\n code: str => `(\\n${str}\\n)`,\n validate: ast => {\n if (ast.program.body.length > 1) {\n throw new Error(\"Found multiple statements but wanted one\");\n }\n if (expression.unwrap(ast).start === 0) {\n throw new Error(\"Parse result included parens.\");\n }\n },\n unwrap: ({ program }) => {\n const [stmt] = program.body;\n assertExpressionStatement(stmt);\n return stmt.expression;\n },\n};\n\nexport const program: Formatter<t.Program> = {\n code: str => str,\n validate: () => {},\n unwrap: ast => ast.program,\n};\n"],"mappings":";;;;;;AAAA;AAAyD;EAAhDA;AAAyB;AASlC,SAASC,sBAAsB,CAC7BC,EAAyC,EAC3B;EACd,OAAO;IAMLC,IAAI,EAAEC,GAAG,IAAK,2BAA0BA,GAAI,EAAC;IAC7CC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClBC,MAAM,EAAGC,GAAW,IAAQ;MAC1B,OAAOL,EAAE,CAACK,GAAG,CAACC,OAAO,CAACC,IAAI,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC;IACtC;EACF,CAAC;AACH;AAEO,MAAMC,KAAK,GAAGV,sBAAsB,CAACQ,IAAI,IAAI;EAClD,IAAIA,IAAI,CAACG,MAAM,GAAG,CAAC,EAAE;IACnB,OAAOH,IAAI;EACb,CAAC,MAAM;IACL,OAAOA,IAAI,CAAC,CAAC,CAAC;EAChB;AACF,CAAC,CAAC;AAAC;AAEI,MAAMI,UAAU,GAAGZ,sBAAsB,CAACQ,IAAI,IAAIA,IAAI,CAAC;AAAC;AAExD,MAAMK,SAAS,GAAGb,sBAAsB,CAACQ,IAAI,IAAI;EAGtD,IAAIA,IAAI,CAACG,MAAM,KAAK,CAAC,EAAE;IACrB,MAAM,IAAIG,KAAK,CAAC,0BAA0B,CAAC;EAC7C;EACA,IAAIN,IAAI,CAACG,MAAM,GAAG,CAAC,EAAE;IACnB,MAAM,IAAIG,KAAK,CAAC,0CAA0C,CAAC;EAC7D;EAEA,OAAON,IAAI,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC;AAAC;AAEI,MAAMO,UAAmC,GAAG;EACjDb,IAAI,EAAEC,GAAG,IAAK,MAAKA,GAAI,KAAI;EAC3BC,QAAQ,EAAEE,GAAG,IAAI;IACf,IAAIA,GAAG,CAACC,OAAO,CAACC,IAAI,CAACG,MAAM,GAAG,CAAC,EAAE;MAC/B,MAAM,IAAIG,KAAK,CAAC,0CAA0C,CAAC;IAC7D;IACA,IAAIC,UAAU,CAACV,MAAM,CAACC,GAAG,CAAC,CAACU,KAAK,KAAK,CAAC,EAAE;MACtC,MAAM,IAAIF,KAAK,CAAC,+BAA+B,CAAC;IAClD;EACF,CAAC;EACDT,MAAM,EAAE,CAAC;IAAEE;EAAQ,CAAC,KAAK;IACvB,MAAM,CAACU,IAAI,CAAC,GAAGV,OAAO,CAACC,IAAI;IAC3BT,yBAAyB,CAACkB,IAAI,CAAC;IAC/B,OAAOA,IAAI,CAACF,UAAU;EACxB;AACF,CAAC;AAAC;AAEK,MAAMR,OAA6B,GAAG;EAC3CL,IAAI,EAAEC,GAAG,IAAIA,GAAG;EAChBC,QAAQ,EAAE,MAAM,CAAC,CAAC;EAClBC,MAAM,EAAEC,GAAG,IAAIA,GAAG,CAACC;AACrB,CAAC;AAAC"}
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.statements = exports.statement = exports.smart = exports.program = exports.expression = exports.default = void 0;
7
-
8
7
  var formatters = require("./formatters");
9
-
10
8
  var _builder = require("./builder");
11
-
12
9
  const smart = (0, _builder.default)(formatters.smart);
13
10
  exports.smart = smart;
14
11
  const statement = (0, _builder.default)(formatters.statement);
@@ -19,7 +16,6 @@ const expression = (0, _builder.default)(formatters.expression);
19
16
  exports.expression = expression;
20
17
  const program = (0, _builder.default)(formatters.program);
21
18
  exports.program = program;
22
-
23
19
  var _default = Object.assign(smart.bind(undefined), {
24
20
  smart,
25
21
  statement,
@@ -28,5 +24,6 @@ var _default = Object.assign(smart.bind(undefined), {
28
24
  program,
29
25
  ast: smart.ast
30
26
  });
27
+ exports.default = _default;
31
28
 
32
- exports.default = _default;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["smart","createTemplateBuilder","formatters","statement","statements","expression","program","Object","assign","bind","undefined","ast"],"sources":["../src/index.ts"],"sourcesContent":["import * as formatters from \"./formatters\";\nimport createTemplateBuilder from \"./builder\";\n\nexport const smart = createTemplateBuilder(formatters.smart);\nexport const statement = createTemplateBuilder(formatters.statement);\nexport const statements = createTemplateBuilder(formatters.statements);\nexport const expression = createTemplateBuilder(formatters.expression);\nexport const program = createTemplateBuilder(formatters.program);\n\ntype DefaultTemplateBuilder = typeof smart & {\n smart: typeof smart;\n statement: typeof statement;\n statements: typeof statements;\n expression: typeof expression;\n program: typeof program;\n};\n\nexport default Object.assign(smart.bind(undefined) as DefaultTemplateBuilder, {\n smart,\n statement,\n statements,\n expression,\n program,\n ast: smart.ast,\n});\n"],"mappings":";;;;;;AAAA;AACA;AAEO,MAAMA,KAAK,GAAG,IAAAC,gBAAqB,EAACC,UAAU,CAACF,KAAK,CAAC;AAAC;AACtD,MAAMG,SAAS,GAAG,IAAAF,gBAAqB,EAACC,UAAU,CAACC,SAAS,CAAC;AAAC;AAC9D,MAAMC,UAAU,GAAG,IAAAH,gBAAqB,EAACC,UAAU,CAACE,UAAU,CAAC;AAAC;AAChE,MAAMC,UAAU,GAAG,IAAAJ,gBAAqB,EAACC,UAAU,CAACG,UAAU,CAAC;AAAC;AAChE,MAAMC,OAAO,GAAG,IAAAL,gBAAqB,EAACC,UAAU,CAACI,OAAO,CAAC;AAAC;AAAA,eAUlDC,MAAM,CAACC,MAAM,CAACR,KAAK,CAACS,IAAI,CAACC,SAAS,CAAC,EAA4B;EAC5EV,KAAK;EACLG,SAAS;EACTC,UAAU;EACVC,UAAU;EACVC,OAAO;EACPK,GAAG,EAAEX,KAAK,CAACW;AACb,CAAC,CAAC;AAAA"}