babel-plugin-transform-cjs-system-require
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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'); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9600
186
3