This repository was archived by the owner on Apr 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1
-28
lines changed Expand file tree Collapse file tree 3 files changed +1
-28
lines changed Original file line number Diff line number Diff line change 93
93
"git-url-parse" : " ^11.4.4" ,
94
94
"pg" : " ^8.5.1" ,
95
95
"postcss" : " ^8.2.6" ,
96
- "query-string" : " ^6.14.0" ,
97
96
"react" : " ^17.0.1" ,
98
97
"react-dom" : " ^17.0.1" ,
99
98
"react-query" : " ^3.12.0" ,
Original file line number Diff line number Diff line change 1
1
import *
8000
as vscode from "vscode" ;
2
- import { URL } from "url" ;
3
2
import { ConnectionString } from "connection-string" ;
4
3
import { createConnection } from "typeorm" ;
5
4
50
49
` . replace ( / ^ \s * [ \r \n ] / gm, "" ) ;
51
50
}
52
51
53
- export function escapeRegExp ( str : string ) {
54
- return str . replace ( / [ . * + ? ^ $ { } ( ) | [ \] \\ ] / g, "\\$&" ) ;
55
- }
56
-
57
- export function makeRangeFromMatch ( line : number , match : RegExpMatchArray ) {
58
- return new vscode . Range (
59
- // @ts -ignore
60
- new vscode . Position ( line , match . index ) ,
61
- // @ts -ignore
62
- new vscode . Position ( line , match . index + match [ 0 ] . length )
63
- ) ;
64
- }
65
-
66
- export function isValidUrl ( input : string ) {
67
- let url ;
68
-
69
- try {
70
- url = new URL ( input ) ;
71
- } catch ( _ ) {
72
- return false ;
73
- }
74
-
75
- return url . protocol === "http:" || url . protocol === "https:" ;
76
- }
77
-
78
52
interface GetSessionParams {
79
53
createIfNone : boolean ;
80
54
}
Original file line number Diff line number Diff line change @@ -5799,7 +5799,7 @@ qs@^6.9.4:
5799
5799
resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.6.tgz#26ed3c8243a431b2924aca84cc90471f35d5a0ee"
5800
5800
integrity sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==
5801
5801
5802
- query-string@^6.13.8, query-string@^6.14.0 :
5802
+ query-string@^6.13.8 :
5803
5803
version "6.14.0"
5804
5804
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.14.0.tgz#0b7b7ca326f5facf10dd2d45d26645cd287f8c92"
5805
5805
integrity sha512-In3o+lUxlgejoVJgwEdYtdxrmlL0cQWJXj0+kkI7RWVo7hg5AhFtybeKlC9Dpgbr8eOC4ydpEh8017WwyfzqVQ==
You can’t perform that action at this time.
0 commit comments