@splattervault/server 0.0.0-stage → 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/index.js ADDED
@@ -0,0 +1,40 @@
1
+ // The ES module entry of @splattervault/server: the CommonJS build re-exported, so that `import` and `require`
2
+ // share one copy of the SDK (one SplatterVaultError class, one key cache). Generated by scripts/esm-wrapper.mjs.
3
+ import sdk from "./index.cjs";
4
+
5
+ export const {
6
+ Billing,
7
+ DEFAULT_BASE_URL,
8
+ DEFAULT_RETRY,
9
+ DEFAULT_STALE_IF_ERROR_SECONDS,
10
+ Games,
11
+ IDEMPOTENCY_KEY_RE,
12
+ MAX_RETRIES,
13
+ NOT_APPLIED_STATUSES,
14
+ OPERATIONS,
15
+ OUTCOME_UNKNOWN_STATUSES,
16
+ PLAYER_TOKEN_AUDIENCE_PREFIX,
17
+ PLAYER_TOKEN_CLOCK_SKEW_SECONDS,
18
+ PLAYER_TOKEN_ISSUER,
19
+ PLAYER_TOKEN_MAX_LIFETIME_SECONDS,
20
+ PlayerData,
21
+ PlayerTokenError,
22
+ PlayerTokenVerifier,
23
+ Players,
24
+ SDK_ERROR_CODES,
25
+ SDK_VERSION,
26
+ ServerPools,
27
+ SessionWaitError,
28
+ Sessions,
29
+ SplatterVault,
30
+ SplatterVaultError,
31
+ Store,
32
+ SubscriptionSessions,
33
+ TRANSIENT_STATUSES,
34
+ createPlayerTokenVerifier,
35
+ isBrowserLike,
36
+ newIdempotencyKey,
37
+ poolClaimConflict,
38
+ readSessionEnvironment,
39
+ verifyPlayerToken
40
+ } = sdk;
package/package.json CHANGED
@@ -1,6 +1,82 @@
1
1
  {
2
2
  "name": "@splattervault/server",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "SplatterVault server SDK for Node.js: game-server sessions and pools, billing, studio player sign-in, player data, the store, and offline player-token verification. For your backend and game servers only.",
5
+ "license": "MIT",
6
+ "author": "SplatterVault",
7
+ "homepage": "https://splattervault.com/developers",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/splattervault/node-sdk.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/splattervault/node-sdk/issues"
14
+ },
15
+ "keywords": [
16
+ "splattervault",
17
+ "game-server",
18
+ "dedicated-server",
19
+ "matchmaking",
20
+ "player-auth",
21
+ "jwks",
22
+ "game-backend",
23
+ "sdk"
24
+ ],
25
+ "type": "module",
26
+ "engines": {
27
+ "node": ">=18"
28
+ },
29
+ "sideEffects": false,
30
+ "main": "./dist/index.cjs",
31
+ "module": "./dist/index.js",
32
+ "types": "./dist/index.d.cts",
33
+ "exports": {
34
+ ".": {
35
+ "import": {
36
+ "types": "./dist/index.d.ts",
37
+ "default": "./dist/index.js"
38
+ },
39
+ "require": {
40
+ "types": "./dist/index.d.cts",
41
+ "default": "./dist/index.cjs"
42
+ }
43
+ },
44
+ "./package.json": "./package.json"
45
+ },
46
+ "files": [
47
+ "dist",
48
+ "README.md",
49
+ "CHANGELOG.md",
50
+ "LICENSE"
51
+ ],
52
+ "scripts": {
53
+ "generate": "node scripts/generate.mjs",
54
+ "build": "tsup && node scripts/esm-wrapper.mjs",
55
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
56
+ "lint": "eslint .",
57
+ "test": "vitest run --testTimeout=120000",
58
+ "test:watch": "vitest",
59
+ "test:smoke": "node scripts/smoke.mjs",
60
+ "mock": "node tools/sdk-mock/server.mjs --port 8787",
61
+ "mock:selftest": "node tools/sdk-mock/selftest.mjs",
62
+ "docs": "typedoc",
63
+ "check": "npm run typecheck && npm run lint && npm test && npm run build && npm run test:smoke",
64
+ "prepublishOnly": "npm run check"
65
+ },
66
+ "devDependencies": {
67
+ "@eslint/js": "^10.0.1",
68
+ "@types/node": "^18.19.130",
69
+ "eslint": "^10.15.0",
70
+ "openapi-typescript": "^7.13.0",
71
+ "tsup": "^8.5.1",
72
+ "typedoc": "^0.28.20",
73
+ "typescript": "~5.9.3",
74
+ "typescript-eslint": "^8.72.2",
75
+ "vite": "^6.4.6",
76
+ "vitest": "^3.2.7"
77
+ },
78
+ "publishConfig": {
79
+ "access": "public",
80
+ "provenance": true
81
+ }
82
+ }