@devvit/build-pack 0.11.18-next-2025-06-17-14-32-51-677103e39.0 → 0.11.18-next-2025-06-17-16-32-06-0435ccdf4.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":"dependency-spec-util.d.ts","sourceRoot":"","sources":["../../src/esbuild/dependency-spec-util.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC9B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,EACzC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC7B,cAAc,CA2EhB"}
1
+ {"version":3,"file":"dependency-spec-util.d.ts","sourceRoot":"","sources":["../../src/esbuild/dependency-spec-util.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC9B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,EACzC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC7B,cAAc,CA4EhB"}
@@ -16,7 +16,7 @@ export function createDependencySpec(actorSpec, config, namespace) {
16
16
  provides: [],
17
17
  uses: [],
18
18
  };
19
- if (config.permissions.http.enabled) {
19
+ if (config.permissions.http.enable) {
20
20
  use(spec, HTTPDefinition);
21
21
  spec.permissions.push({
22
22
  requestedFetchDomains: normalizeDomains(config.permissions.http.allowedDomains),
@@ -30,7 +30,7 @@ export function createDependencySpec(actorSpec, config, namespace) {
30
30
  }
31
31
  if (config.permissions.realtime)
32
32
  use(spec, RealtimeDefinition);
33
- if (config.permissions.reddit.enabled) {
33
+ if (config.permissions.reddit.enable) {
34
34
  use(spec, FlairDefinition, GraphQLDefinition, LinksAndCommentsDefinition, ListingsDefinition, ModerationDefinition, ModNoteDefinition, NewModmailDefinition, PrivateMessagesDefinition, SubredditsDefinition, UsersDefinition, WidgetsDefinition, WikiDefinition);
35
35
  if (config.permissions.reddit.scope === 'moderator')
36
36
  use(spec, ModlogDefinition);
@@ -41,7 +41,7 @@ export function createDependencySpec(actorSpec, config, namespace) {
41
41
  use(spec, RedisAPIDefinition);
42
42
  if (config.post) {
43
43
  provide(spec, CustomPostDefinition, UIEventHandlerDefinition);
44
- if (config.post.create.menu.enable)
44
+ if (config.post.create.menu.enable || config.blocks?.menu.enable)
45
45
  provide(spec, ContextActionDefinition);
46
46
  if (config.post.create.onInstall)
47
47
  provide(spec, OnAppInstallDefinition);
@@ -1,3 +1,3 @@
1
- export default Devvit;
2
- import { Devvit } from '@devvit/public-api';
1
+ declare const _default: typeof import("@devvit/public-api").Devvit;
2
+ export default _default;
3
3
  //# sourceMappingURL=blocks.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.template.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/blocks.template.js"],"names":[],"mappings":";uBACuB,oBAAoB"}
1
+ {"version":3,"file":"blocks.template.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/blocks.template.js"],"names":[],"mappings":""}
@@ -1,9 +1,6 @@
1
1
  /** @import {AppConfig} from '@devvit/shared-types/schemas/config-file.v1.js' */
2
- import { Devvit } from '@devvit/public-api';
3
2
  import { defineConfig } from '@devvit/server';
4
3
  // @ts-expect-error no type.
5
4
  // eslint-disable-next-line no-undef
6
- /** @type {AppConfig | undefined} */ const config = __devvit__?.config;
7
- if (config)
8
- defineConfig(config);
9
- export default Devvit;
5
+ /** @type {AppConfig} */ const config = __devvit__.config;
6
+ export default defineConfig(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/build-pack",
3
- "version": "0.11.18-next-2025-06-17-14-32-51-677103e39.0",
3
+ "version": "0.11.18-next-2025-06-17-16-32-06-0435ccdf4.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "types": "./index.d.ts",
25
25
  "dependencies": {
26
- "@devvit/protos": "0.11.18-next-2025-06-17-14-32-51-677103e39.0",
27
- "@devvit/shared-types": "0.11.18-next-2025-06-17-14-32-51-677103e39.0",
26
+ "@devvit/protos": "0.11.18-next-2025-06-17-16-32-06-0435ccdf4.0",
27
+ "@devvit/shared-types": "0.11.18-next-2025-06-17-16-32-06-0435ccdf4.0",
28
28
  "esbuild": "0.23.0",
29
29
  "rxjs": "7.8.1",
30
30
  "tsv": "0.2.0",
@@ -35,10 +35,10 @@
35
35
  "@devvit/server": "*"
36
36
  },
37
37
  "devDependencies": {
38
- "@devvit/public-api": "0.11.18-next-2025-06-17-14-32-51-677103e39.0",
39
- "@devvit/repo-tools": "0.11.18-next-2025-06-17-14-32-51-677103e39.0",
40
- "@devvit/server": "0.11.18-next-2025-06-17-14-32-51-677103e39.0",
41
- "@devvit/tsconfig": "0.11.18-next-2025-06-17-14-32-51-677103e39.0",
38
+ "@devvit/public-api": "0.11.18-next-2025-06-17-16-32-06-0435ccdf4.0",
39
+ "@devvit/repo-tools": "0.11.18-next-2025-06-17-16-32-06-0435ccdf4.0",
40
+ "@devvit/server": "0.11.18-next-2025-06-17-16-32-06-0435ccdf4.0",
41
+ "@devvit/tsconfig": "0.11.18-next-2025-06-17-16-32-06-0435ccdf4.0",
42
42
  "@types/tsv": "0.2.1",
43
43
  "eslint": "9.11.1",
44
44
  "vitest": "1.6.1"
@@ -47,5 +47,5 @@
47
47
  "directory": "dist"
48
48
  },
49
49
  "source": "./src/index.ts",
50
- "gitHead": "c70f9b9484ff7f561c6ea3f951db4828765ae5f2"
50
+ "gitHead": "68d23af8e540423a1d7709fab6d44482ddae2431"
51
51
  }