@devvit/public-api 0.11.12-next-2025-03-31-566c67869.0 → 0.11.12-next-2025-04-02-6a2fd78c6.0

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 +1 @@
1
- {"version":3,"file":"csrf.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/csrf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGjF,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAuB7E,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,WAAW,GAAG,iBAAiB,EACxC,GAAG,EAAE,oBAAoB,iBAmF1B;AAWD,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,WAAW,GAAG,iBAAiB,EACxC,GAAG,EAAE,oBAAoB,iBAc1B"}
1
+ {"version":3,"file":"csrf.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/csrf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGjF,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAuB7E,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,WAAW,GAAG,iBAAiB,EACxC,GAAG,EAAE,oBAAoB,iBAkF1B;AAWD,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,WAAW,GAAG,iBAAiB,EACxC,GAAG,EAAE,oBAAoB,iBAa1B"}
@@ -83,7 +83,6 @@ export async function addCSRFTokenToContext(context, req) {
83
83
  */
84
84
  await context.redis.set(`${userHeader}${subredditHeader}${targetId}${req.actionId}`, JSON.stringify(val));
85
85
  await context.redis.expire(`${userHeader}${subredditHeader}${targetId}${req.actionId}`, 600);
86
- console.debug('CSRF token added: ' + JSON.stringify(val));
87
86
  }
88
87
  async function isModerator(context) {
89
88
  const userHeader = getUserHeader(context);
@@ -104,5 +103,4 @@ export async function validateCSRFToken(context, req) {
104
103
  if (csrf.needsModCheck && !(await isModerator(context))) {
105
104
  throw new Error('User is not a moderator: ' + userHeader + '; ' + subredditHeader);
106
105
  }
107
- console.debug('CSRF token validated: ' + csrfData);
108
106
  }
package/meta.json CHANGED
@@ -8070,7 +8070,7 @@
8070
8070
  "format": "esm"
8071
8071
  },
8072
8072
  "src/devvit/internals/csrf.ts": {
8073
- "bytes": 4559,
8073
+ "bytes": 4444,
8074
8074
  "imports": [
8075
8075
  {
8076
8076
  "path": "../shared-types/dist/Header.js",
@@ -10189,7 +10189,7 @@
10189
10189
  "bytesInOutput": 663
10190
10190
  },
10191
10191
  "src/devvit/internals/csrf.ts": {
10192
- "bytesInOutput": 3505
10192
+ "bytesInOutput": 3386
10193
10193
  },
10194
10194
  "src/devvit/internals/menu-items.ts": {
10195
10195
  "bytesInOutput": 2374
@@ -10348,7 +10348,7 @@
10348
10348
  "bytesInOutput": 4013
10349
10349
  }
10350
10350
  },
10351
- "bytes": 12477628
10351
+ "bytes": 12477257
10352
10352
  }
10353
10353
  }
10354
10354
  }
package/meta.min.json CHANGED
@@ -910,7 +910,7 @@
910
910
  "format": "esm"
911
911
  },
912
912
  "src/devvit/internals/csrf.ts": {
913
- "bytes": 4559,
913
+ "bytes": 4444,
914
914
  "imports": [
915
915
  {
916
916
  "path": "../shared-types/dist/Header.js",
@@ -2526,7 +2526,7 @@
2526
2526
  "imports": [],
2527
2527
  "exports": [],
2528
2528
  "inputs": {},
2529
- "bytes": 1062256
2529
+ "bytes": 1062066
2530
2530
  },
2531
2531
  "dist/public-api.min.js": {
2532
2532
  "imports": [
@@ -2921,7 +2921,7 @@
2921
2921
  "bytesInOutput": 1322
2922
2922
  },
2923
2923
  "src/devvit/internals/csrf.ts": {
2924
- "bytesInOutput": 1802
2924
+ "bytesInOutput": 1706
2925
2925
  },
2926
2926
  "src/devvit/internals/plugins.ts": {
2927
2927
  "bytesInOutput": 47
@@ -3077,7 +3077,7 @@
3077
3077
  "bytesInOutput": 107
3078
3078
  }
3079
3079
  },
3080
- "bytes": 219236
3080
+ "bytes": 219140
3081
3081
  }
3082
3082
  }
3083
3083
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.12-next-2025-03-31-566c67869.0",
3
+ "version": "0.11.12-next-2025-04-02-6a2fd78c6.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,17 +30,17 @@
30
30
  },
31
31
  "types": "./index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/metrics": "0.11.12-next-2025-03-31-566c67869.0",
34
- "@devvit/protos": "0.11.12-next-2025-03-31-566c67869.0",
35
- "@devvit/shared-types": "0.11.12-next-2025-03-31-566c67869.0",
33
+ "@devvit/metrics": "0.11.12-next-2025-04-02-6a2fd78c6.0",
34
+ "@devvit/protos": "0.11.12-next-2025-04-02-6a2fd78c6.0",
35
+ "@devvit/shared-types": "0.11.12-next-2025-04-02-6a2fd78c6.0",
36
36
  "base64-js": "1.5.1",
37
37
  "clone-deep": "4.0.1",
38
38
  "moderndash": "4.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ampproject/filesize": "4.3.0",
42
- "@devvit/repo-tools": "0.11.12-next-2025-03-31-566c67869.0",
43
- "@devvit/tsconfig": "0.11.12-next-2025-03-31-566c67869.0",
42
+ "@devvit/repo-tools": "0.11.12-next-2025-04-02-6a2fd78c6.0",
43
+ "@devvit/tsconfig": "0.11.12-next-2025-04-02-6a2fd78c6.0",
44
44
  "@microsoft/api-extractor": "7.41.0",
45
45
  "@reddit/faceplate-ui": "18.0.1",
46
46
  "@types/clone-deep": "4.0.1",
@@ -61,5 +61,5 @@
61
61
  }
62
62
  },
63
63
  "source": "./src/index.ts",
64
- "gitHead": "9692791a56a4f67af2054ee37fe3f0c9e2f1f4c4"
64
+ "gitHead": "b944a7cb8d9b767bb77f2e59009984f4461d271d"
65
65
  }