UNPKG
@revoloo/cypress6
Version:
latest (1.0.0)
1.0.0
Cypress.io end to end testing tool
github.com/cypress-io/cypress
cypress-io/cypress
@revoloo/cypress6
/
packages
/
server
/
lib
/
util
/
origin.js
15 lines
(11 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//
TODO:
move this into lib/util/uri.js
const
url =
require
(
'url'
)
module
.
exports
=
function
(
urlStr
) {
const
parsed = url.
parse
(urlStr) parsed.
hash
=
null
parsed.
search
=
null
parsed.
query
=
null
parsed.
path
=
null
parsed.
pathname
=
null
return
url.
format
(parsed) }