xanix 1.0.8 → 1.0.9

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.
@@ -23,6 +23,8 @@ ${code}
23
23
  window.$RefreshReg$ = RefreshRuntime.register;
24
24
  window.$RefreshSig$ = () => (type) => type;
25
25
  const ws = new WebSocket("ws://localhost:8080");
26
+
27
+
26
28
  ws.onmessage = async (event) => {
27
29
  const files = JSON.parse(event.data);
28
30
 
@@ -10,8 +10,6 @@ export const getClientRuntimeFile = () => {
10
10
  return path.join(__dirname, "../../../client-runtime.js");
11
11
  };
12
12
  export const getClientRuntimeFileName = (mode) => {
13
- if (mode === "development") {
14
- return "xanix-runtime";
15
- }
16
- return uid("xanix-runtime", 32);
13
+ let n = "xanix-runtime";
14
+ return mode === "development" ? n : uid(n, 16);
17
15
  };
package/dist/navigate.js CHANGED
@@ -3,12 +3,8 @@ export const navigate = (path, replace = false) => {
3
3
  detail: { path, replace },
4
4
  }));
5
5
  };
6
- export const back = () => {
7
- window.history.back();
8
- };
9
- export const forward = () => {
10
- window.history.forward();
11
- };
6
+ export const back = () => window.history.back();
7
+ export const forward = () => window.history.forward();
12
8
  export const preload = async (path) => {
13
9
  window.dispatchEvent(new CustomEvent(XANIX_PRELOAD, { detail: { path } }));
14
10
  };
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "xanix",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
- "bin": "./dist/bin/index.js",
8
+ "bin": {
9
+ "xanix": "dist/bin/index.js"
10
+ },
9
11
  "type": "module",
10
12
  "files": [
11
13
  "dist"
@@ -22,10 +24,6 @@
22
24
  "./runtime": {
23
25
  "import": "./dist/server/runtime/index.js",
24
26
  "require": "./dist/server/runtime/index.js"
25
- },
26
- "./BaseDocument": {
27
- "types": "./dist/components/BaseDocument.d.ts",
28
- "import": "./dist/components/BaseDocument.js"
29
27
  }
30
28
  },
31
29
  "scripts": {
@@ -38,16 +36,12 @@
38
36
  "dependencies": {
39
37
  "@babel/generator": "^8.0.0",
40
38
  "@babel/parser": "^8.0.4",
41
- "@babel/preset-react": "^8.0.1",
42
- "@babel/preset-typescript": "^8.0.1",
43
39
  "@babel/traverse": "^8.0.4",
44
40
  "@rollup/plugin-alias": "^6.0.0",
45
- "@rollup/plugin-babel": "^7.1.0",
46
41
  "@rollup/plugin-commonjs": "^29.0.3",
47
42
  "@rollup/plugin-json": "^6.1.0",
48
43
  "@rollup/plugin-node-resolve": "^16.0.3",
49
44
  "@rollup/plugin-replace": "^6.0.3",
50
- "@rollup/plugin-typescript": "^12.3.0",
51
45
  "@rollup/plugin-url": "^8.0.2",
52
46
  "commander": "^15.0.0",
53
47
  "dotenv": "^17.4.2",