@devvit/public-api 0.11.20-next-2025-07-30-17-03-36-c9e16f6ff.0 → 0.11.20-next-2025-07-30-18-36-35-63edee25b.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.
- package/apis/reddit/models/Post.js +5 -2
- package/meta.min.json +4 -4
- package/package.json +8 -8
- package/public-api.min.js +1 -1
- package/public-api.min.js.map +2 -2
|
@@ -660,8 +660,11 @@ export class Post {
|
|
|
660
660
|
throw new Error(`Post of ${options.kind} type with ${options.videoPosterUrl} is being created asynchronously and should be updated in the subreddit soon.`);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
if (
|
|
664
|
-
throw new Error(`failed to submit post -
|
|
663
|
+
if (response.json?.errors?.length) {
|
|
664
|
+
throw new Error(`failed to submit post - errors: ${response.json?.errors.join(', ')}`);
|
|
665
|
+
}
|
|
666
|
+
else if (!response.json?.data?.id) {
|
|
667
|
+
throw new Error(`failed to submit post - no post ID returned but no error details found`);
|
|
665
668
|
}
|
|
666
669
|
return Post.getById(`t3_${response.json.data.id}`, metadata);
|
|
667
670
|
}
|
package/meta.min.json
CHANGED
|
@@ -1971,7 +1971,7 @@
|
|
|
1971
1971
|
"format": "esm"
|
|
1972
1972
|
},
|
|
1973
1973
|
"src/apis/reddit/models/Post.ts": {
|
|
1974
|
-
"bytes":
|
|
1974
|
+
"bytes": 48168,
|
|
1975
1975
|
"imports": [
|
|
1976
1976
|
{
|
|
1977
1977
|
"path": "@devvit/protos",
|
|
@@ -2655,7 +2655,7 @@
|
|
|
2655
2655
|
"imports": [],
|
|
2656
2656
|
"exports": [],
|
|
2657
2657
|
"inputs": {},
|
|
2658
|
-
"bytes":
|
|
2658
|
+
"bytes": 1086258
|
|
2659
2659
|
},
|
|
2660
2660
|
"dist/public-api.min.js": {
|
|
2661
2661
|
"imports": [
|
|
@@ -3197,7 +3197,7 @@
|
|
|
3197
3197
|
"bytesInOutput": 4610
|
|
3198
3198
|
},
|
|
3199
3199
|
"src/apis/reddit/models/Post.ts": {
|
|
3200
|
-
"bytesInOutput":
|
|
3200
|
+
"bytesInOutput": 16067
|
|
3201
3201
|
},
|
|
3202
3202
|
"src/apis/reddit/helpers/textFallbackToRichtext.ts": {
|
|
3203
3203
|
"bytesInOutput": 114
|
|
@@ -3248,7 +3248,7 @@
|
|
|
3248
3248
|
"bytesInOutput": 107
|
|
3249
3249
|
}
|
|
3250
3250
|
},
|
|
3251
|
-
"bytes":
|
|
3251
|
+
"bytes": 223502
|
|
3252
3252
|
}
|
|
3253
3253
|
}
|
|
3254
3254
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/public-api",
|
|
3
|
-
"version": "0.11.20-next-2025-07-30-
|
|
3
|
+
"version": "0.11.20-next-2025-07-30-18-36-35-63edee25b.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
},
|
|
29
29
|
"types": "./index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@devvit/metrics": "0.11.20-next-2025-07-30-
|
|
32
|
-
"@devvit/protos": "0.11.20-next-2025-07-30-
|
|
33
|
-
"@devvit/shared": "0.11.20-next-2025-07-30-
|
|
34
|
-
"@devvit/shared-types": "0.11.20-next-2025-07-30-
|
|
31
|
+
"@devvit/metrics": "0.11.20-next-2025-07-30-18-36-35-63edee25b.0",
|
|
32
|
+
"@devvit/protos": "0.11.20-next-2025-07-30-18-36-35-63edee25b.0",
|
|
33
|
+
"@devvit/shared": "0.11.20-next-2025-07-30-18-36-35-63edee25b.0",
|
|
34
|
+
"@devvit/shared-types": "0.11.20-next-2025-07-30-18-36-35-63edee25b.0",
|
|
35
35
|
"base64-js": "1.5.1",
|
|
36
36
|
"clone-deep": "4.0.1",
|
|
37
37
|
"moderndash": "4.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@ampproject/filesize": "4.3.0",
|
|
41
|
-
"@devvit/repo-tools": "0.11.20-next-2025-07-30-
|
|
42
|
-
"@devvit/tsconfig": "0.11.20-next-2025-07-30-
|
|
41
|
+
"@devvit/repo-tools": "0.11.20-next-2025-07-30-18-36-35-63edee25b.0",
|
|
42
|
+
"@devvit/tsconfig": "0.11.20-next-2025-07-30-18-36-35-63edee25b.0",
|
|
43
43
|
"@reddit/faceplate-ui": "18.0.1",
|
|
44
44
|
"@types/clone-deep": "4.0.1",
|
|
45
45
|
"@vitest/coverage-c8": "0.32.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"source": "./src/index.ts",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "5364975f044d97ed6edbe69674a5ccd01414676b"
|
|
63
63
|
}
|