@mpgd/game-services 0.13.0 → 0.13.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.
@@ -35,10 +35,16 @@ export function createAppsInTossPartnerApiClient(input) {
35
35
  return false;
36
36
  }
37
37
  const envelope = requireSuccessEnvelope(response);
38
- if (envelope.success !== 'true') {
39
- throw new AppsInTossPartnerApiError('Apps in Toss returned an invalid anonymous-key verification response.', response.status);
38
+ // The OpenAPI schema uses a boolean while older Apps in Toss examples use
39
+ // strings. Both false forms are ordinary rejections; every other shape
40
+ // remains malformed and fails closed below.
41
+ if (envelope.success === true || envelope.success === 'true') {
42
+ return true;
40
43
  }
41
- return true;
44
+ if (envelope.success === false || envelope.success === 'false') {
45
+ return false;
46
+ }
47
+ throw new AppsInTossPartnerApiError('Apps in Toss returned an invalid anonymous-key verification response.', response.status);
42
48
  },
43
49
  async sendFunctionalMessage(request) {
44
50
  const recipient = normalizeRecipient(request.recipient);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/game-services",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Client, contract, server, store, and test helpers for authoritative mpgd game services.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -130,9 +130,9 @@
130
130
  "@orpc/client": "2.0.0-beta.14",
131
131
  "@orpc/contract": "2.0.0-beta.14",
132
132
  "@orpc/server": "2.0.0-beta.14",
133
- "@mpgd/catalog": "0.7.0",
134
- "@mpgd/platform": "0.10.0",
135
- "@mpgd/analytics": "0.3.10"
133
+ "@mpgd/analytics": "0.3.11",
134
+ "@mpgd/catalog": "0.7.1",
135
+ "@mpgd/platform": "0.11.0"
136
136
  },
137
137
  "devDependencies": {
138
138
  "ttsc": "0.18.4",