Socket
Socket
Sign inDemoInstall

buble

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buble - npm Package Compare versions

Comparing version 0.4.20 to 0.4.21

src/utils/array.js

4

CHANGELOG.md
# buble changelog
## 0.4.21
* Add `find` and `findIndex` helpers for 0.12 support
## 0.4.20

@@ -4,0 +8,0 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc