@mpgd/adapter-verse8 0.3.5 → 0.3.7

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.
@@ -4,10 +4,10 @@ const defaultLeaderboardCollectionNamespace = 'mpgdVerse8Leaderboard';
4
4
  const defaultMaximumStorageEntries = 128;
5
5
  const defaultMaximumStorageValueBytes = 64 * 1024;
6
6
  const defaultMaximumStorageStateBytes = 512 * 1024;
7
- const defaultMaximumLeaderboardParticipants = 1000;
8
- const maximumLeaderboardParticipantsLimit = 10000;
7
+ const defaultMaximumLeaderboardParticipants = 1_000;
8
+ const maximumLeaderboardParticipantsLimit = 10_000;
9
9
  const minimumPersistenceSecretBytes = 32;
10
- const maximumPersistenceSecretBytes = 1024;
10
+ const maximumPersistenceSecretBytes = 1_024;
11
11
  const sha256DigestPattern = /^[0-9a-f]{64}$/;
12
12
  const sha256RoundConstants = Uint32Array.from(('428a2f98 71374491 b5c0fbcf e9b5dba5 3956c25b 59f111f1 923f82a4 ab1c5ed5 '
13
13
  + 'd807aa98 12835b01 243185be 550c7dc3 72be5d74 80deb1fe 9bdc06a7 c19bf174 '
@@ -811,7 +811,7 @@ function sha256Bytes(bytes) {
811
811
  message.set(bytes);
812
812
  message[bytes.length] = 0x80;
813
813
  const view = new DataView(message.buffer);
814
- view.setUint32(paddedLength - 8, Math.floor(bitLength / 4294967296), false);
814
+ view.setUint32(paddedLength - 8, Math.floor(bitLength / 0x1_0000_0000), false);
815
815
  view.setUint32(paddedLength - 4, bitLength >>> 0, false);
816
816
  const hash = new Uint32Array(8);
817
817
  hash[0] = 0x6a09e667;
package/dist/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { verse8AdsRewardEvidenceSchema } from './ads-contract.js';
2
2
  export const defaultVerse8AdsVerifierBaseUrl = 'https://ads-verifier.verse8.io';
3
- const maximumVerifierResponseLength = 65536;
3
+ const maximumVerifierResponseLength = 65_536;
4
4
  export class Verse8AdsVerifierHttpError extends Error {
5
5
  status;
6
6
  code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/adapter-verse8",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "Verse8 iframe platform adapter for mpgd games.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,12 +43,12 @@
43
43
  "dependencies": {
44
44
  "@verse8/ads": "0.4.0",
45
45
  "@verse8/platform": "2.1.0",
46
- "@mpgd/catalog": "0.7.2",
47
- "@mpgd/platform": "0.12.0",
48
- "@mpgd/game-services": "0.15.0"
46
+ "@mpgd/catalog": "0.7.3",
47
+ "@mpgd/platform": "0.12.1",
48
+ "@mpgd/game-services": "0.15.2"
49
49
  },
50
50
  "devDependencies": {
51
- "ttsc": "0.18.4",
51
+ "ttsc": "0.30.4",
52
52
  "typescript": "7.0.2",
53
53
  "vitest": "^4.0.0"
54
54
  },