Comparing version 0.4.20 to 0.4.21
# buble changelog | ||
## 0.4.21 | ||
* Add `find` and `findIndex` helpers for 0.12 support | ||
## 0.4.20 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "buble", | ||
"version": "0.4.20", | ||
"version": "0.4.21", | ||
"description": "The blazing fast, batteries-included ES2015 compiler", | ||
@@ -5,0 +5,0 @@ "main": "dist/buble.umd.js", |
import Node from '../Node.js'; | ||
import { find } from '../../utils/array.js'; | ||
@@ -38,3 +39,3 @@ export default class ArrowFunctionExpression extends Node { | ||
if ( this.body.synthetic ) { | ||
if ( this.params.find( param => param.type === 'RestElement' || /Pattern/.test( param.type ) ) ) { | ||
if ( find( this.params, param => param.type === 'RestElement' || /Pattern/.test( param.type ) ) ) { | ||
const indentation = this.getIndentation(); | ||
@@ -41,0 +42,0 @@ code.insert( this.body.start, `{\n${indentation}${code.getIndentString()}` ); |
import Node from '../Node.js'; | ||
import { findIndex } from '../../utils/array.js'; | ||
@@ -12,3 +13,3 @@ // TODO this code is pretty wild, tidy it up | ||
const constructorIndex = this.body.findIndex( node => node.kind === 'constructor' ); | ||
const constructorIndex = findIndex( this.body, node => node.kind === 'constructor' ); | ||
const constructor = this.body[ constructorIndex ]; | ||
@@ -15,0 +16,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1928798
57
16548