mol_dump_lib 0.0.270 → 0.0.272
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.d.ts +58 -52
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +22 -4
- package/node.js.map +1 -1
- package/node.mjs +22 -4
- package/node.test.js +22 -4
- package/node.test.js.map +1 -1
- package/package.json +2 -1
- package/web.d.ts +54 -52
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +9 -2
- package/web.js.map +1 -1
- package/web.mjs +9 -2
package/node.js
CHANGED
|
@@ -2025,8 +2025,9 @@ var $;
|
|
|
2025
2025
|
shell: true,
|
|
2026
2026
|
env: this.$mol_env(),
|
|
2027
2027
|
});
|
|
2028
|
-
if (res.status || res.error)
|
|
2029
|
-
return $mol_fail(res.error || new Error(res.stderr.toString()));
|
|
2028
|
+
if (res.status || res.error) {
|
|
2029
|
+
return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
|
|
2030
|
+
}
|
|
2030
2031
|
if (!res.stdout)
|
|
2031
2032
|
res.stdout = Buffer.from([]);
|
|
2032
2033
|
return res;
|
|
@@ -5253,9 +5254,13 @@ var $;
|
|
|
5253
5254
|
return exists;
|
|
5254
5255
|
if (next === exists)
|
|
5255
5256
|
return exists;
|
|
5256
|
-
if (next)
|
|
5257
|
+
if (next) {
|
|
5257
5258
|
this.parent().exists(true);
|
|
5258
|
-
|
|
5259
|
+
this.ensure();
|
|
5260
|
+
}
|
|
5261
|
+
else {
|
|
5262
|
+
this.drop();
|
|
5263
|
+
}
|
|
5259
5264
|
this.reset();
|
|
5260
5265
|
return next;
|
|
5261
5266
|
}
|
|
@@ -5326,6 +5331,13 @@ var $;
|
|
|
5326
5331
|
$.$mol_file = $mol_file;
|
|
5327
5332
|
})($ || ($ = {}));
|
|
5328
5333
|
|
|
5334
|
+
;
|
|
5335
|
+
"use strict";
|
|
5336
|
+
var $;
|
|
5337
|
+
(function ($) {
|
|
5338
|
+
$.$mol_action = $mol_wire_method;
|
|
5339
|
+
})($ || ($ = {}));
|
|
5340
|
+
|
|
5329
5341
|
;
|
|
5330
5342
|
"use strict";
|
|
5331
5343
|
var $;
|
|
@@ -5436,6 +5448,9 @@ var $;
|
|
|
5436
5448
|
this.$.$mol_fail_hidden(e);
|
|
5437
5449
|
}
|
|
5438
5450
|
}
|
|
5451
|
+
drop() {
|
|
5452
|
+
$node.fs.unlinkSync(this.path());
|
|
5453
|
+
}
|
|
5439
5454
|
buffer(next) {
|
|
5440
5455
|
const path = this.path();
|
|
5441
5456
|
if (next === undefined) {
|
|
@@ -5519,6 +5534,9 @@ var $;
|
|
|
5519
5534
|
__decorate([
|
|
5520
5535
|
$mol_mem
|
|
5521
5536
|
], $mol_file_node.prototype, "ensure", null);
|
|
5537
|
+
__decorate([
|
|
5538
|
+
$mol_action
|
|
5539
|
+
], $mol_file_node.prototype, "drop", null);
|
|
5522
5540
|
__decorate([
|
|
5523
5541
|
$mol_mem
|
|
5524
5542
|
], $mol_file_node.prototype, "buffer", null);
|