ol-base-components 2.2.1 → 2.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api/api.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol-base-components",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "private": false,
5
5
  "main": "src/package/index.js",
6
6
  "bin": {
package/src/api/api.js CHANGED
@@ -190,7 +190,7 @@ const generateApiModules = (swagger) => {
190
190
 
191
191
  functionDoc += ` return api({\n`;
192
192
  functionDoc += ` url: \`${url.replace(/{/g, "${")}\`,\n`;
193
- functionDoc += ` method: ${MethodEnum[method]},\n`;
193
+ functionDoc += ` method: "${MethodEnum[method]}",\n`;
194
194
  if (hasQuery) functionDoc += ` params,\n`;
195
195
  if (hasBody) functionDoc += ` data: body,\n`;
196
196
  functionDoc += ` });\n`;