@vvedantb/server 0.1.0 → 0.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.
package/dist/mcp/cors.js CHANGED
@@ -1,4 +1,4 @@
1
- import { mcpCorsHeaders } from "../convex/index";
1
+ import { mcpCorsHeaders } from "../convex/index.js";
2
2
  /**
3
3
  * server/convex's `mcpCorsHeaders(origin)` with `overrides` applied on top.
4
4
  * app-b: `mcpCors({ "Access-Control-Allow-Headers": "Content-Type, Authorization, MCP-Protocol-Version", "Access-Control-Max-Age": "86400" })`.
@@ -1,4 +1,4 @@
1
- import type { McpServerInfo } from "../convex/index";
1
+ import type { McpServerInfo } from "../convex/index.js";
2
2
  import type { HandleRpcArgs } from "./http.js";
3
3
  import { type JsonObject, type JsonValue } from "./json.js";
4
4
  import { type ProtocolVersionOptions, type RpcResult } from "./jsonRpc.js";
package/dist/mcp/env.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type EnvSource } from "../convex/index";
1
+ import { type EnvSource } from "../convex/index.js";
2
2
  /**
3
3
  * How a fallback env var is chosen. They differ only when the primary is
4
4
  * unset or empty, and in which name the "is not set" error mentions.
package/dist/mcp/env.js CHANGED
@@ -1,4 +1,4 @@
1
- import { requiredEnvUrl } from "../convex/index";
1
+ import { requiredEnvUrl } from "../convex/index.js";
2
2
  /**
3
3
  * Read a URL from env through server/convex's `requiredEnvUrl` (throws
4
4
  * "<NAME> is not set in Convex env", strips one trailing slash).
package/dist/mcp/http.js CHANGED
@@ -1,4 +1,4 @@
1
- import { extractBearerToken } from "../convex/index";
1
+ import { extractBearerToken } from "../convex/index.js";
2
2
  import { resolveCors } from "./cors.js";
3
3
  /** Default `WWW-Authenticate` resource metadata path. */
4
4
  export const PROTECTED_RESOURCE_METADATA_PATH = "/.well-known/oauth-protected-resource";
@@ -1,4 +1,4 @@
1
- import type { EnvSource } from "../convex/index";
1
+ import type { EnvSource } from "../convex/index.js";
2
2
  import { type CorsOption, type HeaderMap } from "./cors.js";
3
3
  import { type EnvUrl } from "./env.js";
4
4
  import type { HttpHandler } from "./http.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvedantb/server",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "description": "Shared Convex backend helpers and MCP server scaffolding: query-limit errors, Clerk auth config, bearer tokens, env, CORS, a bearer-auth MCP HTTP handler, OAuth metadata, a JSON-RPC dispatcher and explorer tools.",
6
6
  "type": "module",
@@ -53,6 +53,6 @@
53
53
  "scripts": {
54
54
  "build": "tsc -p tsconfig.json",
55
55
  "typecheck": "tsc -p tsconfig.test.json",
56
- "test": "vitest run"
56
+ "test": "vitest run && node --test tests-node/esm-exports.mjs"
57
57
  }
58
58
  }