@stoplight/elements-core 7.5.6 → 7.5.7
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/index.esm.js +5 -1
- package/index.js +5 -1
- package/index.mjs +5 -1
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -1015,7 +1015,11 @@ function parameterSupportsFileUpload(parameter) {
|
|
|
1015
1015
|
((_c = parameter.schema) === null || _c === void 0 ? void 0 : _c.contentMediaType) === 'application/octet-stream'));
|
|
1016
1016
|
}
|
|
1017
1017
|
function exampleValue(example) {
|
|
1018
|
-
|
|
1018
|
+
const value = 'value' in example ? example.value : example.externalValue;
|
|
1019
|
+
return escapeQuotes(String(value));
|
|
1020
|
+
}
|
|
1021
|
+
function escapeQuotes(value) {
|
|
1022
|
+
return value.replace(/"/g, '\\"');
|
|
1019
1023
|
}
|
|
1020
1024
|
function getPlaceholderForParameter(parameter) {
|
|
1021
1025
|
var _a, _b;
|
package/index.js
CHANGED
|
@@ -1070,7 +1070,11 @@ function parameterSupportsFileUpload(parameter) {
|
|
|
1070
1070
|
((_c = parameter.schema) === null || _c === void 0 ? void 0 : _c.contentMediaType) === 'application/octet-stream'));
|
|
1071
1071
|
}
|
|
1072
1072
|
function exampleValue(example) {
|
|
1073
|
-
|
|
1073
|
+
const value = 'value' in example ? example.value : example.externalValue;
|
|
1074
|
+
return escapeQuotes(String(value));
|
|
1075
|
+
}
|
|
1076
|
+
function escapeQuotes(value) {
|
|
1077
|
+
return value.replace(/"/g, '\\"');
|
|
1074
1078
|
}
|
|
1075
1079
|
function getPlaceholderForParameter(parameter) {
|
|
1076
1080
|
var _a, _b;
|
package/index.mjs
CHANGED
|
@@ -1015,7 +1015,11 @@ function parameterSupportsFileUpload(parameter) {
|
|
|
1015
1015
|
((_c = parameter.schema) === null || _c === void 0 ? void 0 : _c.contentMediaType) === 'application/octet-stream'));
|
|
1016
1016
|
}
|
|
1017
1017
|
function exampleValue(example) {
|
|
1018
|
-
|
|
1018
|
+
const value = 'value' in example ? example.value : example.externalValue;
|
|
1019
|
+
return escapeQuotes(String(value));
|
|
1020
|
+
}
|
|
1021
|
+
function escapeQuotes(value) {
|
|
1022
|
+
return value.replace(/"/g, '\\"');
|
|
1019
1023
|
}
|
|
1020
1024
|
function getPlaceholderForParameter(parameter) {
|
|
1021
1025
|
var _a, _b;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoplight/elements-core",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.7",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"web-components.min.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@stoplight/json": "^3.10.0",
|
|
29
29
|
"@stoplight/json-schema-ref-parser": "^9.0.5",
|
|
30
30
|
"@stoplight/json-schema-sampler": "0.2.2",
|
|
31
|
-
"@stoplight/json-schema-viewer": "^4.
|
|
31
|
+
"@stoplight/json-schema-viewer": "^4.5.0",
|
|
32
32
|
"@stoplight/markdown": "^3.1.1",
|
|
33
33
|
"@stoplight/markdown-viewer": "^5.3.2",
|
|
34
34
|
"@stoplight/mosaic": "^1.15.2",
|