@devvit/realtime 0.11.20-next-2025-07-23-23-09-41-6516ef08b.0 → 0.11.20-next-2025-07-24-16-29-19-3f98b8c68.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.
- package/{index-browser.d.ts → client.d.ts} +1 -1
- package/client.d.ts.map +1 -0
- package/clientImportInServerCodePanic.d.ts +15 -0
- package/clientImportInServerCodePanic.d.ts.map +1 -0
- package/clientImportInServerCodePanic.js +15 -0
- package/package.json +8 -11
- package/{index.d.ts → server.d.ts} +1 -1
- package/server.d.ts.map +1 -0
- package/serverImportInClientCodePanic.d.ts +15 -0
- package/serverImportInClientCodePanic.d.ts.map +1 -0
- package/serverImportInClientCodePanic.js +15 -0
- package/index-browser.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- /package/{index-browser.js → client.js} +0 -0
- /package/{index.js → server.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { connectRealtime } from './realtime.js';
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=client.d.ts.map
|
package/client.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hey! If you're seeing this, you're probably trying to run client code in the
|
|
3
|
+
* server context, or you have your server build environment set up incorrectly.
|
|
4
|
+
* To fix this:
|
|
5
|
+
* 1) Check that you're not importing client code in your server files. If you
|
|
6
|
+
* are, you should import from `@devvit/web/server` instead of
|
|
7
|
+
* `@devvit/web/client`.
|
|
8
|
+
* 2) Ensure that your server's tsconfig & build environment is set up correctly
|
|
9
|
+
* - specifically, make sure you do NOT set `compilerOptions.customConditions`
|
|
10
|
+
* to `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
|
|
11
|
+
* bundler you're using (esbuild, vite, etc.) is bundling the server code
|
|
12
|
+
* for a Node environment, and not a web browser!
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=clientImportInServerCodePanic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientImportInServerCodePanic.d.ts","sourceRoot":"","sources":["../src/clientImportInServerCodePanic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hey! If you're seeing this, you're probably trying to run client code in the
|
|
3
|
+
* server context, or you have your server build environment set up incorrectly.
|
|
4
|
+
* To fix this:
|
|
5
|
+
* 1) Check that you're not importing client code in your server files. If you
|
|
6
|
+
* are, you should import from `@devvit/web/server` instead of
|
|
7
|
+
* `@devvit/web/client`.
|
|
8
|
+
* 2) Ensure that your server's tsconfig & build environment is set up correctly
|
|
9
|
+
* - specifically, make sure you do NOT set `compilerOptions.customConditions`
|
|
10
|
+
* to `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
|
|
11
|
+
* bundler you're using (esbuild, vite, etc.) is bundling the server code
|
|
12
|
+
* for a Node environment, and not a web browser!
|
|
13
|
+
*/
|
|
14
|
+
console.error("Can't import client code in the server!");
|
|
15
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/realtime",
|
|
3
|
-
"version": "0.11.20-next-2025-07-
|
|
3
|
+
"version": "0.11.20-next-2025-07-24-16-29-19-3f98b8c68.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://developers.reddit.com/"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"main": "./index.js",
|
|
11
10
|
"scripts": {
|
|
12
11
|
"build": "tsc",
|
|
13
12
|
"clean": "rm -rf .turbo coverage dist",
|
|
@@ -19,20 +18,19 @@
|
|
|
19
18
|
"test": "yarn test:types && yarn lint",
|
|
20
19
|
"test:types": "tsc --noEmit"
|
|
21
20
|
},
|
|
22
|
-
"types": "./index.d.ts",
|
|
23
21
|
"dependencies": {
|
|
24
|
-
"@devvit/protos": "0.11.20-next-2025-07-
|
|
25
|
-
"@devvit/shared": "0.11.20-next-2025-07-
|
|
22
|
+
"@devvit/protos": "0.11.20-next-2025-07-24-16-29-19-3f98b8c68.0",
|
|
23
|
+
"@devvit/shared": "0.11.20-next-2025-07-24-16-29-19-3f98b8c68.0"
|
|
26
24
|
},
|
|
27
25
|
"peerDependencies": {
|
|
28
26
|
"@devvit/client": "*",
|
|
29
27
|
"@devvit/server": "*"
|
|
30
28
|
},
|
|
31
29
|
"devDependencies": {
|
|
32
|
-
"@devvit/client": "0.11.20-next-2025-07-
|
|
33
|
-
"@devvit/repo-tools": "0.11.20-next-2025-07-
|
|
34
|
-
"@devvit/server": "0.11.20-next-2025-07-
|
|
35
|
-
"@devvit/tsconfig": "0.11.20-next-2025-07-
|
|
30
|
+
"@devvit/client": "0.11.20-next-2025-07-24-16-29-19-3f98b8c68.0",
|
|
31
|
+
"@devvit/repo-tools": "0.11.20-next-2025-07-24-16-29-19-3f98b8c68.0",
|
|
32
|
+
"@devvit/server": "0.11.20-next-2025-07-24-16-29-19-3f98b8c68.0",
|
|
33
|
+
"@devvit/tsconfig": "0.11.20-next-2025-07-24-16-29-19-3f98b8c68.0",
|
|
36
34
|
"eslint": "9.11.1",
|
|
37
35
|
"typescript": "5.8.3",
|
|
38
36
|
"vitest": "1.6.1"
|
|
@@ -40,6 +38,5 @@
|
|
|
40
38
|
"publishConfig": {
|
|
41
39
|
"directory": "dist"
|
|
42
40
|
},
|
|
43
|
-
"
|
|
44
|
-
"gitHead": "721cb1291e4112ba5f964aa7d821ce19f7784963"
|
|
41
|
+
"gitHead": "b3418c8f7766ec7945a1a79def9b4930c884f3fe"
|
|
45
42
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { realtime, type RealtimeClient } from './RealtimeClient.js';
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=server.d.ts.map
|
package/server.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hey! If you're seeing this, you're probably trying to run server code in the
|
|
3
|
+
* client context, or you have your client build environment set up incorrectly.
|
|
4
|
+
* To fix this:
|
|
5
|
+
* 1) Check that you're not importing server code in your client files. If you
|
|
6
|
+
* are, you should import from `@devvit/web/client` instead of
|
|
7
|
+
* `@devvit/web/server`.
|
|
8
|
+
* 2) Ensure that your client's tsconfig & build environment is set up correctly
|
|
9
|
+
* - specifically, make sure you set `compilerOptions.customConditions` to
|
|
10
|
+
* `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
|
|
11
|
+
* bundler you're using (esbuild, vite, etc.) is bundling the client code
|
|
12
|
+
* for a web browser, and not a Node environment!
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=serverImportInClientCodePanic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverImportInClientCodePanic.d.ts","sourceRoot":"","sources":["../src/serverImportInClientCodePanic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hey! If you're seeing this, you're probably trying to run server code in the
|
|
3
|
+
* client context, or you have your client build environment set up incorrectly.
|
|
4
|
+
* To fix this:
|
|
5
|
+
* 1) Check that you're not importing server code in your client files. If you
|
|
6
|
+
* are, you should import from `@devvit/web/client` instead of
|
|
7
|
+
* `@devvit/web/server`.
|
|
8
|
+
* 2) Ensure that your client's tsconfig & build environment is set up correctly
|
|
9
|
+
* - specifically, make sure you set `compilerOptions.customConditions` to
|
|
10
|
+
* `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
|
|
11
|
+
* bundler you're using (esbuild, vite, etc.) is bundling the client code
|
|
12
|
+
* for a web browser, and not a Node environment!
|
|
13
|
+
*/
|
|
14
|
+
console.error("Can't import server code in the client!");
|
|
15
|
+
export {};
|
package/index-browser.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-browser.d.ts","sourceRoot":"","sources":["../src/index-browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
File without changes
|
/package/{index.js → server.js}
RENAMED
|
File without changes
|