Socket
Socket
Sign inDemoInstall

buble

Package Overview
Dependencies
Maintainers
3
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.19.3 to 0.19.4

dist/buble.deps.js

2

bin/runBuble.js

@@ -101,3 +101,3 @@ var fs = require('fs');

if (command.target) {
if (!/^(?:(\w+):([\d\.]+),)*(\w+):([\d\.]+)$/.test(command.target)) {
if (!/^(?:(\w+):([\d.]+),)*(\w+):([\d.]+)$/.test(command.target)) {
handleError({ code: 'BAD_TARGET' });

@@ -104,0 +104,0 @@ }

# buble changelog
## 0.19.4 (2018-10-06)
* Fix transpiling destructuring assignments in brace-less if statement's bodies ([#152](https://github.com/Rich-Harris/buble/issues/152))
* Fix transpiling const and let after brace-less if statements ([#132](https://github.com/Rich-Harris/buble/issues/132))
* Transpile binary and octal number literals if base prefix is upper-case ([#74](https://github.com/Rich-Harris/buble/issues/74))
* Mark classes as supported in Chrome 48
* Mark destructuring of arrow function arguments as not supported in Firefox < 52
## 0.19.3 (2018-02-13)

@@ -4,0 +12,0 @@

{
"name": "buble",
"version": "0.19.3",
"version": "0.19.4",
"description": "The blazing fast, batteries-included ES2015 compiler",

@@ -24,3 +24,3 @@ "main": "dist/buble.cjs.js",

"prepublish": "npm test",
"lint": "eslint src"
"lint": "eslint bin/ src/ test/test.js"
},

@@ -55,3 +55,2 @@ "bin": {

"mocha": "^5.0.0",
"regexpu-core": "^4.1.3",
"rimraf": "^2.5.2",

@@ -74,4 +73,5 @@ "rollup": "^0.55.5",

"os-homedir": "^1.0.1",
"regexpu-core": "^4.1.3",
"vlq": "^1.0.0"
}
}

@@ -72,3 +72,3 @@ import Node from '../Node.js';

// no rvalue needed for expression statement
code.appendRight(this.end, `)`);
code.prependRight(this.end, `)`);
} else {

@@ -75,0 +75,0 @@ // destructuring is part of an expression - need an rvalue

@@ -17,11 +17,5 @@ import LoopStatement from './shared/LoopStatement.js';

// which variables are declared in the init statement?
const names =
hasDeclaration
? [].concat.apply(
[],
this.left.declarations.map(declarator =>
extractNames(declarator.id)
)
)
: [];
const names = hasDeclaration
? this.left.declarations.map(declarator => extractNames(declarator.id))
: [];

@@ -28,0 +22,0 @@ this.args = names.map(

@@ -16,11 +16,5 @@ import LoopStatement from './shared/LoopStatement.js';

// which variables are declared in the init statement?
const names =
this.init.type === 'VariableDeclaration'
? [].concat.apply(
[],
this.init.declarations.map(declarator =>
extractNames(declarator.id)
)
)
: [];
const names = this.init.type === 'VariableDeclaration'
? this.init.declarations.map(declarator => extractNames(declarator.id))
: [];

@@ -27,0 +21,0 @@ const aliases = this.aliases;

import Node from '../Node.js';
export default class JSXOpeningFragment extends Node {
transpile(code, transforms) {
transpile(code) {
code.overwrite(this.start, this.end, `${this.program.jsx}( React.Fragment, null`);
}
}

@@ -14,4 +14,3 @@ import Node from '../Node.js';

if (transforms.numericLiteral) {
const leading = this.raw.slice(0, 2);
if (leading === '0b' || leading === '0o') {
if (this.raw.match(/^0[bo]/i)) {
code.overwrite(this.start, this.end, String(this.value), {

@@ -18,0 +17,0 @@ storeName: true,

@@ -18,2 +18,3 @@ import Node from '../Node.js';

code.overwrite(this.start, this.start + this.kind.length, kind, {
contentOnly: true,
storeName: true

@@ -20,0 +21,0 @@ });

export const matrix = {
chrome: {
48: 0b01001010100011001101,
48: 0b01001010100011001111,
49: 0b01001111100111111111,

@@ -21,8 +21,8 @@ 50: 0b01011111100111111111,

firefox: {
43: 0b01001111100011011101,
44: 0b01001111100111011101,
45: 0b01001111100111011111,
46: 0b01011111100111011111,
47: 0b01011111100111111111,
48: 0b01011111100111111111,
43: 0b01001110100011011101,
44: 0b01001110100111011101,
45: 0b01001110100111011111,
46: 0b01011110100111011111,
47: 0b01011110100111111111,
48: 0b01011110100111111111,
49: 0b01011110100111111111,

@@ -29,0 +29,0 @@ 50: 0b01011110100111111111,

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

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