Skip to content

Commit d13349e

Browse files
authored
chore(deps): don't use qs directly (#1833)
1 parent bcb192c commit d13349e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ coverage/
77
_site
88
.env
99
users.md
10-
.data
10+
.data
11+
.claude

src/HttpClient.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Implement a phased approach to deprecate `robot.http` all together in favor of `
3636
import path from 'node:path'
3737
import http from 'node:http'
3838
import https from 'node:https'
39-
import qs from 'node:querystring'
4039

4140
const nonPassThroughOptions = [
4241
'headers', 'hostname', 'encoding', 'auth', 'port',
@@ -142,7 +141,7 @@ class ScopedClient {
142141

143142
// Adds the query string to the path.
144143
fullPath (p) {
145-
const search = qs.stringify(this.options.query)
144+
const search = new URLSearchParams(this.options.query).toString()
146145
let full = this.join(p)
147146
if (search.length > 0) { full += `?${search}` }
148147
return full

0 commit comments

Comments
 (0)