topazcube 0.0.2 → 0.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "topazcube",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "TopazCube is a real-time collaborative document editing, and multiplayer game library.",
5
5
  "author": "László Matuska @BitOfGold",
6
6
  "license": "Apache-2.0",
@@ -32,8 +32,15 @@
32
32
  ],
33
33
  "sideEffects": false,
34
34
  "exports": {
35
- "import": "./dist/topazcube.js",
36
- "require": "./dist/topazcube.cjs"
35
+ ".": {
36
+ "import": "./dist/topazcube.js"
37
+ },
38
+ "./client": {
39
+ "import": "./dist/topazcube.js"
40
+ },
41
+ "./server": {
42
+ "import": "./src/server.js"
43
+ }
37
44
  },
38
45
  "type": "module",
39
46
  "scripts": {
@@ -42,12 +49,13 @@
42
49
  "preview": "vite preview --host 0.0.0.0 --port 8800"
43
50
  },
44
51
  "devDependencies": {
45
- "vite": "^6.2.0"
52
+ "vite": "^6.3.2"
46
53
  },
47
54
  "dependencies": {
48
- "@msgpack/msgpack": "^3.1.0",
55
+ "@msgpack/msgpack": "^3.1.1",
49
56
  "fast-json-patch": "^3.1.1",
50
57
  "mongodb": "^6.15.0",
58
+ "util": "^0.12.5",
51
59
  "ws": "^8.18.1"
52
60
  }
53
61
  }
package/src/topazcube.js CHANGED
@@ -1,3 +1,2 @@
1
1
  import TopazCubeClient from "./client.js"
2
- import TopazCubeServer from "./server.js"
3
- export { TopazCubeClient, TopazCubeServer }
2
+ export default TopazCubeClient