@swc/helpers
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -7,6 +7,7 @@ "use strict"; | ||
var _classCheckPrivateStaticAccessMjs = _interopRequireDefault(require("./_class_check_private_static_access.js")); | ||
var _classCheckPrivateStaticFieldDescriptorMjs = _interopRequireDefault(require("./_class_check_private_static_field_descriptor.js")); | ||
var _classApplyDescriptorGetMjs = _interopRequireDefault(require("./_class_apply_descriptor_get.js")); | ||
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { | ||
(0, _classCheckPrivateStaticAccessMjs).default(receiver, classConstructor); | ||
(0, _classCheckPrivateStaticAccessMjs).default(descriptor, "get"); | ||
(0, _classCheckPrivateStaticFieldDescriptorMjs).default(descriptor, "get"); | ||
return (0, _classApplyDescriptorGetMjs).default(receiver, descriptor); | ||
@@ -13,0 +14,0 @@ } |
@@ -6,4 +6,4 @@ "use strict"; | ||
exports.default = _interopRequireWildcard; | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -16,3 +16,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -24,3 +24,3 @@ return cache.get(obj); | ||
for(var key in obj){ | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; | ||
@@ -40,9 +40,9 @@ if (desc && (desc.get || desc.set)) { | ||
} | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop1) { | ||
if (typeof WeakMap !== "function") return null; | ||
var cache = new WeakMap(); | ||
_getRequireWildcardCache = function() { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function(nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop1); | ||
} |
{ | ||
"name": "@swc/helpers", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "External helpers for the swc project.", | ||
@@ -17,2 +17,6 @@ "esnext": "src/index.mjs", | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/", | ||
"access": "public" | ||
}, | ||
"keywords": [ | ||
@@ -19,0 +23,0 @@ "swc", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22357666
208
3957