@scalar/api-client 0.8.7 → 0.8.8
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 +6 -0
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -25557,9 +25557,8 @@ const concatenateUrlAndPath = (url, path) => {
|
|
|
25557
25557
|
return [urlWithSlash, pathWithoutSlash].join("");
|
|
25558
25558
|
};
|
|
25559
25559
|
const findVariables = (value) => {
|
|
25560
|
-
|
|
25561
|
-
|
|
25562
|
-
return ((_a2 = value.match(regex)) == null ? void 0 : _a2.map((variable2) => variable2.trim())) || [];
|
|
25560
|
+
const regex = /(?:\{+)\s*(\w+)\s*(?:\}+)/g;
|
|
25561
|
+
return [...value.matchAll(regex)].map((match) => match[1].trim()) || [];
|
|
25563
25562
|
};
|
|
25564
25563
|
const isJsonString = (value) => {
|
|
25565
25564
|
if (typeof value !== "string") {
|