Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
c3d6cbf
update package
awo00 Dec 21, 2023
59fd626
package
awo00 Dec 21, 2023
bfb4156
package dev
awo00 Dec 21, 2023
5de797c
build
awo00 Dec 21, 2023
290b2a2
extracted response
awo00 Dec 21, 2023
314f6e6
build
awo00 Dec 21, 2023
44d5bc3
removed httpntlm dep
awo00 Dec 21, 2023
f1fb4a1
remove dist
awo00 Dec 21, 2023
cc22d96
Merge pull request #1 from awo00/node-17-openssl-fix
awo00 Dec 21, 2023
57a6dda
revert
awo00 Dec 21, 2023
1e9ff80
remove dist
awo00 Dec 21, 2023
f39d463
single quotes
awo00 Dec 21, 2023
cb93389
reverted style changes
awo00 Dec 21, 2023
6f99a96
Merge pull request #2 from awo00/node-17-openssl-fix
awo00 Dec 21, 2023
0c1df70
docs changes
awo00 Dec 21, 2023
4841f7d
Merge branch 'master' into update-readme
awo00 Dec 21, 2023
72dd0bd
Merge pull request #3 from awo00/update-readme
awo00 Dec 21, 2023
4daa2d7
release workflow
awo00 Dec 21, 2023
186a35a
Merge branch 'update-readme' of https://github.com/awo00/smb2 into up…
awo00 Dec 21, 2023
0634a29
Merge pull request #4 from awo00/release-workflow
awo00 Dec 21, 2023
331ce77
fix pkg lock
awo00 Dec 21, 2023
d49b5e9
update readme
awo00 Dec 21, 2023
610bb07
bump version
awo00 Dec 21, 2023
199c8c2
publish to npmjs
awo00 Dec 21, 2023
5e6f91f
update author
awo00 Dec 21, 2023
e75d930
add build step
awo00 Dec 21, 2023
faaeb9d
added types
awo00 Dec 21, 2023
c498c2c
fix type errors
awo00 Dec 21, 2023
17fa590
class type changes
awo00 Dec 21, 2023
ed46861
add missing deps
awo00 Dec 21, 2023
0097871
Feature/stream read write (#1)
miguel-cagide Jan 4, 2024
6badb6b
Fix/streams fixes (#2)
miguel-cagide Jan 4, 2024
e92e58f
chore: version bump (#3)
miguel-cagide Jan 4, 2024
40059f7
chore: version bump (#4)
miguel-cagide Jan 4, 2024
bc0bcf7
chore: bump version (#5)
miguel-cagide Jan 4, 2024
658b522
stop emit error on close
awo00 Jan 5, 2024
765b635
Merge pull request #6 from awo00/prevent-throwing-on-disconnect
awo00 Jan 5, 2024
7ab7a79
version
awo00 Jan 5, 2024
cfd674f
Merge branch 'master' of https://github.com/awo00/smb2
awo00 Jan 5, 2024
b948e2a
fix: fixed subarray positions when chunk bigger than maxWriteChunkLen…
miguel-cagide Jan 8, 2024
4f7e507
Awo00 master (#10)
miguel-cagide Jan 8, 2024
135ffd8
chore: revert to original package.json
miguel-cagide Jan 8, 2024
eeaff9e
Update README.md
miguel-cagide Jan 8, 2024
c8ca9fa
Update FileWriteStream.ts
miguel-cagide Jan 8, 2024
ab51182
Merge pull request #7 from miguel-cagide/feature/file-read-write-streams
awo00 Mar 20, 2024
19b491b
fix version
awo00 Aug 28, 2024
abe567f
fix: use clientGuid on negotiation
mastodon0 Feb 12, 2025
8a7fb39
Merge pull request #8 from mastodon0/patch-1
awo00 May 20, 2025
3e206df
update version
awo00 May 21, 2025
6905096
types issues
awo00 May 21, 2025
fcf2944
fix deprecated timeout type
awo00 May 21, 2025
d530635
fix #9: implement pagination for directory reads to support large fol…
jojomueller05 Mar 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: tsc --build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PAT }}
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# @stifani/smb2
# @awo00/smb2

> A SMB2 implementation in TypeScript.

[![Github Version](https://img.shields.io/github/release/ardean/smb2.svg)](https://github.com/ardean/smb2)
[![NPM Version](https://img.shields.io/npm/v/@stifani/smb2.svg)](https://npmjs.org/package/@stifani/smb2)
[![NPM Downloads](https://img.shields.io/npm/dm/@stifani/smb2.svg)](https://npmjs.org/package/@stifani/smb2)
[![License](https://img.shields.io/npm/l/@stifani/smb2.svg)](LICENSE.md)
Forked from https://github.com/ardean/smb2 using code from https://github.com/SamDecrock/node-http-ntlm to fix Node 17+ OpenSSL error to prevent having to use legacy support.

## Installation
```sh
$ npm i @stifani/smb2
$ npm i @awo00/smb2
```

## Usage
```ts
import smb2 from "@stifani/smb2";
import smb2 from "@awo00/smb2";

const client = new smb2.Client(host);
const session = await client.authenticate({
Expand Down
Loading