UNPKG

@awo00/smb2

Version:

A SMB2 implementation in TypeScript

8 lines (7 loc) 291 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (protocolId, packetType, middleware) => async (req, res) => { if (req.header.protocolId === protocolId && req.header.type === packetType) return await middleware(req, res); };