6to5-runtime
Advanced tools
Comparing version 3.6.2 to 3.6.3
"use strict"; | ||
var _core = require("6to5-runtime/core-js"); | ||
exports.inherits = function (subClass, superClass) { | ||
var _core = require("6to5-runtime/core-js")["default"]; | ||
var helpers = exports["default"] = {}; | ||
exports.__esModule = true; | ||
helpers.inherits = function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
@@ -20,3 +21,3 @@ throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); | ||
exports.defaults = function (obj, defaults) { | ||
helpers.defaults = function (obj, defaults) { | ||
var keys = _core.Object.getOwnPropertyNames(defaults); | ||
@@ -36,3 +37,3 @@ | ||
exports.prototypeProperties = function (child, staticProps, instanceProps) { | ||
helpers.prototypeProperties = function (child, staticProps, instanceProps) { | ||
if (staticProps) Object.defineProperties(child, staticProps); | ||
@@ -42,3 +43,3 @@ if (instanceProps) Object.defineProperties(child.prototype, instanceProps); | ||
exports.applyConstructor = function (Constructor, args) { | ||
helpers.applyConstructor = function (Constructor, args) { | ||
var instance = Object.create(Constructor.prototype); | ||
@@ -51,3 +52,3 @@ | ||
exports.taggedTemplateLiteral = function (strings, raw) { | ||
helpers.taggedTemplateLiteral = function (strings, raw) { | ||
return _core.Object.freeze(Object.defineProperties(strings, { | ||
@@ -60,3 +61,3 @@ raw: { | ||
exports.taggedTemplateLiteralLoose = function (strings, raw) { | ||
helpers.taggedTemplateLiteralLoose = function (strings, raw) { | ||
strings.raw = raw; | ||
@@ -66,11 +67,11 @@ return strings; | ||
exports.interopRequire = function (obj) { | ||
helpers.interopRequire = function (obj) { | ||
return obj && obj.__esModule ? obj["default"] : obj; | ||
}; | ||
exports.toArray = function (arr) { | ||
helpers.toArray = function (arr) { | ||
return Array.isArray(arr) ? arr : _core.Array.from(arr); | ||
}; | ||
exports.toConsumableArray = function (arr) { | ||
helpers.toConsumableArray = function (arr) { | ||
if (Array.isArray(arr)) { | ||
@@ -85,3 +86,3 @@ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; | ||
exports.slicedToArray = function (arr, i) { | ||
helpers.slicedToArray = function (arr, i) { | ||
if (Array.isArray(arr)) { | ||
@@ -104,3 +105,3 @@ return arr; | ||
exports.objectWithoutProperties = function (obj, keys) { | ||
helpers.objectWithoutProperties = function (obj, keys) { | ||
var target = {}; | ||
@@ -117,6 +118,6 @@ | ||
exports.hasOwn = Object.prototype.hasOwnProperty; | ||
exports.slice = Array.prototype.slice; | ||
exports.bind = Function.prototype.bind; | ||
exports.defineProperty = function (obj, key, value) { | ||
helpers.hasOwn = Object.prototype.hasOwnProperty; | ||
helpers.slice = Array.prototype.slice; | ||
helpers.bind = Function.prototype.bind; | ||
helpers.defineProperty = function (obj, key, value) { | ||
return Object.defineProperty(obj, key, { | ||
@@ -130,3 +131,3 @@ value: value, | ||
exports.asyncToGenerator = function (fn) { | ||
helpers.asyncToGenerator = function (fn) { | ||
return function () { | ||
@@ -162,3 +163,3 @@ var gen = fn.apply(this, arguments); | ||
exports.interopRequireWildcard = function (obj) { | ||
helpers.interopRequireWildcard = function (obj) { | ||
return obj && obj.__esModule ? obj : { | ||
@@ -169,7 +170,7 @@ "default": obj | ||
exports._typeof = function (obj) { | ||
helpers._typeof = function (obj) { | ||
return obj && obj.constructor === _core.Symbol ? "symbol" : typeof obj; | ||
}; | ||
exports._extends = _core.Object.assign || function (target) { | ||
helpers._extends = _core.Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
@@ -186,3 +187,3 @@ var source = arguments[i]; | ||
}; | ||
exports.get = function get(_x, _x2, _x3) { | ||
helpers.get = function get(_x, _x2, _x3) { | ||
_function: while (true) { | ||
@@ -218,3 +219,3 @@ var object = _x, | ||
exports.set = function set(_x, _x2, _x3, _x4) { | ||
helpers.set = function set(_x, _x2, _x3, _x4) { | ||
_function: while (true) { | ||
@@ -249,3 +250,3 @@ var object = _x, | ||
exports.classCallCheck = function (instance, Constructor) { | ||
helpers.classCallCheck = function (instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
@@ -256,8 +257,8 @@ throw new TypeError("Cannot call a class as a function"); | ||
exports.objectDestructuringEmpty = function (obj) { | ||
helpers.objectDestructuringEmpty = function (obj) { | ||
if (obj == null) throw new TypeError("Cannot destructure undefined"); | ||
}; | ||
exports.temporalUndefined = {}; | ||
exports.temporalAssertDefined = function (val, name, undef) { | ||
helpers.temporalUndefined = {}; | ||
helpers.temporalAssertDefined = function (val, name, undef) { | ||
if (val === undef) { | ||
@@ -269,3 +270,3 @@ throw new ReferenceError(name + " is not defined - temporal dead zone"); | ||
exports.tailCall = (function () { | ||
helpers.tailCall = (function () { | ||
function Tail(func, args, context) { | ||
@@ -272,0 +273,0 @@ this.func = func; |
{ | ||
"name": "6to5-runtime", | ||
"description": "6to5 selfContained runtime", | ||
"version": "3.6.2", | ||
"version": "3.6.3", | ||
"repository": "6to5/6to5", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>" | ||
} |
@@ -21,1 +21,3 @@ // This method of obtaining a reference to the global object needs to be | ||
} | ||
module.exports = { "default": module.exports, __esModule: true }; |
"use strict"; | ||
var _core = require("6to5-runtime/core-js"); | ||
var _core = require("6to5-runtime/core-js")["default"]; | ||
/** | ||
@@ -6,0 +5,0 @@ * Copyright (c) 2014, Facebook, Inc. |
Sorry, the diff of this file is too big to display
102496
2804