@devvit/public-api 0.11.16-next-2025-05-19-b1ae8e8e8.0 → 0.11.16-next-2025-05-19-f71b55bba.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.
@@ -7,7 +7,7 @@ export declare class AssetsClient {
7
7
  constructor();
8
8
  /**
9
9
  * Gets the public URLs for an asset.
10
- * @param assetPath A path, relative to the 'assets/' folder.
10
+ * @param assetPath A path, relative to the media (or 'assets/') folder.
11
11
  * @param options
12
12
  * @returns The public URL for that asset (https://i.redd.it/<id>.<ext>)
13
13
  */
@@ -15,7 +15,7 @@ export declare class AssetsClient {
15
15
  getURL(assetPath: string, options: GetURLOptions | undefined): string;
16
16
  /**
17
17
  * Gets the public URLs for multiple assets.
18
- * @param assetPaths An array of paths, relative to the 'assets/' folder.
18
+ * @param assetPaths An array of paths, relative to the media (or 'assets/)' folder.
19
19
  * @returns A map of each asset path to its public URL (https://i.redd.it/<id>.<ext>)
20
20
  */
21
21
  getURL(assetPaths: string[]): AssetMap;
@@ -26,7 +26,7 @@ export class AssetsClient {
26
26
  __classPrivateFieldSet(this, _AssetsClient_webViewAssetMap, Devvit.webViewAssets, "f");
27
27
  }
28
28
  /**
29
- * Takes one or more asset names, relative to the 'assets/' folder, and returns either the
29
+ * Takes one or more asset names, relative to the media (or 'assets/') folder, and returns either the
30
30
  * public URL for that one asset, or a map of each asset name to its URL.
31
31
  * @param assetPathOrPaths - Either the path you need the public URL for, or an array of paths.
32
32
  * @param options
package/meta.json CHANGED
@@ -7534,7 +7534,7 @@
7534
7534
  "format": "esm"
7535
7535
  },
7536
7536
  "src/apis/AssetsClient/AssetsClient.ts": {
7537
- "bytes": 3758,
7537
+ "bytes": 3791,
7538
7538
  "imports": [
7539
7539
  {
7540
7540
  "path": "src/devvit/Devvit.ts",
@@ -10171,7 +10171,7 @@
10171
10171
  "bytesInOutput": 146
10172
10172
  },
10173
10173
  "src/apis/AssetsClient/AssetsClient.ts": {
10174
- "bytesInOutput": 2468
10174
+ "bytesInOutput": 2479
10175
10175
  },
10176
10176
  "src/apis/key-value-storage/KeyValueStorage.ts": {
10177
10177
  "bytesInOutput": 951
@@ -10405,7 +10405,7 @@
10405
10405
  "bytesInOutput": 4418
10406
10406
  }
10407
10407
  },
10408
- "bytes": 12554878
10408
+ "bytes": 12554933
10409
10409
  }
10410
10410
  }
10411
10411
  }
package/meta.min.json CHANGED
@@ -343,7 +343,7 @@
343
343
  "format": "esm"
344
344
  },
345
345
  "src/apis/AssetsClient/AssetsClient.ts": {
346
- "bytes": 3758,
346
+ "bytes": 3791,
347
347
  "imports": [
348
348
  {
349
349
  "path": "src/devvit/Devvit.ts",
@@ -2546,7 +2546,7 @@
2546
2546
  "imports": [],
2547
2547
  "exports": [],
2548
2548
  "inputs": {},
2549
- "bytes": 1078379
2549
+ "bytes": 1078412
2550
2550
  },
2551
2551
  "dist/public-api.min.js": {
2552
2552
  "imports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.16-next-2025-05-19-b1ae8e8e8.0",
3
+ "version": "0.11.16-next-2025-05-19-f71b55bba.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.16-next-2025-05-19-b1ae8e8e8.0",
34
- "@devvit/protos": "0.11.16-next-2025-05-19-b1ae8e8e8.0",
35
- "@devvit/shared-types": "0.11.16-next-2025-05-19-b1ae8e8e8.0",
33
+ "@devvit/metrics": "0.11.16-next-2025-05-19-f71b55bba.0",
34
+ "@devvit/protos": "0.11.16-next-2025-05-19-f71b55bba.0",
35
+ "@devvit/shared-types": "0.11.16-next-2025-05-19-f71b55bba.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.16-next-2025-05-19-b1ae8e8e8.0",
43
- "@devvit/tsconfig": "0.11.16-next-2025-05-19-b1ae8e8e8.0",
42
+ "@devvit/repo-tools": "0.11.16-next-2025-05-19-f71b55bba.0",
43
+ "@devvit/tsconfig": "0.11.16-next-2025-05-19-f71b55bba.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": "5cfdf66b9912f8a567fd40996ed4c75e60e27bdb"
64
+ "gitHead": "95ca6068c535cb427c19ab5bee1150dc673aa75d"
65
65
  }
package/public-api.d.ts CHANGED
@@ -1204,7 +1204,7 @@ declare class AssetsClient {
1204
1204
  constructor();
1205
1205
  /**
1206
1206
  * Gets the public URLs for an asset.
1207
- * @param assetPath A path, relative to the 'assets/' folder.
1207
+ * @param assetPath A path, relative to the media (or 'assets/') folder.
1208
1208
  * @param options
1209
1209
  * @returns The public URL for that asset (https://i.redd.it/<id>.<ext>)
1210
1210
  */
@@ -1212,7 +1212,7 @@ declare class AssetsClient {
1212
1212
  getURL(assetPath: string, options: GetURLOptions | undefined): string;
1213
1213
  /**
1214
1214
  * Gets the public URLs for multiple assets.
1215
- * @param assetPaths An array of paths, relative to the 'assets/' folder.
1215
+ * @param assetPaths An array of paths, relative to the media (or 'assets/)' folder.
1216
1216
  * @returns A map of each asset path to its public URL (https://i.redd.it/<id>.<ext>)
1217
1217
  */
1218
1218
  getURL(assetPaths: string[]): AssetMap;