@devvit/public-api 0.11.18-next-2025-06-26-16-57-57-753b2eaee.0 → 0.11.18-next-2025-06-26-23-25-28-1986faeb3.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":"app-settings.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/app-settings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AA0B7D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIxD"}
1
+ {"version":3,"file":"app-settings.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/app-settings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAsB7D,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIxD"}
@@ -4,12 +4,9 @@ import { Devvit } from '../Devvit.js';
4
4
  import { extendDevvitPrototype } from './helpers/extendDevvitPrototype.js';
5
5
  import { onValidateFormHelper } from './helpers/settingsUtils.js';
6
6
  async function onGetSettingsFields() {
7
- if (!Devvit.appSettings) {
8
- throw new Error('App settings were not defined.');
9
- }
10
7
  return GetFieldsResponse.fromJSON({
11
8
  fields: {
12
- fields: transformFormFields(Devvit.appSettings),
9
+ fields: transformFormFields(Devvit.appSettings ?? []),
13
10
  },
14
11
  });
15
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"installation-settings.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/installation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AA0B7D,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIjE"}
1
+ {"version":3,"file":"installation-settings.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/installation-settings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAsB7D,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIjE"}
@@ -4,12 +4,9 @@ import { Devvit } from '../Devvit.js';
4
4
  import { extendDevvitPrototype } from './helpers/extendDevvitPrototype.js';
5
5
  import { onValidateFormHelper } from './helpers/settingsUtils.js';
6
6
  async function onGetSettingsFields() {
7
- if (!Devvit.installationSettings) {
8
- throw new Error('Installation settings were not defined.');
9
- }
10
7
  return GetFieldsResponse.fromJSON({
11
8
  fields: {
12
- fields: transformFormFields(Devvit.installationSettings),
9
+ fields: transformFormFields(Devvit.installationSettings ?? []),
13
10
  },
14
11
  });
15
12
  }
package/meta.json CHANGED
@@ -7935,7 +7935,7 @@
7935
7935
  "format": "esm"
7936
7936
  },
7937
7937
  "src/devvit/internals/app-settings.ts": {
7938
- "bytes": 1316,
7938
+ "bytes": 1233,
7939
7939
  "imports": [
7940
7940
  {
7941
7941
  "path": "../protos/dist/index.js",
@@ -8127,7 +8127,7 @@
8127
8127
  "format": "esm"
8128
8128
  },
8129
8129
  "src/devvit/internals/installation-settings.ts": {
8130
- "bytes": 1409,
8130
+ "bytes": 1308,
8131
8131
  "imports": [
8132
8132
  {
8133
8133
  "path": "../protos/dist/index.js",
@@ -10261,7 +10261,7 @@
10261
10261
  "bytesInOutput": 1316
10262
10262
  },
10263
10263
  "src/devvit/internals/app-settings.ts": {
10264
- "bytesInOutput": 611
10264
+ "bytesInOutput": 523
10265
10265
  },
10266
10266
  "src/apis/ui/helpers/getEffectsFromUIClient.ts": {
10267
10267
  "bytesInOutput": 69
@@ -10291,7 +10291,7 @@
10291
10291
  "bytesInOutput": 726
10292
10292
  },
10293
10293
  "src/devvit/internals/installation-settings.ts": {
10294
- "bytesInOutput": 663
10294
+ "bytesInOutput": 557
10295
10295
  },
10296
10296
  "src/devvit/internals/csrf.ts": {
10297
10297
  "bytesInOutput": 3386
@@ -10450,7 +10450,7 @@
10450
10450
  "bytesInOutput": 4418
10451
10451
  }
10452
10452
  },
10453
- "bytes": 12583094
10453
+ "bytes": 12582496
10454
10454
  }
10455
10455
  }
10456
10456
  }
package/meta.min.json CHANGED
@@ -713,7 +713,7 @@
713
713
  "format": "esm"
714
714
  },
715
715
  "src/devvit/internals/app-settings.ts": {
716
- "bytes": 1316,
716
+ "bytes": 1233,
717
717
  "imports": [
718
718
  {
719
719
  "path": "@devvit/protos",
@@ -905,7 +905,7 @@
905
905
  "format": "esm"
906
906
  },
907
907
  "src/devvit/internals/installation-settings.ts": {
908
- "bytes": 1409,
908
+ "bytes": 1308,
909
909
  "imports": [
910
910
  {
911
911
  "path": "@devvit/protos",
@@ -2557,7 +2557,7 @@
2557
2557
  "imports": [],
2558
2558
  "exports": [],
2559
2559
  "inputs": {},
2560
- "bytes": 1074702
2560
+ "bytes": 1074431
2561
2561
  },
2562
2562
  "dist/public-api.min.js": {
2563
2563
  "imports": [
@@ -2855,7 +2855,7 @@
2855
2855
  "bytesInOutput": 67
2856
2856
  },
2857
2857
  "src/devvit/internals/app-settings.ts": {
2858
- "bytesInOutput": 359
2858
+ "bytesInOutput": 295
2859
2859
  },
2860
2860
  "src/apis/ui/helpers/transformForm.ts": {
2861
2861
  "bytesInOutput": 1836
@@ -2957,7 +2957,7 @@
2957
2957
  "bytesInOutput": 1136
2958
2958
  },
2959
2959
  "src/devvit/internals/installation-settings.ts": {
2960
- "bytesInOutput": 398
2960
+ "bytesInOutput": 316
2961
2961
  },
2962
2962
  "src/devvit/internals/menu-items.ts": {
2963
2963
  "bytesInOutput": 1256
@@ -3113,7 +3113,7 @@
3113
3113
  "bytesInOutput": 107
3114
3114
  }
3115
3115
  },
3116
- "bytes": 222254
3116
+ "bytes": 222108
3117
3117
  }
3118
3118
  }
3119
3119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
3
+ "version": "0.11.18-next-2025-06-26-23-25-28-1986faeb3.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,18 +30,18 @@
30
30
  },
31
31
  "types": "./index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/metrics": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
34
- "@devvit/protos": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
35
- "@devvit/shared": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
36
- "@devvit/shared-types": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
33
+ "@devvit/metrics": "0.11.18-next-2025-06-26-23-25-28-1986faeb3.0",
34
+ "@devvit/protos": "0.11.18-next-2025-06-26-23-25-28-1986faeb3.0",
35
+ "@devvit/shared": "0.11.18-next-2025-06-26-23-25-28-1986faeb3.0",
36
+ "@devvit/shared-types": "0.11.18-next-2025-06-26-23-25-28-1986faeb3.0",
37
37
  "base64-js": "1.5.1",
38
38
  "clone-deep": "4.0.1",
39
39
  "moderndash": "4.0.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@ampproject/filesize": "4.3.0",
43
- "@devvit/repo-tools": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
44
- "@devvit/tsconfig": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
43
+ "@devvit/repo-tools": "0.11.18-next-2025-06-26-23-25-28-1986faeb3.0",
44
+ "@devvit/tsconfig": "0.11.18-next-2025-06-26-23-25-28-1986faeb3.0",
45
45
  "@microsoft/api-extractor": "7.41.0",
46
46
  "@reddit/faceplate-ui": "18.0.1",
47
47
  "@types/clone-deep": "4.0.1",
@@ -62,5 +62,5 @@
62
62
  }
63
63
  },
64
64
  "source": "./src/index.ts",
65
- "gitHead": "85d0cf724f5f9cb6a02c37acf7ed938d6b8da9ba"
65
+ "gitHead": "f6c943e15d76bd4136f13086b28dca78a2e1ce3b"
66
66
  }