@verdnatura/myt 1.6.11 → 1.6.13
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/assets/myt.default.yml +3 -0
- package/myt-push.js +4 -1
- package/myt-run.js +3 -2
- package/package.json +1 -1
package/assets/myt.default.yml
CHANGED
package/myt-push.js
CHANGED
|
@@ -371,9 +371,12 @@ class Push extends Command {
|
|
|
371
371
|
const oldSql = await engine.fetchRoutine(type, schema, name);
|
|
372
372
|
const oldSum = engine.getShaSum(type, schema, name);
|
|
373
373
|
|
|
374
|
+
const localRemote = opts.remote == null
|
|
375
|
+
|| opts.localRemotes?.indexOf(opts.remote) !== -1;
|
|
376
|
+
|
|
374
377
|
const isMockFn = type == 'function'
|
|
375
378
|
&& schema == opts.versionSchema
|
|
376
|
-
&&
|
|
379
|
+
&& localRemote
|
|
377
380
|
&& opts.mockDate
|
|
378
381
|
&& opts.mockFunctions
|
|
379
382
|
&& opts.mockFunctions.indexOf(name) !== -1;
|
package/myt-run.js
CHANGED
|
@@ -125,13 +125,14 @@ class Run extends Command {
|
|
|
125
125
|
try {
|
|
126
126
|
const server = new Server(ct, dbConfig);
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
const useCustom = opts.ci || opts.network
|
|
129
|
+
if (isRandom || useCustom) {
|
|
129
130
|
try {
|
|
130
131
|
const netSettings = await ct.inspect({
|
|
131
132
|
format: '{{json .NetworkSettings}}'
|
|
132
133
|
});
|
|
133
134
|
|
|
134
|
-
if (
|
|
135
|
+
if (useCustom) {
|
|
135
136
|
dbConfig.host = opts.network
|
|
136
137
|
? netSettings.Networks[opts.network].IPAddress
|
|
137
138
|
: netSettings.Gateway;
|