@swagger-api/apidom-json-pointer-relative 1.0.0-beta.33 → 1.0.0-beta.34
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/CHANGELOG.md +4 -0
- package/dist/apidom-json-pointer-relative.browser.js +212 -197
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.34](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2025-05-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-json-pointer-relative
|
|
9
|
+
|
|
6
10
|
# [1.0.0-beta.33](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2025-04-30)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @swagger-api/apidom-json-pointer-relative
|
|
@@ -86,7 +86,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86
86
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
87
87
|
/* harmony export */ isRelativeJsonPointer: () => (/* binding */ isRelativeJsonPointer)
|
|
88
88
|
/* harmony export */ });
|
|
89
|
-
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
89
|
+
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4041);
|
|
90
90
|
/* harmony import */ var _errors_InvalidRelativeJsonPointerError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2231);
|
|
91
91
|
|
|
92
92
|
|
|
@@ -664,6 +664,52 @@ module.exports = function (it) {
|
|
|
664
664
|
};
|
|
665
665
|
|
|
666
666
|
|
|
667
|
+
/***/ }),
|
|
668
|
+
|
|
669
|
+
/***/ 317:
|
|
670
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
671
|
+
|
|
672
|
+
"use strict";
|
|
673
|
+
__webpack_require__.r(__webpack_exports__);
|
|
674
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
675
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
676
|
+
/* harmony export */ });
|
|
677
|
+
/* harmony import */ var _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1198);
|
|
678
|
+
/* harmony import */ var _swaggerexpert_json_pointer_evaluate_realms_apidom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4808);
|
|
679
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6941);
|
|
680
|
+
/* harmony import */ var _errors_EvaluationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1747);
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Evaluates JSON Pointer against ApiDOM fragment.
|
|
687
|
+
* @public
|
|
688
|
+
* @deprecated
|
|
689
|
+
*/
|
|
690
|
+
const evaluate = (pointer, element) => {
|
|
691
|
+
try {
|
|
692
|
+
return (0,_swaggerexpert_json_pointer_evaluate_realms_apidom__WEBPACK_IMPORTED_MODULE_1__.evaluate)(element, _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.URIFragmentIdentifier.from(pointer));
|
|
693
|
+
} catch (error) {
|
|
694
|
+
if (error instanceof _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.JSONPointerEvaluateError) {
|
|
695
|
+
throw new _errors_EvaluationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](error.message, {
|
|
696
|
+
pointer,
|
|
697
|
+
tokens: error.referenceTokens,
|
|
698
|
+
failedToken: error.referenceToken,
|
|
699
|
+
failedTokenPosition: error.referenceTokenPosition,
|
|
700
|
+
element: (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.cloneDeep)(element),
|
|
701
|
+
cause: error
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
throw new _errors_EvaluationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](error.message, {
|
|
705
|
+
pointer,
|
|
706
|
+
element: (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.cloneDeep)(element),
|
|
707
|
+
cause: error
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (evaluate);
|
|
712
|
+
|
|
667
713
|
/***/ }),
|
|
668
714
|
|
|
669
715
|
/***/ 331:
|
|
@@ -3381,8 +3427,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3381
3427
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(331);
|
|
3382
3428
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6941);
|
|
3383
3429
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1339);
|
|
3384
|
-
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
3385
|
-
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
3430
|
+
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6279);
|
|
3431
|
+
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(317);
|
|
3386
3432
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9451);
|
|
3387
3433
|
/* harmony import */ var _errors_EvaluationRelativeJsonPointerError_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8502);
|
|
3388
3434
|
/* harmony import */ var _parse_ts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(108);
|
|
@@ -3776,35 +3822,6 @@ module.exports = fails(function () {
|
|
|
3776
3822
|
} : $Object;
|
|
3777
3823
|
|
|
3778
3824
|
|
|
3779
|
-
/***/ }),
|
|
3780
|
-
|
|
3781
|
-
/***/ 1428:
|
|
3782
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
3783
|
-
|
|
3784
|
-
"use strict";
|
|
3785
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3786
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3787
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3788
|
-
/* harmony export */ });
|
|
3789
|
-
/* harmony import */ var _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9217);
|
|
3790
|
-
|
|
3791
|
-
/**
|
|
3792
|
-
* @public
|
|
3793
|
-
*/
|
|
3794
|
-
/**
|
|
3795
|
-
* @public
|
|
3796
|
-
*/
|
|
3797
|
-
class CompilationJsonPointerError extends _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
3798
|
-
tokens;
|
|
3799
|
-
constructor(message, structuredOptions) {
|
|
3800
|
-
super(message, structuredOptions);
|
|
3801
|
-
if (typeof structuredOptions !== 'undefined') {
|
|
3802
|
-
this.tokens = [...structuredOptions.tokens];
|
|
3803
|
-
}
|
|
3804
|
-
}
|
|
3805
|
-
}
|
|
3806
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CompilationJsonPointerError);
|
|
3807
|
-
|
|
3808
3825
|
/***/ }),
|
|
3809
3826
|
|
|
3810
3827
|
/***/ 1515:
|
|
@@ -4026,6 +4043,47 @@ module.exports = function (iterator, kind, value) {
|
|
|
4026
4043
|
};
|
|
4027
4044
|
|
|
4028
4045
|
|
|
4046
|
+
/***/ }),
|
|
4047
|
+
|
|
4048
|
+
/***/ 1747:
|
|
4049
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
4050
|
+
|
|
4051
|
+
"use strict";
|
|
4052
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4053
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4054
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4055
|
+
/* harmony export */ });
|
|
4056
|
+
/* harmony import */ var _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5617);
|
|
4057
|
+
|
|
4058
|
+
/**
|
|
4059
|
+
* @public
|
|
4060
|
+
* @deprecated
|
|
4061
|
+
*/
|
|
4062
|
+
/**
|
|
4063
|
+
* @public
|
|
4064
|
+
* @deprecated
|
|
4065
|
+
*/
|
|
4066
|
+
class EvaluationJsonPointerError extends _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
4067
|
+
pointer;
|
|
4068
|
+
tokens;
|
|
4069
|
+
failedToken;
|
|
4070
|
+
failedTokenPosition;
|
|
4071
|
+
element;
|
|
4072
|
+
constructor(message, structuredOptions) {
|
|
4073
|
+
super(message, structuredOptions);
|
|
4074
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
4075
|
+
this.pointer = structuredOptions.pointer;
|
|
4076
|
+
if (Array.isArray(structuredOptions.tokens)) {
|
|
4077
|
+
this.tokens = [...structuredOptions.tokens];
|
|
4078
|
+
}
|
|
4079
|
+
this.failedToken = structuredOptions.failedToken;
|
|
4080
|
+
this.failedTokenPosition = structuredOptions.failedTokenPosition;
|
|
4081
|
+
this.element = structuredOptions.element;
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EvaluationJsonPointerError);
|
|
4086
|
+
|
|
4029
4087
|
/***/ }),
|
|
4030
4088
|
|
|
4031
4089
|
/***/ 1751:
|
|
@@ -5551,45 +5609,6 @@ function listCacheDelete(key) {
|
|
|
5551
5609
|
module.exports = listCacheDelete;
|
|
5552
5610
|
|
|
5553
5611
|
|
|
5554
|
-
/***/ }),
|
|
5555
|
-
|
|
5556
|
-
/***/ 2131:
|
|
5557
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
5558
|
-
|
|
5559
|
-
"use strict";
|
|
5560
|
-
__webpack_require__.r(__webpack_exports__);
|
|
5561
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5562
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5563
|
-
/* harmony export */ });
|
|
5564
|
-
/* harmony import */ var _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9217);
|
|
5565
|
-
|
|
5566
|
-
/**
|
|
5567
|
-
* @public
|
|
5568
|
-
*/
|
|
5569
|
-
/**
|
|
5570
|
-
* @public
|
|
5571
|
-
*/
|
|
5572
|
-
class EvaluationJsonPointerError extends _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
5573
|
-
pointer;
|
|
5574
|
-
tokens;
|
|
5575
|
-
failedToken;
|
|
5576
|
-
failedTokenPosition;
|
|
5577
|
-
element;
|
|
5578
|
-
constructor(message, structuredOptions) {
|
|
5579
|
-
super(message, structuredOptions);
|
|
5580
|
-
if (typeof structuredOptions !== 'undefined') {
|
|
5581
|
-
this.pointer = structuredOptions.pointer;
|
|
5582
|
-
if (Array.isArray(structuredOptions.tokens)) {
|
|
5583
|
-
this.tokens = [...structuredOptions.tokens];
|
|
5584
|
-
}
|
|
5585
|
-
this.failedToken = structuredOptions.failedToken;
|
|
5586
|
-
this.failedTokenPosition = structuredOptions.failedTokenPosition;
|
|
5587
|
-
this.element = structuredOptions.element;
|
|
5588
|
-
}
|
|
5589
|
-
}
|
|
5590
|
-
}
|
|
5591
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EvaluationJsonPointerError);
|
|
5592
|
-
|
|
5593
5612
|
/***/ }),
|
|
5594
5613
|
|
|
5595
5614
|
/***/ 2137:
|
|
@@ -6553,38 +6572,6 @@ var includes = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__[
|
|
|
6553
6572
|
|
|
6554
6573
|
/***/ }),
|
|
6555
6574
|
|
|
6556
|
-
/***/ 2935:
|
|
6557
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
6558
|
-
|
|
6559
|
-
"use strict";
|
|
6560
|
-
__webpack_require__.r(__webpack_exports__);
|
|
6561
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6562
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6563
|
-
/* harmony export */ });
|
|
6564
|
-
/* harmony import */ var _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1198);
|
|
6565
|
-
/* harmony import */ var _errors_CompilationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1428);
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
/**
|
|
6569
|
-
* @public
|
|
6570
|
-
*/
|
|
6571
|
-
const compile = tokens => {
|
|
6572
|
-
try {
|
|
6573
|
-
return _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.URIFragmentIdentifier.to((0,_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.compile)(tokens)).slice(1);
|
|
6574
|
-
} catch (error) {
|
|
6575
|
-
if (error instanceof _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.JSONPointerCompileError) {
|
|
6576
|
-
throw new _errors_CompilationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](error.message, {
|
|
6577
|
-
tokens,
|
|
6578
|
-
cause: error
|
|
6579
|
-
});
|
|
6580
|
-
}
|
|
6581
|
-
throw error;
|
|
6582
|
-
}
|
|
6583
|
-
};
|
|
6584
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (compile);
|
|
6585
|
-
|
|
6586
|
-
/***/ }),
|
|
6587
|
-
|
|
6588
6575
|
/***/ 2937:
|
|
6589
6576
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6590
6577
|
|
|
@@ -8256,6 +8243,53 @@ module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
|
8256
8243
|
};
|
|
8257
8244
|
|
|
8258
8245
|
|
|
8246
|
+
/***/ }),
|
|
8247
|
+
|
|
8248
|
+
/***/ 4041:
|
|
8249
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8250
|
+
|
|
8251
|
+
"use strict";
|
|
8252
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8253
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8254
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
8255
|
+
/* harmony export */ uriToPointer: () => (/* binding */ uriToPointer)
|
|
8256
|
+
/* harmony export */ });
|
|
8257
|
+
/* harmony import */ var _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1198);
|
|
8258
|
+
|
|
8259
|
+
|
|
8260
|
+
/**
|
|
8261
|
+
* @public
|
|
8262
|
+
* @deprecated
|
|
8263
|
+
*/
|
|
8264
|
+
const parse = (pointer, options) => {
|
|
8265
|
+
const {
|
|
8266
|
+
tree
|
|
8267
|
+
} = (0,_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.parse)(_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.URIFragmentIdentifier.from(pointer), options);
|
|
8268
|
+
return tree;
|
|
8269
|
+
};
|
|
8270
|
+
|
|
8271
|
+
/**
|
|
8272
|
+
* Returns the hash (URL fragment), of the given path.
|
|
8273
|
+
* If there is no hash, then the root hash ("#") is returned.
|
|
8274
|
+
*/
|
|
8275
|
+
const getHash = uri => {
|
|
8276
|
+
const hashIndex = uri.indexOf('#');
|
|
8277
|
+
if (hashIndex !== -1) {
|
|
8278
|
+
return uri.substring(hashIndex);
|
|
8279
|
+
}
|
|
8280
|
+
return '#';
|
|
8281
|
+
};
|
|
8282
|
+
|
|
8283
|
+
/**
|
|
8284
|
+
* @public
|
|
8285
|
+
* @deprecated
|
|
8286
|
+
*/
|
|
8287
|
+
const uriToPointer = uri => {
|
|
8288
|
+
const hash = getHash(uri);
|
|
8289
|
+
return _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.URIFragmentIdentifier.from(hash);
|
|
8290
|
+
};
|
|
8291
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
|
|
8292
|
+
|
|
8259
8293
|
/***/ }),
|
|
8260
8294
|
|
|
8261
8295
|
/***/ 4066:
|
|
@@ -8767,48 +8801,34 @@ function _createReduce(arrayReduce, methodReduce, iterableReduce) {
|
|
|
8767
8801
|
|
|
8768
8802
|
/***/ }),
|
|
8769
8803
|
|
|
8770
|
-
/***/
|
|
8804
|
+
/***/ 4420:
|
|
8771
8805
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8772
8806
|
|
|
8773
8807
|
"use strict";
|
|
8774
8808
|
__webpack_require__.r(__webpack_exports__);
|
|
8775
8809
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8776
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8777
|
-
/* harmony export */ uriToPointer: () => (/* binding */ uriToPointer)
|
|
8810
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8778
8811
|
/* harmony export */ });
|
|
8779
|
-
/* harmony import */ var
|
|
8780
|
-
|
|
8812
|
+
/* harmony import */ var _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5617);
|
|
8781
8813
|
|
|
8782
8814
|
/**
|
|
8783
8815
|
* @public
|
|
8816
|
+
* @deprecated
|
|
8784
8817
|
*/
|
|
8785
|
-
const parse = (pointer, options) => {
|
|
8786
|
-
const {
|
|
8787
|
-
tree
|
|
8788
|
-
} = (0,_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.parse)(_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.URIFragmentIdentifier.from(pointer), options);
|
|
8789
|
-
return tree;
|
|
8790
|
-
};
|
|
8791
|
-
|
|
8792
|
-
/**
|
|
8793
|
-
* Returns the hash (URL fragment), of the given path.
|
|
8794
|
-
* If there is no hash, then the root hash ("#") is returned.
|
|
8795
|
-
*/
|
|
8796
|
-
const getHash = uri => {
|
|
8797
|
-
const hashIndex = uri.indexOf('#');
|
|
8798
|
-
if (hashIndex !== -1) {
|
|
8799
|
-
return uri.substring(hashIndex);
|
|
8800
|
-
}
|
|
8801
|
-
return '#';
|
|
8802
|
-
};
|
|
8803
|
-
|
|
8804
8818
|
/**
|
|
8805
8819
|
* @public
|
|
8820
|
+
* @deprecated
|
|
8806
8821
|
*/
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8822
|
+
class CompilationJsonPointerError extends _JsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
8823
|
+
tokens;
|
|
8824
|
+
constructor(message, structuredOptions) {
|
|
8825
|
+
super(message, structuredOptions);
|
|
8826
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
8827
|
+
this.tokens = [...structuredOptions.tokens];
|
|
8828
|
+
}
|
|
8829
|
+
}
|
|
8830
|
+
}
|
|
8831
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CompilationJsonPointerError);
|
|
8812
8832
|
|
|
8813
8833
|
/***/ }),
|
|
8814
8834
|
|
|
@@ -10247,6 +10267,26 @@ module.exports = {
|
|
|
10247
10267
|
};
|
|
10248
10268
|
|
|
10249
10269
|
|
|
10270
|
+
/***/ }),
|
|
10271
|
+
|
|
10272
|
+
/***/ 5617:
|
|
10273
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
10274
|
+
|
|
10275
|
+
"use strict";
|
|
10276
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10277
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10278
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10279
|
+
/* harmony export */ });
|
|
10280
|
+
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4641);
|
|
10281
|
+
|
|
10282
|
+
|
|
10283
|
+
/**
|
|
10284
|
+
* @public
|
|
10285
|
+
* @deprecated
|
|
10286
|
+
*/
|
|
10287
|
+
class JsonPointerError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
10288
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonPointerError);
|
|
10289
|
+
|
|
10250
10290
|
/***/ }),
|
|
10251
10291
|
|
|
10252
10292
|
/***/ 5642:
|
|
@@ -11407,6 +11447,7 @@ $({ global: true, constructor: true, arity: 2, forced: FORCED }, {
|
|
|
11407
11447
|
__webpack_require__.r(__webpack_exports__);
|
|
11408
11448
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11409
11449
|
/* harmony export */ from: () => (/* binding */ from),
|
|
11450
|
+
/* harmony export */ fromURIReference: () => (/* binding */ fromURIReference),
|
|
11410
11451
|
/* harmony export */ to: () => (/* binding */ to)
|
|
11411
11452
|
/* harmony export */ });
|
|
11412
11453
|
const to = jsonPointer => {
|
|
@@ -11421,6 +11462,11 @@ const from = fragment => {
|
|
|
11421
11462
|
return fragment;
|
|
11422
11463
|
}
|
|
11423
11464
|
};
|
|
11465
|
+
const fromURIReference = uriReference => {
|
|
11466
|
+
const fragmentIndex = uriReference.indexOf('#');
|
|
11467
|
+
const fragment = fragmentIndex === -1 ? '#' : uriReference.substring(fragmentIndex);
|
|
11468
|
+
return from(fragment);
|
|
11469
|
+
};
|
|
11424
11470
|
|
|
11425
11471
|
/***/ }),
|
|
11426
11472
|
|
|
@@ -11440,6 +11486,39 @@ function _includes(a, list) {
|
|
|
11440
11486
|
|
|
11441
11487
|
/***/ }),
|
|
11442
11488
|
|
|
11489
|
+
/***/ 6279:
|
|
11490
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
11491
|
+
|
|
11492
|
+
"use strict";
|
|
11493
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11494
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11495
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11496
|
+
/* harmony export */ });
|
|
11497
|
+
/* harmony import */ var _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1198);
|
|
11498
|
+
/* harmony import */ var _errors_CompilationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4420);
|
|
11499
|
+
|
|
11500
|
+
|
|
11501
|
+
/**
|
|
11502
|
+
* @public
|
|
11503
|
+
* @deprecated
|
|
11504
|
+
*/
|
|
11505
|
+
const compile = tokens => {
|
|
11506
|
+
try {
|
|
11507
|
+
return _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.URIFragmentIdentifier.to((0,_swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.compile)(tokens)).slice(1);
|
|
11508
|
+
} catch (error) {
|
|
11509
|
+
if (error instanceof _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.JSONPointerCompileError) {
|
|
11510
|
+
throw new _errors_CompilationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](error.message, {
|
|
11511
|
+
tokens,
|
|
11512
|
+
cause: error
|
|
11513
|
+
});
|
|
11514
|
+
}
|
|
11515
|
+
throw error;
|
|
11516
|
+
}
|
|
11517
|
+
};
|
|
11518
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (compile);
|
|
11519
|
+
|
|
11520
|
+
/***/ }),
|
|
11521
|
+
|
|
11443
11522
|
/***/ 6281:
|
|
11444
11523
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
11445
11524
|
|
|
@@ -13354,51 +13433,6 @@ function listCacheHas(key) {
|
|
|
13354
13433
|
module.exports = listCacheHas;
|
|
13355
13434
|
|
|
13356
13435
|
|
|
13357
|
-
/***/ }),
|
|
13358
|
-
|
|
13359
|
-
/***/ 7453:
|
|
13360
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
13361
|
-
|
|
13362
|
-
"use strict";
|
|
13363
|
-
__webpack_require__.r(__webpack_exports__);
|
|
13364
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13365
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13366
|
-
/* harmony export */ });
|
|
13367
|
-
/* harmony import */ var _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1198);
|
|
13368
|
-
/* harmony import */ var _swaggerexpert_json_pointer_evaluate_realms_apidom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4808);
|
|
13369
|
-
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6941);
|
|
13370
|
-
/* harmony import */ var _errors_EvaluationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2131);
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
/**
|
|
13376
|
-
* Evaluates JSON Pointer against ApiDOM fragment.
|
|
13377
|
-
* @public
|
|
13378
|
-
*/
|
|
13379
|
-
const evaluate = (pointer, element) => {
|
|
13380
|
-
try {
|
|
13381
|
-
return (0,_swaggerexpert_json_pointer_evaluate_realms_apidom__WEBPACK_IMPORTED_MODULE_1__.evaluate)(element, _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.URIFragmentIdentifier.from(pointer));
|
|
13382
|
-
} catch (error) {
|
|
13383
|
-
if (error instanceof _swaggerexpert_json_pointer__WEBPACK_IMPORTED_MODULE_0__.JSONPointerEvaluateError) {
|
|
13384
|
-
throw new _errors_EvaluationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](error.message, {
|
|
13385
|
-
pointer,
|
|
13386
|
-
tokens: error.referenceTokens,
|
|
13387
|
-
failedToken: error.referenceToken,
|
|
13388
|
-
failedTokenPosition: error.referenceTokenPosition,
|
|
13389
|
-
element: (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.cloneDeep)(element),
|
|
13390
|
-
cause: error
|
|
13391
|
-
});
|
|
13392
|
-
}
|
|
13393
|
-
throw new _errors_EvaluationJsonPointerError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](error.message, {
|
|
13394
|
-
pointer,
|
|
13395
|
-
element: (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.cloneDeep)(element),
|
|
13396
|
-
cause: error
|
|
13397
|
-
});
|
|
13398
|
-
}
|
|
13399
|
-
};
|
|
13400
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (evaluate);
|
|
13401
|
-
|
|
13402
13436
|
/***/ }),
|
|
13403
13437
|
|
|
13404
13438
|
/***/ 7460:
|
|
@@ -14364,7 +14398,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14364
14398
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14365
14399
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14366
14400
|
/* harmony export */ });
|
|
14367
|
-
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
14401
|
+
/* harmony import */ var _swagger_api_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6279);
|
|
14368
14402
|
/* harmony import */ var _errors_CompilationRelativeJsonPointerError_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8775);
|
|
14369
14403
|
|
|
14370
14404
|
|
|
@@ -16399,25 +16433,6 @@ var flip = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["def
|
|
|
16399
16433
|
|
|
16400
16434
|
/***/ }),
|
|
16401
16435
|
|
|
16402
|
-
/***/ 9217:
|
|
16403
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
16404
|
-
|
|
16405
|
-
"use strict";
|
|
16406
|
-
__webpack_require__.r(__webpack_exports__);
|
|
16407
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16408
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16409
|
-
/* harmony export */ });
|
|
16410
|
-
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4641);
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
/**
|
|
16414
|
-
* @public
|
|
16415
|
-
*/
|
|
16416
|
-
class JsonPointerError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
16417
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonPointerError);
|
|
16418
|
-
|
|
16419
|
-
/***/ }),
|
|
16420
|
-
|
|
16421
16436
|
/***/ 9258:
|
|
16422
16437
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16423
16438
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-json-pointer-relative",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.34",
|
|
4
4
|
"description": "Evaluate Relative JSON Pointer expressions against ApiDOM.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime-corejs3": "^7.26.10",
|
|
41
|
-
"@swagger-api/apidom-core": "^1.0.0-beta.
|
|
42
|
-
"@swagger-api/apidom-error": "^1.0.0-beta.
|
|
43
|
-
"@swagger-api/apidom-json-pointer": "^1.0.0-beta.
|
|
41
|
+
"@swagger-api/apidom-core": "^1.0.0-beta.34",
|
|
42
|
+
"@swagger-api/apidom-error": "^1.0.0-beta.34",
|
|
43
|
+
"@swagger-api/apidom-json-pointer": "^1.0.0-beta.34",
|
|
44
44
|
"@types/ramda": "~0.30.0",
|
|
45
45
|
"ramda": "~0.30.0",
|
|
46
46
|
"ramda-adjunct": "^5.0.0"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"README.md",
|
|
56
56
|
"CHANGELOG.md"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "8685356d45de9463f828f55589332259e72bd76b"
|
|
59
59
|
}
|