@devvit/build-pack 0.12.0-next-2025-08-12-20-19-11-8d352335b.0 → 0.12.0-next-2025-08-13-18-11-35-04294c99a.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":"AAgDA,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,
|
|
1
|
+
{"version":3,"file":"dependency-spec-util.d.ts","sourceRoot":"","sources":["../../src/esbuild/dependency-spec-util.ts"],"names":[],"mappings":"AAgDA,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,CA8GhB"}
|
|
@@ -38,9 +38,7 @@ export function createDependencySpec(actorSpec, config, namespace) {
|
|
|
38
38
|
use(spec, ModlogDefinition);
|
|
39
39
|
if (config.permissions.reddit.asUser.length > 0) {
|
|
40
40
|
use(spec, UserActionsDefinition);
|
|
41
|
-
|
|
42
|
-
permissions.asUserScopes.push(...config.permissions.reddit.asUser);
|
|
43
|
-
}
|
|
41
|
+
permissions.asUserScopes.push(...config.permissions.reddit.asUser);
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
if (config.permissions.redis)
|
|
@@ -26,8 +26,7 @@ function configurePermissions(permissions) {
|
|
|
26
26
|
realtime: permissions.realtime,
|
|
27
27
|
redditAPI: permissions.reddit.enable,
|
|
28
28
|
modLog: permissions.reddit.scope === 'moderator',
|
|
29
|
-
|
|
30
|
-
userActions: !!permissions.reddit.asUser.length,
|
|
29
|
+
userActions: permissions.reddit.asUser.length > 0 ? { scopes: permissions.reddit.asUser } : false,
|
|
31
30
|
redis: permissions.redis,
|
|
32
31
|
});
|
|
33
32
|
}
|
|
@@ -44,7 +43,7 @@ function configurePost(name, post) {
|
|
|
44
43
|
const entry = splash?.entry ? post.entrypoints[splash.entry] : undefined;
|
|
45
44
|
return (
|
|
46
45
|
// Align to `submitCustomPost()`.
|
|
47
|
-
Devvit.createElement(Splash, { appDisplayName: splash?.appDisplayName ?? name, appIconUri: splash?.appIconUri, backgroundUri: splash?.backgroundUri ?? backgroundUrl, buttonLabel: splash?.buttonLabel, description: splash?.description, entryUri: entry?.entry ?? defaultEntrypoint.entry, height: entry?.height ?? defaultEntrypoint.height
|
|
46
|
+
Devvit.createElement(Splash, { appDisplayName: splash?.appDisplayName ?? name, appIconUri: splash?.appIconUri, backgroundUri: splash?.backgroundUri ?? backgroundUrl, buttonLabel: splash?.buttonLabel, description: splash?.description, entryUri: entry?.entry ?? defaultEntrypoint.entry, heading: splash?.title, height: entry?.height ?? defaultEntrypoint.height }));
|
|
48
47
|
},
|
|
49
48
|
// to-do: vary dynamically on entrypoint.
|
|
50
49
|
height: defaultEntrypoint.height,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/build-pack",
|
|
3
|
-
"version": "0.12.0-next-2025-08-
|
|
3
|
+
"version": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"types": "./dist/index.d.ts",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@devvit/protos": "0.12.0-next-2025-08-
|
|
35
|
-
"@devvit/shared-types": "0.12.0-next-2025-08-
|
|
36
|
-
"@devvit/splash": "0.12.0-next-2025-08-
|
|
34
|
+
"@devvit/protos": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
35
|
+
"@devvit/shared-types": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
36
|
+
"@devvit/splash": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
37
37
|
"esbuild": "0.23.0",
|
|
38
38
|
"rxjs": "7.8.1",
|
|
39
39
|
"tsv": "0.2.0",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@devvit/shared": "*"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@devvit/public-api": "0.12.0-next-2025-08-
|
|
48
|
-
"@devvit/repo-tools": "0.12.0-next-2025-08-
|
|
49
|
-
"@devvit/scheduler": "0.12.0-next-2025-08-
|
|
50
|
-
"@devvit/server": "0.12.0-next-2025-08-
|
|
51
|
-
"@devvit/shared": "0.12.0-next-2025-08-
|
|
52
|
-
"@devvit/tsconfig": "0.12.0-next-2025-08-
|
|
47
|
+
"@devvit/public-api": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
48
|
+
"@devvit/repo-tools": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
49
|
+
"@devvit/scheduler": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
50
|
+
"@devvit/server": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
51
|
+
"@devvit/shared": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
52
|
+
"@devvit/tsconfig": "0.12.0-next-2025-08-13-18-11-35-04294c99a.0",
|
|
53
53
|
"@types/tsv": "0.2.1",
|
|
54
54
|
"eslint": "9.11.1",
|
|
55
55
|
"vitest": "1.6.1"
|
|
56
56
|
},
|
|
57
57
|
"source": "./src/index.ts",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "42e314095fbc04613e6f3532768c423d2fdaea8a"
|
|
59
59
|
}
|