particle-api-js 10.5.0 → 10.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/particle.min.js +1 -1
- package/dist/particle.min.js.map +1 -1
- package/docs/api.md +133 -133
- package/package.json +1 -1
- package/src/Agent.js +4 -2
package/package.json
CHANGED
package/src/Agent.js
CHANGED
|
@@ -255,8 +255,10 @@ class Agent {
|
|
|
255
255
|
}
|
|
256
256
|
if (query) {
|
|
257
257
|
const queryParams = qs.stringify(query);
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
if (queryParams) {
|
|
259
|
+
const hasParams = actualUri.includes('?');
|
|
260
|
+
actualUri = `${actualUri}${hasParams ? '&' : '?'}${queryParams}`;
|
|
261
|
+
}
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
const userAgentHeader = { 'User-Agent': `${packageJson.name}/${packageJson.version} (${packageJson.repository.url})` };
|