Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 110 additions & 6 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
Expand Up @@ -749,7 +749,7 @@
"sanitize-html": "^2.13.0",
"tough-cookie": "^4.1.3",
"tough-cookie-file-store": "^2.0.3",
"uuid": "^3.3.2",
"uuid": "^11.1.0",
"xmldom": "^0.5.0",
"xpath": "^0.0.27",
"yargs-parser": "^21.1.1"
Expand Down
3 changes: 1 addition & 2 deletions src/controllers/historyController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import relativeTime from 'dayjs/plugin/relativeTime';
import * as fs from 'fs-extra';
import { EOL, tmpdir } from 'os';
import * as path from 'path';
import { v4 as uuidv4 } from 'uuid';
import { QuickPickItem, window, workspace } from 'vscode';
import { HistoricalHttpRequest } from '../models/httpRequest';
import { trace } from "../utils/decorator";
Expand All @@ -11,8 +12,6 @@ import { UserDataManager } from '../utils/userDataManager';

dayjs.extend(relativeTime);

const uuidv4 = require('uuid/v4');

export class HistoryController {
public constructor() {
}
Expand Down
4 changes: 1 addition & 3 deletions src/utils/auth/digest.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import * as url from 'url';
import { v4 as uuidv4 } from 'uuid';
import { md5 } from '../misc';

import got = require('got');

const uuidv4 = require('uuid/v4');

export function digest(user: string, pass: string): got.AfterResponseHook {
return (response, retryWithMergedOptions) => {
if (response.statusCode === 401
Expand Down
3 changes: 1 addition & 2 deletions src/utils/httpVariableProviders/systemVariableProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import utc from 'dayjs/plugin/utc';
import * as dotenv from 'dotenv';
import * as fs from 'fs-extra';
import * as path from 'path';
import { v4 as uuidv4 } from 'uuid';
import { Clipboard, commands, env, QuickPickItem, QuickPickOptions, TextDocument, Uri, window } from 'vscode';
import * as Constants from '../../common/constants';
import { EnvironmentController } from '../../controllers/environmentController';
Expand All @@ -17,8 +18,6 @@ import { HttpClient } from '../httpClient';
import { EnvironmentVariableProvider } from './environmentVariableProvider';
import { HttpVariable, HttpVariableContext, HttpVariableProvider } from './httpVariableProvider';

const uuidv4 = require('uuid/v4');

dayjs.extend(utc);

type SystemVariableValue = Pick<HttpVariable, Exclude<keyof HttpVariable, 'name'>>;
Expand Down