terminfo.dev 3.1.0 → 3.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/serve.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminfo.dev",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Test your terminal's feature support and contribute to terminfo.dev",
5
5
  "keywords": [
6
6
  "ansi",
package/src/serve.ts CHANGED
@@ -187,6 +187,9 @@ export async function startDaemon(port = 0): Promise<void> {
187
187
 
188
188
  const filepath = register(info)
189
189
 
190
+ console.log(`\x1b[33m⚠ Security warning: this opens an HTTP server on localhost:${actualPort}`)
191
+ console.log(` Any local process can trigger terminal escape sequences via this server.`)
192
+ console.log(` Only run this on trusted machines. Stop with Ctrl+C when done.\x1b[0m\n`)
190
193
  console.log(`\x1b[1mterminfo.dev\x1b[0m daemon running\n`)
191
194
  console.log(` Terminal: \x1b[1m${terminal.name}\x1b[0m ${terminal.version}`)
192
195
  console.log(` Port: \x1b[1m${actualPort}\x1b[0m`)
@@ -195,8 +198,6 @@ export async function startDaemon(port = 0): Promise<void> {
195
198
  console.log(` Test: curl http://localhost:${actualPort}/probe`)
196
199
  console.log(` Info: curl http://localhost:${actualPort}/info`)
197
200
  console.log(` Single: curl http://localhost:${actualPort}/probe/single?id=sgr.bold`)
198
- console.log(``)
199
- console.log(`\x1b[2mPress Ctrl+C to stop.\x1b[0m`)
200
201
 
201
202
  // Clean up on exit
202
203
  const cleanup = () => {