@devvit/public-api 0.11.0-next-2024-07-12-f7e815447.0 → 0.11.0-next-2024-07-12-b7357c68f.0
Sign up to get free protection for your applications and to get access to all the features.
- package/devvit/internals/blocks/handler/useChannel.d.ts.map +1 -1
- package/devvit/internals/blocks/handler/useChannel.js +2 -2
- package/meta.json +3 -3
- package/meta.min.json +4 -4
- package/package.json +7 -7
- package/public-api.iife.js +5 -3
- package/public-api.min.js +1 -1
- package/public-api.min.js.map +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useChannel.d.ts","sourceRoot":"","sources":["../../../../../src/devvit/internals/blocks/handler/useChannel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AA+HpE,wBAAgB,UAAU,CAAC,OAAO,SAAS,SAAS,EAClD,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GACtC,gBAAgB,CAAC,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"useChannel.d.ts","sourceRoot":"","sources":["../../../../../src/devvit/internals/blocks/handler/useChannel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AA+HpE,wBAAgB,UAAU,CAAC,OAAO,SAAS,SAAS,EAClD,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GACtC,gBAAgB,CAAC,OAAO,CAAC,CAU3B"}
|
@@ -120,8 +120,8 @@ _a = ChannelHook, _ChannelHook_context = new WeakMap(), _ChannelHook_debug = new
|
|
120
120
|
});
|
121
121
|
};
|
122
122
|
export function useChannel(opts) {
|
123
|
-
if (!opts.name || /[^a-zA-Z0-
|
124
|
-
throw Error(
|
123
|
+
if (!opts.name || /[^a-zA-Z0-9_]/.test(opts.name))
|
124
|
+
throw Error(`useChannel error: The name "${opts.name}" you provided for the hook is invalid. Valid names can only contain letters, numbers, and underscores (_).`);
|
125
125
|
// allow RealtimeEffectHandler to compute hook ID. maintain compatibility with
|
126
126
|
// realtimeChannelToHookID().
|
127
127
|
const id = `useChannel:${opts.name}`;
|
package/meta.json
CHANGED
@@ -12331,7 +12331,7 @@
|
|
12331
12331
|
"format": "esm"
|
12332
12332
|
},
|
12333
12333
|
"src/devvit/internals/blocks/handler/useChannel.ts": {
|
12334
|
-
"bytes":
|
12334
|
+
"bytes": 5738,
|
12335
12335
|
"imports": [
|
12336
12336
|
{
|
12337
12337
|
"path": "../protos/dist/index.js",
|
@@ -14503,7 +14503,7 @@
|
|
14503
14503
|
"bytesInOutput": 2049
|
14504
14504
|
},
|
14505
14505
|
"src/devvit/internals/blocks/handler/useChannel.ts": {
|
14506
|
-
"bytesInOutput":
|
14506
|
+
"bytesInOutput": 5221
|
14507
14507
|
},
|
14508
14508
|
"src/devvit/internals/blocks/handler/RenderContext.ts": {
|
14509
14509
|
"bytesInOutput": 4936
|
@@ -14614,7 +14614,7 @@
|
|
14614
14614
|
"bytesInOutput": 4450
|
14615
14615
|
}
|
14616
14616
|
},
|
14617
|
-
"bytes":
|
14617
|
+
"bytes": 15056522
|
14618
14618
|
}
|
14619
14619
|
}
|
14620
14620
|
}
|
package/meta.min.json
CHANGED
@@ -3572,7 +3572,7 @@
|
|
3572
3572
|
"format": "esm"
|
3573
3573
|
},
|
3574
3574
|
"src/devvit/internals/blocks/handler/useChannel.ts": {
|
3575
|
-
"bytes":
|
3575
|
+
"bytes": 5738,
|
3576
3576
|
"imports": [
|
3577
3577
|
{
|
3578
3578
|
"path": "@devvit/protos",
|
@@ -4725,7 +4725,7 @@
|
|
4725
4725
|
"imports": [],
|
4726
4726
|
"exports": [],
|
4727
4727
|
"inputs": {},
|
4728
|
-
"bytes":
|
4728
|
+
"bytes": 1180786
|
4729
4729
|
},
|
4730
4730
|
"dist/public-api.min.js": {
|
4731
4731
|
"imports": [
|
@@ -5432,7 +5432,7 @@
|
|
5432
5432
|
"bytesInOutput": 367
|
5433
5433
|
},
|
5434
5434
|
"src/devvit/internals/blocks/handler/useChannel.ts": {
|
5435
|
-
"bytesInOutput":
|
5435
|
+
"bytesInOutput": 2975
|
5436
5436
|
},
|
5437
5437
|
"src/devvit/internals/blocks/handler/useInterval.ts": {
|
5438
5438
|
"bytesInOutput": 1184
|
@@ -5537,7 +5537,7 @@
|
|
5537
5537
|
"bytesInOutput": 2135
|
5538
5538
|
}
|
5539
5539
|
},
|
5540
|
-
"bytes":
|
5540
|
+
"bytes": 251356
|
5541
5541
|
}
|
5542
5542
|
}
|
5543
5543
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/public-api",
|
3
|
-
"version": "0.11.0-next-2024-07-12-
|
3
|
+
"version": "0.11.0-next-2024-07-12-b7357c68f.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
},
|
31
31
|
"types": "./index.d.ts",
|
32
32
|
"dependencies": {
|
33
|
-
"@devvit/protos": "0.11.0-next-2024-07-12-
|
34
|
-
"@devvit/shared-types": "0.11.0-next-2024-07-12-
|
33
|
+
"@devvit/protos": "0.11.0-next-2024-07-12-b7357c68f.0",
|
34
|
+
"@devvit/shared-types": "0.11.0-next-2024-07-12-b7357c68f.0",
|
35
35
|
"base64-js": "1.5.1",
|
36
36
|
"clone-deep": "4.0.1",
|
37
37
|
"core-js": "3.27.2",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@ampproject/filesize": "4.3.0",
|
42
|
-
"@devvit/eslint-config": "0.11.0-next-2024-07-12-
|
43
|
-
"@devvit/repo-tools": "0.11.0-next-2024-07-12-
|
44
|
-
"@devvit/tsconfig": "0.11.0-next-2024-07-12-
|
42
|
+
"@devvit/eslint-config": "0.11.0-next-2024-07-12-b7357c68f.0",
|
43
|
+
"@devvit/repo-tools": "0.11.0-next-2024-07-12-b7357c68f.0",
|
44
|
+
"@devvit/tsconfig": "0.11.0-next-2024-07-12-b7357c68f.0",
|
45
45
|
"@microsoft/api-extractor": "7.41.0",
|
46
46
|
"@reddit/faceplate-ui": "11.3.3",
|
47
47
|
"@types/clone-deep": "4.0.1",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
}
|
65
65
|
},
|
66
66
|
"source": "./src/index.ts",
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "9e094672572731dd9e45ed6547038276d83425e6"
|
68
68
|
}
|