webssh2_client 2.3.0 → 2.4.0
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/README.md +1 -1
- package/client/index.js +11 -9
- package/client/public/client.htm +1 -1
- package/client/public/webssh2.bundle.js +2 -2
- package/client/public/webssh2.css +2 -2
- package/client/public/xterm.css +1 -1
- package/index.d.ts +9 -6
- package/index.js +21 -21
- package/package.json +16 -18
- package/client/index.d.ts +0 -6
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://github.com/billchurch/webssh2_client/actions/workflows/ci.yml)
|
|
4
4
|
[](https://github.com/billchurch/webssh2_client/actions/workflows/release.yml)
|
|
5
5
|
|
|
6
|
-

|
|
7
7
|
|
|
8
8
|
WebSSH2 Client is an HTML5 web-based terminal emulator and SSH client component. It uses WebSockets to communicate with a WebSSH2 server, which in turn uses SSH2 to connect to SSH servers.
|
|
9
9
|
|
package/client/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
// client
|
|
2
2
|
// client/index.ts
|
|
3
|
-
import path from 'path'
|
|
4
|
-
import { readFileSync } from 'fs'
|
|
5
|
-
import { fileURLToPath } from 'url'
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url)
|
|
7
|
-
const __dirname = path.dirname(__filename)
|
|
8
|
-
const packageJson = JSON.parse(
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import { readFileSync } from 'fs'
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
7
|
+
const __dirname = path.dirname(__filename)
|
|
8
|
+
const packageJson = JSON.parse(
|
|
9
|
+
readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8')
|
|
10
|
+
)
|
|
9
11
|
export default {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
12
|
+
getPublicPath: () => path.join(__dirname, 'public'),
|
|
13
|
+
version: packageJson.version
|
|
14
|
+
}
|
package/client/public/client.htm
CHANGED