@mpgd/adapter-devvit 0.9.7 → 0.9.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.
@@ -1,13 +1,13 @@
1
1
  const operationSchemaVersion = 1;
2
- const defaultLeaseTtlMs = 30000;
3
- const defaultMaxPostDataBytes = 2048;
2
+ const defaultLeaseTtlMs = 30_000;
3
+ const defaultMaxPostDataBytes = 2_048;
4
4
  const defaultStoreAttempts = 8;
5
5
  const maximumStoreAttempts = 32;
6
6
  const defaultPendingPageLimit = 20;
7
7
  export const devvitPostOperationMaximumPendingPageLimit = 100;
8
8
  const maximumIdentifierLength = 128;
9
9
  const maximumOperationTypeLength = 64;
10
- const maximumLeaseTtlMs = 60 * 60 * 1000;
10
+ const maximumLeaseTtlMs = 60 * 60 * 1_000;
11
11
  const operationTypePattern = /^[A-Za-z0-9][A-Za-z0-9._-]*$/u;
12
12
  const entryPattern = /^[A-Za-z0-9][A-Za-z0-9._/-]*$/u;
13
13
  const redditPostIdPattern = /^t3_[A-Za-z0-9]+$/u;
@@ -471,7 +471,7 @@ function operationIndexMember(record) {
471
471
  return record.operationKey;
472
472
  }
473
473
  function parsePendingIndexMember(member, scope, operationType) {
474
- if (typeof member !== 'string' || member.length > 8192) {
474
+ if (typeof member !== 'string' || member.length > 8_192) {
475
475
  throw new DevvitPostOperationStateError('Pending operation index member is invalid.');
476
476
  }
477
477
  const operationKey = member;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/adapter-devvit",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "description": "Reddit Devvit Web platform adapter for mpgd games.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -55,12 +55,12 @@
55
55
  ],
56
56
  "dependencies": {
57
57
  "@devvit/web": "0.14.1",
58
- "@mpgd/bridge": "0.9.0",
59
- "@mpgd/platform": "0.12.0",
60
- "@mpgd/game-services": "0.15.0"
58
+ "@mpgd/game-services": "0.15.2",
59
+ "@mpgd/bridge": "0.9.1",
60
+ "@mpgd/platform": "0.12.1"
61
61
  },
62
62
  "devDependencies": {
63
- "ttsc": "0.18.4",
63
+ "ttsc": "0.30.4",
64
64
  "typescript": "7.0.2",
65
65
  "vitest": "^4.0.0"
66
66
  },