@vitemcp/server 1.9.15 → 1.9.17
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/{OAuthProvider-AjmrLphi.d.cts → OAuthProvider-STkC4R2N.d.cts} +55 -1
- package/dist/{OAuthProvider-AjmrLphi.d.ts → OAuthProvider-STkC4R2N.d.ts} +55 -1
- package/dist/ViteMCP.cjs +3 -3
- package/dist/ViteMCP.d.cts +2 -2
- package/dist/ViteMCP.d.ts +2 -2
- package/dist/ViteMCP.js +2 -2
- package/dist/auth/index.cjs +2 -2
- package/dist/auth/index.d.cts +17 -3
- package/dist/auth/index.d.ts +17 -3
- package/dist/auth/index.js +1 -1
- package/dist/bin/vitemcp.cjs +0 -1
- package/dist/bin/vitemcp.cjs.map +1 -1
- package/dist/bin/vitemcp.js +0 -1
- package/dist/bin/vitemcp.js.map +1 -1
- package/dist/{chunk-WOQXAQIG.js → chunk-4BX2CT5Z.js} +180 -24
- package/dist/chunk-4BX2CT5Z.js.map +1 -0
- package/dist/{chunk-2JOXLIMJ.js → chunk-B3LLXB6O.js} +3 -3
- package/dist/{chunk-2JOXLIMJ.js.map → chunk-B3LLXB6O.js.map} +1 -1
- package/dist/{chunk-AOEXFXTH.cjs → chunk-TNT3APOK.cjs} +4 -4
- package/dist/{chunk-AOEXFXTH.cjs.map → chunk-TNT3APOK.cjs.map} +1 -1
- package/dist/{chunk-7XWK66ZT.cjs → chunk-ZEYQBA72.cjs} +196 -40
- package/dist/chunk-ZEYQBA72.cjs.map +1 -0
- package/dist/openapi/index.cjs +12 -12
- package/dist/openapi/index.d.cts +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-7XWK66ZT.cjs.map +0 -1
- package/dist/chunk-WOQXAQIG.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZEYQBA72cjs = require('./chunk-ZEYQBA72.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -184,7 +184,7 @@ var createOAuthRouter = (options) => {
|
|
|
184
184
|
const params = Object.fromEntries(
|
|
185
185
|
new URL(c.req.url).searchParams.entries()
|
|
186
186
|
);
|
|
187
|
-
return await proxy.authorize(params);
|
|
187
|
+
return await proxy.authorize(params, c.req.raw);
|
|
188
188
|
} catch (error) {
|
|
189
189
|
const { body, status } = errorResponse(error);
|
|
190
190
|
return c.json(body, status);
|
|
@@ -1475,7 +1475,7 @@ var withEndpointAsResource = (config, endpoint) => ({
|
|
|
1475
1475
|
...config,
|
|
1476
1476
|
protectedResource: {
|
|
1477
1477
|
...config.protectedResource,
|
|
1478
|
-
resource: `${
|
|
1478
|
+
resource: `${_chunkZEYQBA72cjs.withoutTrailingSlash.call(void 0, config.protectedResource.resource)}${endpoint}`
|
|
1479
1479
|
}
|
|
1480
1480
|
});
|
|
1481
1481
|
var nodeToWebRequest = (req, body, secure, signal) => {
|
|
@@ -1690,4 +1690,4 @@ var normalizeToolResult = (result, hasOutputSchema) => {
|
|
|
1690
1690
|
|
|
1691
1691
|
|
|
1692
1692
|
exports.cancelResponseBody = cancelResponseBody; exports.DiscoveryDocumentCache = DiscoveryDocumentCache; exports.jsonSchemaAdapter = jsonSchemaAdapter; exports.delay = _promises5.setTimeout; exports.MEDIA_FETCH_TIMEOUT_MS = MEDIA_FETCH_TIMEOUT_MS; exports.ViteMCPError = ViteMCPError; exports.UnexpectedStateError = UnexpectedStateError; exports.UserError = UserError; exports.imageContent = imageContent; exports.audioContent = audioContent; exports.ServerState = ServerState; exports.ViteMCP = ViteMCP;
|
|
1693
|
-
//# sourceMappingURL=chunk-
|
|
1693
|
+
//# sourceMappingURL=chunk-TNT3APOK.cjs.map
|