dependency-cruiser 17.3.7 → 17.3.8

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": "17.3.7",
3
+ "version": "17.3.8",
4
4
  "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
5
5
  "keywords": [
6
6
  "static analysis",
@@ -148,8 +148,8 @@
148
148
  "acorn-jsx-walk": "2.0.0",
149
149
  "acorn-loose": "8.5.2",
150
150
  "acorn-walk": "8.3.4",
151
- "commander": "14.0.2",
152
- "enhanced-resolve": "5.18.4",
151
+ "commander": "14.0.3",
152
+ "enhanced-resolve": "5.19.0",
153
153
  "ignore": "7.0.5",
154
154
  "interpret": "3.1.1",
155
155
  "is-installed-globally": "1.0.0",
@@ -158,12 +158,13 @@
158
158
  "prompts": "2.4.2",
159
159
  "rechoir": "0.8.0",
160
160
  "safe-regex": "2.1.1",
161
- "semver": "7.7.3",
161
+ "semver": "7.7.4",
162
162
  "tsconfig-paths-webpack-plugin": "4.2.0",
163
163
  "watskeburt": "5.0.2"
164
164
  },
165
165
  "overrides": {
166
- "baseline-browser-mapping": "^2.9.15"
166
+ "baseline-browser-mapping": "^2.9.15",
167
+ "diff": "8.0.3"
167
168
  },
168
169
  "engines": {
169
170
  "node": "^20.12||^22||>=24"
@@ -1,3 +1,4 @@
1
+ /* eslint-disable no-inline-comments */
1
2
  import preProcess from "./svelte-preprocess.mjs";
2
3
  import tryImport from "#utl/try-import.mjs";
3
4
  import meta from "#meta.cjs";
@@ -6,14 +7,19 @@ const { compile, VERSION } = await tryImport(
6
7
  "svelte/compiler",
7
8
  meta.supportedTranspilers.svelte,
8
9
  );
10
+ /* c8 ignore next */
11
+ const MAJOR_VERSION = VERSION ? Number(VERSION.split(".")[0]) : 0;
9
12
 
10
13
  function getTranspiler(pTranspilerWrapper) {
11
14
  return (pSource, _pFileName, pTranspilerOptions) => {
12
- const lPreProcessedSource = preProcess(
13
- pSource,
14
- pTranspilerWrapper,
15
- pTranspilerOptions,
16
- );
15
+ // svelte 5 natively supports typescript directly, without
16
+ // the need for preprocessing.
17
+ const lPreProcessedSource =
18
+ // eslint-disable-next-line no-magic-numbers
19
+ MAJOR_VERSION < 5
20
+ ? /* c8 ignore next */
21
+ preProcess(pSource, pTranspilerWrapper, pTranspilerOptions)
22
+ : pSource;
17
23
  // in svelte 5 one must provide the second argument
18
24
  // lest it throws because it's accessing a property
19
25
  // in it. In svelte 4 (which also takes compiler
package/src/meta.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /* generated - don't edit */
2
2
  module.exports = {
3
- version: "17.3.7",
3
+ version: "17.3.8",
4
4
  engines: {
5
5
  node: "^20.12||^22||>=24",
6
6
  },