dependency-cruiser 12.1.0 → 12.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dependency-cruiser",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
5
5
  "keywords": [
6
6
  "static analysis",
@@ -156,7 +156,7 @@
156
156
  "indent-string": "^4.0.0",
157
157
  "interpret": "^2.2.0",
158
158
  "is-installed-globally": "0.4.0",
159
- "json5": "2.2.1",
159
+ "json5": "2.2.2",
160
160
  "lodash": "4.17.21",
161
161
  "prompts": "2.4.2",
162
162
  "rechoir": "^0.8.0",
@@ -169,21 +169,21 @@
169
169
  "wrap-ansi": "^7.0.0"
170
170
  },
171
171
  "devDependencies": {
172
- "@babel/core": "7.20.2",
172
+ "@babel/core": "7.20.5",
173
173
  "@babel/plugin-transform-modules-commonjs": "7.19.6",
174
174
  "@babel/preset-typescript": "7.18.6",
175
- "@swc/core": "1.3.20",
176
- "@types/lodash": "4.14.190",
177
- "@types/node": "18.11.9",
178
- "@types/prompts": "2.4.1",
179
- "@typescript-eslint/eslint-plugin": "5.44.0",
180
- "@typescript-eslint/parser": "5.44.0",
175
+ "@swc/core": "1.3.23",
176
+ "@types/lodash": "4.14.191",
177
+ "@types/node": "18.11.17",
178
+ "@types/prompts": "2.4.2",
179
+ "@typescript-eslint/eslint-plugin": "5.46.1",
180
+ "@typescript-eslint/parser": "5.46.1",
181
181
  "@vue/compiler-sfc": "3.2.45",
182
182
  "c8": "7.12.0",
183
183
  "chai": "4.3.7",
184
184
  "chai-json-schema": "1.5.1",
185
185
  "coffeescript": "2.7.0",
186
- "eslint": "8.28.0",
186
+ "eslint": "8.30.0",
187
187
  "eslint-config-moving-meadow": "4.0.2",
188
188
  "eslint-config-prettier": "8.5.0",
189
189
  "eslint-plugin-budapestian": "5.0.1",
@@ -196,15 +196,15 @@
196
196
  "husky": "8.0.2",
197
197
  "intercept-stdout": "0.1.2",
198
198
  "lint-staged": "12.3.4",
199
- "mocha": "10.1.0",
199
+ "mocha": "10.2.0",
200
200
  "normalize-newline": "^3.0.0",
201
201
  "npm-run-all": "4.1.5",
202
- "prettier": "2.8.0",
202
+ "prettier": "2.8.1",
203
203
  "proxyquire": "2.1.3",
204
204
  "shx": "0.3.4",
205
- "svelte": "3.53.1",
205
+ "svelte": "3.55.0",
206
206
  "symlink-dir": "5.1.0",
207
- "typescript": "4.9.3",
207
+ "typescript": "4.9.4",
208
208
  "upem": "7.3.1",
209
209
  "vue-template-compiler": "2.7.14",
210
210
  "yarn": "1.22.19"
package/src/meta.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* generated - don't edit */
2
2
 
3
3
  module.exports = {
4
- version: "12.1.0",
4
+ version: "12.1.1",
5
5
  engines: {
6
6
  node: "^14||^16||>=18",
7
7
  },
@@ -2,13 +2,14 @@ const has = require("lodash/has");
2
2
 
3
3
  function isValidPlugin(pPluginFunction) {
4
4
  let lReturnValue = false;
5
- /** @type {import('../../../types/dependency-cruiser').ICruiseResult} */
5
+ /** @type {import('../../types/dependency-cruiser').ICruiseResult} */
6
6
  const lMinimalCruiseResult = {
7
7
  modules: [],
8
8
  summary: {
9
9
  error: 0,
10
10
  info: 0,
11
11
  warn: 0,
12
+ ignore: 0,
12
13
  totalCruised: 0,
13
14
  violations: [],
14
15
  optionsUsed: {},
@@ -32,7 +33,9 @@ function getPluginReporter(pOutputType) {
32
33
  // eslint-disable-next-line import/no-dynamic-require, node/global-require, security/detect-non-literal-require
33
34
  lReturnValue = require(pOutputType);
34
35
  } catch (pError) {
35
- throw new Error(`Could not find reporter plugin '${pOutputType}'`);
36
+ throw new Error(
37
+ `Could not find reporter plugin '${pOutputType}' (or it isn't valid)`
38
+ );
36
39
  }
37
40
  if (!isValidPlugin(lReturnValue)) {
38
41
  throw new Error(`${pOutputType} is not a valid plugin`);