@elefunc/send 0.1.9 → 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 +1 -1
- package/src/core/session.ts +1 -1
- package/src/index.ts +1 -1
- package/src/tui/app.ts +5 -5
package/package.json
CHANGED
package/src/core/session.ts
CHANGED
|
@@ -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()
|
|
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 ?? "
|
|
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,10 +112,10 @@ 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()
|
|
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
|
-
const ABOUT_INTRO = "Peer-to-Peer Transfers
|
|
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."
|
|
120
120
|
const ABOUT_RUNTIME = "Send uses lightweight signaling to discover peers and negotiate WebRTC. Files move over WebRTC data channels, using direct paths when possible and TURN relay when needed."
|
|
121
121
|
const ABOUT_CLI_LABEL = "bunx @elefunc/send@latest"
|
|
@@ -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
|
|
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"),
|