@push.rocks/smartsamba 0.3.0 → 0.3.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.
Binary file
Binary file
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartsamba',
6
- version: '0.3.0',
6
+ version: '0.3.1',
7
7
  description: 'A TypeScript Samba/SMB client and server module backed by an embedded Rust SMB engine.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHdGQUF3RjtDQUN0RyxDQUFBIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartsamba",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "A TypeScript Samba/SMB client and server module backed by an embedded Rust SMB engine.",
6
6
  "exports": {
@@ -11,6 +11,14 @@
11
11
  "type": "module",
12
12
  "author": "Task Venture Capital GmbH <hello@task.vc>",
13
13
  "license": "MIT",
14
+ "scripts": {
15
+ "test:before": "tsrust",
16
+ "pretest": "tsrust",
17
+ "test": "tstest test/ --verbose --timeout 60 --logfile",
18
+ "test:rust": "cd rust && cargo test && cargo test --manifest-path vendor/smb-server/Cargo.toml handlers::session_setup::tests",
19
+ "build": "tsbuild tsfolders && tsrust",
20
+ "buildDocs": "tsdoc"
21
+ },
14
22
  "devDependencies": {
15
23
  "@git.zone/tsbuild": "^4.4.2",
16
24
  "@git.zone/tsrust": "^1.4.1",
@@ -57,12 +65,5 @@
57
65
  "browserslist": [
58
66
  "last 1 chrome versions"
59
67
  ],
60
- "scripts": {
61
- "test:before": "tsrust",
62
- "pretest": "tsrust",
63
- "test": "tstest test/ --verbose --timeout 60 --logfile",
64
- "test:rust": "cd rust && cargo test",
65
- "build": "tsbuild tsfolders && tsrust",
66
- "buildDocs": "tsdoc"
67
- }
68
- }
68
+ "packageManager": "pnpm@10.28.2"
69
+ }
package/readme.md CHANGED
@@ -11,6 +11,7 @@ For reporting bugs, issues, or security vulnerabilities, please visit [community
11
11
  `smartsamba` is for code that needs SMB/CIFS behavior directly from TypeScript:
12
12
 
13
13
  - Start an embedded SMB server that exposes local folders as shares.
14
+ - Accept signed SMB 2.0.2, SMB 2.1, SMB 3.0, SMB 3.0.2, and SMB 3.1.1 sessions.
14
15
  - Connect to existing SMB servers with username, password, and optional domain credentials.
15
16
  - List shares and directories.
16
17
  - Read and write files as `Buffer` or string data.
@@ -325,6 +326,7 @@ pnpm run build
325
326
  ## Operational Notes
326
327
 
327
328
  - Binding to port `445` may require elevated privileges on some systems. Use `port: 0` or a high port for development and tests.
329
+ - The server uses the SMB 2.x session key directly for message signing and derives SMB 3.x signing keys according to the negotiated dialect. This keeps signed SMB 2.1 clients such as network scanners compatible.
328
330
  - `SambaServer` manages one embedded server per instance.
329
331
  - Call `stop()` in `finally` blocks to cleanly shut down bridge processes.
330
332
  - `rust/target/`, `node_modules/`, `dist_ts/`, and `dist_rust/` are build artifacts or generated outputs and are not source history.
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartsamba',
6
- version: '0.3.0',
6
+ version: '0.3.1',
7
7
  description: 'A TypeScript Samba/SMB client and server module backed by an embedded Rust SMB engine.'
8
8
  }