Socket
Socket
Sign inDemoInstall

babel-plugin-transform-cjs-system-require

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-cjs-system-require - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/index.js

@@ -58,3 +58,3 @@ 'use strict';

if (t.isObjectProperty(path.parent) || t.isMemberExpression(path.parent)) {
if (t.isObjectProperty(path.parent) || t.isMemberExpression(path.parent) && path.parent.object !== path.node) {
return;

@@ -61,0 +61,0 @@ }

{
"name": "babel-plugin-transform-cjs-system-require",
"version": "0.1.0",
"version": "0.1.1",
"description": "Transforms all calls of `require` into calls of the SystemJS internal `$__require`.",

@@ -5,0 +5,0 @@ "repository": {

@@ -8,2 +8,4 @@ var p = {

if (p.require === window.require)
p.require();
p.require();
require.resolve('x');

@@ -5,2 +5,4 @@ var p = {

if (p.require === window.require) p.require();
if (p.require === window.require) p.require();
$__require.resolve('x');
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