swagger-client 3.34.1 → 3.34.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.
|
@@ -684,40 +684,6 @@ class JSONSchemaVisitor extends _swagger_api_apidom_ns_json_schema_draft_6__WEBP
|
|
|
684
684
|
|
|
685
685
|
/***/ }),
|
|
686
686
|
|
|
687
|
-
/***/ 1604:
|
|
688
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
689
|
-
|
|
690
|
-
"use strict";
|
|
691
|
-
__webpack_require__.r(__webpack_exports__);
|
|
692
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
693
|
-
/* harmony export */ isIdentical: () => (/* binding */ isIdentical)
|
|
694
|
-
/* harmony export */ });
|
|
695
|
-
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10426);
|
|
696
|
-
|
|
697
|
-
const isIdentical = (pathTemplate1, pathTemplate2) => {
|
|
698
|
-
if (typeof pathTemplate1 !== 'string') return false;
|
|
699
|
-
if (typeof pathTemplate2 !== 'string') return false;
|
|
700
|
-
const parseResult1 = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(pathTemplate1);
|
|
701
|
-
const parseResult2 = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(pathTemplate2);
|
|
702
|
-
const parts1 = [];
|
|
703
|
-
const parts2 = [];
|
|
704
|
-
if (!parseResult1.result.success) return false;
|
|
705
|
-
if (!parseResult2.result.success) return false;
|
|
706
|
-
parseResult1.ast.translate(parts1);
|
|
707
|
-
parseResult2.ast.translate(parts2);
|
|
708
|
-
if (parts1.length !== parts2.length) return false;
|
|
709
|
-
for (let i = 1; i < parts1.length; i++) {
|
|
710
|
-
const [type1, value1] = parts1[i];
|
|
711
|
-
const [type2, value2] = parts2[i];
|
|
712
|
-
if (type1 !== type2) return false;
|
|
713
|
-
if (type1 === 'template-expression' || type1 === 'template-expression-param-name') continue;
|
|
714
|
-
if (value1 !== value2) return false;
|
|
715
|
-
}
|
|
716
|
-
return true;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
/***/ }),
|
|
720
|
-
|
|
721
687
|
/***/ 1650:
|
|
722
688
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
723
689
|
|
|
@@ -9129,6 +9095,56 @@ function _toString(x, seen) {
|
|
|
9129
9095
|
|
|
9130
9096
|
/***/ }),
|
|
9131
9097
|
|
|
9098
|
+
/***/ 10583:
|
|
9099
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
9100
|
+
|
|
9101
|
+
"use strict";
|
|
9102
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9103
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9104
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
9105
|
+
/* harmony export */ });
|
|
9106
|
+
/* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16646);
|
|
9107
|
+
/* harmony import */ var _path_templating_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56167);
|
|
9108
|
+
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10426);
|
|
9109
|
+
|
|
9110
|
+
|
|
9111
|
+
|
|
9112
|
+
/**
|
|
9113
|
+
* Implementation of https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2.2
|
|
9114
|
+
*/
|
|
9115
|
+
const significantTypes = ['slash', 'path-literal', 'template-expression'];
|
|
9116
|
+
const grammar = new _path_templating_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]();
|
|
9117
|
+
const parser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
|
|
9118
|
+
const percentEndingNormalizer = pathTemplate => {
|
|
9119
|
+
const parseResult = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(pathTemplate);
|
|
9120
|
+
if (!parseResult.result.success) return pathTemplate;
|
|
9121
|
+
const parts = [];
|
|
9122
|
+
parseResult.ast.translate(parts);
|
|
9123
|
+
return parts.reduce((pathTemplateNormalized, [type, value]) => {
|
|
9124
|
+
let normalizedValue = value;
|
|
9125
|
+
if (type === 'path-literal') {
|
|
9126
|
+
normalizedValue = value.replace(/%[0-9a-fA-F]{2}/g, match => {
|
|
9127
|
+
try {
|
|
9128
|
+
const char = decodeURIComponent(match);
|
|
9129
|
+
const {
|
|
9130
|
+
success
|
|
9131
|
+
} = parser.parse(grammar, 'unreserved', char);
|
|
9132
|
+
return success ? char : match;
|
|
9133
|
+
} catch {
|
|
9134
|
+
return match;
|
|
9135
|
+
}
|
|
9136
|
+
});
|
|
9137
|
+
}
|
|
9138
|
+
if (significantTypes.includes(type)) {
|
|
9139
|
+
return `${pathTemplateNormalized}${normalizedValue}`;
|
|
9140
|
+
}
|
|
9141
|
+
return pathTemplateNormalized;
|
|
9142
|
+
}, '');
|
|
9143
|
+
};
|
|
9144
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (percentEndingNormalizer);
|
|
9145
|
+
|
|
9146
|
+
/***/ }),
|
|
9147
|
+
|
|
9132
9148
|
/***/ 10625:
|
|
9133
9149
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
9134
9150
|
|
|
@@ -29380,6 +29396,45 @@ class DiscriminatorVisitor extends BaseDiscriminatorVisitor {
|
|
|
29380
29396
|
|
|
29381
29397
|
/***/ }),
|
|
29382
29398
|
|
|
29399
|
+
/***/ 40919:
|
|
29400
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
29401
|
+
|
|
29402
|
+
"use strict";
|
|
29403
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29404
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29405
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
29406
|
+
/* harmony export */ });
|
|
29407
|
+
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10426);
|
|
29408
|
+
/* harmony import */ var _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67348);
|
|
29409
|
+
|
|
29410
|
+
|
|
29411
|
+
const isIdentical = (pathTemplate1, pathTemplate2, {
|
|
29412
|
+
normalizer = _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]
|
|
29413
|
+
} = {}) => {
|
|
29414
|
+
if (typeof pathTemplate1 !== 'string') return false;
|
|
29415
|
+
if (typeof pathTemplate2 !== 'string') return false;
|
|
29416
|
+
const parseResult1 = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(normalizer(pathTemplate1));
|
|
29417
|
+
const parseResult2 = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(normalizer(pathTemplate2));
|
|
29418
|
+
if (!parseResult1.result.success) return false;
|
|
29419
|
+
if (!parseResult2.result.success) return false;
|
|
29420
|
+
const parts1 = [];
|
|
29421
|
+
const parts2 = [];
|
|
29422
|
+
parseResult1.ast.translate(parts1);
|
|
29423
|
+
parseResult2.ast.translate(parts2);
|
|
29424
|
+
if (parts1.length !== parts2.length) return false;
|
|
29425
|
+
for (let i = 1; i < parts1.length; i++) {
|
|
29426
|
+
const [type1, value1] = parts1[i];
|
|
29427
|
+
const [type2, value2] = parts2[i];
|
|
29428
|
+
if (type1 !== type2) return false;
|
|
29429
|
+
if (type1 === 'template-expression' || type1 === 'template-expression-param-name') continue;
|
|
29430
|
+
if (value1 !== value2) return false;
|
|
29431
|
+
}
|
|
29432
|
+
return true;
|
|
29433
|
+
};
|
|
29434
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isIdentical);
|
|
29435
|
+
|
|
29436
|
+
/***/ }),
|
|
29437
|
+
|
|
29383
29438
|
/***/ 40932:
|
|
29384
29439
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
29385
29440
|
|
|
@@ -39234,9 +39289,14 @@ function _areEquals(a, b) {
|
|
|
39234
39289
|
__webpack_require__.r(__webpack_exports__);
|
|
39235
39290
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
39236
39291
|
/* harmony export */ Grammar: () => (/* reexport safe */ _path_templating_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
39292
|
+
/* harmony export */ caseNormalizer: () => (/* reexport safe */ _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_4__.caseNormalizer),
|
|
39237
39293
|
/* harmony export */ encodePathComponent: () => (/* reexport safe */ _resolve_mjs__WEBPACK_IMPORTED_MODULE_3__.encodePathComponent),
|
|
39238
|
-
/* harmony export */
|
|
39294
|
+
/* harmony export */ identityNormalizer: () => (/* reexport safe */ _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_4__.identityNormalizer),
|
|
39295
|
+
/* harmony export */ isIdentical: () => (/* reexport safe */ _equivalence_is_identical_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
39296
|
+
/* harmony export */ normalize: () => (/* reexport safe */ _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
39239
39297
|
/* harmony export */ parse: () => (/* reexport safe */ _parse_index_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
39298
|
+
/* harmony export */ pathSegmentNormalizer: () => (/* reexport safe */ _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_4__.pathSegmentNormalizer),
|
|
39299
|
+
/* harmony export */ percentEndingNormalizer: () => (/* reexport safe */ _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_4__.percentEndingNormalizer),
|
|
39240
39300
|
/* harmony export */ resolve: () => (/* reexport safe */ _resolve_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
39241
39301
|
/* harmony export */ test: () => (/* reexport safe */ _test_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])
|
|
39242
39302
|
/* harmony export */ });
|
|
@@ -39244,7 +39304,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39244
39304
|
/* harmony import */ var _test_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62674);
|
|
39245
39305
|
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10426);
|
|
39246
39306
|
/* harmony import */ var _resolve_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97642);
|
|
39247
|
-
/* harmony import */ var
|
|
39307
|
+
/* harmony import */ var _normalization_index_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67348);
|
|
39308
|
+
/* harmony import */ var _equivalence_is_identical_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40919);
|
|
39309
|
+
|
|
39248
39310
|
|
|
39249
39311
|
|
|
39250
39312
|
|
|
@@ -41543,6 +41605,39 @@ class ScopesVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_gen
|
|
|
41543
41605
|
|
|
41544
41606
|
/***/ }),
|
|
41545
41607
|
|
|
41608
|
+
/***/ 67348:
|
|
41609
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
41610
|
+
|
|
41611
|
+
"use strict";
|
|
41612
|
+
__webpack_require__.r(__webpack_exports__);
|
|
41613
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
41614
|
+
/* harmony export */ caseNormalizer: () => (/* reexport safe */ _case_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
41615
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
41616
|
+
/* harmony export */ identityNormalizer: () => (/* reexport safe */ _identity_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
41617
|
+
/* harmony export */ pathSegmentNormalizer: () => (/* reexport safe */ _path_segment_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
41618
|
+
/* harmony export */ percentEndingNormalizer: () => (/* reexport safe */ _percent_encoding_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])
|
|
41619
|
+
/* harmony export */ });
|
|
41620
|
+
/* harmony import */ var _percent_encoding_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10583);
|
|
41621
|
+
/* harmony import */ var _case_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(96172);
|
|
41622
|
+
/* harmony import */ var _path_segment_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97070);
|
|
41623
|
+
/* harmony import */ var _identity_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87502);
|
|
41624
|
+
|
|
41625
|
+
|
|
41626
|
+
|
|
41627
|
+
/**
|
|
41628
|
+
* Implementing https://datatracker.ietf.org/doc/html/rfc3986#section-6.2
|
|
41629
|
+
*/
|
|
41630
|
+
const normalize = pathTemplate => {
|
|
41631
|
+
const decodedPath = (0,_percent_encoding_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(pathTemplate);
|
|
41632
|
+
const caseNormalizedPath = (0,_case_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(decodedPath);
|
|
41633
|
+
return (0,_path_segment_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(caseNormalizedPath);
|
|
41634
|
+
};
|
|
41635
|
+
|
|
41636
|
+
|
|
41637
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (normalize);
|
|
41638
|
+
|
|
41639
|
+
/***/ }),
|
|
41640
|
+
|
|
41546
41641
|
/***/ 67632:
|
|
41547
41642
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
41548
41643
|
|
|
@@ -51264,6 +51359,19 @@ class AnyOfVisitor extends _swagger_api_apidom_ns_json_schema_2020_12__WEBPACK_I
|
|
|
51264
51359
|
|
|
51265
51360
|
/***/ }),
|
|
51266
51361
|
|
|
51362
|
+
/***/ 87502:
|
|
51363
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
51364
|
+
|
|
51365
|
+
"use strict";
|
|
51366
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51367
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51368
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
51369
|
+
/* harmony export */ });
|
|
51370
|
+
const identityNormalizer = pathTemplate => pathTemplate;
|
|
51371
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (identityNormalizer);
|
|
51372
|
+
|
|
51373
|
+
/***/ }),
|
|
51374
|
+
|
|
51267
51375
|
/***/ 87561:
|
|
51268
51376
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
51269
51377
|
|
|
@@ -54891,6 +54999,42 @@ function keys(object) {
|
|
|
54891
54999
|
module.exports = keys;
|
|
54892
55000
|
|
|
54893
55001
|
|
|
55002
|
+
/***/ }),
|
|
55003
|
+
|
|
55004
|
+
/***/ 96172:
|
|
55005
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
55006
|
+
|
|
55007
|
+
"use strict";
|
|
55008
|
+
__webpack_require__.r(__webpack_exports__);
|
|
55009
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55010
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
55011
|
+
/* harmony export */ });
|
|
55012
|
+
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10426);
|
|
55013
|
+
|
|
55014
|
+
const significantTypes = ['slash', 'path-literal', 'template-expression'];
|
|
55015
|
+
|
|
55016
|
+
/**
|
|
55017
|
+
* Implementation of https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2.1
|
|
55018
|
+
*/
|
|
55019
|
+
|
|
55020
|
+
const caseNormalizer = pathTemplate => {
|
|
55021
|
+
const parseResult = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(pathTemplate);
|
|
55022
|
+
if (!parseResult.result.success) return pathTemplate;
|
|
55023
|
+
const parts = [];
|
|
55024
|
+
parseResult.ast.translate(parts);
|
|
55025
|
+
return parts.reduce((pathTemplateNormalized, [type, value]) => {
|
|
55026
|
+
let normalizedValue = value;
|
|
55027
|
+
if (type === 'path-literal') {
|
|
55028
|
+
normalizedValue = value.replace(/%[0-9a-fA-F]{2}/g, match => match.toUpperCase());
|
|
55029
|
+
}
|
|
55030
|
+
if (significantTypes.includes(type)) {
|
|
55031
|
+
return `${pathTemplateNormalized}${normalizedValue}`;
|
|
55032
|
+
}
|
|
55033
|
+
return pathTemplateNormalized;
|
|
55034
|
+
}, '');
|
|
55035
|
+
};
|
|
55036
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (caseNormalizer);
|
|
55037
|
+
|
|
54894
55038
|
/***/ }),
|
|
54895
55039
|
|
|
54896
55040
|
/***/ 96184:
|
|
@@ -56455,6 +56599,71 @@ class $refVisitor extends _swagger_api_apidom_ns_json_schema_draft_7__WEBPACK_IM
|
|
|
56455
56599
|
|
|
56456
56600
|
/***/ }),
|
|
56457
56601
|
|
|
56602
|
+
/***/ 97070:
|
|
56603
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
56604
|
+
|
|
56605
|
+
"use strict";
|
|
56606
|
+
__webpack_require__.r(__webpack_exports__);
|
|
56607
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56608
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
56609
|
+
/* harmony export */ });
|
|
56610
|
+
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10426);
|
|
56611
|
+
|
|
56612
|
+
/**
|
|
56613
|
+
* Implementation of https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2.3
|
|
56614
|
+
*/
|
|
56615
|
+
const significantTypes = ['slash', 'path-literal', 'template-expression'];
|
|
56616
|
+
const pathSegmentNormalizer = pathTemplate => {
|
|
56617
|
+
const parseResult = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(pathTemplate);
|
|
56618
|
+
if (!parseResult.result.success) return pathTemplate;
|
|
56619
|
+
const parts = [];
|
|
56620
|
+
const stack = [];
|
|
56621
|
+
parseResult.ast.translate(parts);
|
|
56622
|
+
for (let i = 0; i < parts.length; i += 1) {
|
|
56623
|
+
let [type, value] = parts[i];
|
|
56624
|
+
|
|
56625
|
+
// remove `template-expression-param-name` and treat `template-expression` as `path-literal`
|
|
56626
|
+
if (type === 'template-expression-param-name') {
|
|
56627
|
+
continue; // skip this segment
|
|
56628
|
+
}
|
|
56629
|
+
if (type === 'path-literal' || type === 'template-expression') {
|
|
56630
|
+
if (value === '.') continue; // ignore '.' segments
|
|
56631
|
+
|
|
56632
|
+
if (value === '..') {
|
|
56633
|
+
// handle '..' segments
|
|
56634
|
+
if (stack.length > 1) {
|
|
56635
|
+
let last = stack.pop(); // remove preceding segment
|
|
56636
|
+
if (last[0] === 'slash' && stack.length > 0) {
|
|
56637
|
+
stack.pop(); // remove preceding slash if present
|
|
56638
|
+
}
|
|
56639
|
+
}
|
|
56640
|
+
continue; // move to the next segment
|
|
56641
|
+
}
|
|
56642
|
+
stack.push([type, value]); // push valid path-literals
|
|
56643
|
+
} else if (type === 'slash') {
|
|
56644
|
+
var _stack;
|
|
56645
|
+
// only add slash if the last item on the stack is not a slash
|
|
56646
|
+
if (((_stack = stack[stack.length - 1]) === null || _stack === void 0 ? void 0 : _stack[0]) !== 'slash') {
|
|
56647
|
+
stack.push([type, value]);
|
|
56648
|
+
}
|
|
56649
|
+
} else {
|
|
56650
|
+
stack.push([type, value]); // preserve all other types
|
|
56651
|
+
}
|
|
56652
|
+
}
|
|
56653
|
+
const normalizedPathTemplate = stack.reduce((pathTemplateNormalized, [type, value]) => {
|
|
56654
|
+
if (significantTypes.includes(type)) {
|
|
56655
|
+
return `${pathTemplateNormalized}${value}`;
|
|
56656
|
+
}
|
|
56657
|
+
return pathTemplateNormalized;
|
|
56658
|
+
}, '');
|
|
56659
|
+
|
|
56660
|
+
// makes sure the root path is represented as '/'
|
|
56661
|
+
return normalizedPathTemplate === '' ? '/' : normalizedPathTemplate;
|
|
56662
|
+
};
|
|
56663
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pathSegmentNormalizer);
|
|
56664
|
+
|
|
56665
|
+
/***/ }),
|
|
56666
|
+
|
|
56458
56667
|
/***/ 97094:
|
|
56459
56668
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
56460
56669
|
|
|
@@ -56601,7 +56810,7 @@ const resolve = (pathTemplate, parameters, options = {}) => {
|
|
|
56601
56810
|
parseResult.ast.translate(parts);
|
|
56602
56811
|
const resolvedParts = parts.filter(([type]) => significantTypes.includes(type)).map(([type, value]) => {
|
|
56603
56812
|
if (type === 'template-expression-param-name') {
|
|
56604
|
-
return Object.
|
|
56813
|
+
return Object.prototype.hasOwnProperty.call(parameters, value) ? mergedOptions.encoder(parameters[value], value) : `{${value}}`;
|
|
56605
56814
|
}
|
|
56606
56815
|
return value;
|
|
56607
56816
|
});
|