Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b599e2c794 | ||
|
|
7f57d3d6a2 |
@@ -1,3 +1,7 @@
|
||||
# 1.13.6
|
||||
|
||||
* Fix experimental object spread/rest helper.
|
||||
|
||||
# 1.13.5
|
||||
|
||||
* Upgrade `acorn-6to5`.
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
(function (target, keys) {
|
||||
(function (obj, keys) {
|
||||
var target = {};
|
||||
for (var i in target) {
|
||||
for (var i in obj) {
|
||||
if (keys.indexOf(i) >= 0) continue;
|
||||
if (!Object.prototype.hasOwn.call(target)) continue;
|
||||
target[i] = target[i];
|
||||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
||||
target[i] = obj[i];
|
||||
}
|
||||
return target;
|
||||
})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "6to5",
|
||||
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
||||
"version": "1.13.5",
|
||||
"version": "1.13.6",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://github.com/6to5/6to5",
|
||||
"repository": {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
var _objectSpread = function (target, keys) {
|
||||
var _objectSpread = function (obj, keys) {
|
||||
var target = {};
|
||||
for (var i in target) {
|
||||
for (var i in obj) {
|
||||
if (keys.indexOf(i) >= 0) continue;
|
||||
if (!Object.prototype.hasOwn.call(target)) continue;
|
||||
target[i] = target[i];
|
||||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
||||
target[i] = obj[i];
|
||||
}
|
||||
|
||||
return target;
|
||||
|
||||
Reference in New Issue
Block a user