@stoplight/elements-core 9.0.16-beta-0.1 → 9.0.16-beta-0.3
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/dist/index.esm.js
CHANGED
|
@@ -1937,6 +1937,7 @@ function buildFetchRequest({ httpOperation, mediaTypeContent, bodyInput, paramet
|
|
|
1937
1937
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1938
1938
|
const serverUrl = getServerUrl({ httpOperation, mockData, chosenServer, corsProxy, serverVariableValues });
|
|
1939
1939
|
const shouldIncludeBody = ['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
1940
|
+
console.log('<---- shouldIncludeBody buildFetchRequest-->', shouldIncludeBody);
|
|
1940
1941
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
1941
1942
|
const rawHeaders = filterOutAuthorizationParams((_b = (_a = httpOperation.request) === null || _a === void 0 ? void 0 : _a.headers) !== null && _b !== void 0 ? _b : [], httpOperation.security)
|
|
1942
1943
|
.map(header => { var _a; return ({ name: header.name, value: (_a = parameterValues[header.name]) !== null && _a !== void 0 ? _a : '' }); })
|
|
@@ -2018,6 +2019,7 @@ function buildHarRequest({ httpOperation, bodyInput, parameterValues, serverVari
|
|
|
2018
2019
|
const serverUrl = getServerUrl({ httpOperation, mockData, chosenServer, corsProxy, serverVariableValues });
|
|
2019
2020
|
const mimeType = (_a = mediaTypeContent === null || mediaTypeContent === void 0 ? void 0 : mediaTypeContent.mediaType) !== null && _a !== void 0 ? _a : 'application/json';
|
|
2020
2021
|
const shouldIncludeBody = ['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
2022
|
+
console.log('shouldIncludeBody buildHarRequest-->', shouldIncludeBody);
|
|
2021
2023
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
2022
2024
|
const headerParams = (_d = (_c = (_b = httpOperation.request) === null || _b === void 0 ? void 0 : _b.headers) === null || _c === void 0 ? void 0 : _c.map(header => { var _a; return ({ name: header.name, value: (_a = parameterValues[header.name]) !== null && _a !== void 0 ? _a : '' }); })) !== null && _d !== void 0 ? _d : [];
|
|
2023
2025
|
if (mockData === null || mockData === void 0 ? void 0 : mockData.header) {
|
|
@@ -3408,7 +3410,7 @@ const Docs = React.memo((_a) => {
|
|
|
3408
3410
|
var _b;
|
|
3409
3411
|
var { nodeType, nodeData, useNodeForRefResolving = false, refResolver, maxRefDepth, nodeHasChanged, renderExtensionAddon } = _a, commonProps = __rest(_a, ["nodeType", "nodeData", "useNodeForRefResolving", "refResolver", "maxRefDepth", "nodeHasChanged", "renderExtensionAddon"]);
|
|
3410
3412
|
const parsedNode = useParsedData(nodeType, nodeData);
|
|
3411
|
-
console.log('<--- ParsedDocs with yalc
|
|
3413
|
+
console.log('<--- ParsedDocs with yalc ---->', parsedNode);
|
|
3412
3414
|
if (!parsedNode) {
|
|
3413
3415
|
(_b = commonProps.nodeUnsupported) === null || _b === void 0 ? void 0 : _b.call(commonProps, 'dataEmpty');
|
|
3414
3416
|
return null;
|
package/dist/index.js
CHANGED
|
@@ -1958,6 +1958,7 @@ function buildFetchRequest({ httpOperation, mediaTypeContent, bodyInput, paramet
|
|
|
1958
1958
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1959
1959
|
const serverUrl = getServerUrl({ httpOperation, mockData, chosenServer, corsProxy, serverVariableValues });
|
|
1960
1960
|
const shouldIncludeBody = ['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
1961
|
+
console.log('<---- shouldIncludeBody buildFetchRequest-->', shouldIncludeBody);
|
|
1961
1962
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
1962
1963
|
const rawHeaders = filterOutAuthorizationParams((_b = (_a = httpOperation.request) === null || _a === void 0 ? void 0 : _a.headers) !== null && _b !== void 0 ? _b : [], httpOperation.security)
|
|
1963
1964
|
.map(header => { var _a; return ({ name: header.name, value: (_a = parameterValues[header.name]) !== null && _a !== void 0 ? _a : '' }); })
|
|
@@ -2039,6 +2040,7 @@ function buildHarRequest({ httpOperation, bodyInput, parameterValues, serverVari
|
|
|
2039
2040
|
const serverUrl = getServerUrl({ httpOperation, mockData, chosenServer, corsProxy, serverVariableValues });
|
|
2040
2041
|
const mimeType = (_a = mediaTypeContent === null || mediaTypeContent === void 0 ? void 0 : mediaTypeContent.mediaType) !== null && _a !== void 0 ? _a : 'application/json';
|
|
2041
2042
|
const shouldIncludeBody = ['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
2043
|
+
console.log('shouldIncludeBody buildHarRequest-->', shouldIncludeBody);
|
|
2042
2044
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
2043
2045
|
const headerParams = (_d = (_c = (_b = httpOperation.request) === null || _b === void 0 ? void 0 : _b.headers) === null || _c === void 0 ? void 0 : _c.map(header => { var _a; return ({ name: header.name, value: (_a = parameterValues[header.name]) !== null && _a !== void 0 ? _a : '' }); })) !== null && _d !== void 0 ? _d : [];
|
|
2044
2046
|
if (mockData === null || mockData === void 0 ? void 0 : mockData.header) {
|
|
@@ -3429,7 +3431,7 @@ const Docs = React__namespace.memo((_a) => {
|
|
|
3429
3431
|
var _b;
|
|
3430
3432
|
var { nodeType, nodeData, useNodeForRefResolving = false, refResolver, maxRefDepth, nodeHasChanged, renderExtensionAddon } = _a, commonProps = tslib.__rest(_a, ["nodeType", "nodeData", "useNodeForRefResolving", "refResolver", "maxRefDepth", "nodeHasChanged", "renderExtensionAddon"]);
|
|
3431
3433
|
const parsedNode = useParsedData(nodeType, nodeData);
|
|
3432
|
-
console.log('<--- ParsedDocs with yalc
|
|
3434
|
+
console.log('<--- ParsedDocs with yalc ---->', parsedNode);
|
|
3433
3435
|
if (!parsedNode) {
|
|
3434
3436
|
(_b = commonProps.nodeUnsupported) === null || _b === void 0 ? void 0 : _b.call(commonProps, 'dataEmpty');
|
|
3435
3437
|
return null;
|
package/dist/index.mjs
CHANGED
|
@@ -1937,6 +1937,7 @@ function buildFetchRequest({ httpOperation, mediaTypeContent, bodyInput, paramet
|
|
|
1937
1937
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1938
1938
|
const serverUrl = getServerUrl({ httpOperation, mockData, chosenServer, corsProxy, serverVariableValues });
|
|
1939
1939
|
const shouldIncludeBody = ['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
1940
|
+
console.log('<---- shouldIncludeBody buildFetchRequest-->', shouldIncludeBody);
|
|
1940
1941
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
1941
1942
|
const rawHeaders = filterOutAuthorizationParams((_b = (_a = httpOperation.request) === null || _a === void 0 ? void 0 : _a.headers) !== null && _b !== void 0 ? _b : [], httpOperation.security)
|
|
1942
1943
|
.map(header => { var _a; return ({ name: header.name, value: (_a = parameterValues[header.name]) !== null && _a !== void 0 ? _a : '' }); })
|
|
@@ -2018,6 +2019,7 @@ function buildHarRequest({ httpOperation, bodyInput, parameterValues, serverVari
|
|
|
2018
2019
|
const serverUrl = getServerUrl({ httpOperation, mockData, chosenServer, corsProxy, serverVariableValues });
|
|
2019
2020
|
const mimeType = (_a = mediaTypeContent === null || mediaTypeContent === void 0 ? void 0 : mediaTypeContent.mediaType) !== null && _a !== void 0 ? _a : 'application/json';
|
|
2020
2021
|
const shouldIncludeBody = ['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
2022
|
+
console.log('shouldIncludeBody buildHarRequest-->', shouldIncludeBody);
|
|
2021
2023
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
2022
2024
|
const headerParams = (_d = (_c = (_b = httpOperation.request) === null || _b === void 0 ? void 0 : _b.headers) === null || _c === void 0 ? void 0 : _c.map(header => { var _a; return ({ name: header.name, value: (_a = parameterValues[header.name]) !== null && _a !== void 0 ? _a : '' }); })) !== null && _d !== void 0 ? _d : [];
|
|
2023
2025
|
if (mockData === null || mockData === void 0 ? void 0 : mockData.header) {
|
|
@@ -3408,7 +3410,7 @@ const Docs = React.memo((_a) => {
|
|
|
3408
3410
|
var _b;
|
|
3409
3411
|
var { nodeType, nodeData, useNodeForRefResolving = false, refResolver, maxRefDepth, nodeHasChanged, renderExtensionAddon } = _a, commonProps = __rest(_a, ["nodeType", "nodeData", "useNodeForRefResolving", "refResolver", "maxRefDepth", "nodeHasChanged", "renderExtensionAddon"]);
|
|
3410
3412
|
const parsedNode = useParsedData(nodeType, nodeData);
|
|
3411
|
-
console.log('<--- ParsedDocs with yalc
|
|
3413
|
+
console.log('<--- ParsedDocs with yalc ---->', parsedNode);
|
|
3412
3414
|
if (!parsedNode) {
|
|
3413
3415
|
(_b = commonProps.nodeUnsupported) === null || _b === void 0 ? void 0 : _b.call(commonProps, 'dataEmpty');
|
|
3414
3416
|
return null;
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -184,7 +184,7 @@ export const Docs = React.memo<DocsProps>(
|
|
|
184
184
|
}) => {
|
|
185
185
|
const parsedNode = useParsedData(nodeType, nodeData);
|
|
186
186
|
|
|
187
|
-
console.log('<--- ParsedDocs with yalc
|
|
187
|
+
console.log('<--- ParsedDocs with yalc ---->', parsedNode);
|
|
188
188
|
|
|
189
189
|
if (!parsedNode) {
|
|
190
190
|
commonProps.nodeUnsupported?.('dataEmpty');
|
|
@@ -148,6 +148,7 @@ export async function buildFetchRequest({
|
|
|
148
148
|
|
|
149
149
|
const shouldIncludeBody =
|
|
150
150
|
['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
151
|
+
console.log('<---- shouldIncludeBody buildFetchRequest-->', shouldIncludeBody);
|
|
151
152
|
|
|
152
153
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
153
154
|
|
|
@@ -265,7 +266,7 @@ export async function buildHarRequest({
|
|
|
265
266
|
const mimeType = mediaTypeContent?.mediaType ?? 'application/json';
|
|
266
267
|
const shouldIncludeBody =
|
|
267
268
|
['PUT', 'POST', 'PATCH', 'DELETE'].includes(httpOperation.method.toUpperCase()) && bodyInput !== undefined;
|
|
268
|
-
|
|
269
|
+
console.log('shouldIncludeBody buildHarRequest-->', shouldIncludeBody);
|
|
269
270
|
const queryParams = getQueryParams({ httpOperation, parameterValues });
|
|
270
271
|
|
|
271
272
|
const headerParams =
|