@devvit/runtimes 0.11.0-next-2024-07-23-845bcde11.0 → 0.11.0-next-2024-07-23-b981dd5cc.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/runtimes",
|
3
|
-
"version": "0.11.0-next-2024-07-23-
|
3
|
+
"version": "0.11.0-next-2024-07-23-b981dd5cc.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -26,9 +26,9 @@
|
|
26
26
|
},
|
27
27
|
"types": "./index.d.ts",
|
28
28
|
"dependencies": {
|
29
|
-
"@devvit/protos": "0.11.0-next-2024-07-23-
|
30
|
-
"@devvit/shared-types": "0.11.0-next-2024-07-23-
|
31
|
-
"@devvit/web-worker": "0.11.0-next-2024-07-23-
|
29
|
+
"@devvit/protos": "0.11.0-next-2024-07-23-b981dd5cc.0",
|
30
|
+
"@devvit/shared-types": "0.11.0-next-2024-07-23-b981dd5cc.0",
|
31
|
+
"@devvit/web-worker": "0.11.0-next-2024-07-23-b981dd5cc.0",
|
32
32
|
"base64-js": "1.5.1",
|
33
33
|
"buffer": "6.0.3",
|
34
34
|
"cron-parser": "4.7.1",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"uuid": "9.0.0"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@devvit/eslint-config": "0.11.0-next-2024-07-23-
|
43
|
-
"@devvit/repo-tools": "0.11.0-next-2024-07-23-
|
44
|
-
"@devvit/tsconfig": "0.11.0-next-2024-07-23-
|
42
|
+
"@devvit/eslint-config": "0.11.0-next-2024-07-23-b981dd5cc.0",
|
43
|
+
"@devvit/repo-tools": "0.11.0-next-2024-07-23-b981dd5cc.0",
|
44
|
+
"@devvit/tsconfig": "0.11.0-next-2024-07-23-b981dd5cc.0",
|
45
45
|
"@types/node-localstorage": "1.3.0",
|
46
46
|
"@types/uuid": "9.0.0",
|
47
47
|
"concurrently": "7.5.0",
|
@@ -55,5 +55,5 @@
|
|
55
55
|
"directory": "dist"
|
56
56
|
},
|
57
57
|
"source": "./src/index.ts",
|
58
|
-
"gitHead": "
|
58
|
+
"gitHead": "004201de7e373b02b5f90040215877706ea49363"
|
59
59
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"runAsUser.d.ts","sourceRoot":"","sources":["../../../src/plugins/utils/runAsUser.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"runAsUser.d.ts","sourceRoot":"","sources":["../../../src/plugins/utils/runAsUser.ts"],"names":[],"mappings":"AA0DA,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAE5E"}
|
@@ -40,6 +40,16 @@ const permissions = {
|
|
40
40
|
Approve: true,
|
41
41
|
Remove: true,
|
42
42
|
},
|
43
|
+
'spot-comments': {
|
44
|
+
Post: true,
|
45
|
+
Comment: true,
|
46
|
+
},
|
47
|
+
'daily-thread': {
|
48
|
+
Post: true,
|
49
|
+
},
|
50
|
+
'fundraisers-app': {
|
51
|
+
Post: true,
|
52
|
+
},
|
43
53
|
};
|
44
54
|
export function shouldRunAsUser(appName, methodName) {
|
45
55
|
return Boolean(permissions[appName]?.[methodName]);
|
package/worker.redditapi.cjs
CHANGED
@@ -111335,6 +111335,16 @@ var permissions = {
|
|
111335
111335
|
"modqueue-nuke": {
|
111336
111336
|
Approve: true,
|
111337
111337
|
Remove: true
|
111338
|
+
},
|
111339
|
+
"spot-comments": {
|
111340
|
+
Post: true,
|
111341
|
+
Comment: true
|
111342
|
+
},
|
111343
|
+
"daily-thread": {
|
111344
|
+
Post: true
|
111345
|
+
},
|
111346
|
+
"fundraisers-app": {
|
111347
|
+
Post: true
|
111338
111348
|
}
|
111339
111349
|
};
|
111340
111350
|
function shouldRunAsUser(appName, methodName) {
|