@putout/babel 1.5.4 → 1.5.5

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.
Files changed (2) hide show
  1. package/bundle/index.d.ts +11 -1
  2. package/package.json +1 -1
package/bundle/index.d.ts CHANGED
@@ -5457,6 +5457,16 @@ interface Location {
5457
5457
 
5458
5458
  interface CodeFrameOptions {}
5459
5459
 
5460
+ interface TemplateOptions {}
5461
+
5460
5462
  declare function codeFrameColumns(rawLines: string, location: Location, options: CodeFrameOptions): string;
5463
+ declare function ast(source: string): Node;
5464
+ declare function generate(ast: Node): string;
5465
+ declare function template(source: string, options?: TemplateOptions): string;
5466
+ declare namespace template {
5467
+ export {
5468
+ ast,
5469
+ };
5470
+ }
5461
5471
 
5462
- export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, codeFrameColumns, parse, parseExpression, tokTypes, traverse, indexLegacy_d as types };
5472
+ export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, codeFrameColumns, generate, parse, parseExpression, template, tokTypes, traverse, indexLegacy_d as types };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/babel",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Babel 8 in CommonJS",