Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmodem/demo is accidentally uploaded to npm package #1496

Closed
mgenware opened this issue Jun 6, 2018 · 6 comments
Closed

zmodem/demo is accidentally uploaded to npm package #1496

mgenware opened this issue Jun 6, 2018 · 6 comments
Labels
help wanted type/debt Technical debt that could slow us down in the long run
Milestone

Comments

@mgenware
Copy link

mgenware commented Jun 6, 2018

Thanks for this great project. I ran into this when integrating xterm.js to a webpack project.

Failed to compile.

./node_modules/xterm/dist/addons/zmodem/demo/app.js
Module not found: Can't resolve 'express-ws'

Seems the express-ws module is only needed in a demo project, which was accidentally uploaded to npm.

screen shot 2018-06-06 at 5 49 22 pm

Details

  • Browser and browser version:
    Node v9

  • OS version:
    macOS 10.13

  • xterm.js version:
    Latest (3.4.1)

Steps to reproduce

  1. Install xterm.js (yarn add xterm)
  2. ./node_modules/xterm/dist/addons/zmodem/demo exists
@eeeeethan2333
Copy link

I also encountered this issue!

@theflyingape
Copy link
Contributor

A tangential point: express-ws has a stale dependency to an older ws that has a DoS vulnerability. Can the demo implement latest ws instead?

@Tyriar
Copy link
Member

Tyriar commented Jun 9, 2018

@theflyingape well it's just a dev dependency so i don't see that as such a bit issue, a PR to upgrade the dep is welcome though provided it's well tested.

@Tyriar
Copy link
Member

Tyriar commented Jun 9, 2018

This issue is already fixed, update to xterm@3.4.0:

❯ ls ./node_modules/xterm/src/addons/zmodem
package.json    tsconfig.json   zmodem.ts

❯ ls ./node_modules/xterm/lib/addons/zmodem
package.json    zmodem.d.ts     zmodem.js.map
tsconfig.json   zmodem.js

@Tyriar Tyriar closed this as completed Jun 9, 2018
@Tyriar
Copy link
Member

Tyriar commented Jun 9, 2018

Actually it's not, src and lib are fine but dist is still a problem.

@Tyriar Tyriar reopened this Jun 9, 2018
@Tyriar Tyriar added help wanted type/debt Technical debt that could slow us down in the long run labels Jun 9, 2018
@Tyriar
Copy link
Member

Tyriar commented Apr 9, 2019

This is fixed, I removed the zmodem demo recently. Also the addon will be removed as part of #1128, we're hoping a community member who needs this will pick it up and maintain a new addon.

@Tyriar Tyriar closed this as completed Apr 9, 2019
@Tyriar Tyriar added this to the 3.13.0 milestone Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type/debt Technical debt that could slow us down in the long run
Projects
None yet
Development

No branches or pull requests

4 participants