@putout/engine-loader 11.0.0 → 11.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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const {
4
- createConfigItemSync,
4
+ createConfigItem,
5
5
  transformFromAstSync,
6
6
  } = require('@babel/core');
7
7
 
@@ -10,12 +10,12 @@ const isString = (a) => typeof a === 'string';
10
10
  module.exports = (ast, code, name) => {
11
11
  const plugin = !isString(name) ? name : require(name);
12
12
 
13
- // globally installed modules support
14
- const configItem = createConfigItemSync(plugin);
15
-
16
13
  transformFromAstSync(ast, code, {
17
14
  cloneInputAst: false,
18
- plugins: [configItem],
15
+ plugins: [
16
+ // globally installed modules support
17
+ createConfigItem(plugin),
18
+ ],
19
19
  });
20
20
 
21
21
  return ast;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-loader",
3
- "version": "11.0.0",
3
+ "version": "11.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",
@@ -24,8 +24,8 @@
24
24
  "report": "madrun report"
25
25
  },
26
26
  "dependencies": {
27
- "@babel/core": "^8.0.0-alpha.1",
28
- "@putout/engine-parser": "^7.1.0",
27
+ "@putout/engine-parser": "^8.0.0",
28
+ "@babel/core": "^7.12.3",
29
29
  "diff-match-patch": "^1.0.4",
30
30
  "nano-memoize": "^3.0.11",
31
31
  "once": "^1.4.0",