primer cambio

This commit is contained in:
beseira13
2026-01-19 12:12:38 -03:00
parent 5f59dba52d
commit 44990f015a
4759 changed files with 588702 additions and 0 deletions

42
node_modules/amqplib/lib/credentials.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
//
//
//
// Different kind of credentials that can be supplied when opening a
// connection, corresponding to SASL mechanisms There's only two
// useful mechanisms that RabbitMQ implements:
// * PLAIN (send username and password in the plain)
// * EXTERNAL (assume the server will figure out who you are from
// context, i.e., your SSL certificate)
var codec = require('./codec')
module.exports.plain = function(user, passwd) {
return {
mechanism: 'PLAIN',
response: function() {
return Buffer.from(['', user, passwd].join(String.fromCharCode(0)))
},
username: user,
password: passwd
}
}
module.exports.amqplain = function(user, passwd) {
return {
mechanism: 'AMQPLAIN',
response: function() {
const buffer = Buffer.alloc(16384);
const size = codec.encodeTable(buffer, { LOGIN: user, PASSWORD: passwd}, 0);
return buffer.subarray(4, size);
},
username: user,
password: passwd
}
}
module.exports.external = function() {
return {
mechanism: 'EXTERNAL',
response: function() { return Buffer.from(''); }
}
}