@atxp/server 0.10.3 → 0.10.4

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.
@@ -1,4 +1,5 @@
1
1
  import * as vitest from 'vitest';
2
+ import * as _vitest_spy from '@vitest/spy';
2
3
  import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'http';
3
4
  import { JSONRPCRequest } from '@modelcontextprotocol/sdk/types.js';
4
5
  import { PaymentRequest, PaymentDestination, Currency, AuthorizationServerUrl, UrlString, Logger, OAuthDb, OAuthResourceClient, TokenData, Account, Network } from '@atxp/common';
@@ -93,8 +94,8 @@ declare const zeroCharge: Charge;
93
94
  declare function logger(): Logger;
94
95
  declare function config(args?: Partial<ATXPConfig>): ATXPConfig;
95
96
  declare function paymentServer({ charge, createPaymentRequest }?: {
96
- charge?: vitest.Mock<(...args: any[]) => any> | undefined;
97
- createPaymentRequest?: vitest.Mock<(...args: any[]) => any> | undefined;
97
+ charge?: vitest.Mock<_vitest_spy.Procedure> | undefined;
98
+ createPaymentRequest?: vitest.Mock<_vitest_spy.Procedure> | undefined;
98
99
  }): PaymentServer;
99
100
  declare function mcpRequest({ method, params, id }?: {
100
101
  method?: McpMethod;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atxp/server",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "ATXP Server - MCP server implementation with payment processing capabilities",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,7 +38,7 @@
38
38
  "pack:dry": "npm pack --dry-run"
39
39
  },
40
40
  "dependencies": {
41
- "@atxp/common": "0.10.3",
41
+ "@atxp/common": "0.10.4",
42
42
  "@modelcontextprotocol/sdk": "^1.15.0",
43
43
  "bignumber.js": "^9.3.0",
44
44
  "oauth4webapi": "^3.8.3"
@@ -47,12 +47,12 @@
47
47
  "content-type": "^1.0.5"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/node": "^22.13.0",
51
- "@typescript-eslint/eslint-plugin": "^8.38.0",
52
- "@typescript-eslint/parser": "^8.38.0",
50
+ "@types/node": "^25.0.3",
51
+ "@typescript-eslint/eslint-plugin": "^8.51.0",
52
+ "@typescript-eslint/parser": "^8.51.0",
53
53
  "eslint": "^9.32.0",
54
54
  "node-mocks-http": "^1.17.2",
55
55
  "typescript": "^5.7.3",
56
- "vitest": "^3.0.9"
56
+ "vitest": "^4.0.16"
57
57
  }
58
58
  }