@commercelayer/cli-plugin-resources
Advanced tools
Comparing version 6.0.5 to 6.0.6
@@ -7,4 +7,4 @@ import { type CommerceLayerClient } from '@commercelayer/sdk'; | ||
method: string; | ||
headers: any; | ||
params?: any; | ||
headers?: any; | ||
params?: URLSearchParams; | ||
data?: any; | ||
@@ -11,0 +11,0 @@ }; |
@@ -45,5 +45,7 @@ "use strict"; | ||
let fullUrl = `${request.baseUrl}${request.path}`; | ||
if (request.params && (Object.keys(request.params).length > 0)) { | ||
const qs = Object.entries(request.params).map(([k, v]) => `${k}=${v}`).join('&'); | ||
fullUrl += `?${qs}`; | ||
const params = request.params; | ||
if (params && (params.size > 0)) { | ||
const qs = []; | ||
params.forEach((v, k) => { qs.push(`${k}=${v}`); }); | ||
fullUrl += `?${qs.join('&')}`; | ||
} | ||
@@ -50,0 +52,0 @@ return fullUrl; |
{ | ||
"name": "@commercelayer/cli-plugin-resources", | ||
"description": "Commerce Layer CLI Resources plugin", | ||
"version": "6.0.5", | ||
"version": "6.0.6", | ||
"author": "Pierluigi Viti <pierluigi@commercelayer.io>", | ||
@@ -76,5 +76,5 @@ "homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-resources", | ||
"nyc": "^15.1.0", | ||
"oclif": "^4.10.11", | ||
"oclif": "^4.10.15", | ||
"semantic-release": "^23.1.1", | ||
"tsx": "^4.10.4", | ||
"tsx": "^4.10.5", | ||
"typescript": "^5.4.5" | ||
@@ -84,3 +84,3 @@ }, | ||
"@commercelayer/cli-core": "^5.0.2", | ||
"@commercelayer/sdk": "^6.1.0", | ||
"@commercelayer/sdk": "^6.2.0", | ||
"@oclif/core": "^3.26.6", | ||
@@ -87,0 +87,0 @@ "inquirer": "^8.2.6", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289960
6711
Updated@commercelayer/sdk@^6.2.0