mol_dump_lib 0.0.270 → 0.0.271
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.mjs
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);
|
package/node.test.js
CHANGED
|
@@ -2016,8 +2016,9 @@ var $;
|
|
|
2016
2016
|
shell: true,
|
|
2017
2017
|
env: this.$mol_env(),
|
|
2018
2018
|
});
|
|
2019
|
-
if (res.status || res.error)
|
|
2020
|
-
return $mol_fail(res.error || new Error(res.stderr.toString()));
|
|
2019
|
+
if (res.status || res.error) {
|
|
2020
|
+
return $mol_fail(res.error || new Error(res.stderr.toString(), { cause: res.stdout }));
|
|
2021
|
+
}
|
|
2021
2022
|
if (!res.stdout)
|
|
2022
2023
|
res.stdout = Buffer.from([]);
|
|
2023
2024
|
return res;
|
|
@@ -5244,9 +5245,13 @@ var $;
|
|
|
5244
5245
|
return exists;
|
|
5245
5246
|
if (next === exists)
|
|
5246
5247
|
return exists;
|
|
5247
|
-
if (next)
|
|
5248
|
+
if (next) {
|
|
5248
5249
|
this.parent().exists(true);
|
|
5249
|
-
|
|
5250
|
+
this.ensure();
|
|
5251
|
+
}
|
|
5252
|
+
else {
|
|
5253
|
+
this.drop();
|
|
5254
|
+
}
|
|
5250
5255
|
this.reset();
|
|
5251
5256
|
return next;
|
|
5252
5257
|
}
|
|
@@ -5317,6 +5322,13 @@ var $;
|
|
|
5317
5322
|
$.$mol_file = $mol_file;
|
|
5318
5323
|
})($ || ($ = {}));
|
|
5319
5324
|
|
|
5325
|
+
;
|
|
5326
|
+
"use strict";
|
|
5327
|
+
var $;
|
|
5328
|
+
(function ($) {
|
|
5329
|
+
$.$mol_action = $mol_wire_method;
|
|
5330
|
+
})($ || ($ = {}));
|
|
5331
|
+
|
|
5320
5332
|
;
|
|
5321
5333
|
"use strict";
|
|
5322
5334
|
var $;
|
|
@@ -5427,6 +5439,9 @@ var $;
|
|
|
5427
5439
|
this.$.$mol_fail_hidden(e);
|
|
5428
5440
|
}
|
|
5429
5441
|
}
|
|
5442
|
+
drop() {
|
|
5443
|
+
$node.fs.unlinkSync(this.path());
|
|
5444
|
+
}
|
|
5430
5445
|
buffer(next) {
|
|
5431
5446
|
const path = this.path();
|
|
5432
5447
|
if (next === undefined) {
|
|
@@ -5510,6 +5525,9 @@ var $;
|
|
|
5510
5525
|
__decorate([
|
|
5511
5526
|
$mol_mem
|
|
5512
5527
|
], $mol_file_node.prototype, "ensure", null);
|
|
5528
|
+
__decorate([
|
|
5529
|
+
$mol_action
|
|
5530
|
+
], $mol_file_node.prototype, "drop", null);
|
|
5513
5531
|
__decorate([
|
|
5514
5532
|
$mol_mem
|
|
5515
5533
|
], $mol_file_node.prototype, "buffer", null);
|