Socket
Socket
Sign inDemoInstall

6to5-core

Package Overview
Dependencies
66
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.2 to 3.3.3

4

lib/6to5/transformation/transformers/other/use-strict.js

@@ -19,4 +19,4 @@ "use strict";

exports.ThisExpression = function (node, parent, scope, context, file) {
throw file.errorWithNode(node, "Top level `this` is `undefined` in strict mode", ReferenceError);
exports.ThisExpression = function () {
return t.identifier("undefined");
};

@@ -260,4 +260,5 @@ "use strict";

// yes: { [NODE]: "" }
if (t.isProperty(parent)) {
return parent.key === node && parent.computed;
// no: { NODE: "" }
if (t.isProperty(parent) && parent.key === node) {
return parent.computed;
}

@@ -411,6 +412,7 @@

* @param {String} match Dot delimetered string
* @param {Boolean} [allowPartial] Allow a partial match
* @returns {Function}
*/
t.buildMatchMemberExpression = function (match) {
t.buildMatchMemberExpression = function (match, allowPartial) {
var parts = match.split(".");

@@ -450,3 +452,7 @@

if (++i > parts.length) {
return false;
if (allowPartial) {
return true;
} else {
return false;
}
}

@@ -453,0 +459,0 @@ }

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

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

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc