UNPKG

@awo00/smb2

Version:

A SMB2 implementation in TypeScript

7 lines (6 loc) 276 B
"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}`); };