Socket
Socket
Sign inDemoInstall

@babel/runtime

Package Overview
Dependencies
2
Maintainers
6
Versions
164
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-beta.41 to 7.0.0-beta.42

84

helpers/builtin/es6/wrapNativeSuper.js
import _typeof from "../../../helpers/builtin/es6/typeof";
var _gPO = Object.getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
function _gPO(o) {
_gPO = Object.getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
return _gPO(o);
}
var _construct = _typeof(Reflect) === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
function _sPO(o, p) {
_sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _cache = typeof Map === "function" && new Map();
return _sPO(o, p);
}
function _construct(Parent, args, Class) {
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
return _construct(Parent, args, Class);
}
export default function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
var _cache = typeof Map === "function" ? new Map() : undefined;
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
_cache.set(Class, Wrapper);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
function Wrapper() {}
_cache.set(Class, Wrapper);
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writeable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
function Wrapper() {}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
};
return _wrapNativeSuper(Class);
}
var _typeof = require("../../helpers/builtin/typeof");
var _gPO = Object.getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
function _gPO(o) {
_gPO = Object.getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
return _gPO(o);
}
var _construct = _typeof(Reflect) === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
function _sPO(o, p) {
_sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _cache = typeof Map === "function" && new Map();
return _sPO(o, p);
}
function _construct(Parent, args, Class) {
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
return _construct(Parent, args, Class);
}
function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
var _cache = typeof Map === "function" ? new Map() : undefined;
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
_cache.set(Class, Wrapper);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
function Wrapper() {}
_cache.set(Class, Wrapper);
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writeable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
function Wrapper() {}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
};
return _wrapNativeSuper(Class);
}
module.exports = _wrapNativeSuper;

@@ -8,45 +8,61 @@ import _Object$create from "../../core-js/object/create";

var _gPO = _Object$getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
function _gPO(o) {
_gPO = _Object$getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
var _sPO = _Object$setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
return _gPO(o);
}
var _construct = _typeof(Reflect) === "object" && _Reflect$construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
function _sPO(o, p) {
_sPO = _Object$setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _cache = typeof _Map === "function" && new _Map();
return _sPO(o, p);
}
function _construct(Parent, args, Class) {
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && _Reflect$construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
return _construct(Parent, args, Class);
}
export default function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
var _cache = typeof _Map === "function" ? new _Map() : undefined;
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
_cache.set(Class, Wrapper);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
function Wrapper() {}
_cache.set(Class, Wrapper);
}
Wrapper.prototype = _Object$create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writeable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
function Wrapper() {}
Wrapper.prototype = _Object$create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
};
return _wrapNativeSuper(Class);
}

@@ -13,47 +13,63 @@ var _Object$create = require("../core-js/object/create");

var _gPO = _Object$getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
function _gPO(o) {
_gPO = _Object$getPrototypeOf || function _gPO(o) {
return o.__proto__;
};
var _sPO = _Object$setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
return _gPO(o);
}
var _construct = _typeof(Reflect) === "object" && _Reflect$construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
function _sPO(o, p) {
_sPO = _Object$setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _cache = typeof _Map === "function" && new _Map();
return _sPO(o, p);
}
function _construct(Parent, args, Class) {
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && _Reflect$construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
return _construct(Parent, args, Class);
}
function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
var _cache = typeof _Map === "function" ? new _Map() : undefined;
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
_cache.set(Class, Wrapper);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
function Wrapper() {}
_cache.set(Class, Wrapper);
}
Wrapper.prototype = _Object$create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writeable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
function Wrapper() {}
Wrapper.prototype = _Object$create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _sPO(Wrapper, _sPO(function Super() {
return _construct(Class, arguments, _gPO(this).constructor);
}, Class));
};
return _wrapNativeSuper(Class);
}
module.exports = _wrapNativeSuper;
{
"name": "@babel/runtime",
"version": "7.0.0-beta.41",
"version": "7.0.0-beta.42",
"description": "babel selfContained runtime",

@@ -13,8 +13,8 @@ "license": "MIT",

"devDependencies": {
"@babel/core": "7.0.0-beta.41",
"@babel/helpers": "7.0.0-beta.41",
"@babel/plugin-transform-runtime": "7.0.0-beta.41",
"@babel/preset-env": "7.0.0-beta.41",
"@babel/types": "7.0.0-beta.41"
"@babel/core": "7.0.0-beta.42",
"@babel/helpers": "7.0.0-beta.42",
"@babel/plugin-transform-runtime": "7.0.0-beta.42",
"@babel/preset-env": "7.0.0-beta.42",
"@babel/types": "7.0.0-beta.42"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc