@babel/runtime-corejs2
Advanced tools
Comparing version 7.3.4 to 7.4.0
@@ -0,6 +1,12 @@ | ||
var _Object$defineProperty = require("../core-js/object/define-property"); | ||
var _Object$keys = require("../core-js/object/keys"); | ||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
var desc = {}; | ||
Object['ke' + 'ys'](descriptor).forEach(function (key) { | ||
_Object$keys(descriptor).forEach(function (key) { | ||
desc[key] = descriptor[key]; | ||
}); | ||
desc.enumerable = !!desc.enumerable; | ||
@@ -23,3 +29,4 @@ desc.configurable = !!desc.configurable; | ||
if (desc.initializer === void 0) { | ||
Object['define' + 'Property'](target, property, desc); | ||
_Object$defineProperty(target, property, desc); | ||
desc = null; | ||
@@ -26,0 +33,0 @@ } |
@@ -1,3 +0,1 @@ | ||
var _Symbol$asyncIterator = require("../core-js/symbol/async-iterator"); | ||
var _Symbol = require("../core-js/symbol"); | ||
@@ -84,9 +82,9 @@ | ||
if (typeof gen.return !== "function") { | ||
this.return = undefined; | ||
if (typeof gen["return"] !== "function") { | ||
this["return"] = undefined; | ||
} | ||
} | ||
if (typeof _Symbol === "function" && _Symbol$asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol$asyncIterator] = function () { | ||
if (typeof _Symbol === "function" && _Symbol.asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol.asyncIterator] = function () { | ||
return this; | ||
@@ -100,7 +98,7 @@ }; | ||
AsyncGenerator.prototype.throw = function (arg) { | ||
AsyncGenerator.prototype["throw"] = function (arg) { | ||
return this._invoke("throw", arg); | ||
}; | ||
AsyncGenerator.prototype.return = function (arg) { | ||
AsyncGenerator.prototype["return"] = function (arg) { | ||
return this._invoke("return", arg); | ||
@@ -107,0 +105,0 @@ }; |
@@ -39,4 +39,4 @@ var _Symbol$iterator = require("../core-js/symbol/iterator"); | ||
if (typeof inner.throw === "function") { | ||
iter.throw = function (value) { | ||
if (typeof inner["throw"] === "function") { | ||
iter["throw"] = function (value) { | ||
if (waiting) { | ||
@@ -51,4 +51,4 @@ waiting = false; | ||
if (typeof inner.return === "function") { | ||
iter.return = function (value) { | ||
if (typeof inner["return"] === "function") { | ||
iter["return"] = function (value) { | ||
return pump("return", value); | ||
@@ -55,0 +55,0 @@ }; |
var _Symbol$iterator = require("../core-js/symbol/iterator"); | ||
var _Symbol$asyncIterator = require("../core-js/symbol/async-iterator"); | ||
var _Symbol = require("../core-js/symbol"); | ||
@@ -11,4 +9,4 @@ | ||
if (typeof _Symbol === "function") { | ||
if (_Symbol$asyncIterator) { | ||
method = iterable[_Symbol$asyncIterator]; | ||
if (_Symbol.asyncIterator) { | ||
method = iterable[_Symbol.asyncIterator]; | ||
if (method != null) return method.call(iterable); | ||
@@ -15,0 +13,0 @@ } |
@@ -76,3 +76,3 @@ var _Object$assign = require("../core-js/object/assign"); | ||
var placements = { | ||
static: [], | ||
"static": [], | ||
prototype: [], | ||
@@ -340,3 +340,3 @@ own: [] | ||
key: key, | ||
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", | ||
placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype", | ||
descriptor: descriptor | ||
@@ -343,0 +343,0 @@ }; |
@@ -0,6 +1,10 @@ | ||
import _Object$defineProperty from "../../core-js/object/define-property"; | ||
import _Object$keys from "../../core-js/object/keys"; | ||
export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
var desc = {}; | ||
Object['ke' + 'ys'](descriptor).forEach(function (key) { | ||
_Object$keys(descriptor).forEach(function (key) { | ||
desc[key] = descriptor[key]; | ||
}); | ||
desc.enumerable = !!desc.enumerable; | ||
@@ -23,3 +27,4 @@ desc.configurable = !!desc.configurable; | ||
if (desc.initializer === void 0) { | ||
Object['define' + 'Property'](target, property, desc); | ||
_Object$defineProperty(target, property, desc); | ||
desc = null; | ||
@@ -26,0 +31,0 @@ } |
@@ -1,2 +0,1 @@ | ||
import _Symbol$asyncIterator from "../../core-js/symbol/async-iterator"; | ||
import _Symbol from "../../core-js/symbol"; | ||
@@ -80,9 +79,9 @@ import _Promise from "../../core-js/promise"; | ||
if (typeof gen.return !== "function") { | ||
this.return = undefined; | ||
if (typeof gen["return"] !== "function") { | ||
this["return"] = undefined; | ||
} | ||
} | ||
if (typeof _Symbol === "function" && _Symbol$asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol$asyncIterator] = function () { | ||
if (typeof _Symbol === "function" && _Symbol.asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol.asyncIterator] = function () { | ||
return this; | ||
@@ -96,8 +95,8 @@ }; | ||
AsyncGenerator.prototype.throw = function (arg) { | ||
AsyncGenerator.prototype["throw"] = function (arg) { | ||
return this._invoke("throw", arg); | ||
}; | ||
AsyncGenerator.prototype.return = function (arg) { | ||
AsyncGenerator.prototype["return"] = function (arg) { | ||
return this._invoke("return", arg); | ||
}; |
@@ -36,4 +36,4 @@ import _Symbol$iterator from "../../core-js/symbol/iterator"; | ||
if (typeof inner.throw === "function") { | ||
iter.throw = function (value) { | ||
if (typeof inner["throw"] === "function") { | ||
iter["throw"] = function (value) { | ||
if (waiting) { | ||
@@ -48,4 +48,4 @@ waiting = false; | ||
if (typeof inner.return === "function") { | ||
iter.return = function (value) { | ||
if (typeof inner["return"] === "function") { | ||
iter["return"] = function (value) { | ||
return pump("return", value); | ||
@@ -52,0 +52,0 @@ }; |
import _Symbol$iterator from "../../core-js/symbol/iterator"; | ||
import _Symbol$asyncIterator from "../../core-js/symbol/async-iterator"; | ||
import _Symbol from "../../core-js/symbol"; | ||
@@ -8,4 +7,4 @@ export default function _asyncIterator(iterable) { | ||
if (typeof _Symbol === "function") { | ||
if (_Symbol$asyncIterator) { | ||
method = iterable[_Symbol$asyncIterator]; | ||
if (_Symbol.asyncIterator) { | ||
method = iterable[_Symbol.asyncIterator]; | ||
if (method != null) return method.call(iterable); | ||
@@ -12,0 +11,0 @@ } |
@@ -71,3 +71,3 @@ import _Object$assign from "../../core-js/object/assign"; | ||
var placements = { | ||
static: [], | ||
"static": [], | ||
prototype: [], | ||
@@ -335,3 +335,3 @@ own: [] | ||
key: key, | ||
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", | ||
placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype", | ||
descriptor: descriptor | ||
@@ -338,0 +338,0 @@ }; |
export default function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
"default": obj | ||
}; | ||
} |
@@ -23,5 +23,5 @@ import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor"; | ||
newObj.default = obj; | ||
newObj["default"] = obj; | ||
return newObj; | ||
} | ||
} |
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
"default": obj | ||
}; | ||
@@ -5,0 +5,0 @@ } |
@@ -25,3 +25,3 @@ var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor"); | ||
newObj.default = obj; | ||
newObj["default"] = obj; | ||
return newObj; | ||
@@ -28,0 +28,0 @@ } |
{ | ||
"name": "@babel/runtime-corejs2", | ||
"version": "7.3.4", | ||
"version": "7.4.0", | ||
"description": "babel's modular runtime helpers with core-js@2 polyfilling", | ||
@@ -12,9 +12,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"core-js": "^2.5.7", | ||
"regenerator-runtime": "^0.12.0" | ||
"core-js": "^2.6.5", | ||
"regenerator-runtime": "^0.13.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/helpers": "^7.3.1" | ||
"@babel/helpers": "^7.4.0" | ||
}, | ||
"gitHead": "1f6454cc90fe33e0a32260871212e2f719f35741" | ||
"gitHead": "f1328fb913b5a93d54dfc6e3728b1f56c8f4a804" | ||
} |
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
100221
237
2444
+ Addedregenerator-runtime@0.13.11(transitive)
- Removedregenerator-runtime@0.12.1(transitive)
Updatedcore-js@^2.6.5
Updatedregenerator-runtime@^0.13.2