vite-plugin-swagger-mcp 0.0.5 → 0.0.7

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/cjs/index.js CHANGED
@@ -110,8 +110,7 @@ var SwaggerMcpServer = class {
110
110
  apis.push({
111
111
  path,
112
112
  method,
113
- ...doc.paths[path][method],
114
- definitions: resolvedDefinition
113
+ summary: doc.paths[path][method].summary || ""
115
114
  });
116
115
  }
117
116
  });
package/dist/esm/index.js CHANGED
@@ -163,12 +163,11 @@ export var SwaggerMcpServer = /*#__PURE__*/function () {
163
163
  var _doc$paths$path$metho2;
164
164
  var originalRef = (_doc$paths$path$metho2 = doc.paths[path][method].responses) === null || _doc$paths$path$metho2 === void 0 || (_doc$paths$path$metho2 = _doc$paths$path$metho2["200"]) === null || _doc$paths$path$metho2 === void 0 || (_doc$paths$path$metho2 = _doc$paths$path$metho2.schema) === null || _doc$paths$path$metho2 === void 0 ? void 0 : _doc$paths$path$metho2.originalRef;
165
165
  var resolvedDefinition = _this2.resolveRef(doc, originalRef);
166
- apis.push(_objectSpread(_objectSpread({
166
+ apis.push({
167
167
  path: path,
168
- method: method
169
- }, doc.paths[path][method]), {}, {
170
- definitions: resolvedDefinition
171
- }));
168
+ method: method,
169
+ summary: doc.paths[path][method].summary || ""
170
+ });
172
171
  }
173
172
  });
174
173
  });
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "vite-plugin-swagger-mcp",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "vite plugin for swagger mcp",
5
- "homepage": "https://github.com/mmctjj/vite-plugin-swagger-mcp",
5
+ "homepage": "https://github.com/mmdctjj/vite-plugin-swagger-mcp",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/mmctjj/vite-plugin-swagger-mcp.git"
8
+ "url": "https://github.com/mmdctjj/vite-plugin-swagger-mcp.git"
9
9
  },
10
10
  "type": "module",
11
11
  "main": "dist/cjs/index.js",