babel-runtime
Advanced tools
Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16
@@ -1,5 +0,4 @@ | ||
import _typeof from "../../../helpers/builtin/es6/typeof"; | ||
export default function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : _typeof(superClass))); | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
@@ -6,0 +5,0 @@ |
@@ -1,11 +0,25 @@ | ||
export default function (obj, keys) { | ||
export default function (source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for (var i in obj) { | ||
if (keys.indexOf(i) >= 0) continue; | ||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; | ||
target[i] = obj[i]; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
if (Object.getOwnPropertySymbols) { | ||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
key = sourceSymbolKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
target[key] = source[key]; | ||
} | ||
} | ||
return target; | ||
} |
import _typeof from "../../../helpers/builtin/es6/typeof"; | ||
export default function (self, call) { | ||
if (call && ((typeof call === "undefined" ? "undefined" : _typeof(call)) === "object" || typeof call === "function")) { | ||
if (call && (_typeof(call) === "object" || typeof call === "function")) { | ||
return call; | ||
@@ -5,0 +5,0 @@ } |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
export default typeof Symbol === "function" && _typeof(Symbol.iterator) === "symbol" ? function (obj) { | ||
return typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return _typeof(obj); | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof(obj); | ||
}; |
exports.__esModule = true; | ||
var _typeof2 = require("../../helpers/builtin/typeof"); | ||
var _typeof3 = _interopRequireDefault(_typeof2); | ||
exports.default = function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
@@ -21,4 +17,2 @@ | ||
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; | ||
}; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
}; |
exports.__esModule = true; | ||
exports.default = function (obj, keys) { | ||
exports.default = function (source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for (var i in obj) { | ||
if (keys.indexOf(i) >= 0) continue; | ||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; | ||
target[i] = obj[i]; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
if (Object.getOwnPropertySymbols) { | ||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
key = sourceSymbolKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
target[key] = source[key]; | ||
} | ||
} | ||
return target; | ||
}; |
@@ -8,3 +8,3 @@ exports.__esModule = true; | ||
exports.default = function (self, call) { | ||
if (call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function")) { | ||
if (call && ((0, _typeof3.default)(call) === "object" || typeof call === "function")) { | ||
return call; | ||
@@ -11,0 +11,0 @@ } |
@@ -6,5 +6,5 @@ exports.__esModule = true; | ||
exports.default = typeof Symbol === "function" && _typeof(Symbol.iterator) === "symbol" ? function (obj) { | ||
return typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return _typeof(obj); | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof(obj); | ||
}; |
import _Object$setPrototypeOf from "../../core-js/object/set-prototype-of"; | ||
import _Object$create from "../../core-js/object/create"; | ||
import _typeof from "../../helpers/es6/typeof"; | ||
export default function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : _typeof(superClass))); | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
@@ -8,0 +7,0 @@ |
@@ -1,11 +0,29 @@ | ||
export default function (obj, keys) { | ||
import _Object$getOwnPropertySymbols from "../../core-js/object/get-own-property-symbols"; | ||
import _Object$keys from "../../core-js/object/keys"; | ||
export default function (source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
for (var i in obj) { | ||
if (keys.indexOf(i) >= 0) continue; | ||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; | ||
target[i] = obj[i]; | ||
var sourceKeys = _Object$keys(source); | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
if (_Object$getOwnPropertySymbols) { | ||
var sourceSymbolKeys = _Object$getOwnPropertySymbols(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
key = sourceSymbolKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
target[key] = source[key]; | ||
} | ||
} | ||
return target; | ||
} |
import _typeof from "../../helpers/es6/typeof"; | ||
export default function (self, call) { | ||
if (call && ((typeof call === "undefined" ? "undefined" : _typeof(call)) === "object" || typeof call === "function")) { | ||
if (call && (_typeof(call) === "object" || typeof call === "function")) { | ||
return call; | ||
@@ -5,0 +5,0 @@ } |
@@ -7,5 +7,5 @@ import _Symbol$iterator from "../../core-js/symbol/iterator"; | ||
export default typeof _Symbol === "function" && _typeof(_Symbol$iterator) === "symbol" ? function (obj) { | ||
return typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return _typeof(obj); | ||
} : function (obj) { | ||
return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : _typeof(obj); | ||
}; |
@@ -11,9 +11,5 @@ exports.__esModule = true; | ||
var _typeof2 = require("../helpers/typeof"); | ||
var _typeof3 = _interopRequireDefault(_typeof2); | ||
exports.default = function (subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
@@ -20,0 +16,0 @@ |
exports.__esModule = true; | ||
exports.default = function (obj, keys) { | ||
var _getOwnPropertySymbols = require("../core-js/object/get-own-property-symbols"); | ||
var _getOwnPropertySymbols2 = _interopRequireDefault(_getOwnPropertySymbols); | ||
var _keys = require("../core-js/object/keys"); | ||
var _keys2 = _interopRequireDefault(_keys); | ||
exports.default = function (source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = (0, _keys2.default)(source); | ||
var key, i; | ||
for (var i in obj) { | ||
if (keys.indexOf(i) >= 0) continue; | ||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; | ||
target[i] = obj[i]; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
} | ||
if (_getOwnPropertySymbols2.default) { | ||
var sourceSymbolKeys = (0, _getOwnPropertySymbols2.default)(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
key = sourceSymbolKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
target[key] = source[key]; | ||
} | ||
} | ||
return target; | ||
}; | ||
}; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -8,3 +8,3 @@ exports.__esModule = true; | ||
exports.default = function (self, call) { | ||
if (call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function")) { | ||
if (call && ((0, _typeof3.default)(call) === "object" || typeof call === "function")) { | ||
return call; | ||
@@ -11,0 +11,0 @@ } |
@@ -16,5 +16,5 @@ exports.__esModule = true; | ||
exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { | ||
return typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return _typeof(obj); | ||
} : function (obj) { | ||
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : _typeof(obj); | ||
}; |
{ | ||
"name": "babel-runtime", | ||
"version": "7.0.0-alpha.15", | ||
"version": "7.0.0-alpha.16", | ||
"description": "babel selfContained runtime", | ||
@@ -13,5 +13,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"babel-helpers": "7.0.0-alpha.15", | ||
"babel-plugin-transform-runtime": "7.0.0-alpha.15" | ||
"babel-helpers": "7.0.0-alpha.16", | ||
"babel-plugin-transform-runtime": "7.0.0-alpha.16" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82085
278
2097