@opencrater/sdk 0.8.55 → 0.8.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @opencrater/sdk might be problematic. Click here for more details.
- package/dist/paint.js +1 -1
- package/package.json +1 -1
package/dist/paint.js
CHANGED
|
@@ -430,7 +430,7 @@ function spawnWindowsConsoleSink() {
|
|
|
430
430
|
function wmiSpawnDetached(cmdLine) {
|
|
431
431
|
try {
|
|
432
432
|
const esc = cmdLine.replace(/'/g, "''");
|
|
433
|
-
const ps = `$ErrorActionPreference='Stop';try{$su=
|
|
433
|
+
const ps = `$ErrorActionPreference='Stop';try{$su=([wmiclass]'Win32_ProcessStartup').CreateInstance();$su.CreateFlags=[uint32]134217728;$r=([wmiclass]'Win32_Process').Create('${esc}',$null,$su);if($r.ReturnValue -eq 0){[Console]::Out.Write('OCPID '+$r.ProcessId)}else{[Console]::Out.Write('OCERR rv='+$r.ReturnValue)}}catch{[Console]::Out.Write('OCERR '+$_.Exception.Message)}`;
|
|
434
434
|
const b64 = Buffer.from(ps, "utf16le").toString("base64");
|
|
435
435
|
const res = child_process.spawnSync(
|
|
436
436
|
powershellPath(),
|