module-keys
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -27,2 +27,3 @@ /** | ||
const ID_ID = 'id'; | ||
const ID_POLYFILL = 'polyfill'; | ||
@@ -95,3 +96,3 @@ const ID_MODULE = 'module'; | ||
(arg) => isIdentifierNamed(arg, ID_REQUIRE), | ||
(arg) => arg.type === 'StringLiteral')) { | ||
() => true)) { | ||
sawCjsPolyfill = true; | ||
@@ -146,3 +147,6 @@ } | ||
t.identifier(ID_POLYFILL)), | ||
[ t.identifier(ID_MODULE), t.identifier(ID_REQUIRE), t.stringLiteral(importSpec) ]))); | ||
[ | ||
t.identifier(ID_MODULE), t.identifier(ID_REQUIRE), | ||
t.memberExpression(t.identifier(ID_MODULE), t.identifier(ID_ID)), | ||
]))); | ||
} else { | ||
@@ -149,0 +153,0 @@ // Compute the absolute path to the ESM index file. |
{ | ||
"name": "module-keys", | ||
"description": "Module identity as a basis for privilege separation for ESM & CommonJS modules", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"keywords": [ | ||
@@ -82,2 +82,3 @@ "design-patterns", | ||
"rules": { | ||
"array-element-newline": "off", | ||
"no-warning-comments": [ | ||
@@ -84,0 +85,0 @@ "error", |
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
54927
969