@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.
@@ -7,6 +7,9 @@ mockFunctions:
7
7
  - mockUtcTime
8
8
  sumViews: true
9
9
  defaultDefiner: root@localhost
10
+ localRemotes:
11
+ - local
12
+ - docker
10
13
  deprecMarkRegex: __$
11
14
  deprecCommentRegex: ^@deprecated [0-9]{4}-[0-9]{2}-[0-9]{2}
12
15
  deprecDateRegex: '[0-9]{4}-[0-9]{2}-[0-9]{2}'
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
- && opts.remote == 'local'
379
+ && localRemote
377
380
  && opts.mockDate
378
381
  && opts.mockFunctions
379
382
  && opts.mockFunctions.indexOf(name) !== -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdnatura/myt",
3
- "version": "1.6.12",
3
+ "version": "1.6.13",
4
4
  "author": "Verdnatura Levante SL",
5
5
  "description": "MySQL version control",
6
6
  "license": "GPL-3.0",