openapi-sync 2.1.0 → 2.1.1

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.
@@ -683,13 +683,13 @@ ${(0, curl_generator_1.CurlGenerator)({
683
683
  name = formattedName;
684
684
  }
685
685
  const content = {
686
- method: method,
687
- operationId: eSpec === null || eSpec === void 0 ? void 0 : eSpec.operationId,
686
+ method: `"${method}"`,
687
+ operationId: `"${eSpec === null || eSpec === void 0 ? void 0 : eSpec.operationId}"`,
688
688
  url: endpointUrl,
689
689
  };
690
690
  // Add the endpoint url
691
691
  endpointsFileContent += `${doc}export const ${endpointPrefix}${name} = ${((_u = (_t = config === null || config === void 0 ? void 0 : config.endpoints) === null || _t === void 0 ? void 0 : _t.value) === null || _u === void 0 ? void 0 : _u.type) === "object"
692
- ? JSON.stringify(content)
692
+ ? (0, helpers_1.JSONStringify)(content)
693
693
  : endpointUrl};
694
694
  `;
695
695
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-sync",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "A developer-friendly tool designed to keep your API up-to-date by leveraging OpenAPI schemas. It automates the generation of endpoint URIs and type definitions, including shared types, directly from your OpenAPI specification.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",