nodejs/lib/_tls_wrap.js
Dario Piotrowicz d5abfbf582 lib: add module to use in module deprecation warnings
PR-URL: https://github.com/nodejs/node/pull/58442
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
2025-05-26 14:39:25 +00:00

12 lines
307 B
JavaScript

'use strict';
const { TLSSocket, Server, createServer, connect } = require('internal/tls/wrap');
module.exports = {
TLSSocket,
Server,
createServer,
connect,
};
process.emitWarning('The _tls_wrap module is deprecated. Use `node:tls` instead.',
'DeprecationWarning', 'DEP0192');