Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

module-keys

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-keys - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

8

babel/index.js

@@ -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",

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