snap-on-openapi 1.0.19 → 1.0.20

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.
Files changed (2) hide show
  1. package/dist/OpenApi.js +3 -3
  2. package/package.json +1 -1
package/dist/OpenApi.js CHANGED
@@ -154,7 +154,7 @@ export class OpenApi {
154
154
  if (!pathParts[i]) {
155
155
  throw new Error(`Can't find '${name}' param in path`);
156
156
  }
157
- pathParams[name] = pathParts[i];
157
+ pathParams[name] = decodeURIComponent(pathParts[i]);
158
158
  continue;
159
159
  }
160
160
  }
@@ -169,10 +169,10 @@ export class OpenApi {
169
169
  for (const [key, val] of queryEntries) {
170
170
  if (reqQuery[key] !== undefined) {
171
171
  if (Array.isArray(reqQuery[key])) {
172
- reqQuery[key].push(val);
172
+ reqQuery[key].push(decodeURIComponent(val));
173
173
  continue;
174
174
  }
175
- reqQuery[key] = [reqQuery[key], val];
175
+ reqQuery[key] = [reqQuery[key], decodeURIComponent(val)];
176
176
  continue;
177
177
  }
178
178
  reqQuery[key] = val;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "snap-on-openapi",
3
3
  "author": "Alex Sarychev",
4
- "version": "1.0.19",
4
+ "version": "1.0.20",
5
5
  "description": "Swiftly build type-checked OpenAPI applications with Zod and TypeScript",
6
6
  "type": "module",
7
7
  "license": "ISC",