@devvit/reddit 0.11.20-next-2025-08-11-14-50-17-7f233b47a.0 → 0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.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.
@@ -248,12 +248,14 @@ export class Subreddit {
248
248
  settings: this.settings,
249
249
  };
250
250
  }
251
- async submitPost(options) {
252
- const submitPostOptions = {
253
- ...options,
254
- subredditName: __classPrivateFieldGet(this, _Subreddit_name, "f"),
255
- };
256
- return Post.submit(submitPostOptions);
251
+ async submitPost(opts) {
252
+ return Post.submit({ ...opts, subredditName: __classPrivateFieldGet(this, _Subreddit_name, "f") });
253
+ }
254
+ async submitCustomPost(opts) {
255
+ return Post.submitCustomPost({ ...opts, subredditName: __classPrivateFieldGet(this, _Subreddit_name, "f") });
256
+ }
257
+ async crosspost(opts) {
258
+ return Post.crosspost({ ...opts, subredditName: __classPrivateFieldGet(this, _Subreddit_name, "f") });
257
259
  }
258
260
  getControversialPosts(options = {}) {
259
261
  if (!__classPrivateFieldGet(this, _Subreddit_name, "f")) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subreddit.test.d.ts","sourceRoot":"","sources":["../../src/models/subreddit.test.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/reddit",
3
- "version": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
3
+ "version": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,23 +30,23 @@
30
30
  },
31
31
  "types": "./dist/index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/protos": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
34
- "@devvit/public-api": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
35
- "@devvit/shared": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
36
- "@devvit/shared-types": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
37
- "@devvit/splash": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0"
33
+ "@devvit/protos": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
34
+ "@devvit/public-api": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
35
+ "@devvit/shared": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
36
+ "@devvit/shared-types": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
37
+ "@devvit/splash": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@devvit/server": "*"
41
41
  },
42
42
  "devDependencies": {
43
- "@devvit/repo-tools": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
44
- "@devvit/server": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
45
- "@devvit/tsconfig": "0.11.20-next-2025-08-11-14-50-17-7f233b47a.0",
43
+ "@devvit/repo-tools": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
44
+ "@devvit/server": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
45
+ "@devvit/tsconfig": "0.11.20-next-2025-08-11-15-50-43-0bb51b0c7.0",
46
46
  "eslint": "9.11.1",
47
47
  "typescript": "5.8.3",
48
48
  "vitest": "1.6.1"
49
49
  },
50
50
  "source": "./src/index.ts",
51
- "gitHead": "fcd0458758ec9c887914a35a083216379ece36e3"
51
+ "gitHead": "89fc6c1abe95bf07bdb540d8f22afd12b250d6e0"
52
52
  }