@picahq/cli 1.12.1 → 1.12.2
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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -537,7 +537,7 @@ function replacePathVariables(path5, variables) {
|
|
|
537
537
|
if (value === void 0 || value === null || value === "") {
|
|
538
538
|
throw new Error(`Missing value for path variable: ${trimmedVariable}`);
|
|
539
539
|
}
|
|
540
|
-
return encodeURIComponent(value.toString());
|
|
540
|
+
return encodeURIComponent(value.toString()).replace(/%3A/gi, ":");
|
|
541
541
|
});
|
|
542
542
|
result = result.replace(/\{([^}]+)\}/g, (_match, variable) => {
|
|
543
543
|
const trimmedVariable = variable.trim();
|
|
@@ -545,7 +545,7 @@ function replacePathVariables(path5, variables) {
|
|
|
545
545
|
if (value === void 0 || value === null || value === "") {
|
|
546
546
|
throw new Error(`Missing value for path variable: ${trimmedVariable}`);
|
|
547
547
|
}
|
|
548
|
-
return encodeURIComponent(value.toString());
|
|
548
|
+
return encodeURIComponent(value.toString()).replace(/%3A/gi, ":");
|
|
549
549
|
});
|
|
550
550
|
return result;
|
|
551
551
|
}
|