mol_jsx_lib 0.0.805 → 0.0.806
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/node.deps.json +1 -1
- package/node.js +3 -2
- package/node.js.map +1 -1
- package/node.mjs +3 -2
- package/node.test.js +3 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.mjs
CHANGED
|
@@ -883,8 +883,9 @@ var $;
|
|
|
883
883
|
shell: true,
|
|
884
884
|
env: this.$mol_env(),
|
|
885
885
|
});
|
|
886
|
-
if (res.status || res.error)
|
|
887
|
-
return $mol_fail(res.error || new Error(res.stderr.toString()));
|
|
886
|
+
if (res.status || res.error) {
|
|
887
|
+
return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
|
|
888
|
+
}
|
|
888
889
|
if (!res.stdout)
|
|
889
890
|
res.stdout = Buffer.from([]);
|
|
890
891
|
return res;
|
package/node.test.js
CHANGED
|
@@ -874,8 +874,9 @@ var $;
|
|
|
874
874
|
shell: true,
|
|
875
875
|
env: this.$mol_env(),
|
|
876
876
|
});
|
|
877
|
-
if (res.status || res.error)
|
|
878
|
-
return $mol_fail(res.error || new Error(res.stderr.toString()));
|
|
877
|
+
if (res.status || res.error) {
|
|
878
|
+
return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
|
|
879
|
+
}
|
|
879
880
|
if (!res.stdout)
|
|
880
881
|
res.stdout = Buffer.from([]);
|
|
881
882
|
return res;
|