@vitemcp/server 1.9.13 → 1.9.14
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-BDDi19HO.d.cts → OAuthProvider-CXNATtVg.d.cts} +7 -0
- package/dist/{OAuthProvider-BDDi19HO.d.ts → OAuthProvider-CXNATtVg.d.ts} +7 -0
- 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 +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{chunk-QGWUABBC.js → chunk-2O5Y2H74.js} +3 -3
- package/dist/{chunk-QGWUABBC.js.map → chunk-2O5Y2H74.js.map} +1 -1
- package/dist/{chunk-NCSND5TI.cjs → chunk-7MAOWIMR.cjs} +4 -4
- package/dist/{chunk-NCSND5TI.cjs.map → chunk-7MAOWIMR.cjs.map} +1 -1
- package/dist/{chunk-5XM67UD5.js → chunk-F37DGG7F.js} +14 -4
- package/dist/chunk-F37DGG7F.js.map +1 -0
- package/dist/{chunk-SKQK3QGJ.cjs → chunk-T7EJGNI3.cjs} +14 -4
- package/dist/chunk-T7EJGNI3.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-5XM67UD5.js.map +0 -1
- package/dist/chunk-SKQK3QGJ.cjs.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 _chunkT7EJGNI3cjs = require('./chunk-T7EJGNI3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -244,7 +244,7 @@ var createOAuthRouter = (options) => {
|
|
|
244
244
|
return c.json(body, status, noStore);
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
app.get(`${basePath}
|
|
247
|
+
app.get(`${basePath}${proxy.getRedirectPath()}`, async (c) => {
|
|
248
248
|
try {
|
|
249
249
|
return await proxy.handleCallback(c.req.raw);
|
|
250
250
|
} catch (error) {
|
|
@@ -1473,7 +1473,7 @@ var withEndpointAsResource = (config, endpoint) => ({
|
|
|
1473
1473
|
...config,
|
|
1474
1474
|
protectedResource: {
|
|
1475
1475
|
...config.protectedResource,
|
|
1476
|
-
resource: `${
|
|
1476
|
+
resource: `${_chunkT7EJGNI3cjs.withoutTrailingSlash.call(void 0, config.protectedResource.resource)}${endpoint}`
|
|
1477
1477
|
}
|
|
1478
1478
|
});
|
|
1479
1479
|
var nodeToWebRequest = (req, body, secure, signal) => {
|
|
@@ -1688,4 +1688,4 @@ var normalizeToolResult = (result, hasOutputSchema) => {
|
|
|
1688
1688
|
|
|
1689
1689
|
|
|
1690
1690
|
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;
|
|
1691
|
-
//# sourceMappingURL=chunk-
|
|
1691
|
+
//# sourceMappingURL=chunk-7MAOWIMR.cjs.map
|