gm-plugkit 2.0.1301 → 2.0.1303
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.
- package/package.json +1 -1
- package/plugkit-wasm-wrapper.js +7 -10
- package/plugkit.sha256 +1 -1
- package/plugkit.version +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1303",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/plugkit-wasm-wrapper.js
CHANGED
|
@@ -1562,16 +1562,13 @@ function makeHostFunctions(instanceRef) {
|
|
|
1562
1562
|
const args = readWasmStr(instanceRef.value, argsPtr, argsLen);
|
|
1563
1563
|
const cwdStr = readWasmStr(instanceRef.value, cwdPtr, cwdLen);
|
|
1564
1564
|
const cwd = cwdStr || process.cwd();
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
stdout
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
exit_code = (e && typeof e.status === 'number') ? e.status : 1;
|
|
1573
|
-
}
|
|
1574
|
-
return writeWasmJson(instanceRef.value, { stdout, stderr, exit_code });
|
|
1565
|
+
const argv = args.trim().split(/\s+/);
|
|
1566
|
+
const result = _rawSpawnSync('git', argv, { encoding: 'utf-8', timeout: 30000, cwd, windowsHide: true });
|
|
1567
|
+
return writeWasmJson(instanceRef.value, {
|
|
1568
|
+
stdout: result.stdout || '',
|
|
1569
|
+
stderr: result.stderr || '',
|
|
1570
|
+
exit_code: result.status === null ? -1 : result.status,
|
|
1571
|
+
});
|
|
1575
1572
|
} catch (e) {
|
|
1576
1573
|
return writeWasmJson(instanceRef.value, { stdout: '', stderr: String(e && e.message || e), exit_code: 1 });
|
|
1577
1574
|
}
|
package/plugkit.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"plugkit.wasm":"
|
|
1
|
+
{"plugkit.wasm":"8b45c841f3d43e28baed5f3388b3e21238e9c368cef5b99a0e5ca8b682a5d6eb"}
|
package/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.484
|