File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 },
3636 "dependencies" : {
3737 "readline-sync" : " ^1.4.9" ,
38- "sprintf-js" : " ^1.1.2" ,
39- "tmp" : " ^0.0.33"
38+ "sprintf-js" : " ^1.1.2"
4039 },
4140 "sideEffects" : false ,
4241 "eslintConfig" : {
Original file line number Diff line number Diff line change @@ -484,8 +484,9 @@ if (typeof process === "undefined") {
484484 } ;
485485} else {
486486 /* Only with Node */
487+ const os = require ( 'os' ) ;
487488 const fs = require ( 'fs' ) ;
488- const tmp = require ( 'tmp ' ) ;
489+ const path = require ( 'path ' ) ;
489490 const child_process = require ( 'child_process' ) ;
490491
491492 syslib . exit = function ( L ) {
@@ -517,7 +518,7 @@ if (typeof process === "undefined") {
517518 } ;
518519
519520 const lua_tmpname = function ( ) {
520- return tmp . tmpNameSync ( ) ;
521+ return path . join ( os . tmpdir ( ) , ' tmp-' + Math . random ( ) . toString ( 36 ) . slice ( 2 ) ) ;
521522 } ;
522523
523524 syslib . remove = function ( L ) {
You can’t perform that action at this time.
0 commit comments