babel-plugin-putout 7.0.2 → 8.0.0

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
@@ -40,8 +40,10 @@ $ babel --plugins putout script.js
40
40
 
41
41
  ### Via Node API
42
42
 
43
- ```javascript
44
- require('babel-core').transform('code', {
43
+ ```js
44
+ import {transform} from '@babel/core';
45
+
46
+ transform('code', {
45
47
  plugins: ['putout'],
46
48
  });
47
49
  ```
package/lib/index.js CHANGED
@@ -1,14 +1,11 @@
1
- 'use strict';
2
-
3
- const {
1
+ import {
4
2
  parse,
5
3
  print,
6
4
  transform,
7
- } = require('putout');
8
-
9
- const {parseOptions} = require('putout/parse-options');
5
+ } from 'putout';
6
+ import {parseOptions} from 'putout/parse-options';
10
7
 
11
- module.exports = () => {
8
+ export default () => {
12
9
  let code = '';
13
10
 
14
11
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "babel-plugin-putout",
3
- "version": "7.0.2",
4
- "type": "commonjs",
3
+ "version": "8.0.0",
4
+ "type": "module",
5
5
  "description": "babel plugin for putout",
6
6
  "author": "Coderaiser <coderaiser@cloudcmd.io>",
7
7
  "main": "lib/index.js",
@@ -22,7 +22,7 @@
22
22
  "eslint-plugin-putout": "^29.0.0",
23
23
  "madrun": "^12.0.0",
24
24
  "mocha": "^11.1.0",
25
- "supertape": "^11.0.3"
25
+ "supertape": "^12.0.0"
26
26
  },
27
27
  "scripts": {
28
28
  "test": "madrun test",