UNPKG
@miguel-cagide/smb2
Version:
latest (1.5.0)
1.5.0
1.4.6
1.4.5
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
0.6.3
0.6.2
0.6.1
A SMB2 implementation in TypeScript
github.com/miguel-cagide/smb2
miguel-cagide/smb2
@miguel-cagide/smb2
/
dist
/
server
/
middlewares
/
supportedProtocols.js
7 lines
(6 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
=
(
supportedProtocols
) =>
(
req, res
) =>
{
if
(!supportedProtocols.
includes
(req.
header
.
protocolId
))
throw
new
Error
(
`protocol_not_supported:
${req.header.protocolId}
`
); };