dependency-cruiser 17.3.7 → 17.3.8-beta-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": "17.3.
|
|
3
|
+
"version": "17.3.8-beta-1",
|
|
4
4
|
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"static analysis",
|
|
@@ -148,7 +148,7 @@
|
|
|
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.
|
|
151
|
+
"commander": "14.0.3",
|
|
152
152
|
"enhanced-resolve": "5.18.4",
|
|
153
153
|
"ignore": "7.0.5",
|
|
154
154
|
"interpret": "3.1.1",
|
|
@@ -163,7 +163,8 @@
|
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|