Socket
Socket
Sign inDemoInstall

@swc/helpers

Package Overview
Dependencies
0
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.2 to 0.3.3

8

lib/_construct.js

@@ -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);
}
;

2

package.json
{
"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;
};
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