@swaggerexpert/jsonpath 3.0.1 → 3.2.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.
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- class JSONPathError extends Error {
6
- constructor(message, options = undefined) {
7
- super(message, options);
8
- this.name = this.constructor.name;
9
- if (typeof message === 'string') {
10
- this.message = message;
11
- }
12
- if (typeof Error.captureStackTrace === 'function') {
13
- Error.captureStackTrace(this, this.constructor);
14
- } else {
15
- this.stack = new Error(message).stack;
16
- }
17
-
18
- /**
19
- * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
20
- * Node.js is >= 16.9.0 supports error causes natively.
21
- */
22
- if (options != null && typeof options === 'object' && Object.prototype.hasOwnProperty.call(options, 'cause') && !('cause' in this)) {
23
- const {
24
- cause
25
- } = options;
26
- this.cause = cause;
27
- if (cause instanceof Error && 'stack' in cause) {
28
- this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
29
- }
30
- }
31
-
32
- /**
33
- * Allows to assign arbitrary properties to the error object.
34
- */
35
- if (options != null && typeof options === 'object') {
36
- const {
37
- cause,
38
- ...causelessOptions
39
- } = options;
40
- Object.assign(this, causelessOptions);
41
- }
42
- }
43
- }
44
- var _default = exports.default = JSONPathError;
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = void 0;
5
- var _JSONPathError = _interopRequireDefault(require("./JSONPathError.cjs"));
6
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7
- class JSONPathParseError extends _JSONPathError.default {}
8
- var _default = exports.default = JSONPathParseError;