Socket
Socket
Sign inDemoInstall

module-definition

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-definition - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

3

index.js

@@ -26,2 +26,3 @@ 'use strict';

let hasES6Export = false;
let hasDynamicImport = false;

@@ -54,3 +55,3 @@ // Walker accepts as AST to avoid reparsing

if (hasES6Import || hasES6Export) {
if (hasES6Import || hasES6Export || hasDynamicImport) {
type = 'es6';

@@ -57,0 +58,0 @@ walker.stopWalking();

{
"name": "module-definition",
"version": "3.2.0",
"version": "3.3.0",
"description": "Determines if a file is using a CommonJS or AMD module definition",

@@ -20,3 +20,3 @@ "main": "index.js",

"dependencies": {
"ast-module-types": "^2.4.0",
"ast-module-types": "^2.6.0",
"node-source-walk": "^4.0.0"

@@ -23,0 +23,0 @@ },

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