@putout/engine-loader 14.0.0 → 15.0.1

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/README.md CHANGED
@@ -53,7 +53,7 @@ So when someone using your plugin, he needs to enable it:
53
53
 
54
54
  ## Env Variables
55
55
 
56
- When you need to get things working with Yarn PnP, and using custom `plugins` `formatters` or `processors`, add env variable
56
+ When you need to get things working with Yarn OnP, and using custom `plugins` `formatters` or `processors`, add env variable
57
57
  `PUTOUT_YARN_PNP` with name of a package that contains dependencies you need.
58
58
 
59
59
  ## API
@@ -211,6 +211,7 @@ validateRules({
211
211
  pluginNames,
212
212
  rules,
213
213
  });
214
+
214
215
  // throws since there is no plugin name passed that matches rule 'remove-unused-variables'
215
216
  ```
216
217
 
package/lib/load/load.js CHANGED
@@ -17,12 +17,14 @@ const load = (type) => ({name, namespace}) => {
17
17
 
18
18
  const [error, result] = tryCatch(customRequire, pluginPath);
19
19
 
20
+ /* c8 ignore start */
20
21
  if (error?.code === 'ERR_REQUIRE_ESM')
21
22
  assign(error, {
22
23
  message: `☝️ Looks like '${name}' is ESM, use 'await putoutAsync()' instead`,
23
24
  name,
24
25
  });
25
26
 
27
+ /* c8 ignore end */
26
28
  if (error)
27
29
  throw error;
28
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-loader",
3
- "version": "14.0.0",
3
+ "version": "15.0.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "load plugins and prepare them to run",
@@ -11,7 +11,7 @@
11
11
  "changelog": false,
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git://github.com/coderaiser/putout.git"
14
+ "url": "git+https://github.com/coderaiser/putout.git"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "madrun test",
@@ -24,7 +24,6 @@
24
24
  "report": "madrun report"
25
25
  },
26
26
  "dependencies": {
27
- "@putout/engine-parser": "^10.0.0",
28
27
  "diff-match-patch": "^1.0.4",
29
28
  "nano-memoize": "^3.0.11",
30
29
  "once": "^1.4.0",