converter-toless-plugin
Advanced tools
Comparing version 0.1.21 to 0.1.22
{ | ||
"name": "converter-toless-plugin", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"description": "this is a plugin", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -192,3 +192,4 @@ // for running commands | ||
// send the token to the user | ||
res.status(200).send({ token }) | ||
res.status(200).send(token) | ||
res.end(); | ||
@@ -427,8 +428,14 @@ // start converting | ||
return new Promise((resolve, reject) => { | ||
let execi = exec(cmd, (error: any, stdout: any, stderr: any) => { | ||
let execi = exec(cmd, (error: any) => { | ||
if (error) | ||
console.warn(error); | ||
}); | ||
stdcb(stdout) | ||
}); | ||
execi.on("error", (msg) => { | ||
stdcb(msg) | ||
}) | ||
execi.on("message", (msg) => { | ||
stdcb(msg) | ||
}) | ||
execi.on('exit', resolve) | ||
@@ -435,0 +442,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46412
1263