cx 24.3.0 → 24.3.2

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/dist/data.js CHANGED
@@ -111,6 +111,21 @@ function isBinding(value) {
111
111
  return value instanceof Binding;
112
112
  }
113
113
 
114
+ function _construct(t, e, r) {
115
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
116
+ var o = [null];
117
+ o.push.apply(o, e);
118
+ var p = new (t.bind.apply(t, o))();
119
+ return r && _setPrototypeOf(p, r.prototype), p;
120
+ }
121
+ function _isNativeReflectConstruct() {
122
+ try {
123
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
124
+ } catch (t) {}
125
+ return (_isNativeReflectConstruct = function () {
126
+ return !!t;
127
+ })();
128
+ }
114
129
  function _extends() {
115
130
  _extends = Object.assign
116
131
  ? Object.assign.bind()
@@ -141,32 +156,6 @@ function _setPrototypeOf(o, p) {
141
156
  };
142
157
  return _setPrototypeOf(o, p);
143
158
  }
144
- function _isNativeReflectConstruct() {
145
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
146
- if (Reflect.construct.sham) return false;
147
- if (typeof Proxy === "function") return true;
148
- try {
149
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
150
- return true;
151
- } catch (e) {
152
- return false;
153
- }
154
- }
155
- function _construct(Parent, args, Class) {
156
- if (_isNativeReflectConstruct()) {
157
- _construct = Reflect.construct.bind();
158
- } else {
159
- _construct = function _construct(Parent, args, Class) {
160
- var a = [null];
161
- a.push.apply(a, args);
162
- var Constructor = Function.bind.apply(Parent, a);
163
- var instance = new Constructor();
164
- if (Class) _setPrototypeOf(instance, Class.prototype);
165
- return instance;
166
- };
167
- }
168
- return _construct.apply(null, arguments);
169
- }
170
159
  function _assertThisInitialized(self) {
171
160
  if (self === void 0) {
172
161
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");