Skip to content

Commit

Permalink
Release: February 2022 (#1447)
Browse files Browse the repository at this point in the history
* chore(release): 4.16.2
  • Loading branch information
ElinorW committed Feb 10, 2022
1 parent 39b72e7 commit d00663e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 14 deletions.
32 changes: 30 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graph-explorer-v2",
"version": "4.16.0",
"version": "4.16.2",
"private": true,
"dependencies": {
"@augloop/types-core": "file:packages/types-core-2.16.189.tgz",
Expand Down
19 changes: 9 additions & 10 deletions src/app/views/sidebar/history/har-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ export function createHarPayload(query: IHistoryItem): IHarPayload {

const headers: IHarHeaders[] = [];
if (query.headers) {
query.headers.forEach(header => {
query.headers.forEach((header) => {
const { name, value } = header;
const head: IHarHeaders = {
name, value
}
headers.push(head)
name,
value
};
headers.push(head);
});
}

Expand All @@ -33,8 +34,7 @@ export function createHarPayload(query: IHistoryItem): IHarPayload {
request: {
headers
},
response:
{
response: {
headers: query.responseHeaders
},
sendTime: 0,
Expand All @@ -44,7 +44,8 @@ export function createHarPayload(query: IHistoryItem): IHarPayload {
};

if (query.body) {
harPayload = Object.assign(harPayload, { //tslint:disable-line
harPayload = Object.assign(harPayload, {
//tslint:disable-line
postData: {
mimeType: 'application/json',
text: query.body
Expand All @@ -70,7 +71,7 @@ export function generateHar(payloads: IHarPayload[]): IHarFormat {

function createEntries(payloads: IHarPayload[]) {
const entries: any = [];
payloads.forEach(payload => {
payloads.forEach((payload) => {
entries.push({
startedDateTime: payload.startedDateTime,
time: payload.time,
Expand Down Expand Up @@ -115,5 +116,3 @@ export function exportQuery(content: IHarFormat, requestUrl: string) {
const filename = `${url.join('_')}.har`;
downloadToLocal(content, filename);
}


2 changes: 1 addition & 1 deletion src/telemetry/component-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ export const FETCH_SAMPLES_ACTION = 'Fetch samples action';
export const AUTHENTICATION_ACTION = 'Authentication action';
export const GET_ADAPTIVE_CARD_ACTION = 'Get adaptive card action';
export const FETCH_PERMISSIONS_ACTION = 'Fetch permissions action';
export const MONACO_EDITOR_FORMAT_JSON_ACTION = 'Monaco editor format JSON action';
export const MONACO_EDITOR_FORMAT_JSON_ACTION = 'Monaco editor format JSON action';

0 comments on commit d00663e

Please sign in to comment.