dependency-cruiser 18.3.0 → 18.3.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": "18.3.0",
3
+ "version": "18.3.1",
4
4
  "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
5
5
  "keywords": [
6
6
  "static analysis",
@@ -4,10 +4,14 @@ import tryImport from "#utl/try-import.mjs";
4
4
  import meta from "#meta.cjs";
5
5
 
6
6
  /** @type {import('@swc/core/Visitor')} */
7
- const { Visitor } = await tryImport(
7
+ const lSwcVisitorModule = await tryImport(
8
8
  "@swc/core/Visitor.js",
9
9
  meta.supportedTranspilers.swc,
10
10
  );
11
+ // under bun lSwcVisitorModule resolves to something different
12
+ // as under node.js - see https://github.com/sverweij/dependency-cruiser/issues/1092
13
+ // for details. In order to enable running dependency-cruiser on both:
14
+ const Visitor = lSwcVisitorModule.Visitor ?? lSwcVisitorModule;
11
15
 
12
16
  function pryStringsFromArguments(pArguments) {
13
17
  let lReturnValue = null;
package/src/meta.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /* generated - don't edit */
2
2
  module.exports = {
3
- version: "18.3.0",
3
+ version: "18.3.1",
4
4
  engines: {
5
5
  node: "^22||^24||>=26",
6
6
  },