Skip to content

Commit 6152538

Browse files
committed
chore: update devDeps.
1 parent 309d445 commit 6152538

9 files changed

+629
-1014
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
},
2929
// ESLint doesn't seem to remember this
3030
parserOptions: {
31-
ecmaVersion: 2020,
31+
ecmaVersion: 2022,
3232
sourceType: 'module'
3333
},
3434
rules: {

dist/index-browser-esm.js

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
function _callSuper(t, o, e) {
2+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
3+
}
4+
function _construct(t, e, r) {
5+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
6+
var o = [null];
7+
o.push.apply(o, e);
8+
var p = new (t.bind.apply(t, o))();
9+
return r && _setPrototypeOf(p, r.prototype), p;
10+
}
11+
function _isNativeReflectConstruct() {
12+
try {
13+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
14+
} catch (t) {}
15+
return (_isNativeReflectConstruct = function () {
16+
return !!t;
17+
})();
18+
}
119
function _toPrimitive(t, r) {
220
if ("object" != typeof t || !t) return t;
321
var e = t[Symbol.toPrimitive];
@@ -72,32 +90,6 @@ function _setPrototypeOf(o, p) {
7290
};
7391
return _setPrototypeOf(o, p);
7492
}
75-
function _isNativeReflectConstruct() {
76-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77-
if (Reflect.construct.sham) return false;
78-
if (typeof Proxy === "function") return true;
79-
try {
80-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
81-
return true;
82-
} catch (e) {
83-
return false;
84-
}
85-
}
86-
function _construct(Parent, args, Class) {
87-
if (_isNativeReflectConstruct()) {
88-
_construct = Reflect.construct.bind();
89-
} else {
90-
_construct = function _construct(Parent, args, Class) {
91-
var a = [null];
92-
a.push.apply(a, args);
93-
var Constructor = Function.bind.apply(Parent, a);
94-
var instance = new Constructor();
95-
if (Class) _setPrototypeOf(instance, Class.prototype);
96-
return instance;
97-
};
98-
}
99-
return _construct.apply(null, arguments);
100-
}
10193
function _isNativeFunction(fn) {
10294
try {
10395
return Function.toString.call(fn).indexOf("[native code]") !== -1;
@@ -145,20 +137,6 @@ function _possibleConstructorReturn(self, call) {
145137
}
146138
return _assertThisInitialized(self);
147139
}
148-
function _createSuper(Derived) {
149-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
150-
return function _createSuperInternal() {
151-
var Super = _getPrototypeOf(Derived),
152-
result;
153-
if (hasNativeReflectConstruct) {
154-
var NewTarget = _getPrototypeOf(this).constructor;
155-
result = Reflect.construct(Super, arguments, NewTarget);
156-
} else {
157-
result = Super.apply(this, arguments);
158-
}
159-
return _possibleConstructorReturn(this, result);
160-
};
161-
}
162140
function _toConsumableArray(arr) {
163141
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
164142
}
@@ -281,14 +259,13 @@ function unshift(item, arr) {
281259
*/
282260
var NewError = /*#__PURE__*/function (_Error) {
283261
_inherits(NewError, _Error);
284-
var _super = _createSuper(NewError);
285262
/**
286263
* @param {AnyResult} value The evaluated scalar value
287264
*/
288265
function NewError(value) {
289266
var _this;
290267
_classCallCheck(this, NewError);
291-
_this = _super.call(this, 'JSONPath should not be called with "new" (it prevents return ' + 'of (unwrapped) scalar values)');
268+
_this = _callSuper(this, NewError, ['JSONPath should not be called with "new" (it prevents return ' + 'of (unwrapped) scalar values)']);
292269
_this.avoidNew = true;
293270
_this.value = value;
294271
_this.name = 'NewError';

dist/index-browser-esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-browser-esm.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-browser-umd.cjs

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.JSONPath = {}));
55
})(this, (function (exports) { 'use strict';
66

7+
function _callSuper(t, o, e) {
8+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
9+
}
10+
function _construct(t, e, r) {
11+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
12+
var o = [null];
13+
o.push.apply(o, e);
14+
var p = new (t.bind.apply(t, o))();
15+
return r && _setPrototypeOf(p, r.prototype), p;
16+
}
17+
function _isNativeReflectConstruct() {
18+
try {
19+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
20+
} catch (t) {}
21+
return (_isNativeReflectConstruct = function () {
22+
return !!t;
23+
})();
24+
}
725
function _toPrimitive(t, r) {
826
if ("object" != typeof t || !t) return t;
927
var e = t[Symbol.toPrimitive];
@@ -78,32 +96,6 @@
7896
};
7997
return _setPrototypeOf(o, p);
8098
}
81-
function _isNativeReflectConstruct() {
82-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
83-
if (Reflect.construct.sham) return false;
84-
if (typeof Proxy === "function") return true;
85-
try {
86-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
87-
return true;
88-
} catch (e) {
89-
return false;
90-
}
91-
}
92-
function _construct(Parent, args, Class) {
93-
if (_isNativeReflectConstruct()) {
94-
_construct = Reflect.construct.bind();
95-
} else {
96-
_construct = function _construct(Parent, args, Class) {
97-
var a = [null];
98-
a.push.apply(a, args);
99-
var Constructor = Function.bind.apply(Parent, a);
100-
var instance = new Constructor();
101-
if (Class) _setPrototypeOf(instance, Class.prototype);
102-
return instance;
103-
};
104-
}
105-
return _construct.apply(null, arguments);
106-
}
10799
function _isNativeFunction(fn) {
108100
try {
109101
return Function.toString.call(fn).indexOf("[native code]") !== -1;
@@ -151,20 +143,6 @@
151143
}
152144
return _assertThisInitialized(self);
153145
}
154-
function _createSuper(Derived) {
155-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
156-
return function _createSuperInternal() {
157-
var Super = _getPrototypeOf(Derived),
158-
result;
159-
if (hasNativeReflectConstruct) {
160-
var NewTarget = _getPrototypeOf(this).constructor;
161-
result = Reflect.construct(Super, arguments, NewTarget);
162-
} else {
163-
result = Super.apply(this, arguments);
164-
}
165-
return _possibleConstructorReturn(this, result);
166-
};
167-
}
168146
function _toConsumableArray(arr) {
169147
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
170148
}
@@ -287,14 +265,13 @@
287265
*/
288266
var NewError = /*#__PURE__*/function (_Error) {
289267
_inherits(NewError, _Error);
290-
var _super = _createSuper(NewError);
291268
/**
292269
* @param {AnyResult} value The evaluated scalar value
293270
*/
294271
function NewError(value) {
295272
var _this;
296273
_classCallCheck(this, NewError);
297-
_this = _super.call(this, 'JSONPath should not be called with "new" (it prevents return ' + 'of (unwrapped) scalar values)');
274+
_this = _callSuper(this, NewError, ['JSONPath should not be called with "new" (it prevents return ' + 'of (unwrapped) scalar values)']);
298275
_this.avoidNew = true;
299276
_this.value = value;
300277
_this.name = 'NewError';

0 commit comments

Comments
 (0)