@solvapay/server 1.0.9-preview.1 → 1.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvapay/server",
3
- "version": "1.0.9-preview.1",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -18,6 +18,11 @@
18
18
  "types": "./dist/edge.d.ts",
19
19
  "import": "./dist/edge.js",
20
20
  "default": "./dist/edge.js"
21
+ },
22
+ "./fetch": {
23
+ "types": "./dist/fetch/index.d.ts",
24
+ "import": "./dist/fetch/index.js",
25
+ "require": "./dist/fetch/index.cjs"
21
26
  }
22
27
  },
23
28
  "files": [
@@ -37,17 +42,13 @@
37
42
  },
38
43
  "sideEffects": false,
39
44
  "dependencies": {
40
- "@solvapay/core": "1.0.9-preview.1"
45
+ "@solvapay/core": "1.0.8-preview.10"
41
46
  },
42
47
  "peerDependencies": {
43
- "@modelcontextprotocol/sdk": "^1.28.0",
44
48
  "zod": "^3.25.0 || ^4.0.0",
45
- "@solvapay/auth": "1.0.9-preview.1"
49
+ "@solvapay/auth": "1.0.8-preview.10"
46
50
  },
47
51
  "peerDependenciesMeta": {
48
- "@modelcontextprotocol/sdk": {
49
- "optional": true
50
- },
51
52
  "zod": {
52
53
  "optional": true
53
54
  }
@@ -60,17 +61,22 @@
60
61
  "tsx": "^4.21.0",
61
62
  "typescript": "^5.9.3",
62
63
  "vitest": "^4.1.2",
64
+ "zod": "^4.3.6",
65
+ "@solvapay/auth": "1.0.8-preview.10",
63
66
  "@solvapay/demo-services": "0.0.0",
64
- "@solvapay/test-utils": "^0.0.0",
65
- "@solvapay/auth": "1.0.9-preview.1"
67
+ "@solvapay/test-utils": "^0.0.0"
66
68
  },
67
69
  "scripts": {
68
- "build": "tsup src/index.ts --format esm,cjs --dts --tsconfig tsconfig.build.json && tsup src/edge.ts --format esm --dts --tsconfig tsconfig.build.json",
70
+ "build": "tsup",
71
+ "dev": "tsup --watch",
69
72
  "generate:types": "tsx scripts/generate-types.ts",
70
- "test": "vitest run __tests__/paywall.unit.test.ts __tests__/mcp-auth.unit.test.ts __tests__/bootstrap-mcp.unit.test.ts __tests__/verify-webhook.unit.test.ts",
71
- "test:unit": "vitest run __tests__/paywall.unit.test.ts __tests__/mcp-auth.unit.test.ts __tests__/bootstrap-mcp.unit.test.ts __tests__/verify-webhook.unit.test.ts",
72
- "test:integration": "vitest run __tests__/backend.integration.test.ts",
73
+ "test": "vitest run __tests__/paywall.unit.test.ts __tests__/paywall-state.unit.test.ts __tests__/bootstrap-mcp.unit.test.ts __tests__/verify-webhook.unit.test.ts __tests__/edge-exports.unit.test.ts src/__tests__/edge-exports.test.ts __tests__/auth-core.unit.test.ts __tests__/ensure-customer.unit.test.ts __tests__/create-customer.unit.test.ts __tests__/fetch/cors.test.ts __tests__/fetch/handlers.test.ts __tests__/fetch/utils.test.ts",
74
+ "test:unit": "vitest run __tests__/paywall.unit.test.ts __tests__/paywall-state.unit.test.ts __tests__/bootstrap-mcp.unit.test.ts __tests__/verify-webhook.unit.test.ts __tests__/edge-exports.unit.test.ts src/__tests__/edge-exports.test.ts __tests__/auth-core.unit.test.ts __tests__/ensure-customer.unit.test.ts __tests__/create-customer.unit.test.ts __tests__/fetch/cors.test.ts __tests__/fetch/handlers.test.ts __tests__/fetch/utils.test.ts",
75
+ "test:integration": "vitest run --no-file-parallelism __tests__/backend.integration.test.ts __tests__/customer-update.integration.test.ts",
76
+ "test:integration:backend": "vitest run __tests__/backend.integration.test.ts",
77
+ "test:integration:customer": "vitest run __tests__/customer-update.integration.test.ts",
73
78
  "test:integration:payment": "vitest run __tests__/payment-stripe.integration.test.ts",
79
+ "test:integration:all": "vitest run --no-file-parallelism __tests__/backend.integration.test.ts __tests__/customer-update.integration.test.ts __tests__/payment-stripe.integration.test.ts",
74
80
  "test:all": "vitest run",
75
81
  "test:all:integration": "vitest run",
76
82
  "test:watch": "vitest",
@@ -1,9 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
- export {
8
- __export
9
- };