Socket
Socket
Sign inDemoInstall

module-definition

Package Overview
Dependencies
Maintainers
3
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.4.0 to 4.0.0

24

package.json
{
"name": "module-definition",
"version": "3.4.0",
"version": "4.0.0",
"description": "Determines if a file is using a CommonJS or AMD module definition",

@@ -16,3 +16,4 @@ "main": "index.js",

"mocha": "mocha",
"test": "npm run lint && npm run mocha"
"test": "npm run lint && npm run mocha",
"test:ci": "c8 npm run mocha"
},

@@ -23,22 +24,23 @@ "repository": {

},
"keywords": [],
"author": "Joel Kemp <joel@mrjoelkemp.com> (https://mrjoelkemp.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/dependents/module-definition/issues"
},
"keywords": [],
"author": "Joel Kemp <joel@mrjoelkemp.com> (https://mrjoelkemp.com/)",
"license": "MIT",
"homepage": "https://github.com/dependents/module-definition",
"engines": {
"node": ">=12"
},
"dependencies": {
"ast-module-types": "^3.0.0",
"node-source-walk": "^4.0.0"
"node-source-walk": "^5.0.0"
},
"devDependencies": {
"eslint": "^5.16.0",
"c8": "^7.11.0",
"eslint": "^8.10.0",
"memfs": "^2.17.1",
"mocha": "^6.2.3",
"mocha": "^9.2.1",
"unionfs": "^3.0.2"
},
"engines": {
"node": ">=6.0"
}
}

@@ -1,2 +0,2 @@

# module-definition [![CI](https://github.com/dependents/module-definition/actions/workflows/ci.yml/badge.svg)](https://github.com/dependents/module-definition/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/module-definition)](https://www.npmjs.com/package/module-definition) [![npm](https://img.shields.io/npm/dm/module-definition)](https://www.npmjs.com/package/module-definition)
# module-definition [![CI](https://img.shields.io/github/workflow/status/dependents/module-definition/CI/main?label=CI&logo=github)](https://github.com/dependents/module-definition/actions/workflows/ci.yml?query=branch%3Amain) [![npm version](https://img.shields.io/npm/v/module-definition)](https://www.npmjs.com/package/module-definition) [![npm downloads](https://img.shields.io/npm/dm/module-definition)](https://www.npmjs.com/package/module-definition)

@@ -36,3 +36,3 @@ Determines the module definition type (CommonJS, AMD, ES6, or none) for a given JavaScript file

* You may also pass an AST to `fromSource` to avoid an internal parsing of the source
You may also pass an AST to `fromSource` to avoid an internal parsing of the source

@@ -39,0 +39,0 @@ When specifying a filename, using the sync or async API, you can also provide an `options` object with an alternative `fs` implementation used to read the source file with.

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