@swc/helpers
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -6,2 +6,8 @@ "use strict"; | ||
exports.default = _construct; | ||
var _setPrototypeOf = _interopRequireDefault(require("./_set_prototype_of")); | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
}; | ||
} | ||
function isNativeReflectConstruct() { | ||
@@ -30,3 +36,3 @@ if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
var instance = new Constructor(); | ||
if (Class) _setPrototypeOf(instance, Class.prototype); | ||
if (Class) (0, _setPrototypeOf).default(instance, Class.prototype); | ||
return instance; | ||
@@ -33,0 +39,0 @@ }; |
@@ -10,4 +10,5 @@ "use strict"; | ||
function _typeof1(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && obj.constructor === Symbol ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); | ||
} | ||
; |
{ | ||
"name": "@swc/helpers", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "External helpers for the swc project.", | ||
@@ -5,0 +5,0 @@ "esnext": "src/index.js", |
@@ -0,1 +1,3 @@ | ||
import _setPrototypeOf from "./_set_prototype_of"; | ||
function isNativeReflectConstruct() { | ||
@@ -33,2 +35,2 @@ if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
return construct.apply(null, arguments); | ||
} | ||
} |
export default function _typeof(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
}; |
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
115959
3347