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

29
static/js/ketcher2/node_modules/vinyl-buffer/index.js generated vendored Normal file
View File

@ -0,0 +1,29 @@
var through2 = require('through2').obj
var bl = require('bl')
module.exports = vinylBuffer
function vinylBuffer() {
var stream = through2(write)
return stream
function write(file, _, next) {
if (file.isNull()) return push(file, next)
if (file.isBuffer()) return push(file, next)
file.contents.pipe(bl(function(err, data) {
if (err) return next(err)
file = file.clone()
file.contents = data
push(file, next)
}))
}
function push(file, next) {
stream.push(file)
next()
}
}