Socket
Socket
Sign inDemoInstall

babel-helpers

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-helpers - npm Package Compare versions

Comparing version 7.0.0-alpha.12 to 7.0.0-alpha.14

4

lib/helpers.js

@@ -43,2 +43,4 @@ "use strict";

helpers.inheritsLoose = (0, _babelTemplate2.default)("\n (function (subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n })\n");
helpers.instanceof = (0, _babelTemplate2.default)("\n (function (left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n });\n");

@@ -56,3 +58,3 @@

helpers.possibleConstructorReturn = (0, _babelTemplate2.default)("\n (function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n });\n");
helpers.possibleConstructorReturn = (0, _babelTemplate2.default)("\n (function (self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n });\n");

@@ -59,0 +61,0 @@ helpers.selfGlobal = (0, _babelTemplate2.default)("\n typeof global === \"undefined\" ? self : global\n");

{
"name": "babel-helpers",
"version": "7.0.0-alpha.12",
"version": "7.0.0-alpha.14",
"description": "Collection of helper functions used by Babel transforms.",

@@ -11,4 +11,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"babel-template": "7.0.0-alpha.12"
"babel-template": "7.0.0-alpha.14"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc