@putout/engine-runner
Advanced tools
Comparing version 10.1.0 to 10.2.0
@@ -19,2 +19,3 @@ 'use strict'; | ||
const {keys, entries} = Object; | ||
const {stringify} = JSON; | ||
@@ -26,2 +27,9 @@ const stub = () => []; | ||
const validateTemplateValues = (a, b) => { | ||
for (const key of keys(a)) { | ||
if (!b[key]) | ||
throw Error(`Looks like template values not linked: ${stringify(keys(a))} ${stringify(keys(b))}`); | ||
} | ||
}; | ||
module.exports = ({rule, plugin, msg, options}) => { | ||
@@ -88,2 +96,4 @@ const { | ||
validateTemplateValues(waysTo, waysFrom); | ||
setValues({ | ||
@@ -90,0 +100,0 @@ waysTo, |
{ | ||
"name": "@putout/engine-runner", | ||
"version": "10.1.0", | ||
"version": "10.2.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "run putout plugins", |
26540
656