groupchat 0.0.2 → 0.0.4

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.
@@ -4,7 +4,7 @@ import {
4
4
  isAuthenticated,
5
5
  login,
6
6
  logout
7
- } from "./chunk-ZYY5PLDM.js";
7
+ } from "./chunk-XSUJD2OK.js";
8
8
 
9
9
  // src/components/App.tsx
10
10
  import { useState as useState5, useEffect as useEffect7, useCallback as useCallback4, useRef as useRef3 } from "react";
@@ -36,7 +36,7 @@ async function hasValidToken() {
36
36
 
37
37
  // src/lib/config.ts
38
38
  import { config as loadEnv } from "dotenv";
39
- if (process.env.NODE_ENV !== "production") {
39
+ if (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test") {
40
40
  loadEnv();
41
41
  }
42
42
  var DEFAULT_CONFIG = {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "./chunk-ZYY5PLDM.js";
2
+ import "./chunk-XSUJD2OK.js";
3
3
 
4
4
  // src/index.ts
5
5
  import WebSocket from "ws";
@@ -164,7 +164,7 @@ function UpdatePrompt({ updateInfo, onComplete }) {
164
164
  // package.json
165
165
  var package_default = {
166
166
  name: "groupchat",
167
- version: "0.0.2",
167
+ version: "0.0.4",
168
168
  description: "CLI chat client for Groupchat",
169
169
  type: "module",
170
170
  main: "./dist/index.js",
@@ -251,7 +251,7 @@ async function startChat() {
251
251
  await showUpdatePrompt(updateInfo);
252
252
  }
253
253
  process.stdout.write("\x1B[2J\x1B[0f");
254
- const { App } = await import("./App-LF2NVQZQ.js");
254
+ const { App } = await import("./App-NG3MOIVV.js");
255
255
  const { waitUntilExit } = render(React2.createElement(App), {
256
256
  exitOnCtrlC: false
257
257
  // We handle Ctrl+C manually
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groupchat",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "CLI chat client for Groupchat",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",