Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

24
static/js/ketcher2/node_modules/budo/lib/get-ports.js generated vendored Normal file
View File

@ -0,0 +1,24 @@
var xtend = require('xtend')
var getPorts = require('get-ports')
module.exports = getServerPorts
function getServerPorts (opt, cb) {
opt = xtend({ port: 9966 }, opt)
// try to use exact port specified or the defaults
if (!opt.portfind) {
return process.nextTick(function () {
cb(null, {
port: opt.port
})
})
}
// find available ports
getPorts([ opt.port ], function (err, ports) {
if (err) return cb(err)
cb(null, {
port: ports[0]
})
})
}