dependency-cruiser
Advanced tools
Comparing version 1.12.0 to 1.13.0
{ | ||
"name": "dependency-cruiser", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.", | ||
@@ -40,3 +40,3 @@ "bin": { | ||
"istanbul": "0.4.5", | ||
"js-makedepend": "2.1.0", | ||
"js-makedepend": "2.2.0", | ||
"mocha": "3.2.0", | ||
@@ -43,0 +43,0 @@ "npm-check-updates": "2.8.9", |
@@ -64,2 +64,3 @@ "use strict"; | ||
couldNotResolve : pToListItem.couldNotResolve, | ||
dependencyTypes : pToListItem.dependencyTypes, | ||
dependencies : [] | ||
@@ -66,0 +67,0 @@ }; |
@@ -62,2 +62,7 @@ { | ||
}, | ||
"dependencyTypes": { | ||
"type": "array", | ||
"items": { "$ref": "#/definitions/DependencyType" }, | ||
"description": "the type of inclusion - local, core, unknown (= we honestly don't know), undetermined (= we didn't bother determining it) or one of the npm dependencies defined in a package.jsom ('npm' for 'depenencies', 'npm-dev', 'npm-optional', 'npm-peer', 'npm-no-pkg' for development, optional, peer dependencies and dependencies in node_modules but not in package.json respectively)" | ||
}, | ||
"dependencies": { | ||
@@ -93,18 +98,4 @@ "type": "array", | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"local", | ||
"npm", | ||
"npm-dev", | ||
"npm-optional", | ||
"npm-peer", | ||
"npm-no-pkg", | ||
"npm-unknown", | ||
"core", | ||
"unknown", | ||
"undetermined" | ||
], | ||
"description": "the type of inclusion - local, core, unknown (= we honestly don't know), undetermined (= we didn't bother determining it) or one of the npm dependencies defined in a package.jsom ('npm' for 'depenencies', 'npm-dev', 'npm-optional', 'npm-peer', 'npm-no-pkg' for development, optional, peer dependencies and dependencies in node_modules but not in package.json respectively)" | ||
} | ||
"items": { "$ref": "#/definitions/DependencyType" }, | ||
"description": "the type of inclusion - local, core, unknown (= we honestly don't know), undetermined (= we didn't bother determining it) or one of the npm dependencies defined in a package.jsom ('npm' for 'depenencies', 'npm-dev', 'npm-optional', 'npm-peer', 'npm-no-pkg' for development, optional, peer dependencies and dependencies in node_modules but not in package.json respectively)" | ||
}, | ||
@@ -187,2 +178,17 @@ "followable": { | ||
}, | ||
"DependencyType": { | ||
"type": "string", | ||
"enum": [ | ||
"local", | ||
"npm", | ||
"npm-dev", | ||
"npm-optional", | ||
"npm-peer", | ||
"npm-no-pkg", | ||
"npm-unknown", | ||
"core", | ||
"unknown", | ||
"undetermined" | ||
] | ||
}, | ||
"OptionsType": { | ||
@@ -189,0 +195,0 @@ "type": "object", |
@@ -24,2 +24,3 @@ "use strict"; | ||
/* eslint complexity: 0 */ | ||
function matchRule(pFrom, pTo) { | ||
@@ -33,2 +34,3 @@ return pRule => | ||
(!pRule.to.hasOwnProperty("dependencyTypes") || intersects(pTo.dependencyTypes, pRule.to.dependencyTypes)) && | ||
(!pRule.to.hasOwnProperty("moreThanOneDependencyType") || pTo.dependencyTypes.length > 1) && | ||
propertyEquals(pTo, pRule, "coreModule") && | ||
@@ -35,0 +37,0 @@ propertyEquals(pTo, pRule, "couldNotResolve"); |
@@ -105,18 +105,7 @@ { | ||
"description": "Whether or not to match modules of any of these types (leaving out matches any of them)", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"local", | ||
"npm", | ||
"npm-dev", | ||
"npm-optional", | ||
"npm-peer", | ||
"npm-no-pkg", | ||
"npm-unknown", | ||
"core", | ||
"unknown", | ||
"undetermined" | ||
] | ||
} | ||
"items": { "$ref": "#/definitions/DependencyType" } | ||
}, | ||
"moreThanOneDependencyType": { | ||
"type": "boolean", | ||
"description": "If true matches dependencies with more than one dependency type (e.g. defined in _both_ npm and npm-dev)" | ||
} | ||
@@ -133,4 +122,19 @@ } | ||
] | ||
}, | ||
"DependencyType": { | ||
"type": "string", | ||
"enum": [ | ||
"local", | ||
"npm", | ||
"npm-dev", | ||
"npm-optional", | ||
"npm-peer", | ||
"npm-no-pkg", | ||
"npm-unknown", | ||
"core", | ||
"unknown", | ||
"undetermined" | ||
] | ||
} | ||
} | ||
} |
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
443281
2176
37