@elefunc/send 0.1.10 → 0.1.11

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": "@elefunc/send",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Browser-compatible file transfer CLI and TUI powered by Bun, WebRTC, and Rezi.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -399,7 +399,7 @@ export class SendSession {
399
399
  this.localId = cleanLocalId(config.localId)
400
400
  this.room = cleanRoom(config.room)
401
401
  this.name = cleanName(config.name ?? fallbackName)
402
- this.saveDir = resolve(config.saveDir ?? resolve(process.cwd(), "downloads"))
402
+ this.saveDir = resolve(config.saveDir ?? resolve(process.cwd()))
403
403
  this.peerSelectionMemory = config.peerSelectionMemory ?? new Map()
404
404
  this.autoAcceptIncoming = !!config.autoAcceptIncoming
405
405
  this.autoSaveIncoming = !!config.autoSaveIncoming
package/src/index.ts CHANGED
@@ -99,7 +99,7 @@ export const sessionConfigFrom = (options: Record<string, unknown>, defaults: {
99
99
  return {
100
100
  room,
101
101
  ...self,
102
- saveDir: resolve(`${options.saveDir ?? process.env.SEND_SAVE_DIR ?? "downloads"}`),
102
+ saveDir: resolve(`${options.saveDir ?? process.env.SEND_SAVE_DIR ?? "."}`),
103
103
  autoAcceptIncoming: accept ?? defaults.autoAcceptIncoming ?? false,
104
104
  autoSaveIncoming: save ?? defaults.autoSaveIncoming ?? false,
105
105
  turnUrls: splitList(options.turnUrl ?? process.env.SEND_TURN_URL),
package/src/tui/app.ts CHANGED
@@ -112,8 +112,8 @@ const METRIC_BORDER_STYLE = { fg: rgb(20, 25, 32) } as const
112
112
  const PRIMARY_TEXT_STYLE = { fg: rgb(255, 255, 255) } as const
113
113
  const HEADING_TEXT_STYLE = { fg: rgb(255, 255, 255), bold: true } as const
114
114
  const DEFAULT_WEB_URL = "https://send.rt.ht/"
115
- const DEFAULT_SAVE_DIR = resolve(process.cwd(), "downloads")
116
- const ABOUT_ELEFUNC_URL = "https://elefunc.com"
115
+ const DEFAULT_SAVE_DIR = resolve(process.cwd())
116
+ const ABOUT_ELEFUNC_URL = "https://elefunc.com/send"
117
117
  const ABOUT_TITLE = "About Send"
118
118
  const ABOUT_INTRO = "Peer-to-Peer Transfers – Web & CLI"
119
119
  const ABOUT_SUMMARY = "Join the same room, see who is there, and offer files directly to selected peers."
@@ -744,8 +744,8 @@ const renderAboutModal = (state: TuiState, actions: TuiActions) => {
744
744
  actions: [
745
745
  ui.link({
746
746
  id: "about-elefunc-link",
747
- label: "elefunc.com",
748
- accessibleLabel: "Open Elefunc website",
747
+ label: "elefunc.com/send",
748
+ accessibleLabel: "Open Elefunc Send page",
749
749
  url: ABOUT_ELEFUNC_URL,
750
750
  }),
751
751
  actionButton("close-about", "Close", actions.closeAbout, "primary"),