Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

6to5

Package Overview
Dependencies
Maintainers
1
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

6to5 - npm Package Compare versions

Comparing version 2.13.4 to 2.13.5

2

lib/6to5/transformation/transform.js

@@ -75,2 +75,3 @@ "use strict";

defaultParameters: require("./transformers/es6-default-parameters"),
restParameters: require("./transformers/es6-rest-parameters"),
destructuring: require("./transformers/es6-destructuring"),

@@ -88,3 +89,2 @@ forOf: require("./transformers/es6-for-of"),

generators: require("./transformers/es6-generators"),
restParameters: require("./transformers/es6-rest-parameters"),

@@ -91,0 +91,0 @@ protoToAssign: require("./transformers/optional-proto-to-assign"),

@@ -44,2 +44,18 @@ "use strict";

// support patterns
if (t.isPattern(rest)) {
var pattern = rest;
rest = file.generateUidIdentifier("ref", scope);
// let the destructuring transformer handle this
var restDeclar = t.variableDeclaration("var", [
t.variableDeclarator(pattern, rest)
]);
// retain evaluation position
restDeclar._blockHoist = node.params.length + 1;
node.body.body.unshift(restDeclar);
}
node.body.body.unshift(

@@ -46,0 +62,0 @@ util.template("rest", {

{
"name": "6to5",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "2.13.4",
"version": "2.13.5",
"author": "Sebastian McKenzie <sebmck@gmail.com>",

@@ -66,4 +66,4 @@ "homepage": "https://6to5.org/",

"optionalDependencies": {
"kexec": "0.2.0"
"kexec": "1.1.0"
}
}

Sorry, the diff of this file is too big to display

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