@@ -278,18 +278,14 @@ class Dalai {
278
278
if ( ! this . queue ) this . queue = [ ]
279
279
if ( platform === "win32" ) {
280
280
for ( let i = 0 ; i < msg . length ; i ++ ) {
281
- console . log ( "msgi" , msg [ i ] ) ;
282
281
if ( msg [ i ] === "\\" ) {
283
282
this . queueActive = true
284
283
// start pushing to buffer
285
- // console.log("adding to queue", msg[i])
286
284
this . queue . push ( msg [ i ] ) ;
287
285
} else {
288
286
// otherwise flush
289
287
this . queue . push ( msg [ i ] )
290
- console . log ( "flushing queue" , this . queue )
291
288
let queueContent = this . queue . join ( "" )
292
- console . log ( { before : queueContent , beforeEscape : winEscape ( queueContent ) , after : this . htmlencode ( winEscape ( queueContent ) ) } )
293
289
294
290
if ( ! this . bufferStarted && [ "\n" , "\b" , "\f" , "\r" , "\t" ] . includes ( queueContent ) ) {
295
291
// if the buffer hasn't started and incoming tokens are whitespaces, ignore
@@ -307,24 +303,13 @@ class Dalai {
307
303
}
308
304
} else {
309
305
if ( req . html ) {
310
- cb ( this . htmlencode ( queueContent ) )
306
+ cb ( this . htmlencode ( msg ) )
311
307
} else {
312
- cb ( queueContent )
308
+ cb ( msg )
313
309
}
314
310
}
315
311
}
316
312
async uninstall ( core , ...models ) {
317
- // delete the rest of the files
318
-
319
- //const files = (await fs.promises.readdir(path.resolve(this.home, core), { withFileTypes: true }))
320
- // .filter(dirent => dirent.isFile() && !dirent.name.startsWith("."))
321
- // .map(dirent => dirent.name);
322
- //console.log("files", files)
323
- //for(let file of files) {
324
- // await fs.promises.rm(path.resolve(this.home, core, file)).catch((e) => { })
325
- //}
326
-
327
-
328
313
if ( models . length > 0 ) {
329
314
// delete the model folder
330
315
const modelsPath = path . resolve ( this . home , core , "models" )
0 commit comments