module-definition
Advanced tools
Comparing version 3.4.0 to 4.0.0
{ | ||
"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. |
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
6661
0
5
+ Addednode-source-walk@5.0.2(transitive)
- Removednode-source-walk@4.3.0(transitive)
Updatednode-source-walk@^5.0.0