sshclient-wasm 0.1.0 → 0.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.
- package/README.md +6 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ npm install sshclient-wasm
|
|
|
94
94
|
// Next.js optimized
|
|
95
95
|
import { initializeSSHClient, SSHClient, NextJSConfig } from "sshclient-wasm/next";
|
|
96
96
|
|
|
97
|
-
// Vite optimized
|
|
97
|
+
// Vite optimized
|
|
98
98
|
import { initializeSSHClient, SSHClient, ViteConfig } from "sshclient-wasm/vite";
|
|
99
99
|
|
|
100
100
|
// React hooks and utilities
|
|
@@ -410,7 +410,7 @@ export default defineConfig({
|
|
|
410
410
|
import { initializeSSHClient } from "sshclient-wasm/vite";
|
|
411
411
|
import { useSSHClient } from "sshclient-wasm/react";
|
|
412
412
|
|
|
413
|
-
// Method 1: Direct initialization
|
|
413
|
+
// Method 1: Direct initialization
|
|
414
414
|
useEffect(() => {
|
|
415
415
|
initializeSSHClient()
|
|
416
416
|
.then(() => console.log("SSH client ready"))
|
|
@@ -426,11 +426,11 @@ const { isInitialized, initError, isLoading } = useSSHClient();
|
|
|
426
426
|
The `sshclient-wasm/react` module provides React-specific hooks and utilities:
|
|
427
427
|
|
|
428
428
|
```javascript
|
|
429
|
-
import {
|
|
430
|
-
useSSHClient,
|
|
429
|
+
import {
|
|
430
|
+
useSSHClient,
|
|
431
431
|
useSSHConnection,
|
|
432
432
|
SSHClientProvider,
|
|
433
|
-
withSSHClient
|
|
433
|
+
withSSHClient
|
|
434
434
|
} from "sshclient-wasm/react";
|
|
435
435
|
|
|
436
436
|
// Hook for initialization
|
|
@@ -1136,4 +1136,4 @@ class MyCustomTransport extends CustomTransport {
|
|
|
1136
1136
|
|
|
1137
1137
|
## License
|
|
1138
1138
|
|
|
1139
|
-
|
|
1139
|
+
BSD-3-Clause
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sshclient-wasm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "WebAssembly-based SSH client for the browser with packet interception hooks",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"websocket",
|
|
41
41
|
"packet"
|
|
42
42
|
],
|
|
43
|
-
"author": "
|
|
43
|
+
"author": "Verdigris Technologies, Inc. <engineering@verdigris.co>",
|
|
44
44
|
"license": "BSD-3-Clause",
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
|
47
|
-
"url": "https://github.com/
|
|
47
|
+
"url": "https://github.com/VerdigrisTech/sshclient-wasm.git"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@goreleaser/goreleaser": "^2.12.0",
|