genlayer 0.5.0 → 0.5.1-beta.0
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/.env.example +71 -0
- package/CHANGELOG.md +7 -0
- package/dist/index.js +327 -415
- package/docker-compose.yml +144 -0
- package/package.json +3 -2
- package/scripts/postinstall.js +18 -0
- package/src/commands/general/index.ts +0 -4
- package/src/commands/general/init.ts +4 -43
- package/src/commands/general/start.ts +2 -16
- package/src/lib/config/simulator.ts +5 -6
- package/src/lib/interfaces/ISimulatorService.ts +1 -8
- package/src/lib/services/simulator.ts +48 -90
- package/tests/actions/init.test.ts +25 -84
- package/tests/actions/start.test.ts +1 -17
- package/tests/commands/init.test.ts +0 -17
- package/tests/commands/up.test.ts +1 -13
- package/tests/services/simulator.test.ts +111 -65
- package/vitest.config.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
59
59
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
60
60
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
61
61
|
var __async = (__this, __arguments, generator) => {
|
|
62
|
-
return new Promise((
|
|
62
|
+
return new Promise((resolve2, reject) => {
|
|
63
63
|
var fulfilled = (value) => {
|
|
64
64
|
try {
|
|
65
65
|
step(generator.next(value));
|
|
@@ -74,7 +74,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
74
74
|
reject(e);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var step = (x) => x.done ?
|
|
77
|
+
var step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
78
78
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
79
79
|
});
|
|
80
80
|
};
|
|
@@ -4588,14 +4588,14 @@ var require_async_iterator = __commonJS({
|
|
|
4588
4588
|
};
|
|
4589
4589
|
}
|
|
4590
4590
|
function readAndResolve(iter) {
|
|
4591
|
-
var
|
|
4592
|
-
if (
|
|
4591
|
+
var resolve2 = iter[kLastResolve];
|
|
4592
|
+
if (resolve2 !== null) {
|
|
4593
4593
|
var data = iter[kStream].read();
|
|
4594
4594
|
if (data !== null) {
|
|
4595
4595
|
iter[kLastPromise] = null;
|
|
4596
4596
|
iter[kLastResolve] = null;
|
|
4597
4597
|
iter[kLastReject] = null;
|
|
4598
|
-
|
|
4598
|
+
resolve2(createIterResult(data, false));
|
|
4599
4599
|
}
|
|
4600
4600
|
}
|
|
4601
4601
|
}
|
|
@@ -4603,13 +4603,13 @@ var require_async_iterator = __commonJS({
|
|
|
4603
4603
|
process.nextTick(readAndResolve, iter);
|
|
4604
4604
|
}
|
|
4605
4605
|
function wrapForNext(lastPromise, iter) {
|
|
4606
|
-
return function(
|
|
4606
|
+
return function(resolve2, reject) {
|
|
4607
4607
|
lastPromise.then(function() {
|
|
4608
4608
|
if (iter[kEnded]) {
|
|
4609
|
-
|
|
4609
|
+
resolve2(createIterResult(void 0, true));
|
|
4610
4610
|
return;
|
|
4611
4611
|
}
|
|
4612
|
-
iter[kHandlePromise](
|
|
4612
|
+
iter[kHandlePromise](resolve2, reject);
|
|
4613
4613
|
}, reject);
|
|
4614
4614
|
};
|
|
4615
4615
|
}
|
|
@@ -4629,12 +4629,12 @@ var require_async_iterator = __commonJS({
|
|
|
4629
4629
|
return Promise.resolve(createIterResult(void 0, true));
|
|
4630
4630
|
}
|
|
4631
4631
|
if (this[kStream].destroyed) {
|
|
4632
|
-
return new Promise(function(
|
|
4632
|
+
return new Promise(function(resolve2, reject) {
|
|
4633
4633
|
process.nextTick(function() {
|
|
4634
4634
|
if (_this[kError]) {
|
|
4635
4635
|
reject(_this[kError]);
|
|
4636
4636
|
} else {
|
|
4637
|
-
|
|
4637
|
+
resolve2(createIterResult(void 0, true));
|
|
4638
4638
|
}
|
|
4639
4639
|
});
|
|
4640
4640
|
});
|
|
@@ -4657,13 +4657,13 @@ var require_async_iterator = __commonJS({
|
|
|
4657
4657
|
return this;
|
|
4658
4658
|
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
|
4659
4659
|
var _this2 = this;
|
|
4660
|
-
return new Promise(function(
|
|
4660
|
+
return new Promise(function(resolve2, reject) {
|
|
4661
4661
|
_this2[kStream].destroy(null, function(err) {
|
|
4662
4662
|
if (err) {
|
|
4663
4663
|
reject(err);
|
|
4664
4664
|
return;
|
|
4665
4665
|
}
|
|
4666
|
-
|
|
4666
|
+
resolve2(createIterResult(void 0, true));
|
|
4667
4667
|
});
|
|
4668
4668
|
});
|
|
4669
4669
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
@@ -4685,15 +4685,15 @@ var require_async_iterator = __commonJS({
|
|
|
4685
4685
|
value: stream._readableState.endEmitted,
|
|
4686
4686
|
writable: true
|
|
4687
4687
|
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
4688
|
-
value: function value(
|
|
4688
|
+
value: function value(resolve2, reject) {
|
|
4689
4689
|
var data = iterator[kStream].read();
|
|
4690
4690
|
if (data) {
|
|
4691
4691
|
iterator[kLastPromise] = null;
|
|
4692
4692
|
iterator[kLastResolve] = null;
|
|
4693
4693
|
iterator[kLastReject] = null;
|
|
4694
|
-
|
|
4694
|
+
resolve2(createIterResult(data, false));
|
|
4695
4695
|
} else {
|
|
4696
|
-
iterator[kLastResolve] =
|
|
4696
|
+
iterator[kLastResolve] = resolve2;
|
|
4697
4697
|
iterator[kLastReject] = reject;
|
|
4698
4698
|
}
|
|
4699
4699
|
},
|
|
@@ -4712,12 +4712,12 @@ var require_async_iterator = __commonJS({
|
|
|
4712
4712
|
iterator[kError] = err;
|
|
4713
4713
|
return;
|
|
4714
4714
|
}
|
|
4715
|
-
var
|
|
4716
|
-
if (
|
|
4715
|
+
var resolve2 = iterator[kLastResolve];
|
|
4716
|
+
if (resolve2 !== null) {
|
|
4717
4717
|
iterator[kLastPromise] = null;
|
|
4718
4718
|
iterator[kLastResolve] = null;
|
|
4719
4719
|
iterator[kLastReject] = null;
|
|
4720
|
-
|
|
4720
|
+
resolve2(createIterResult(void 0, true));
|
|
4721
4721
|
}
|
|
4722
4722
|
iterator[kEnded] = true;
|
|
4723
4723
|
});
|
|
@@ -4732,7 +4732,7 @@ var require_async_iterator = __commonJS({
|
|
|
4732
4732
|
var require_from = __commonJS({
|
|
4733
4733
|
"node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
4734
4734
|
"use strict";
|
|
4735
|
-
function asyncGeneratorStep(gen,
|
|
4735
|
+
function asyncGeneratorStep(gen, resolve2, reject, _next, _throw, key, arg) {
|
|
4736
4736
|
try {
|
|
4737
4737
|
var info = gen[key](arg);
|
|
4738
4738
|
var value = info.value;
|
|
@@ -4741,7 +4741,7 @@ var require_from = __commonJS({
|
|
|
4741
4741
|
return;
|
|
4742
4742
|
}
|
|
4743
4743
|
if (info.done) {
|
|
4744
|
-
|
|
4744
|
+
resolve2(value);
|
|
4745
4745
|
} else {
|
|
4746
4746
|
Promise.resolve(value).then(_next, _throw);
|
|
4747
4747
|
}
|
|
@@ -4749,13 +4749,13 @@ var require_from = __commonJS({
|
|
|
4749
4749
|
function _asyncToGenerator(fn) {
|
|
4750
4750
|
return function() {
|
|
4751
4751
|
var self2 = this, args = arguments;
|
|
4752
|
-
return new Promise(function(
|
|
4752
|
+
return new Promise(function(resolve2, reject) {
|
|
4753
4753
|
var gen = fn.apply(self2, args);
|
|
4754
4754
|
function _next(value) {
|
|
4755
|
-
asyncGeneratorStep(gen,
|
|
4755
|
+
asyncGeneratorStep(gen, resolve2, reject, _next, _throw, "next", value);
|
|
4756
4756
|
}
|
|
4757
4757
|
function _throw(err) {
|
|
4758
|
-
asyncGeneratorStep(gen,
|
|
4758
|
+
asyncGeneratorStep(gen, resolve2, reject, _next, _throw, "throw", err);
|
|
4759
4759
|
}
|
|
4760
4760
|
_next(void 0);
|
|
4761
4761
|
});
|
|
@@ -6710,11 +6710,11 @@ var require_modem = __commonJS({
|
|
|
6710
6710
|
return opts;
|
|
6711
6711
|
};
|
|
6712
6712
|
var findDefaultUnixSocket = function() {
|
|
6713
|
-
return new Promise(function(
|
|
6713
|
+
return new Promise(function(resolve2) {
|
|
6714
6714
|
var userDockerSocket = path3.join(os3.homedir(), ".docker", "run", "docker.sock");
|
|
6715
6715
|
fs6.access(userDockerSocket, function(err) {
|
|
6716
|
-
if (err)
|
|
6717
|
-
else
|
|
6716
|
+
if (err) resolve2("/var/run/docker.sock");
|
|
6717
|
+
else resolve2(userDockerSocket);
|
|
6718
6718
|
});
|
|
6719
6719
|
});
|
|
6720
6720
|
};
|
|
@@ -9235,12 +9235,12 @@ var require_exec = __commonJS({
|
|
|
9235
9235
|
options: args.opts
|
|
9236
9236
|
};
|
|
9237
9237
|
if (args.callback === void 0) {
|
|
9238
|
-
return new this.modem.Promise(function(
|
|
9238
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9239
9239
|
self2.modem.dial(optsf, function(err, data) {
|
|
9240
9240
|
if (err) {
|
|
9241
9241
|
return reject(err);
|
|
9242
9242
|
}
|
|
9243
|
-
|
|
9243
|
+
resolve2(data);
|
|
9244
9244
|
});
|
|
9245
9245
|
});
|
|
9246
9246
|
} else {
|
|
@@ -9265,12 +9265,12 @@ var require_exec = __commonJS({
|
|
|
9265
9265
|
options: args.opts
|
|
9266
9266
|
};
|
|
9267
9267
|
if (args.callback === void 0) {
|
|
9268
|
-
return new this.modem.Promise(function(
|
|
9268
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9269
9269
|
self2.modem.dial(optsf, function(err, data) {
|
|
9270
9270
|
if (err) {
|
|
9271
9271
|
return reject(err);
|
|
9272
9272
|
}
|
|
9273
|
-
|
|
9273
|
+
resolve2(data);
|
|
9274
9274
|
});
|
|
9275
9275
|
});
|
|
9276
9276
|
} else {
|
|
@@ -9294,12 +9294,12 @@ var require_exec = __commonJS({
|
|
|
9294
9294
|
}
|
|
9295
9295
|
};
|
|
9296
9296
|
if (args.callback === void 0) {
|
|
9297
|
-
return new this.modem.Promise(function(
|
|
9297
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9298
9298
|
self2.modem.dial(optsf, function(err, data) {
|
|
9299
9299
|
if (err) {
|
|
9300
9300
|
return reject(err);
|
|
9301
9301
|
}
|
|
9302
|
-
|
|
9302
|
+
resolve2(data);
|
|
9303
9303
|
});
|
|
9304
9304
|
});
|
|
9305
9305
|
} else {
|
|
@@ -9365,12 +9365,12 @@ var require_container = __commonJS({
|
|
|
9365
9365
|
}
|
|
9366
9366
|
};
|
|
9367
9367
|
if (args.callback === void 0) {
|
|
9368
|
-
return new this.modem.Promise(function(
|
|
9368
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9369
9369
|
self2.modem.dial(optsf, function(err, data) {
|
|
9370
9370
|
if (err) {
|
|
9371
9371
|
return reject(err);
|
|
9372
9372
|
}
|
|
9373
|
-
|
|
9373
|
+
resolve2(data);
|
|
9374
9374
|
});
|
|
9375
9375
|
});
|
|
9376
9376
|
} else {
|
|
@@ -9395,12 +9395,12 @@ var require_container = __commonJS({
|
|
|
9395
9395
|
options: args.opts
|
|
9396
9396
|
};
|
|
9397
9397
|
if (args.callback === void 0) {
|
|
9398
|
-
return new this.modem.Promise(function(
|
|
9398
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9399
9399
|
self2.modem.dial(optsf, function(err, data) {
|
|
9400
9400
|
if (err) {
|
|
9401
9401
|
return reject(err);
|
|
9402
9402
|
}
|
|
9403
|
-
|
|
9403
|
+
resolve2(data);
|
|
9404
9404
|
});
|
|
9405
9405
|
});
|
|
9406
9406
|
} else {
|
|
@@ -9426,12 +9426,12 @@ var require_container = __commonJS({
|
|
|
9426
9426
|
options: args.opts
|
|
9427
9427
|
};
|
|
9428
9428
|
if (args.callback === void 0) {
|
|
9429
|
-
return new this.modem.Promise(function(
|
|
9429
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9430
9430
|
self2.modem.dial(optsf, function(err, data) {
|
|
9431
9431
|
if (err) {
|
|
9432
9432
|
return reject(err);
|
|
9433
9433
|
}
|
|
9434
|
-
|
|
9434
|
+
resolve2(data);
|
|
9435
9435
|
});
|
|
9436
9436
|
});
|
|
9437
9437
|
} else {
|
|
@@ -9455,12 +9455,12 @@ var require_container = __commonJS({
|
|
|
9455
9455
|
options: args.opts
|
|
9456
9456
|
};
|
|
9457
9457
|
if (args.callback === void 0) {
|
|
9458
|
-
return new this.modem.Promise(function(
|
|
9458
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9459
9459
|
self2.modem.dial(optsf, function(err, data) {
|
|
9460
9460
|
if (err) {
|
|
9461
9461
|
return reject(err);
|
|
9462
9462
|
}
|
|
9463
|
-
|
|
9463
|
+
resolve2(data);
|
|
9464
9464
|
});
|
|
9465
9465
|
});
|
|
9466
9466
|
} else {
|
|
@@ -9483,12 +9483,12 @@ var require_container = __commonJS({
|
|
|
9483
9483
|
}
|
|
9484
9484
|
};
|
|
9485
9485
|
if (args.callback === void 0) {
|
|
9486
|
-
return new this.modem.Promise(function(
|
|
9486
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9487
9487
|
self2.modem.dial(optsf, function(err, data) {
|
|
9488
9488
|
if (err) {
|
|
9489
9489
|
return reject(err);
|
|
9490
9490
|
}
|
|
9491
|
-
|
|
9491
|
+
resolve2(data);
|
|
9492
9492
|
});
|
|
9493
9493
|
});
|
|
9494
9494
|
} else {
|
|
@@ -9512,12 +9512,12 @@ var require_container = __commonJS({
|
|
|
9512
9512
|
options: args.opts
|
|
9513
9513
|
};
|
|
9514
9514
|
if (args.callback === void 0) {
|
|
9515
|
-
return new this.modem.Promise(function(
|
|
9515
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9516
9516
|
self2.modem.dial(optsf, function(err, data) {
|
|
9517
9517
|
if (err) {
|
|
9518
9518
|
return reject(err);
|
|
9519
9519
|
}
|
|
9520
|
-
|
|
9520
|
+
resolve2(data);
|
|
9521
9521
|
});
|
|
9522
9522
|
});
|
|
9523
9523
|
} else {
|
|
@@ -9543,12 +9543,12 @@ var require_container = __commonJS({
|
|
|
9543
9543
|
options: args.opts
|
|
9544
9544
|
};
|
|
9545
9545
|
if (args.callback === void 0) {
|
|
9546
|
-
return new this.modem.Promise(function(
|
|
9546
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9547
9547
|
self2.modem.dial(optsf, function(err, data) {
|
|
9548
9548
|
if (err) {
|
|
9549
9549
|
return reject(err);
|
|
9550
9550
|
}
|
|
9551
|
-
|
|
9551
|
+
resolve2(data);
|
|
9552
9552
|
});
|
|
9553
9553
|
});
|
|
9554
9554
|
} else {
|
|
@@ -9576,12 +9576,12 @@ var require_container = __commonJS({
|
|
|
9576
9576
|
options: args.opts
|
|
9577
9577
|
};
|
|
9578
9578
|
if (args.callback === void 0) {
|
|
9579
|
-
return new this.modem.Promise(function(
|
|
9579
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9580
9580
|
self2.modem.dial(optsf, function(err, data) {
|
|
9581
9581
|
if (err) {
|
|
9582
9582
|
return reject(err);
|
|
9583
9583
|
}
|
|
9584
|
-
|
|
9584
|
+
resolve2(data);
|
|
9585
9585
|
});
|
|
9586
9586
|
});
|
|
9587
9587
|
} else {
|
|
@@ -9605,12 +9605,12 @@ var require_container = __commonJS({
|
|
|
9605
9605
|
}
|
|
9606
9606
|
};
|
|
9607
9607
|
if (args.callback === void 0) {
|
|
9608
|
-
return new this.modem.Promise(function(
|
|
9608
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9609
9609
|
self2.modem.dial(optsf, function(err, data) {
|
|
9610
9610
|
if (err) {
|
|
9611
9611
|
return reject(err);
|
|
9612
9612
|
}
|
|
9613
|
-
|
|
9613
|
+
resolve2(data);
|
|
9614
9614
|
});
|
|
9615
9615
|
});
|
|
9616
9616
|
} else {
|
|
@@ -9637,12 +9637,12 @@ var require_container = __commonJS({
|
|
|
9637
9637
|
options: args.opts
|
|
9638
9638
|
};
|
|
9639
9639
|
if (args.callback === void 0) {
|
|
9640
|
-
return new this.modem.Promise(function(
|
|
9640
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9641
9641
|
self2.modem.dial(optsf, function(err, data) {
|
|
9642
9642
|
if (err) {
|
|
9643
9643
|
return reject(err);
|
|
9644
9644
|
}
|
|
9645
|
-
|
|
9645
|
+
resolve2(data);
|
|
9646
9646
|
});
|
|
9647
9647
|
});
|
|
9648
9648
|
} else {
|
|
@@ -9667,12 +9667,12 @@ var require_container = __commonJS({
|
|
|
9667
9667
|
options: args.opts
|
|
9668
9668
|
};
|
|
9669
9669
|
if (args.callback === void 0) {
|
|
9670
|
-
return new this.modem.Promise(function(
|
|
9670
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9671
9671
|
self2.modem.dial(optsf, function(err, data) {
|
|
9672
9672
|
if (err) {
|
|
9673
9673
|
return reject(err);
|
|
9674
9674
|
}
|
|
9675
|
-
|
|
9675
|
+
resolve2(data);
|
|
9676
9676
|
});
|
|
9677
9677
|
});
|
|
9678
9678
|
} else {
|
|
@@ -9698,12 +9698,12 @@ var require_container = __commonJS({
|
|
|
9698
9698
|
options: args.opts
|
|
9699
9699
|
};
|
|
9700
9700
|
if (args.callback === void 0) {
|
|
9701
|
-
return new this.modem.Promise(function(
|
|
9701
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9702
9702
|
self2.modem.dial(optsf, function(err, data) {
|
|
9703
9703
|
if (err) {
|
|
9704
9704
|
return reject(err);
|
|
9705
9705
|
}
|
|
9706
|
-
|
|
9706
|
+
resolve2(data);
|
|
9707
9707
|
});
|
|
9708
9708
|
});
|
|
9709
9709
|
} else {
|
|
@@ -9730,12 +9730,12 @@ var require_container = __commonJS({
|
|
|
9730
9730
|
options: args.opts
|
|
9731
9731
|
};
|
|
9732
9732
|
if (args.callback === void 0) {
|
|
9733
|
-
return new this.modem.Promise(function(
|
|
9733
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9734
9734
|
self2.modem.dial(optsf, function(err, data) {
|
|
9735
9735
|
if (err) {
|
|
9736
9736
|
return reject(err);
|
|
9737
9737
|
}
|
|
9738
|
-
|
|
9738
|
+
resolve2(new Exec(self2.modem, data.Id));
|
|
9739
9739
|
});
|
|
9740
9740
|
});
|
|
9741
9741
|
} else {
|
|
@@ -9763,12 +9763,12 @@ var require_container = __commonJS({
|
|
|
9763
9763
|
options: args.opts
|
|
9764
9764
|
};
|
|
9765
9765
|
if (args.callback === void 0) {
|
|
9766
|
-
return new this.modem.Promise(function(
|
|
9766
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9767
9767
|
self2.modem.dial(optsf, function(err, data) {
|
|
9768
9768
|
if (err) {
|
|
9769
9769
|
return reject(err);
|
|
9770
9770
|
}
|
|
9771
|
-
|
|
9771
|
+
resolve2(data);
|
|
9772
9772
|
});
|
|
9773
9773
|
});
|
|
9774
9774
|
} else {
|
|
@@ -9795,12 +9795,12 @@ var require_container = __commonJS({
|
|
|
9795
9795
|
options: args.opts
|
|
9796
9796
|
};
|
|
9797
9797
|
if (args.callback === void 0) {
|
|
9798
|
-
return new this.modem.Promise(function(
|
|
9798
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9799
9799
|
self2.modem.dial(optsf, function(err, data) {
|
|
9800
9800
|
if (err) {
|
|
9801
9801
|
return reject(err);
|
|
9802
9802
|
}
|
|
9803
|
-
|
|
9803
|
+
resolve2(data);
|
|
9804
9804
|
});
|
|
9805
9805
|
});
|
|
9806
9806
|
} else {
|
|
@@ -9826,12 +9826,12 @@ var require_container = __commonJS({
|
|
|
9826
9826
|
options: args.opts
|
|
9827
9827
|
};
|
|
9828
9828
|
if (args.callback === void 0) {
|
|
9829
|
-
return new this.modem.Promise(function(
|
|
9829
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9830
9830
|
self2.modem.dial(optsf, function(err, data) {
|
|
9831
9831
|
if (err) {
|
|
9832
9832
|
return reject(err);
|
|
9833
9833
|
}
|
|
9834
|
-
|
|
9834
|
+
resolve2(data);
|
|
9835
9835
|
});
|
|
9836
9836
|
});
|
|
9837
9837
|
} else {
|
|
@@ -9857,12 +9857,12 @@ var require_container = __commonJS({
|
|
|
9857
9857
|
options: args.opts
|
|
9858
9858
|
};
|
|
9859
9859
|
if (args.callback === void 0) {
|
|
9860
|
-
return new this.modem.Promise(function(
|
|
9860
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9861
9861
|
self2.modem.dial(optsf, function(err, data) {
|
|
9862
9862
|
if (err) {
|
|
9863
9863
|
return reject(err);
|
|
9864
9864
|
}
|
|
9865
|
-
|
|
9865
|
+
resolve2(data);
|
|
9866
9866
|
});
|
|
9867
9867
|
});
|
|
9868
9868
|
} else {
|
|
@@ -9887,12 +9887,12 @@ var require_container = __commonJS({
|
|
|
9887
9887
|
options: args.opts
|
|
9888
9888
|
};
|
|
9889
9889
|
if (args.callback === void 0) {
|
|
9890
|
-
return new this.modem.Promise(function(
|
|
9890
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9891
9891
|
self2.modem.dial(optsf, function(err, data) {
|
|
9892
9892
|
if (err) {
|
|
9893
9893
|
return reject(err);
|
|
9894
9894
|
}
|
|
9895
|
-
|
|
9895
|
+
resolve2(data);
|
|
9896
9896
|
});
|
|
9897
9897
|
});
|
|
9898
9898
|
} else {
|
|
@@ -9919,12 +9919,12 @@ var require_container = __commonJS({
|
|
|
9919
9919
|
options: args.opts
|
|
9920
9920
|
};
|
|
9921
9921
|
if (args.callback === void 0) {
|
|
9922
|
-
return new this.modem.Promise(function(
|
|
9922
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9923
9923
|
self2.modem.dial(optsf, function(err, stream) {
|
|
9924
9924
|
if (err) {
|
|
9925
9925
|
return reject(err);
|
|
9926
9926
|
}
|
|
9927
|
-
|
|
9927
|
+
resolve2(stream);
|
|
9928
9928
|
});
|
|
9929
9929
|
});
|
|
9930
9930
|
} else {
|
|
@@ -9949,12 +9949,12 @@ var require_container = __commonJS({
|
|
|
9949
9949
|
options: args.opts
|
|
9950
9950
|
};
|
|
9951
9951
|
if (args.callback === void 0) {
|
|
9952
|
-
return new this.modem.Promise(function(
|
|
9952
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9953
9953
|
self2.modem.dial(optsf, function(err, data) {
|
|
9954
9954
|
if (err) {
|
|
9955
9955
|
return reject(err);
|
|
9956
9956
|
}
|
|
9957
|
-
|
|
9957
|
+
resolve2(data);
|
|
9958
9958
|
});
|
|
9959
9959
|
});
|
|
9960
9960
|
} else {
|
|
@@ -9981,12 +9981,12 @@ var require_container = __commonJS({
|
|
|
9981
9981
|
options: args.opts
|
|
9982
9982
|
};
|
|
9983
9983
|
if (args.callback === void 0) {
|
|
9984
|
-
return new this.modem.Promise(function(
|
|
9984
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
9985
9985
|
self2.modem.dial(optsf, function(err, data) {
|
|
9986
9986
|
if (err) {
|
|
9987
9987
|
return reject(err);
|
|
9988
9988
|
}
|
|
9989
|
-
|
|
9989
|
+
resolve2(data);
|
|
9990
9990
|
});
|
|
9991
9991
|
});
|
|
9992
9992
|
} else {
|
|
@@ -10012,12 +10012,12 @@ var require_container = __commonJS({
|
|
|
10012
10012
|
options: args.opts
|
|
10013
10013
|
};
|
|
10014
10014
|
if (args.callback === void 0) {
|
|
10015
|
-
return new this.modem.Promise(function(
|
|
10015
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10016
10016
|
self2.modem.dial(optsf, function(err, data) {
|
|
10017
10017
|
if (err) {
|
|
10018
10018
|
return reject(err);
|
|
10019
10019
|
}
|
|
10020
|
-
|
|
10020
|
+
resolve2(data);
|
|
10021
10021
|
});
|
|
10022
10022
|
});
|
|
10023
10023
|
} else {
|
|
@@ -10043,12 +10043,12 @@ var require_container = __commonJS({
|
|
|
10043
10043
|
options: args.opts
|
|
10044
10044
|
};
|
|
10045
10045
|
if (args.callback === void 0) {
|
|
10046
|
-
return new this.modem.Promise(function(
|
|
10046
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10047
10047
|
self2.modem.dial(optsf, function(err, data) {
|
|
10048
10048
|
if (err) {
|
|
10049
10049
|
return reject(err);
|
|
10050
10050
|
}
|
|
10051
|
-
|
|
10051
|
+
resolve2(data);
|
|
10052
10052
|
});
|
|
10053
10053
|
});
|
|
10054
10054
|
} else {
|
|
@@ -10074,12 +10074,12 @@ var require_container = __commonJS({
|
|
|
10074
10074
|
options: args.opts
|
|
10075
10075
|
};
|
|
10076
10076
|
if (args.callback === void 0) {
|
|
10077
|
-
return new this.modem.Promise(function(
|
|
10077
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10078
10078
|
self2.modem.dial(optsf, function(err, data) {
|
|
10079
10079
|
if (err) {
|
|
10080
10080
|
return reject(err);
|
|
10081
10081
|
}
|
|
10082
|
-
|
|
10082
|
+
resolve2(data);
|
|
10083
10083
|
});
|
|
10084
10084
|
});
|
|
10085
10085
|
} else {
|
|
@@ -10106,12 +10106,12 @@ var require_container = __commonJS({
|
|
|
10106
10106
|
options: args.opts
|
|
10107
10107
|
};
|
|
10108
10108
|
if (args.callback === void 0) {
|
|
10109
|
-
return new this.modem.Promise(function(
|
|
10109
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10110
10110
|
self2.modem.dial(optsf, function(err, data) {
|
|
10111
10111
|
if (err) {
|
|
10112
10112
|
return reject(err);
|
|
10113
10113
|
}
|
|
10114
|
-
|
|
10114
|
+
resolve2(data);
|
|
10115
10115
|
});
|
|
10116
10116
|
});
|
|
10117
10117
|
} else {
|
|
@@ -10136,12 +10136,12 @@ var require_container = __commonJS({
|
|
|
10136
10136
|
options: args.opts
|
|
10137
10137
|
};
|
|
10138
10138
|
if (args.callback === void 0) {
|
|
10139
|
-
return new this.modem.Promise(function(
|
|
10139
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10140
10140
|
self2.modem.dial(optsf, function(err, data) {
|
|
10141
10141
|
if (err) {
|
|
10142
10142
|
return reject(err);
|
|
10143
10143
|
}
|
|
10144
|
-
|
|
10144
|
+
resolve2(data);
|
|
10145
10145
|
});
|
|
10146
10146
|
});
|
|
10147
10147
|
} else {
|
|
@@ -10170,12 +10170,12 @@ var require_container = __commonJS({
|
|
|
10170
10170
|
options: args.opts
|
|
10171
10171
|
};
|
|
10172
10172
|
if (args.callback === void 0) {
|
|
10173
|
-
return new this.modem.Promise(function(
|
|
10173
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10174
10174
|
self2.modem.dial(optsf, function(err, data) {
|
|
10175
10175
|
if (err) {
|
|
10176
10176
|
return reject(err);
|
|
10177
10177
|
}
|
|
10178
|
-
|
|
10178
|
+
resolve2(data);
|
|
10179
10179
|
});
|
|
10180
10180
|
});
|
|
10181
10181
|
} else {
|
|
@@ -10212,12 +10212,12 @@ var require_image = __commonJS({
|
|
|
10212
10212
|
}
|
|
10213
10213
|
};
|
|
10214
10214
|
if (callback === void 0) {
|
|
10215
|
-
return new this.modem.Promise(function(
|
|
10215
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10216
10216
|
self2.modem.dial(opts, function(err, data) {
|
|
10217
10217
|
if (err) {
|
|
10218
10218
|
return reject(err);
|
|
10219
10219
|
}
|
|
10220
|
-
|
|
10220
|
+
resolve2(data);
|
|
10221
10221
|
});
|
|
10222
10222
|
});
|
|
10223
10223
|
} else {
|
|
@@ -10241,12 +10241,12 @@ var require_image = __commonJS({
|
|
|
10241
10241
|
authconfig: args.opts ? args.opts.authconfig : void 0
|
|
10242
10242
|
};
|
|
10243
10243
|
if (args.callback === void 0) {
|
|
10244
|
-
return new this.modem.Promise(function(
|
|
10244
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10245
10245
|
self2.modem.dial(fopts, function(err, data) {
|
|
10246
10246
|
if (err) {
|
|
10247
10247
|
return reject(err);
|
|
10248
10248
|
}
|
|
10249
|
-
|
|
10249
|
+
resolve2(data);
|
|
10250
10250
|
});
|
|
10251
10251
|
});
|
|
10252
10252
|
} else {
|
|
@@ -10268,12 +10268,12 @@ var require_image = __commonJS({
|
|
|
10268
10268
|
}
|
|
10269
10269
|
};
|
|
10270
10270
|
if (callback === void 0) {
|
|
10271
|
-
return new this.modem.Promise(function(
|
|
10271
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10272
10272
|
self2.modem.dial(opts, function(err, data) {
|
|
10273
10273
|
if (err) {
|
|
10274
10274
|
return reject(err);
|
|
10275
10275
|
}
|
|
10276
|
-
|
|
10276
|
+
resolve2(data);
|
|
10277
10277
|
});
|
|
10278
10278
|
});
|
|
10279
10279
|
} else {
|
|
@@ -10295,12 +10295,12 @@ var require_image = __commonJS({
|
|
|
10295
10295
|
}
|
|
10296
10296
|
};
|
|
10297
10297
|
if (callback === void 0) {
|
|
10298
|
-
return new this.modem.Promise(function(
|
|
10298
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10299
10299
|
self2.modem.dial(opts, function(err, data) {
|
|
10300
10300
|
if (err) {
|
|
10301
10301
|
return reject(err);
|
|
10302
10302
|
}
|
|
10303
|
-
|
|
10303
|
+
resolve2(data);
|
|
10304
10304
|
});
|
|
10305
10305
|
});
|
|
10306
10306
|
} else {
|
|
@@ -10332,12 +10332,12 @@ var require_image = __commonJS({
|
|
|
10332
10332
|
};
|
|
10333
10333
|
delete optsf.options.authconfig;
|
|
10334
10334
|
if (callback === void 0) {
|
|
10335
|
-
return new this.modem.Promise(function(
|
|
10335
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10336
10336
|
self2.modem.dial(optsf, function(err, data) {
|
|
10337
10337
|
if (err) {
|
|
10338
10338
|
return reject(err);
|
|
10339
10339
|
}
|
|
10340
|
-
|
|
10340
|
+
resolve2(data);
|
|
10341
10341
|
});
|
|
10342
10342
|
});
|
|
10343
10343
|
} else {
|
|
@@ -10364,12 +10364,12 @@ var require_image = __commonJS({
|
|
|
10364
10364
|
}
|
|
10365
10365
|
};
|
|
10366
10366
|
if (callback === void 0) {
|
|
10367
|
-
return new this.modem.Promise(function(
|
|
10367
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10368
10368
|
self2.modem.dial(optsf, function(err, data) {
|
|
10369
10369
|
if (err) {
|
|
10370
10370
|
return reject(err);
|
|
10371
10371
|
}
|
|
10372
|
-
|
|
10372
|
+
resolve2(data);
|
|
10373
10373
|
});
|
|
10374
10374
|
});
|
|
10375
10375
|
} else {
|
|
@@ -10394,12 +10394,12 @@ var require_image = __commonJS({
|
|
|
10394
10394
|
options: args.opts
|
|
10395
10395
|
};
|
|
10396
10396
|
if (args.callback === void 0) {
|
|
10397
|
-
return new this.modem.Promise(function(
|
|
10397
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10398
10398
|
self2.modem.dial(optsf, function(err, data) {
|
|
10399
10399
|
if (err) {
|
|
10400
10400
|
return reject(err);
|
|
10401
10401
|
}
|
|
10402
|
-
|
|
10402
|
+
resolve2(data);
|
|
10403
10403
|
});
|
|
10404
10404
|
});
|
|
10405
10405
|
} else {
|
|
@@ -10438,12 +10438,12 @@ var require_volume = __commonJS({
|
|
|
10438
10438
|
}
|
|
10439
10439
|
};
|
|
10440
10440
|
if (args.callback === void 0) {
|
|
10441
|
-
return new this.modem.Promise(function(
|
|
10441
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10442
10442
|
self2.modem.dial(optsf, function(err, data) {
|
|
10443
10443
|
if (err) {
|
|
10444
10444
|
return reject(err);
|
|
10445
10445
|
}
|
|
10446
|
-
|
|
10446
|
+
resolve2(data);
|
|
10447
10447
|
});
|
|
10448
10448
|
});
|
|
10449
10449
|
} else {
|
|
@@ -10468,12 +10468,12 @@ var require_volume = __commonJS({
|
|
|
10468
10468
|
options: args.opts
|
|
10469
10469
|
};
|
|
10470
10470
|
if (args.callback === void 0) {
|
|
10471
|
-
return new this.modem.Promise(function(
|
|
10471
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10472
10472
|
self2.modem.dial(optsf, function(err, data) {
|
|
10473
10473
|
if (err) {
|
|
10474
10474
|
return reject(err);
|
|
10475
10475
|
}
|
|
10476
|
-
|
|
10476
|
+
resolve2(data);
|
|
10477
10477
|
});
|
|
10478
10478
|
});
|
|
10479
10479
|
} else {
|
|
@@ -10512,12 +10512,12 @@ var require_network = __commonJS({
|
|
|
10512
10512
|
options: args.opts
|
|
10513
10513
|
};
|
|
10514
10514
|
if (args.callback === void 0) {
|
|
10515
|
-
return new this.modem.Promise(function(
|
|
10515
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10516
10516
|
self2.modem.dial(opts, function(err, data) {
|
|
10517
10517
|
if (err) {
|
|
10518
10518
|
return reject(err);
|
|
10519
10519
|
}
|
|
10520
|
-
|
|
10520
|
+
resolve2(data);
|
|
10521
10521
|
});
|
|
10522
10522
|
});
|
|
10523
10523
|
} else {
|
|
@@ -10543,12 +10543,12 @@ var require_network = __commonJS({
|
|
|
10543
10543
|
options: args.opts
|
|
10544
10544
|
};
|
|
10545
10545
|
if (args.callback === void 0) {
|
|
10546
|
-
return new this.modem.Promise(function(
|
|
10546
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10547
10547
|
self2.modem.dial(optsf, function(err, data) {
|
|
10548
10548
|
if (err) {
|
|
10549
10549
|
return reject(err);
|
|
10550
10550
|
}
|
|
10551
|
-
|
|
10551
|
+
resolve2(data);
|
|
10552
10552
|
});
|
|
10553
10553
|
});
|
|
10554
10554
|
} else {
|
|
@@ -10573,12 +10573,12 @@ var require_network = __commonJS({
|
|
|
10573
10573
|
options: args.opts
|
|
10574
10574
|
};
|
|
10575
10575
|
if (args.callback === void 0) {
|
|
10576
|
-
return new this.modem.Promise(function(
|
|
10576
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10577
10577
|
self2.modem.dial(optsf, function(err, data) {
|
|
10578
10578
|
if (err) {
|
|
10579
10579
|
return reject(err);
|
|
10580
10580
|
}
|
|
10581
|
-
|
|
10581
|
+
resolve2(data);
|
|
10582
10582
|
});
|
|
10583
10583
|
});
|
|
10584
10584
|
} else {
|
|
@@ -10603,12 +10603,12 @@ var require_network = __commonJS({
|
|
|
10603
10603
|
options: args.opts
|
|
10604
10604
|
};
|
|
10605
10605
|
if (args.callback === void 0) {
|
|
10606
|
-
return new this.modem.Promise(function(
|
|
10606
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10607
10607
|
self2.modem.dial(optsf, function(err, data) {
|
|
10608
10608
|
if (err) {
|
|
10609
10609
|
return reject(err);
|
|
10610
10610
|
}
|
|
10611
|
-
|
|
10611
|
+
resolve2(data);
|
|
10612
10612
|
});
|
|
10613
10613
|
});
|
|
10614
10614
|
} else {
|
|
@@ -10647,12 +10647,12 @@ var require_service = __commonJS({
|
|
|
10647
10647
|
}
|
|
10648
10648
|
};
|
|
10649
10649
|
if (args.callback === void 0) {
|
|
10650
|
-
return new this.modem.Promise(function(
|
|
10650
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10651
10651
|
self2.modem.dial(optsf, function(err, data) {
|
|
10652
10652
|
if (err) {
|
|
10653
10653
|
return reject(err);
|
|
10654
10654
|
}
|
|
10655
|
-
|
|
10655
|
+
resolve2(data);
|
|
10656
10656
|
});
|
|
10657
10657
|
});
|
|
10658
10658
|
} else {
|
|
@@ -10676,12 +10676,12 @@ var require_service = __commonJS({
|
|
|
10676
10676
|
}
|
|
10677
10677
|
};
|
|
10678
10678
|
if (args.callback === void 0) {
|
|
10679
|
-
return new this.modem.Promise(function(
|
|
10679
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10680
10680
|
self2.modem.dial(optsf, function(err, data) {
|
|
10681
10681
|
if (err) {
|
|
10682
10682
|
return reject(err);
|
|
10683
10683
|
}
|
|
10684
|
-
|
|
10684
|
+
resolve2(data);
|
|
10685
10685
|
});
|
|
10686
10686
|
});
|
|
10687
10687
|
} else {
|
|
@@ -10716,12 +10716,12 @@ var require_service = __commonJS({
|
|
|
10716
10716
|
options: opts
|
|
10717
10717
|
};
|
|
10718
10718
|
if (callback === void 0) {
|
|
10719
|
-
return new this.modem.Promise(function(
|
|
10719
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10720
10720
|
self2.modem.dial(optsf, function(err, data) {
|
|
10721
10721
|
if (err) {
|
|
10722
10722
|
return reject(err);
|
|
10723
10723
|
}
|
|
10724
|
-
|
|
10724
|
+
resolve2(data);
|
|
10725
10725
|
});
|
|
10726
10726
|
});
|
|
10727
10727
|
} else {
|
|
@@ -10747,12 +10747,12 @@ var require_service = __commonJS({
|
|
|
10747
10747
|
options: args.opts
|
|
10748
10748
|
};
|
|
10749
10749
|
if (args.callback === void 0) {
|
|
10750
|
-
return new this.modem.Promise(function(
|
|
10750
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10751
10751
|
self2.modem.dial(optsf, function(err, data) {
|
|
10752
10752
|
if (err) {
|
|
10753
10753
|
return reject(err);
|
|
10754
10754
|
}
|
|
10755
|
-
|
|
10755
|
+
resolve2(data);
|
|
10756
10756
|
});
|
|
10757
10757
|
});
|
|
10758
10758
|
} else {
|
|
@@ -10792,12 +10792,12 @@ var require_plugin = __commonJS({
|
|
|
10792
10792
|
}
|
|
10793
10793
|
};
|
|
10794
10794
|
if (args.callback === void 0) {
|
|
10795
|
-
return new this.modem.Promise(function(
|
|
10795
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10796
10796
|
self2.modem.dial(optsf, function(err, data) {
|
|
10797
10797
|
if (err) {
|
|
10798
10798
|
return reject(err);
|
|
10799
10799
|
}
|
|
10800
|
-
|
|
10800
|
+
resolve2(data);
|
|
10801
10801
|
});
|
|
10802
10802
|
});
|
|
10803
10803
|
} else {
|
|
@@ -10821,12 +10821,12 @@ var require_plugin = __commonJS({
|
|
|
10821
10821
|
options: args.opts
|
|
10822
10822
|
};
|
|
10823
10823
|
if (args.callback === void 0) {
|
|
10824
|
-
return new this.modem.Promise(function(
|
|
10824
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10825
10825
|
self2.modem.dial(optsf, function(err, data) {
|
|
10826
10826
|
if (err) {
|
|
10827
10827
|
return reject(err);
|
|
10828
10828
|
}
|
|
10829
|
-
|
|
10829
|
+
resolve2(data);
|
|
10830
10830
|
});
|
|
10831
10831
|
});
|
|
10832
10832
|
} else {
|
|
@@ -10852,12 +10852,12 @@ var require_plugin = __commonJS({
|
|
|
10852
10852
|
}
|
|
10853
10853
|
};
|
|
10854
10854
|
if (args.callback === void 0) {
|
|
10855
|
-
return new this.modem.Promise(function(
|
|
10855
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10856
10856
|
self2.modem.dial(optsf, function(err, data) {
|
|
10857
10857
|
if (err) {
|
|
10858
10858
|
return reject(err);
|
|
10859
10859
|
}
|
|
10860
|
-
|
|
10860
|
+
resolve2(data);
|
|
10861
10861
|
});
|
|
10862
10862
|
});
|
|
10863
10863
|
} else {
|
|
@@ -10889,12 +10889,12 @@ var require_plugin = __commonJS({
|
|
|
10889
10889
|
}
|
|
10890
10890
|
};
|
|
10891
10891
|
if (args.callback === void 0) {
|
|
10892
|
-
return new this.modem.Promise(function(
|
|
10892
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10893
10893
|
self2.modem.dial(optsf, function(err, data) {
|
|
10894
10894
|
if (err) {
|
|
10895
10895
|
return reject(err);
|
|
10896
10896
|
}
|
|
10897
|
-
|
|
10897
|
+
resolve2(data);
|
|
10898
10898
|
});
|
|
10899
10899
|
});
|
|
10900
10900
|
} else {
|
|
@@ -10917,12 +10917,12 @@ var require_plugin = __commonJS({
|
|
|
10917
10917
|
options: args.opts
|
|
10918
10918
|
};
|
|
10919
10919
|
if (args.callback === void 0) {
|
|
10920
|
-
return new this.modem.Promise(function(
|
|
10920
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10921
10921
|
self2.modem.dial(optsf, function(err, data) {
|
|
10922
10922
|
if (err) {
|
|
10923
10923
|
return reject(err);
|
|
10924
10924
|
}
|
|
10925
|
-
|
|
10925
|
+
resolve2(data);
|
|
10926
10926
|
});
|
|
10927
10927
|
});
|
|
10928
10928
|
} else {
|
|
@@ -10945,12 +10945,12 @@ var require_plugin = __commonJS({
|
|
|
10945
10945
|
options: args.opts
|
|
10946
10946
|
};
|
|
10947
10947
|
if (args.callback === void 0) {
|
|
10948
|
-
return new this.modem.Promise(function(
|
|
10948
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10949
10949
|
self2.modem.dial(optsf, function(err, data) {
|
|
10950
10950
|
if (err) {
|
|
10951
10951
|
return reject(err);
|
|
10952
10952
|
}
|
|
10953
|
-
|
|
10953
|
+
resolve2(data);
|
|
10954
10954
|
});
|
|
10955
10955
|
});
|
|
10956
10956
|
} else {
|
|
@@ -10974,12 +10974,12 @@ var require_plugin = __commonJS({
|
|
|
10974
10974
|
options: args.opts
|
|
10975
10975
|
};
|
|
10976
10976
|
if (args.callback === void 0) {
|
|
10977
|
-
return new this.modem.Promise(function(
|
|
10977
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
10978
10978
|
self2.modem.dial(optsf, function(err, data) {
|
|
10979
10979
|
if (err) {
|
|
10980
10980
|
return reject(err);
|
|
10981
10981
|
}
|
|
10982
|
-
|
|
10982
|
+
resolve2(data);
|
|
10983
10983
|
});
|
|
10984
10984
|
});
|
|
10985
10985
|
} else {
|
|
@@ -11003,12 +11003,12 @@ var require_plugin = __commonJS({
|
|
|
11003
11003
|
options: args.opts
|
|
11004
11004
|
};
|
|
11005
11005
|
if (args.callback === void 0) {
|
|
11006
|
-
return new this.modem.Promise(function(
|
|
11006
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11007
11007
|
self2.modem.dial(optsf, function(err, data) {
|
|
11008
11008
|
if (err) {
|
|
11009
11009
|
return reject(err);
|
|
11010
11010
|
}
|
|
11011
|
-
|
|
11011
|
+
resolve2(data);
|
|
11012
11012
|
});
|
|
11013
11013
|
});
|
|
11014
11014
|
} else {
|
|
@@ -11038,12 +11038,12 @@ var require_plugin = __commonJS({
|
|
|
11038
11038
|
options: opts
|
|
11039
11039
|
};
|
|
11040
11040
|
if (callback === void 0) {
|
|
11041
|
-
return new this.modem.Promise(function(
|
|
11041
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11042
11042
|
self2.modem.dial(optsf, function(err, data) {
|
|
11043
11043
|
if (err) {
|
|
11044
11044
|
return reject(err);
|
|
11045
11045
|
}
|
|
11046
|
-
|
|
11046
|
+
resolve2(data);
|
|
11047
11047
|
});
|
|
11048
11048
|
});
|
|
11049
11049
|
} else {
|
|
@@ -11083,12 +11083,12 @@ var require_secret = __commonJS({
|
|
|
11083
11083
|
}
|
|
11084
11084
|
};
|
|
11085
11085
|
if (args.callback === void 0) {
|
|
11086
|
-
return new this.modem.Promise(function(
|
|
11086
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11087
11087
|
self2.modem.dial(optsf, function(err, data) {
|
|
11088
11088
|
if (err) {
|
|
11089
11089
|
return reject(err);
|
|
11090
11090
|
}
|
|
11091
|
-
|
|
11091
|
+
resolve2(data);
|
|
11092
11092
|
});
|
|
11093
11093
|
});
|
|
11094
11094
|
} else {
|
|
@@ -11114,12 +11114,12 @@ var require_secret = __commonJS({
|
|
|
11114
11114
|
options: opts
|
|
11115
11115
|
};
|
|
11116
11116
|
if (callback === void 0) {
|
|
11117
|
-
return new this.modem.Promise(function(
|
|
11117
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11118
11118
|
self2.modem.dial(optsf, function(err, data) {
|
|
11119
11119
|
if (err) {
|
|
11120
11120
|
return reject(err);
|
|
11121
11121
|
}
|
|
11122
|
-
|
|
11122
|
+
resolve2(data);
|
|
11123
11123
|
});
|
|
11124
11124
|
});
|
|
11125
11125
|
} else {
|
|
@@ -11144,12 +11144,12 @@ var require_secret = __commonJS({
|
|
|
11144
11144
|
options: args.opts
|
|
11145
11145
|
};
|
|
11146
11146
|
if (args.callback === void 0) {
|
|
11147
|
-
return new this.modem.Promise(function(
|
|
11147
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11148
11148
|
self2.modem.dial(optsf, function(err, data) {
|
|
11149
11149
|
if (err) {
|
|
11150
11150
|
return reject(err);
|
|
11151
11151
|
}
|
|
11152
|
-
|
|
11152
|
+
resolve2(data);
|
|
11153
11153
|
});
|
|
11154
11154
|
});
|
|
11155
11155
|
} else {
|
|
@@ -11189,12 +11189,12 @@ var require_config = __commonJS({
|
|
|
11189
11189
|
}
|
|
11190
11190
|
};
|
|
11191
11191
|
if (args.callback === void 0) {
|
|
11192
|
-
return new this.modem.Promise(function(
|
|
11192
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11193
11193
|
self2.modem.dial(optsf, function(err, data) {
|
|
11194
11194
|
if (err) {
|
|
11195
11195
|
return reject(err);
|
|
11196
11196
|
}
|
|
11197
|
-
|
|
11197
|
+
resolve2(data);
|
|
11198
11198
|
});
|
|
11199
11199
|
});
|
|
11200
11200
|
} else {
|
|
@@ -11219,12 +11219,12 @@ var require_config = __commonJS({
|
|
|
11219
11219
|
options: args.opts
|
|
11220
11220
|
};
|
|
11221
11221
|
if (args.callback === void 0) {
|
|
11222
|
-
return new this.modem.Promise(function(
|
|
11222
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11223
11223
|
self2.modem.dial(optsf, function(err, data) {
|
|
11224
11224
|
if (err) {
|
|
11225
11225
|
return reject(err);
|
|
11226
11226
|
}
|
|
11227
|
-
|
|
11227
|
+
resolve2(data);
|
|
11228
11228
|
});
|
|
11229
11229
|
});
|
|
11230
11230
|
} else {
|
|
@@ -11250,12 +11250,12 @@ var require_config = __commonJS({
|
|
|
11250
11250
|
options: args.opts
|
|
11251
11251
|
};
|
|
11252
11252
|
if (args.callback === void 0) {
|
|
11253
|
-
return new this.modem.Promise(function(
|
|
11253
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11254
11254
|
self2.modem.dial(optsf, function(err, data) {
|
|
11255
11255
|
if (err) {
|
|
11256
11256
|
return reject(err);
|
|
11257
11257
|
}
|
|
11258
|
-
|
|
11258
|
+
resolve2(data);
|
|
11259
11259
|
});
|
|
11260
11260
|
});
|
|
11261
11261
|
} else {
|
|
@@ -11297,12 +11297,12 @@ var require_task = __commonJS({
|
|
|
11297
11297
|
}
|
|
11298
11298
|
};
|
|
11299
11299
|
if (args.callback === void 0) {
|
|
11300
|
-
return new this.modem.Promise(function(
|
|
11300
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11301
11301
|
self2.modem.dial(optsf, function(err, data) {
|
|
11302
11302
|
if (err) {
|
|
11303
11303
|
return reject(err);
|
|
11304
11304
|
}
|
|
11305
|
-
|
|
11305
|
+
resolve2(data);
|
|
11306
11306
|
});
|
|
11307
11307
|
});
|
|
11308
11308
|
} else {
|
|
@@ -11329,12 +11329,12 @@ var require_task = __commonJS({
|
|
|
11329
11329
|
options: args.opts
|
|
11330
11330
|
};
|
|
11331
11331
|
if (args.callback === void 0) {
|
|
11332
|
-
return new this.modem.Promise(function(
|
|
11332
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11333
11333
|
self2.modem.dial(optsf, function(err, data) {
|
|
11334
11334
|
if (err) {
|
|
11335
11335
|
return reject(err);
|
|
11336
11336
|
}
|
|
11337
|
-
|
|
11337
|
+
resolve2(data);
|
|
11338
11338
|
});
|
|
11339
11339
|
});
|
|
11340
11340
|
} else {
|
|
@@ -11373,12 +11373,12 @@ var require_node3 = __commonJS({
|
|
|
11373
11373
|
}
|
|
11374
11374
|
};
|
|
11375
11375
|
if (args.callback === void 0) {
|
|
11376
|
-
return new this.modem.Promise(function(
|
|
11376
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11377
11377
|
self2.modem.dial(optsf, function(err, data) {
|
|
11378
11378
|
if (err) {
|
|
11379
11379
|
return reject(err);
|
|
11380
11380
|
}
|
|
11381
|
-
|
|
11381
|
+
resolve2(data);
|
|
11382
11382
|
});
|
|
11383
11383
|
});
|
|
11384
11384
|
} else {
|
|
@@ -11405,12 +11405,12 @@ var require_node3 = __commonJS({
|
|
|
11405
11405
|
options: opts
|
|
11406
11406
|
};
|
|
11407
11407
|
if (callback === void 0) {
|
|
11408
|
-
return new this.modem.Promise(function(
|
|
11408
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11409
11409
|
self2.modem.dial(optsf, function(err, data) {
|
|
11410
11410
|
if (err) {
|
|
11411
11411
|
return reject(err);
|
|
11412
11412
|
}
|
|
11413
|
-
|
|
11413
|
+
resolve2(data);
|
|
11414
11414
|
});
|
|
11415
11415
|
});
|
|
11416
11416
|
} else {
|
|
@@ -11434,12 +11434,12 @@ var require_node3 = __commonJS({
|
|
|
11434
11434
|
options: args.opts
|
|
11435
11435
|
};
|
|
11436
11436
|
if (args.callback === void 0) {
|
|
11437
|
-
return new this.modem.Promise(function(
|
|
11437
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11438
11438
|
self2.modem.dial(optsf, function(err, data) {
|
|
11439
11439
|
if (err) {
|
|
11440
11440
|
return reject(err);
|
|
11441
11441
|
}
|
|
11442
|
-
|
|
11442
|
+
resolve2(data);
|
|
11443
11443
|
});
|
|
11444
11444
|
});
|
|
11445
11445
|
} else {
|
|
@@ -11507,12 +11507,12 @@ var require_docker = __commonJS({
|
|
|
11507
11507
|
};
|
|
11508
11508
|
delete opts.authconfig;
|
|
11509
11509
|
if (callback === void 0) {
|
|
11510
|
-
return new this.modem.Promise(function(
|
|
11510
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11511
11511
|
self2.modem.dial(optsf, function(err, data) {
|
|
11512
11512
|
if (err) {
|
|
11513
11513
|
return reject(err);
|
|
11514
11514
|
}
|
|
11515
|
-
|
|
11515
|
+
resolve2(self2.getContainer(data.Id));
|
|
11516
11516
|
});
|
|
11517
11517
|
});
|
|
11518
11518
|
} else {
|
|
@@ -11545,12 +11545,12 @@ var require_docker = __commonJS({
|
|
|
11545
11545
|
}
|
|
11546
11546
|
};
|
|
11547
11547
|
if (callback === void 0) {
|
|
11548
|
-
return new this.modem.Promise(function(
|
|
11548
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11549
11549
|
self2.modem.dial(optsf, function(err, data) {
|
|
11550
11550
|
if (err) {
|
|
11551
11551
|
return reject(err);
|
|
11552
11552
|
}
|
|
11553
|
-
|
|
11553
|
+
resolve2(data);
|
|
11554
11554
|
});
|
|
11555
11555
|
});
|
|
11556
11556
|
} else {
|
|
@@ -11578,12 +11578,12 @@ var require_docker = __commonJS({
|
|
|
11578
11578
|
}
|
|
11579
11579
|
};
|
|
11580
11580
|
if (callback === void 0) {
|
|
11581
|
-
return new this.modem.Promise(function(
|
|
11581
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11582
11582
|
self2.modem.dial(optsf, function(err, data) {
|
|
11583
11583
|
if (err) {
|
|
11584
11584
|
return reject(err);
|
|
11585
11585
|
}
|
|
11586
|
-
|
|
11586
|
+
resolve2(data);
|
|
11587
11587
|
});
|
|
11588
11588
|
});
|
|
11589
11589
|
} else {
|
|
@@ -11614,12 +11614,12 @@ var require_docker = __commonJS({
|
|
|
11614
11614
|
}
|
|
11615
11615
|
};
|
|
11616
11616
|
if (callback === void 0) {
|
|
11617
|
-
return new this.modem.Promise(function(
|
|
11617
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11618
11618
|
self2.modem.dial(optsf, function(err, data) {
|
|
11619
11619
|
if (err) {
|
|
11620
11620
|
return reject(err);
|
|
11621
11621
|
}
|
|
11622
|
-
|
|
11622
|
+
resolve2(data);
|
|
11623
11623
|
});
|
|
11624
11624
|
});
|
|
11625
11625
|
} else {
|
|
@@ -11642,12 +11642,12 @@ var require_docker = __commonJS({
|
|
|
11642
11642
|
}
|
|
11643
11643
|
};
|
|
11644
11644
|
if (callback === void 0) {
|
|
11645
|
-
return new this.modem.Promise(function(
|
|
11645
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11646
11646
|
self2.modem.dial(optsf, function(err, data) {
|
|
11647
11647
|
if (err) {
|
|
11648
11648
|
return reject(err);
|
|
11649
11649
|
}
|
|
11650
|
-
|
|
11650
|
+
resolve2(data);
|
|
11651
11651
|
});
|
|
11652
11652
|
});
|
|
11653
11653
|
} else {
|
|
@@ -11685,14 +11685,14 @@ var require_docker = __commonJS({
|
|
|
11685
11685
|
}
|
|
11686
11686
|
}
|
|
11687
11687
|
if (callback === void 0) {
|
|
11688
|
-
return new self2.modem.Promise(function(
|
|
11688
|
+
return new self2.modem.Promise(function(resolve2, reject) {
|
|
11689
11689
|
util2.prepareBuildContext(file, (ctx) => {
|
|
11690
11690
|
optsf.file = ctx;
|
|
11691
11691
|
self2.modem.dial(optsf, function(err, data) {
|
|
11692
11692
|
if (err) {
|
|
11693
11693
|
return reject(err);
|
|
11694
11694
|
}
|
|
11695
|
-
|
|
11695
|
+
resolve2(data);
|
|
11696
11696
|
});
|
|
11697
11697
|
});
|
|
11698
11698
|
});
|
|
@@ -11753,12 +11753,12 @@ var require_docker = __commonJS({
|
|
|
11753
11753
|
}
|
|
11754
11754
|
};
|
|
11755
11755
|
if (args.callback === void 0) {
|
|
11756
|
-
return new this.modem.Promise(function(
|
|
11756
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11757
11757
|
self2.modem.dial(optsf, function(err, data) {
|
|
11758
11758
|
if (err) {
|
|
11759
11759
|
return reject(err);
|
|
11760
11760
|
}
|
|
11761
|
-
|
|
11761
|
+
resolve2(data);
|
|
11762
11762
|
});
|
|
11763
11763
|
});
|
|
11764
11764
|
} else {
|
|
@@ -11782,12 +11782,12 @@ var require_docker = __commonJS({
|
|
|
11782
11782
|
}
|
|
11783
11783
|
};
|
|
11784
11784
|
if (args.callback === void 0) {
|
|
11785
|
-
return new this.modem.Promise(function(
|
|
11785
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11786
11786
|
self2.modem.dial(optsf, function(err, data) {
|
|
11787
11787
|
if (err) {
|
|
11788
11788
|
return reject(err);
|
|
11789
11789
|
}
|
|
11790
|
-
|
|
11790
|
+
resolve2(data);
|
|
11791
11791
|
});
|
|
11792
11792
|
});
|
|
11793
11793
|
} else {
|
|
@@ -11812,12 +11812,12 @@ var require_docker = __commonJS({
|
|
|
11812
11812
|
}
|
|
11813
11813
|
};
|
|
11814
11814
|
if (args.callback === void 0) {
|
|
11815
|
-
return new this.modem.Promise(function(
|
|
11815
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11816
11816
|
self2.modem.dial(optsf, function(err, data) {
|
|
11817
11817
|
if (err) {
|
|
11818
11818
|
return reject(err);
|
|
11819
11819
|
}
|
|
11820
|
-
|
|
11820
|
+
resolve2(data);
|
|
11821
11821
|
});
|
|
11822
11822
|
});
|
|
11823
11823
|
} else {
|
|
@@ -11840,12 +11840,12 @@ var require_docker = __commonJS({
|
|
|
11840
11840
|
}
|
|
11841
11841
|
};
|
|
11842
11842
|
if (args.callback === void 0) {
|
|
11843
|
-
return new this.modem.Promise(function(
|
|
11843
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11844
11844
|
self2.modem.dial(optsf, function(err, data) {
|
|
11845
11845
|
if (err) {
|
|
11846
11846
|
return reject(err);
|
|
11847
11847
|
}
|
|
11848
|
-
|
|
11848
|
+
resolve2(data);
|
|
11849
11849
|
});
|
|
11850
11850
|
});
|
|
11851
11851
|
} else {
|
|
@@ -11871,12 +11871,12 @@ var require_docker = __commonJS({
|
|
|
11871
11871
|
}
|
|
11872
11872
|
};
|
|
11873
11873
|
if (args.callback === void 0) {
|
|
11874
|
-
return new this.modem.Promise(function(
|
|
11874
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11875
11875
|
self2.modem.dial(optsf, function(err, data) {
|
|
11876
11876
|
if (err) {
|
|
11877
11877
|
return reject(err);
|
|
11878
11878
|
}
|
|
11879
|
-
|
|
11879
|
+
resolve2(data);
|
|
11880
11880
|
});
|
|
11881
11881
|
});
|
|
11882
11882
|
} else {
|
|
@@ -11899,12 +11899,12 @@ var require_docker = __commonJS({
|
|
|
11899
11899
|
}
|
|
11900
11900
|
};
|
|
11901
11901
|
if (args.callback === void 0) {
|
|
11902
|
-
return new this.modem.Promise(function(
|
|
11902
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11903
11903
|
self2.modem.dial(optsf, function(err, data) {
|
|
11904
11904
|
if (err) {
|
|
11905
11905
|
return reject(err);
|
|
11906
11906
|
}
|
|
11907
|
-
|
|
11907
|
+
resolve2(data);
|
|
11908
11908
|
});
|
|
11909
11909
|
});
|
|
11910
11910
|
} else {
|
|
@@ -11931,12 +11931,12 @@ var require_docker = __commonJS({
|
|
|
11931
11931
|
}
|
|
11932
11932
|
};
|
|
11933
11933
|
if (args.callback === void 0) {
|
|
11934
|
-
return new this.modem.Promise(function(
|
|
11934
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11935
11935
|
self2.modem.dial(optsf, function(err, data) {
|
|
11936
11936
|
if (err) {
|
|
11937
11937
|
return reject(err);
|
|
11938
11938
|
}
|
|
11939
|
-
|
|
11939
|
+
resolve2(self2.getSecret(data.ID));
|
|
11940
11940
|
});
|
|
11941
11941
|
});
|
|
11942
11942
|
} else {
|
|
@@ -11964,12 +11964,12 @@ var require_docker = __commonJS({
|
|
|
11964
11964
|
}
|
|
11965
11965
|
};
|
|
11966
11966
|
if (args.callback === void 0) {
|
|
11967
|
-
return new this.modem.Promise(function(
|
|
11967
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11968
11968
|
self2.modem.dial(optsf, function(err, data) {
|
|
11969
11969
|
if (err) {
|
|
11970
11970
|
return reject(err);
|
|
11971
11971
|
}
|
|
11972
|
-
|
|
11972
|
+
resolve2(self2.getConfig(data.ID));
|
|
11973
11973
|
});
|
|
11974
11974
|
});
|
|
11975
11975
|
} else {
|
|
@@ -11993,12 +11993,12 @@ var require_docker = __commonJS({
|
|
|
11993
11993
|
}
|
|
11994
11994
|
};
|
|
11995
11995
|
if (args.callback === void 0) {
|
|
11996
|
-
return new this.modem.Promise(function(
|
|
11996
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
11997
11997
|
self2.modem.dial(optsf, function(err, data) {
|
|
11998
11998
|
if (err) {
|
|
11999
11999
|
return reject(err);
|
|
12000
12000
|
}
|
|
12001
|
-
|
|
12001
|
+
resolve2(data);
|
|
12002
12002
|
});
|
|
12003
12003
|
});
|
|
12004
12004
|
} else {
|
|
@@ -12021,12 +12021,12 @@ var require_docker = __commonJS({
|
|
|
12021
12021
|
}
|
|
12022
12022
|
};
|
|
12023
12023
|
if (args.callback === void 0) {
|
|
12024
|
-
return new this.modem.Promise(function(
|
|
12024
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12025
12025
|
self2.modem.dial(optsf, function(err, data) {
|
|
12026
12026
|
if (err) {
|
|
12027
12027
|
return reject(err);
|
|
12028
12028
|
}
|
|
12029
|
-
|
|
12029
|
+
resolve2(data);
|
|
12030
12030
|
});
|
|
12031
12031
|
});
|
|
12032
12032
|
} else {
|
|
@@ -12051,12 +12051,12 @@ var require_docker = __commonJS({
|
|
|
12051
12051
|
}
|
|
12052
12052
|
};
|
|
12053
12053
|
if (args.callback === void 0) {
|
|
12054
|
-
return new this.modem.Promise(function(
|
|
12054
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12055
12055
|
self2.modem.dial(optsf, function(err, data) {
|
|
12056
12056
|
if (err) {
|
|
12057
12057
|
return reject(err);
|
|
12058
12058
|
}
|
|
12059
|
-
|
|
12059
|
+
resolve2(self2.getPlugin(args.opts.name));
|
|
12060
12060
|
});
|
|
12061
12061
|
});
|
|
12062
12062
|
} else {
|
|
@@ -12080,12 +12080,12 @@ var require_docker = __commonJS({
|
|
|
12080
12080
|
}
|
|
12081
12081
|
};
|
|
12082
12082
|
if (args.callback === void 0) {
|
|
12083
|
-
return new this.modem.Promise(function(
|
|
12083
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12084
12084
|
self2.modem.dial(optsf, function(err, data) {
|
|
12085
12085
|
if (err) {
|
|
12086
12086
|
return reject(err);
|
|
12087
12087
|
}
|
|
12088
|
-
|
|
12088
|
+
resolve2(data);
|
|
12089
12089
|
});
|
|
12090
12090
|
});
|
|
12091
12091
|
} else {
|
|
@@ -12108,12 +12108,12 @@ var require_docker = __commonJS({
|
|
|
12108
12108
|
}
|
|
12109
12109
|
};
|
|
12110
12110
|
if (args.callback === void 0) {
|
|
12111
|
-
return new this.modem.Promise(function(
|
|
12111
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12112
12112
|
self2.modem.dial(optsf, function(err, data) {
|
|
12113
12113
|
if (err) {
|
|
12114
12114
|
return reject(err);
|
|
12115
12115
|
}
|
|
12116
|
-
|
|
12116
|
+
resolve2(data);
|
|
12117
12117
|
});
|
|
12118
12118
|
});
|
|
12119
12119
|
} else {
|
|
@@ -12135,12 +12135,12 @@ var require_docker = __commonJS({
|
|
|
12135
12135
|
}
|
|
12136
12136
|
};
|
|
12137
12137
|
if (args.callback === void 0) {
|
|
12138
|
-
return new this.modem.Promise(function(
|
|
12138
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12139
12139
|
self2.modem.dial(optsf, function(err, data) {
|
|
12140
12140
|
if (err) {
|
|
12141
12141
|
return reject(err);
|
|
12142
12142
|
}
|
|
12143
|
-
|
|
12143
|
+
resolve2(data);
|
|
12144
12144
|
});
|
|
12145
12145
|
});
|
|
12146
12146
|
} else {
|
|
@@ -12163,12 +12163,12 @@ var require_docker = __commonJS({
|
|
|
12163
12163
|
}
|
|
12164
12164
|
};
|
|
12165
12165
|
if (args.callback === void 0) {
|
|
12166
|
-
return new this.modem.Promise(function(
|
|
12166
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12167
12167
|
self2.modem.dial(optsf, function(err, data) {
|
|
12168
12168
|
if (err) {
|
|
12169
12169
|
return reject(err);
|
|
12170
12170
|
}
|
|
12171
|
-
|
|
12171
|
+
resolve2(data);
|
|
12172
12172
|
});
|
|
12173
12173
|
});
|
|
12174
12174
|
} else {
|
|
@@ -12191,12 +12191,12 @@ var require_docker = __commonJS({
|
|
|
12191
12191
|
}
|
|
12192
12192
|
};
|
|
12193
12193
|
if (args.callback === void 0) {
|
|
12194
|
-
return new this.modem.Promise(function(
|
|
12194
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12195
12195
|
self2.modem.dial(optsf, function(err, data) {
|
|
12196
12196
|
if (err) {
|
|
12197
12197
|
return reject(err);
|
|
12198
12198
|
}
|
|
12199
|
-
|
|
12199
|
+
resolve2(data);
|
|
12200
12200
|
});
|
|
12201
12201
|
});
|
|
12202
12202
|
} else {
|
|
@@ -12219,12 +12219,12 @@ var require_docker = __commonJS({
|
|
|
12219
12219
|
}
|
|
12220
12220
|
};
|
|
12221
12221
|
if (args.callback === void 0) {
|
|
12222
|
-
return new this.modem.Promise(function(
|
|
12222
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12223
12223
|
self2.modem.dial(optsf, function(err, data) {
|
|
12224
12224
|
if (err) {
|
|
12225
12225
|
return reject(err);
|
|
12226
12226
|
}
|
|
12227
|
-
|
|
12227
|
+
resolve2(data);
|
|
12228
12228
|
});
|
|
12229
12229
|
});
|
|
12230
12230
|
} else {
|
|
@@ -12250,12 +12250,12 @@ var require_docker = __commonJS({
|
|
|
12250
12250
|
}
|
|
12251
12251
|
};
|
|
12252
12252
|
if (args.callback === void 0) {
|
|
12253
|
-
return new this.modem.Promise(function(
|
|
12253
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12254
12254
|
self2.modem.dial(optsf, function(err, data) {
|
|
12255
12255
|
if (err) {
|
|
12256
12256
|
return reject(err);
|
|
12257
12257
|
}
|
|
12258
|
-
|
|
12258
|
+
resolve2(self2.getVolume(data.Name));
|
|
12259
12259
|
});
|
|
12260
12260
|
});
|
|
12261
12261
|
} else {
|
|
@@ -12287,12 +12287,12 @@ var require_docker = __commonJS({
|
|
|
12287
12287
|
}
|
|
12288
12288
|
};
|
|
12289
12289
|
if (callback === void 0) {
|
|
12290
|
-
return new this.modem.Promise(function(
|
|
12290
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12291
12291
|
self2.modem.dial(optsf, function(err, data) {
|
|
12292
12292
|
if (err) {
|
|
12293
12293
|
return reject(err);
|
|
12294
12294
|
}
|
|
12295
|
-
|
|
12295
|
+
resolve2(self2.getService(data.ID || data.Id));
|
|
12296
12296
|
});
|
|
12297
12297
|
});
|
|
12298
12298
|
} else {
|
|
@@ -12317,12 +12317,12 @@ var require_docker = __commonJS({
|
|
|
12317
12317
|
}
|
|
12318
12318
|
};
|
|
12319
12319
|
if (args.callback === void 0) {
|
|
12320
|
-
return new this.modem.Promise(function(
|
|
12320
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12321
12321
|
self2.modem.dial(optsf, function(err, data) {
|
|
12322
12322
|
if (err) {
|
|
12323
12323
|
return reject(err);
|
|
12324
12324
|
}
|
|
12325
|
-
|
|
12325
|
+
resolve2(data);
|
|
12326
12326
|
});
|
|
12327
12327
|
});
|
|
12328
12328
|
} else {
|
|
@@ -12348,12 +12348,12 @@ var require_docker = __commonJS({
|
|
|
12348
12348
|
}
|
|
12349
12349
|
};
|
|
12350
12350
|
if (args.callback === void 0) {
|
|
12351
|
-
return new this.modem.Promise(function(
|
|
12351
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12352
12352
|
self2.modem.dial(optsf, function(err, data) {
|
|
12353
12353
|
if (err) {
|
|
12354
12354
|
return reject(err);
|
|
12355
12355
|
}
|
|
12356
|
-
|
|
12356
|
+
resolve2(self2.getNetwork(data.Id));
|
|
12357
12357
|
});
|
|
12358
12358
|
});
|
|
12359
12359
|
} else {
|
|
@@ -12378,12 +12378,12 @@ var require_docker = __commonJS({
|
|
|
12378
12378
|
}
|
|
12379
12379
|
};
|
|
12380
12380
|
if (args.callback === void 0) {
|
|
12381
|
-
return new this.modem.Promise(function(
|
|
12381
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12382
12382
|
self2.modem.dial(optsf, function(err, data) {
|
|
12383
12383
|
if (err) {
|
|
12384
12384
|
return reject(err);
|
|
12385
12385
|
}
|
|
12386
|
-
|
|
12386
|
+
resolve2(data);
|
|
12387
12387
|
});
|
|
12388
12388
|
});
|
|
12389
12389
|
} else {
|
|
@@ -12406,12 +12406,12 @@ var require_docker = __commonJS({
|
|
|
12406
12406
|
}
|
|
12407
12407
|
};
|
|
12408
12408
|
if (callback === void 0) {
|
|
12409
|
-
return new this.modem.Promise(function(
|
|
12409
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12410
12410
|
self2.modem.dial(optsf, function(err, data) {
|
|
12411
12411
|
if (err) {
|
|
12412
12412
|
return reject(err);
|
|
12413
12413
|
}
|
|
12414
|
-
|
|
12414
|
+
resolve2(data);
|
|
12415
12415
|
});
|
|
12416
12416
|
});
|
|
12417
12417
|
} else {
|
|
@@ -12433,12 +12433,12 @@ var require_docker = __commonJS({
|
|
|
12433
12433
|
}
|
|
12434
12434
|
};
|
|
12435
12435
|
if (args.callback === void 0) {
|
|
12436
|
-
return new this.modem.Promise(function(
|
|
12436
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12437
12437
|
self2.modem.dial(opts, function(err, data) {
|
|
12438
12438
|
if (err) {
|
|
12439
12439
|
return reject(err);
|
|
12440
12440
|
}
|
|
12441
|
-
|
|
12441
|
+
resolve2(data);
|
|
12442
12442
|
});
|
|
12443
12443
|
});
|
|
12444
12444
|
} else {
|
|
@@ -12460,12 +12460,12 @@ var require_docker = __commonJS({
|
|
|
12460
12460
|
}
|
|
12461
12461
|
};
|
|
12462
12462
|
if (args.callback === void 0) {
|
|
12463
|
-
return new this.modem.Promise(function(
|
|
12463
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12464
12464
|
self2.modem.dial(opts, function(err, data) {
|
|
12465
12465
|
if (err) {
|
|
12466
12466
|
return reject(err);
|
|
12467
12467
|
}
|
|
12468
|
-
|
|
12468
|
+
resolve2(data);
|
|
12469
12469
|
});
|
|
12470
12470
|
});
|
|
12471
12471
|
} else {
|
|
@@ -12487,12 +12487,12 @@ var require_docker = __commonJS({
|
|
|
12487
12487
|
}
|
|
12488
12488
|
};
|
|
12489
12489
|
if (args.callback === void 0) {
|
|
12490
|
-
return new this.modem.Promise(function(
|
|
12490
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12491
12491
|
self2.modem.dial(optsf, function(err, data) {
|
|
12492
12492
|
if (err) {
|
|
12493
12493
|
return reject(err);
|
|
12494
12494
|
}
|
|
12495
|
-
|
|
12495
|
+
resolve2(data);
|
|
12496
12496
|
});
|
|
12497
12497
|
});
|
|
12498
12498
|
} else {
|
|
@@ -12514,12 +12514,12 @@ var require_docker = __commonJS({
|
|
|
12514
12514
|
}
|
|
12515
12515
|
};
|
|
12516
12516
|
if (args.callback === void 0) {
|
|
12517
|
-
return new this.modem.Promise(function(
|
|
12517
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12518
12518
|
self2.modem.dial(optsf, function(err, data) {
|
|
12519
12519
|
if (err) {
|
|
12520
12520
|
return reject(err);
|
|
12521
12521
|
}
|
|
12522
|
-
|
|
12522
|
+
resolve2(data);
|
|
12523
12523
|
});
|
|
12524
12524
|
});
|
|
12525
12525
|
} else {
|
|
@@ -12543,12 +12543,12 @@ var require_docker = __commonJS({
|
|
|
12543
12543
|
}
|
|
12544
12544
|
};
|
|
12545
12545
|
if (args.callback === void 0) {
|
|
12546
|
-
return new this.modem.Promise(function(
|
|
12546
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12547
12547
|
self2.modem.dial(optsf, function(err, data) {
|
|
12548
12548
|
if (err) {
|
|
12549
12549
|
return reject(err);
|
|
12550
12550
|
}
|
|
12551
|
-
|
|
12551
|
+
resolve2(data);
|
|
12552
12552
|
});
|
|
12553
12553
|
});
|
|
12554
12554
|
} else {
|
|
@@ -12665,7 +12665,7 @@ var require_docker = __commonJS({
|
|
|
12665
12665
|
};
|
|
12666
12666
|
extend(optsc, createOptions);
|
|
12667
12667
|
var containero;
|
|
12668
|
-
return new this.modem.Promise(function(
|
|
12668
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12669
12669
|
self2.createContainer(optsc).then(function(container) {
|
|
12670
12670
|
containero = container;
|
|
12671
12671
|
return container.attach({
|
|
@@ -12698,7 +12698,7 @@ var require_docker = __commonJS({
|
|
|
12698
12698
|
}).then(function(data) {
|
|
12699
12699
|
return containero.wait();
|
|
12700
12700
|
}).then(function(data) {
|
|
12701
|
-
|
|
12701
|
+
resolve2([data, containero]);
|
|
12702
12702
|
}).catch(function(err) {
|
|
12703
12703
|
reject(err);
|
|
12704
12704
|
});
|
|
@@ -12719,12 +12719,12 @@ var require_docker = __commonJS({
|
|
|
12719
12719
|
options: args.opts
|
|
12720
12720
|
};
|
|
12721
12721
|
if (args.callback === void 0) {
|
|
12722
|
-
return new this.modem.Promise(function(
|
|
12722
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12723
12723
|
self2.modem.dial(optsf, function(err, data) {
|
|
12724
12724
|
if (err) {
|
|
12725
12725
|
return reject(err);
|
|
12726
12726
|
}
|
|
12727
|
-
|
|
12727
|
+
resolve2(data);
|
|
12728
12728
|
});
|
|
12729
12729
|
});
|
|
12730
12730
|
} else {
|
|
@@ -12748,12 +12748,12 @@ var require_docker = __commonJS({
|
|
|
12748
12748
|
options: args.opts
|
|
12749
12749
|
};
|
|
12750
12750
|
if (args.callback === void 0) {
|
|
12751
|
-
return new this.modem.Promise(function(
|
|
12751
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12752
12752
|
self2.modem.dial(optsf, function(err, data) {
|
|
12753
12753
|
if (err) {
|
|
12754
12754
|
return reject(err);
|
|
12755
12755
|
}
|
|
12756
|
-
|
|
12756
|
+
resolve2(data);
|
|
12757
12757
|
});
|
|
12758
12758
|
});
|
|
12759
12759
|
} else {
|
|
@@ -12776,12 +12776,12 @@ var require_docker = __commonJS({
|
|
|
12776
12776
|
options: args.opts
|
|
12777
12777
|
};
|
|
12778
12778
|
if (args.callback === void 0) {
|
|
12779
|
-
return new this.modem.Promise(function(
|
|
12779
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12780
12780
|
self2.modem.dial(optsf, function(err, data) {
|
|
12781
12781
|
if (err) {
|
|
12782
12782
|
return reject(err);
|
|
12783
12783
|
}
|
|
12784
|
-
|
|
12784
|
+
resolve2(data);
|
|
12785
12785
|
});
|
|
12786
12786
|
});
|
|
12787
12787
|
} else {
|
|
@@ -12805,12 +12805,12 @@ var require_docker = __commonJS({
|
|
|
12805
12805
|
options: args.opts
|
|
12806
12806
|
};
|
|
12807
12807
|
if (args.callback === void 0) {
|
|
12808
|
-
return new this.modem.Promise(function(
|
|
12808
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12809
12809
|
self2.modem.dial(optsf, function(err, data) {
|
|
12810
12810
|
if (err) {
|
|
12811
12811
|
return reject(err);
|
|
12812
12812
|
}
|
|
12813
|
-
|
|
12813
|
+
resolve2(data);
|
|
12814
12814
|
});
|
|
12815
12815
|
});
|
|
12816
12816
|
} else {
|
|
@@ -12833,12 +12833,12 @@ var require_docker = __commonJS({
|
|
|
12833
12833
|
}
|
|
12834
12834
|
};
|
|
12835
12835
|
if (args.callback === void 0) {
|
|
12836
|
-
return new this.modem.Promise(function(
|
|
12836
|
+
return new this.modem.Promise(function(resolve2, reject) {
|
|
12837
12837
|
self2.modem.dial(optsf, function(err, data) {
|
|
12838
12838
|
if (err) {
|
|
12839
12839
|
return reject(err);
|
|
12840
12840
|
}
|
|
12841
|
-
|
|
12841
|
+
resolve2(data);
|
|
12842
12842
|
});
|
|
12843
12843
|
});
|
|
12844
12844
|
} else {
|
|
@@ -16523,7 +16523,7 @@ var require_update_check = __commonJS({
|
|
|
16523
16523
|
});
|
|
16524
16524
|
yield writeFile(file, content, "utf8");
|
|
16525
16525
|
});
|
|
16526
|
-
var loadPackage = (url, authInfo) => new Promise((
|
|
16526
|
+
var loadPackage = (url, authInfo) => new Promise((resolve2, reject) => {
|
|
16527
16527
|
const options = {
|
|
16528
16528
|
host: url.hostname,
|
|
16529
16529
|
path: url.pathname,
|
|
@@ -16554,7 +16554,7 @@ var require_update_check = __commonJS({
|
|
|
16554
16554
|
response.on("end", () => {
|
|
16555
16555
|
try {
|
|
16556
16556
|
const parsedData = JSON.parse(rawData);
|
|
16557
|
-
|
|
16557
|
+
resolve2(parsedData);
|
|
16558
16558
|
} catch (e) {
|
|
16559
16559
|
reject(e);
|
|
16560
16560
|
}
|
|
@@ -18686,7 +18686,7 @@ var require_lib2 = __commonJS({
|
|
|
18686
18686
|
let accum = [];
|
|
18687
18687
|
let accumBytes = 0;
|
|
18688
18688
|
let abort = false;
|
|
18689
|
-
return new Body.Promise(function(
|
|
18689
|
+
return new Body.Promise(function(resolve2, reject) {
|
|
18690
18690
|
let resTimeout;
|
|
18691
18691
|
if (_this4.timeout) {
|
|
18692
18692
|
resTimeout = setTimeout(function() {
|
|
@@ -18720,7 +18720,7 @@ var require_lib2 = __commonJS({
|
|
|
18720
18720
|
}
|
|
18721
18721
|
clearTimeout(resTimeout);
|
|
18722
18722
|
try {
|
|
18723
|
-
|
|
18723
|
+
resolve2(Buffer.concat(accum, accumBytes));
|
|
18724
18724
|
} catch (err) {
|
|
18725
18725
|
reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, "system", err));
|
|
18726
18726
|
}
|
|
@@ -19395,7 +19395,7 @@ var require_lib2 = __commonJS({
|
|
|
19395
19395
|
throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
|
|
19396
19396
|
}
|
|
19397
19397
|
Body.Promise = fetch2.Promise;
|
|
19398
|
-
return new fetch2.Promise(function(
|
|
19398
|
+
return new fetch2.Promise(function(resolve2, reject) {
|
|
19399
19399
|
const request = new Request(url, opts);
|
|
19400
19400
|
const options = getNodeRequestOptions(request);
|
|
19401
19401
|
const send = (options.protocol === "https:" ? https : http).request;
|
|
@@ -19528,7 +19528,7 @@ var require_lib2 = __commonJS({
|
|
|
19528
19528
|
requestOpts.body = void 0;
|
|
19529
19529
|
requestOpts.headers.delete("content-length");
|
|
19530
19530
|
}
|
|
19531
|
-
|
|
19531
|
+
resolve2(fetch2(new Request(locationURL, requestOpts)));
|
|
19532
19532
|
finalize();
|
|
19533
19533
|
return;
|
|
19534
19534
|
}
|
|
@@ -19549,7 +19549,7 @@ var require_lib2 = __commonJS({
|
|
|
19549
19549
|
const codings = headers.get("Content-Encoding");
|
|
19550
19550
|
if (!request.compress || request.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) {
|
|
19551
19551
|
response = new Response(body, response_options);
|
|
19552
|
-
|
|
19552
|
+
resolve2(response);
|
|
19553
19553
|
return;
|
|
19554
19554
|
}
|
|
19555
19555
|
const zlibOptions = {
|
|
@@ -19559,7 +19559,7 @@ var require_lib2 = __commonJS({
|
|
|
19559
19559
|
if (codings == "gzip" || codings == "x-gzip") {
|
|
19560
19560
|
body = body.pipe(zlib.createGunzip(zlibOptions));
|
|
19561
19561
|
response = new Response(body, response_options);
|
|
19562
|
-
|
|
19562
|
+
resolve2(response);
|
|
19563
19563
|
return;
|
|
19564
19564
|
}
|
|
19565
19565
|
if (codings == "deflate" || codings == "x-deflate") {
|
|
@@ -19571,12 +19571,12 @@ var require_lib2 = __commonJS({
|
|
|
19571
19571
|
body = body.pipe(zlib.createInflateRaw());
|
|
19572
19572
|
}
|
|
19573
19573
|
response = new Response(body, response_options);
|
|
19574
|
-
|
|
19574
|
+
resolve2(response);
|
|
19575
19575
|
});
|
|
19576
19576
|
raw.on("end", function() {
|
|
19577
19577
|
if (!response) {
|
|
19578
19578
|
response = new Response(body, response_options);
|
|
19579
|
-
|
|
19579
|
+
resolve2(response);
|
|
19580
19580
|
}
|
|
19581
19581
|
});
|
|
19582
19582
|
return;
|
|
@@ -19584,11 +19584,11 @@ var require_lib2 = __commonJS({
|
|
|
19584
19584
|
if (codings == "br" && typeof zlib.createBrotliDecompress === "function") {
|
|
19585
19585
|
body = body.pipe(zlib.createBrotliDecompress());
|
|
19586
19586
|
response = new Response(body, response_options);
|
|
19587
|
-
|
|
19587
|
+
resolve2(response);
|
|
19588
19588
|
return;
|
|
19589
19589
|
}
|
|
19590
19590
|
response = new Response(body, response_options);
|
|
19591
|
-
|
|
19591
|
+
resolve2(response);
|
|
19592
19592
|
});
|
|
19593
19593
|
writeToStream(req, request);
|
|
19594
19594
|
});
|
|
@@ -19951,14 +19951,14 @@ var require_run_async = __commonJS({
|
|
|
19951
19951
|
return function() {
|
|
19952
19952
|
var args = arguments;
|
|
19953
19953
|
var originalThis = this;
|
|
19954
|
-
var promise = new Promise(function(
|
|
19954
|
+
var promise = new Promise(function(resolve2, reject) {
|
|
19955
19955
|
var resolved = false;
|
|
19956
19956
|
const wrappedResolve = function(value) {
|
|
19957
19957
|
if (resolved) {
|
|
19958
19958
|
console.warn("Run-async promise already resolved.");
|
|
19959
19959
|
}
|
|
19960
19960
|
resolved = true;
|
|
19961
|
-
|
|
19961
|
+
resolve2(value);
|
|
19962
19962
|
};
|
|
19963
19963
|
var rejected = false;
|
|
19964
19964
|
const wrappedReject = function(value) {
|
|
@@ -20749,7 +20749,7 @@ var require_Observable = __commonJS({
|
|
|
20749
20749
|
Observable2.prototype.forEach = function(next, promiseCtor) {
|
|
20750
20750
|
var _this = this;
|
|
20751
20751
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
20752
|
-
return new promiseCtor(function(
|
|
20752
|
+
return new promiseCtor(function(resolve2, reject) {
|
|
20753
20753
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
20754
20754
|
next: function(value) {
|
|
20755
20755
|
try {
|
|
@@ -20760,7 +20760,7 @@ var require_Observable = __commonJS({
|
|
|
20760
20760
|
}
|
|
20761
20761
|
},
|
|
20762
20762
|
error: reject,
|
|
20763
|
-
complete:
|
|
20763
|
+
complete: resolve2
|
|
20764
20764
|
});
|
|
20765
20765
|
_this.subscribe(subscriber);
|
|
20766
20766
|
});
|
|
@@ -20782,14 +20782,14 @@ var require_Observable = __commonJS({
|
|
|
20782
20782
|
Observable2.prototype.toPromise = function(promiseCtor) {
|
|
20783
20783
|
var _this = this;
|
|
20784
20784
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
20785
|
-
return new promiseCtor(function(
|
|
20785
|
+
return new promiseCtor(function(resolve2, reject) {
|
|
20786
20786
|
var value;
|
|
20787
20787
|
_this.subscribe(function(x) {
|
|
20788
20788
|
return value = x;
|
|
20789
20789
|
}, function(err) {
|
|
20790
20790
|
return reject(err);
|
|
20791
20791
|
}, function() {
|
|
20792
|
-
return
|
|
20792
|
+
return resolve2(value);
|
|
20793
20793
|
});
|
|
20794
20794
|
});
|
|
20795
20795
|
};
|
|
@@ -22880,11 +22880,11 @@ var require_innerFrom = __commonJS({
|
|
|
22880
22880
|
"use strict";
|
|
22881
22881
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
22882
22882
|
function adopt(value) {
|
|
22883
|
-
return value instanceof P ? value : new P(function(
|
|
22884
|
-
|
|
22883
|
+
return value instanceof P ? value : new P(function(resolve2) {
|
|
22884
|
+
resolve2(value);
|
|
22885
22885
|
});
|
|
22886
22886
|
}
|
|
22887
|
-
return new (P || (P = Promise))(function(
|
|
22887
|
+
return new (P || (P = Promise))(function(resolve2, reject) {
|
|
22888
22888
|
function fulfilled(value) {
|
|
22889
22889
|
try {
|
|
22890
22890
|
step(generator.next(value));
|
|
@@ -22900,7 +22900,7 @@ var require_innerFrom = __commonJS({
|
|
|
22900
22900
|
}
|
|
22901
22901
|
}
|
|
22902
22902
|
function step(result) {
|
|
22903
|
-
result.done ?
|
|
22903
|
+
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
22904
22904
|
}
|
|
22905
22905
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22906
22906
|
});
|
|
@@ -22982,14 +22982,14 @@ var require_innerFrom = __commonJS({
|
|
|
22982
22982
|
}, i);
|
|
22983
22983
|
function verb(n) {
|
|
22984
22984
|
i[n] = o[n] && function(v) {
|
|
22985
|
-
return new Promise(function(
|
|
22986
|
-
v = o[n](v), settle(
|
|
22985
|
+
return new Promise(function(resolve2, reject) {
|
|
22986
|
+
v = o[n](v), settle(resolve2, reject, v.done, v.value);
|
|
22987
22987
|
});
|
|
22988
22988
|
};
|
|
22989
22989
|
}
|
|
22990
|
-
function settle(
|
|
22990
|
+
function settle(resolve2, reject, d, v) {
|
|
22991
22991
|
Promise.resolve(v).then(function(v2) {
|
|
22992
|
-
|
|
22992
|
+
resolve2({ value: v2, done: d });
|
|
22993
22993
|
}, reject);
|
|
22994
22994
|
}
|
|
22995
22995
|
};
|
|
@@ -23608,7 +23608,7 @@ var require_lastValueFrom = __commonJS({
|
|
|
23608
23608
|
var EmptyError_1 = require_EmptyError();
|
|
23609
23609
|
function lastValueFrom(source, config) {
|
|
23610
23610
|
var hasConfig = typeof config === "object";
|
|
23611
|
-
return new Promise(function(
|
|
23611
|
+
return new Promise(function(resolve2, reject) {
|
|
23612
23612
|
var _hasValue = false;
|
|
23613
23613
|
var _value;
|
|
23614
23614
|
source.subscribe({
|
|
@@ -23619,9 +23619,9 @@ var require_lastValueFrom = __commonJS({
|
|
|
23619
23619
|
error: reject,
|
|
23620
23620
|
complete: function() {
|
|
23621
23621
|
if (_hasValue) {
|
|
23622
|
-
|
|
23622
|
+
resolve2(_value);
|
|
23623
23623
|
} else if (hasConfig) {
|
|
23624
|
-
|
|
23624
|
+
resolve2(config.defaultValue);
|
|
23625
23625
|
} else {
|
|
23626
23626
|
reject(new EmptyError_1.EmptyError());
|
|
23627
23627
|
}
|
|
@@ -23643,16 +23643,16 @@ var require_firstValueFrom = __commonJS({
|
|
|
23643
23643
|
var Subscriber_1 = require_Subscriber();
|
|
23644
23644
|
function firstValueFrom(source, config) {
|
|
23645
23645
|
var hasConfig = typeof config === "object";
|
|
23646
|
-
return new Promise(function(
|
|
23646
|
+
return new Promise(function(resolve2, reject) {
|
|
23647
23647
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
23648
23648
|
next: function(value) {
|
|
23649
|
-
|
|
23649
|
+
resolve2(value);
|
|
23650
23650
|
subscriber.unsubscribe();
|
|
23651
23651
|
},
|
|
23652
23652
|
error: reject,
|
|
23653
23653
|
complete: function() {
|
|
23654
23654
|
if (hasConfig) {
|
|
23655
|
-
|
|
23655
|
+
resolve2(config.defaultValue);
|
|
23656
23656
|
} else {
|
|
23657
23657
|
reject(new EmptyError_1.EmptyError());
|
|
23658
23658
|
}
|
|
@@ -47359,7 +47359,7 @@ var {
|
|
|
47359
47359
|
} = import_index.default;
|
|
47360
47360
|
|
|
47361
47361
|
// package.json
|
|
47362
|
-
var version = "0.5.0";
|
|
47362
|
+
var version = "0.5.1-beta.0";
|
|
47363
47363
|
var package_default = {
|
|
47364
47364
|
name: "genlayer",
|
|
47365
47365
|
version,
|
|
@@ -47375,7 +47375,8 @@ var package_default = {
|
|
|
47375
47375
|
dev: "cross-env NODE_ENV=development node esbuild.config.js",
|
|
47376
47376
|
build: "cross-env NODE_ENV=production node esbuild.config.js",
|
|
47377
47377
|
release: "release-it --ci",
|
|
47378
|
-
"release-beta": "release-it --ci --preRelease=beta"
|
|
47378
|
+
"release-beta": "release-it --ci --preRelease=beta",
|
|
47379
|
+
postinstall: "node ./scripts/postinstall.js"
|
|
47379
47380
|
},
|
|
47380
47381
|
repository: {
|
|
47381
47382
|
type: "git",
|
|
@@ -47492,12 +47493,11 @@ var v4_default = v4;
|
|
|
47492
47493
|
|
|
47493
47494
|
// src/lib/config/simulator.ts
|
|
47494
47495
|
var DEFAULT_JSON_RPC_URL = "http://localhost:4000/api";
|
|
47495
|
-
var
|
|
47496
|
-
var
|
|
47497
|
-
|
|
47498
|
-
|
|
47499
|
-
|
|
47500
|
-
linux: `nohup bash -c 'cd ${simulatorLocation} && docker compose build && docker compose up -d ${options}'`
|
|
47496
|
+
var DOCKER_IMAGES_AND_CONTAINERS_NAME_PREFIX = "/genlayer-cli-";
|
|
47497
|
+
var DEFAULT_RUN_SIMULATOR_COMMAND = (location, options) => ({
|
|
47498
|
+
darwin: `osascript -e 'tell application "Terminal" to do script "cd ${location} && docker compose build && docker compose up ${options}"'`,
|
|
47499
|
+
win32: `start cmd.exe /c "cd /d ${location} && docker compose build && docker compose up && pause ${options}"`,
|
|
47500
|
+
linux: `nohup bash -c 'cd ${location} && docker compose build && docker compose up -d ${options}'`
|
|
47501
47501
|
});
|
|
47502
47502
|
var DEFAULT_RUN_DOCKER_COMMAND = {
|
|
47503
47503
|
darwin: "open -a Docker",
|
|
@@ -47773,8 +47773,8 @@ function defaultBrowser2() {
|
|
|
47773
47773
|
}
|
|
47774
47774
|
|
|
47775
47775
|
// node_modules/open/index.js
|
|
47776
|
-
var
|
|
47777
|
-
var localXdgOpenPath = import_node_path.default.join(
|
|
47776
|
+
var __dirname2 = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(_importMetaUrl));
|
|
47777
|
+
var localXdgOpenPath = import_node_path.default.join(__dirname2, "xdg-open");
|
|
47778
47778
|
var { platform, arch } = import_node_process5.default;
|
|
47779
47779
|
var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
47780
47780
|
const defaultMountPoint = "/mnt/";
|
|
@@ -47920,7 +47920,7 @@ var baseOpen = (options) => __async(void 0, null, function* () {
|
|
|
47920
47920
|
if (app) {
|
|
47921
47921
|
command = app;
|
|
47922
47922
|
} else {
|
|
47923
|
-
const isBundled = !
|
|
47923
|
+
const isBundled = !__dirname2 || __dirname2 === "/";
|
|
47924
47924
|
let exeLocalXdgOpen = false;
|
|
47925
47925
|
try {
|
|
47926
47926
|
yield import_promises.default.access(localXdgOpenPath, import_promises.constants.X_OK);
|
|
@@ -47946,14 +47946,14 @@ var baseOpen = (options) => __async(void 0, null, function* () {
|
|
|
47946
47946
|
}
|
|
47947
47947
|
const subprocess = import_node_child_process5.default.spawn(command, cliArguments, childProcessOptions);
|
|
47948
47948
|
if (options.wait) {
|
|
47949
|
-
return new Promise((
|
|
47949
|
+
return new Promise((resolve2, reject) => {
|
|
47950
47950
|
subprocess.once("error", reject);
|
|
47951
47951
|
subprocess.once("close", (exitCode) => {
|
|
47952
47952
|
if (!options.allowNonzeroExitCode && exitCode > 0) {
|
|
47953
47953
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
47954
47954
|
return;
|
|
47955
47955
|
}
|
|
47956
|
-
|
|
47956
|
+
resolve2(subprocess);
|
|
47957
47957
|
});
|
|
47958
47958
|
});
|
|
47959
47959
|
}
|
|
@@ -48093,36 +48093,19 @@ var VersionRequiredError = class extends Error {
|
|
|
48093
48093
|
|
|
48094
48094
|
// src/lib/services/simulator.ts
|
|
48095
48095
|
function sleep(millliseconds) {
|
|
48096
|
-
return new Promise((
|
|
48096
|
+
return new Promise((resolve2) => setTimeout(resolve2, millliseconds));
|
|
48097
48097
|
}
|
|
48098
48098
|
var SimulatorService = class {
|
|
48099
48099
|
constructor() {
|
|
48100
48100
|
__publicField(this, "composeOptions");
|
|
48101
48101
|
__publicField(this, "docker");
|
|
48102
|
-
__publicField(this, "
|
|
48103
|
-
this.
|
|
48102
|
+
__publicField(this, "location");
|
|
48103
|
+
this.location = path2.resolve(__dirname, "..");
|
|
48104
48104
|
this.composeOptions = "";
|
|
48105
48105
|
this.docker = new import_dockerode.default();
|
|
48106
48106
|
}
|
|
48107
|
-
setSimulatorLocation(location) {
|
|
48108
|
-
this.simulatorLocation = location;
|
|
48109
|
-
}
|
|
48110
|
-
getSimulatorLocation() {
|
|
48111
|
-
return this.simulatorLocation;
|
|
48112
|
-
}
|
|
48113
|
-
setComposeOptions(headless) {
|
|
48114
|
-
this.composeOptions = headless ? "--scale frontend=0" : "";
|
|
48115
|
-
}
|
|
48116
|
-
getComposeOptions() {
|
|
48117
|
-
return this.composeOptions;
|
|
48118
|
-
}
|
|
48119
|
-
readEnvConfigValue(key) {
|
|
48120
|
-
const envFilePath = path2.join(this.simulatorLocation, ".env");
|
|
48121
|
-
const envConfig = dotenv.parse(fs5.readFileSync(envFilePath, "utf8"));
|
|
48122
|
-
return envConfig[key];
|
|
48123
|
-
}
|
|
48124
48107
|
addConfigToEnvFile(newConfig) {
|
|
48125
|
-
const envFilePath = path2.join(this.
|
|
48108
|
+
const envFilePath = path2.join(this.location, ".env");
|
|
48126
48109
|
fs5.writeFileSync(`${envFilePath}.bak`, fs5.readFileSync(envFilePath));
|
|
48127
48110
|
const envConfig = dotenv.parse(fs5.readFileSync(envFilePath, "utf8"));
|
|
48128
48111
|
Object.keys(newConfig).forEach((key) => {
|
|
@@ -48133,6 +48116,17 @@ var SimulatorService = class {
|
|
|
48133
48116
|
}).join("\n");
|
|
48134
48117
|
fs5.writeFileSync(envFilePath, updatedConfig);
|
|
48135
48118
|
}
|
|
48119
|
+
setComposeOptions(headless) {
|
|
48120
|
+
this.composeOptions = headless ? "--scale frontend=0" : "";
|
|
48121
|
+
}
|
|
48122
|
+
getComposeOptions() {
|
|
48123
|
+
return this.composeOptions;
|
|
48124
|
+
}
|
|
48125
|
+
readEnvConfigValue(key) {
|
|
48126
|
+
const envFilePath = path2.join(this.location, ".env");
|
|
48127
|
+
const envConfig = dotenv.parse(fs5.readFileSync(envFilePath, "utf8"));
|
|
48128
|
+
return envConfig[key];
|
|
48129
|
+
}
|
|
48136
48130
|
checkCliVersion() {
|
|
48137
48131
|
return __async(this, null, function* () {
|
|
48138
48132
|
const update = yield (0, import_update_check.default)(package_default);
|
|
@@ -48147,17 +48141,8 @@ Run npm install -g genlayer to update
|
|
|
48147
48141
|
checkInstallRequirements() {
|
|
48148
48142
|
return __async(this, null, function* () {
|
|
48149
48143
|
const requirementsInstalled = {
|
|
48150
|
-
git: false,
|
|
48151
48144
|
docker: false
|
|
48152
48145
|
};
|
|
48153
|
-
try {
|
|
48154
|
-
yield checkCommand("git --version", "git");
|
|
48155
|
-
requirementsInstalled.git = true;
|
|
48156
|
-
} catch (error) {
|
|
48157
|
-
if (!(error instanceof MissingRequirementError)) {
|
|
48158
|
-
throw error;
|
|
48159
|
-
}
|
|
48160
|
-
}
|
|
48161
48146
|
try {
|
|
48162
48147
|
yield checkCommand("docker --version", "docker");
|
|
48163
48148
|
requirementsInstalled.docker = true;
|
|
@@ -48209,63 +48194,33 @@ Run npm install -g genlayer to update
|
|
|
48209
48194
|
}
|
|
48210
48195
|
});
|
|
48211
48196
|
}
|
|
48212
|
-
|
|
48197
|
+
pullOllamaModel() {
|
|
48213
48198
|
return __async(this, null, function* () {
|
|
48214
48199
|
try {
|
|
48215
|
-
const
|
|
48216
|
-
const
|
|
48217
|
-
|
|
48200
|
+
const ollamaContainer = this.docker.getContainer("ollama");
|
|
48201
|
+
const exec2 = yield ollamaContainer.exec({
|
|
48202
|
+
Cmd: ["ollama", "pull", "llama3"],
|
|
48203
|
+
AttachStdout: true,
|
|
48204
|
+
AttachStderr: true
|
|
48205
|
+
});
|
|
48206
|
+
const stream = yield exec2.start({ Detach: false, Tty: false });
|
|
48207
|
+
stream.on("data", (chunk) => {
|
|
48208
|
+
console.log(chunk.toString());
|
|
48209
|
+
});
|
|
48210
|
+
yield new Promise((resolve2, reject) => {
|
|
48211
|
+
stream.on("end", resolve2);
|
|
48212
|
+
stream.on("error", reject);
|
|
48213
|
+
});
|
|
48214
|
+
console.log("Command executed successfully");
|
|
48215
|
+
return true;
|
|
48218
48216
|
} catch (error) {
|
|
48219
|
-
|
|
48220
|
-
|
|
48221
|
-
return { wasInstalled: true };
|
|
48222
|
-
}
|
|
48223
|
-
throw error;
|
|
48217
|
+
console.error("Error executing ollama pull llama3:", error);
|
|
48218
|
+
return false;
|
|
48224
48219
|
}
|
|
48225
|
-
return { wasInstalled: false };
|
|
48226
|
-
});
|
|
48227
|
-
}
|
|
48228
|
-
updateSimulator(branch = "main") {
|
|
48229
|
-
return __async(this, null, function* () {
|
|
48230
|
-
const gitCleanCommand = `git -C "${this.simulatorLocation}" clean -f`;
|
|
48231
|
-
const cleanCmdsByPlatform = { darwin: gitCleanCommand, win32: gitCleanCommand, linux: gitCleanCommand };
|
|
48232
|
-
yield executeCommand(cleanCmdsByPlatform, "git");
|
|
48233
|
-
const gitFetchCommand = `git -C "${this.simulatorLocation}" fetch`;
|
|
48234
|
-
const fetchCmdsByPlatform = { darwin: gitFetchCommand, win32: gitFetchCommand, linux: gitFetchCommand };
|
|
48235
|
-
yield executeCommand(fetchCmdsByPlatform, "git");
|
|
48236
|
-
const gitCheckoutCommand = `git -C "${this.simulatorLocation}" checkout ${branch}`;
|
|
48237
|
-
const checkoutCmdsByPlatform = {
|
|
48238
|
-
darwin: gitCheckoutCommand,
|
|
48239
|
-
win32: gitCheckoutCommand,
|
|
48240
|
-
linux: gitCheckoutCommand
|
|
48241
|
-
};
|
|
48242
|
-
yield executeCommand(checkoutCmdsByPlatform, "git");
|
|
48243
|
-
const gitPullCommand = `git -C "${this.simulatorLocation}" pull`;
|
|
48244
|
-
const pullCmdsByPlatform = { darwin: gitPullCommand, win32: gitPullCommand, linux: gitPullCommand };
|
|
48245
|
-
yield executeCommand(pullCmdsByPlatform, "git");
|
|
48246
|
-
return true;
|
|
48247
|
-
});
|
|
48248
|
-
}
|
|
48249
|
-
pullOllamaModel() {
|
|
48250
|
-
return __async(this, null, function* () {
|
|
48251
|
-
const ollamaContainer = this.docker.getContainer("ollama");
|
|
48252
|
-
yield ollamaContainer.exec({
|
|
48253
|
-
Cmd: ["ollama", "pull", "llama3"]
|
|
48254
|
-
});
|
|
48255
|
-
return true;
|
|
48256
|
-
});
|
|
48257
|
-
}
|
|
48258
|
-
configSimulator(newConfig) {
|
|
48259
|
-
return __async(this, null, function* () {
|
|
48260
|
-
const envExample = path2.join(this.simulatorLocation, ".env.example");
|
|
48261
|
-
const envFilePath = path2.join(this.simulatorLocation, ".env");
|
|
48262
|
-
fs5.copyFileSync(envExample, envFilePath);
|
|
48263
|
-
this.addConfigToEnvFile(newConfig);
|
|
48264
|
-
return true;
|
|
48265
48220
|
});
|
|
48266
48221
|
}
|
|
48267
48222
|
runSimulator() {
|
|
48268
|
-
const commandsByPlatform = DEFAULT_RUN_SIMULATOR_COMMAND(this.
|
|
48223
|
+
const commandsByPlatform = DEFAULT_RUN_SIMULATOR_COMMAND(this.location, this.getComposeOptions());
|
|
48269
48224
|
return executeCommand(commandsByPlatform);
|
|
48270
48225
|
}
|
|
48271
48226
|
waitForSimulatorToBeReady() {
|
|
@@ -49572,9 +49527,9 @@ var Prompt = class {
|
|
|
49572
49527
|
* @return {Promise}
|
|
49573
49528
|
*/
|
|
49574
49529
|
run() {
|
|
49575
|
-
return new Promise((
|
|
49530
|
+
return new Promise((resolve2, reject) => {
|
|
49576
49531
|
this._run(
|
|
49577
|
-
(value) =>
|
|
49532
|
+
(value) => resolve2(value),
|
|
49578
49533
|
(error) => reject(error)
|
|
49579
49534
|
);
|
|
49580
49535
|
});
|
|
@@ -50951,13 +50906,7 @@ var inquirer = {
|
|
|
50951
50906
|
var inquirer_default = inquirer;
|
|
50952
50907
|
|
|
50953
50908
|
// src/commands/general/init.ts
|
|
50954
|
-
function getRequirementsErrorMessage({
|
|
50955
|
-
if (!git && !docker) {
|
|
50956
|
-
return "Git and Docker are not installed. Please install them and try again.\n";
|
|
50957
|
-
}
|
|
50958
|
-
if (!git) {
|
|
50959
|
-
return "Git is not installed. Please install Git and try again.\n";
|
|
50960
|
-
}
|
|
50909
|
+
function getRequirementsErrorMessage({ docker }) {
|
|
50961
50910
|
if (!docker) {
|
|
50962
50911
|
return "Docker is not installed. Please install Docker and try again.\n";
|
|
50963
50912
|
}
|
|
@@ -50977,7 +50926,6 @@ function getVersionErrorMessage({ docker, node }) {
|
|
|
50977
50926
|
}
|
|
50978
50927
|
function initAction(options, simulatorService) {
|
|
50979
50928
|
return __async(this, null, function* () {
|
|
50980
|
-
simulatorService.setSimulatorLocation(options.location);
|
|
50981
50929
|
simulatorService.setComposeOptions(options.headless);
|
|
50982
50930
|
yield simulatorService.checkCliVersion();
|
|
50983
50931
|
try {
|
|
@@ -51023,28 +50971,6 @@ function initAction(options, simulatorService) {
|
|
|
51023
50971
|
console.error(error);
|
|
51024
50972
|
return;
|
|
51025
50973
|
}
|
|
51026
|
-
const answers = yield inquirer_default.prompt([
|
|
51027
|
-
{
|
|
51028
|
-
type: "confirm",
|
|
51029
|
-
name: "confirmDownload",
|
|
51030
|
-
message: `This action is going to download the GenLayer Simulator from GitHub (branch ${options.branch}) into "${simulatorService.getSimulatorLocation()}". Do you want to continue?`,
|
|
51031
|
-
default: true
|
|
51032
|
-
}
|
|
51033
|
-
]);
|
|
51034
|
-
if (!answers.confirmDownload) {
|
|
51035
|
-
console.log("Aborted!");
|
|
51036
|
-
return;
|
|
51037
|
-
}
|
|
51038
|
-
console.log(`Downloading GenLayer Simulator from GitHub...`);
|
|
51039
|
-
try {
|
|
51040
|
-
const { wasInstalled } = yield simulatorService.downloadSimulator(options.branch);
|
|
51041
|
-
if (wasInstalled) {
|
|
51042
|
-
yield simulatorService.updateSimulator(options.branch);
|
|
51043
|
-
}
|
|
51044
|
-
} catch (error) {
|
|
51045
|
-
console.error(error);
|
|
51046
|
-
return;
|
|
51047
|
-
}
|
|
51048
50974
|
const questions = [
|
|
51049
50975
|
{
|
|
51050
50976
|
type: "checkbox",
|
|
@@ -51085,12 +51011,7 @@ function initAction(options, simulatorService) {
|
|
|
51085
51011
|
aiProvidersEnvVars[providerConfig.envVar] = apiKeyAnswer[providerConfig.cliOptionValue];
|
|
51086
51012
|
}
|
|
51087
51013
|
console.log("Configuring GenLayer Simulator environment...");
|
|
51088
|
-
|
|
51089
|
-
yield simulatorService.configSimulator(aiProvidersEnvVars);
|
|
51090
|
-
} catch (error) {
|
|
51091
|
-
console.error(error);
|
|
51092
|
-
return;
|
|
51093
|
-
}
|
|
51014
|
+
simulatorService.addConfigToEnvFile(aiProvidersEnvVars);
|
|
51094
51015
|
console.log("Running the GenLayer Simulator...");
|
|
51095
51016
|
try {
|
|
51096
51017
|
yield simulatorService.runSimulator();
|
|
@@ -51148,20 +51069,11 @@ function initAction(options, simulatorService) {
|
|
|
51148
51069
|
// src/commands/general/start.ts
|
|
51149
51070
|
function startAction(options, simulatorService) {
|
|
51150
51071
|
return __async(this, null, function* () {
|
|
51151
|
-
const { resetValidators, numValidators,
|
|
51072
|
+
const { resetValidators, numValidators, headless, resetDb } = options;
|
|
51152
51073
|
simulatorService.setComposeOptions(headless);
|
|
51153
|
-
simulatorService.setSimulatorLocation(location);
|
|
51154
51074
|
yield simulatorService.checkCliVersion();
|
|
51155
51075
|
const restartValidatorsHintText = resetValidators ? `creating new ${numValidators} random validators` : "keeping the existing validators";
|
|
51156
51076
|
console.log(`Starting GenLayer simulator ${restartValidatorsHintText}`);
|
|
51157
|
-
console.log(`Updating GenLayer Simulator...`);
|
|
51158
|
-
try {
|
|
51159
|
-
yield simulatorService.updateSimulator(branch);
|
|
51160
|
-
} catch (error) {
|
|
51161
|
-
console.error(error);
|
|
51162
|
-
return;
|
|
51163
|
-
}
|
|
51164
|
-
console.log("Running the GenLayer Simulator...");
|
|
51165
51077
|
try {
|
|
51166
51078
|
yield simulatorService.runSimulator();
|
|
51167
51079
|
} catch (error) {
|
|
@@ -51234,8 +51146,8 @@ function startAction(options, simulatorService) {
|
|
|
51234
51146
|
|
|
51235
51147
|
// src/commands/general/index.ts
|
|
51236
51148
|
function initializeGeneralCommands(program2) {
|
|
51237
|
-
program2.command("init").description("Initialize the GenLayer Environment").option("--numValidators <numValidators>", "Number of validators", "5").option("--
|
|
51238
|
-
program2.command("up").description("Starts GenLayer's simulator").option("--reset-validators", "Remove all current validators and create new random ones", false).option("--numValidators <numValidators>", "Number of validators", "5").option("--
|
|
51149
|
+
program2.command("init").description("Initialize the GenLayer Environment").option("--numValidators <numValidators>", "Number of validators", "5").option("--headless", "Headless mode", false).option("--reset-db", "Reset Database", false).action((options) => initAction(options, simulator_default));
|
|
51150
|
+
program2.command("up").description("Starts GenLayer's simulator").option("--reset-validators", "Remove all current validators and create new random ones", false).option("--numValidators <numValidators>", "Number of validators", "5").option("--headless", "Headless mode", false).option("--reset-db", "Reset Database", false).action((options) => startAction(options, simulator_default));
|
|
51239
51151
|
return program2;
|
|
51240
51152
|
}
|
|
51241
51153
|
|