@verdnatura/myt 1.6.12 → 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/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;
|