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

28
static/js/ketcher2/node_modules/browserify/test/tr.js generated vendored Normal file
View File

@ -0,0 +1,28 @@
var browserify = require('../');
var vm = require('vm');
var test = require('tap').test;
var through = require('through2');
test('function transform', function (t) {
t.plan(7);
var b = browserify(__dirname + '/tr/main.js');
b.transform({ global: true }, function (file) {
return through(function (buf, enc, next) {
this.push(String(buf).replace(/ZZZ/g, '1'));
next();
});
});
b.transform(function (file) {
return through(function (buf, enc, next) {
this.push(String(buf)
.replace(/AAA/g, '5')
.replace(/BBB/g, '50')
);
next();
})
});
b.bundle(function (err, src) {
vm.runInNewContext(src, { t: t });
});
});