@waiting/shared-types-dev
Advanced tools
Comparing version 18.0.5 to 19.0.0
{ | ||
"name": "@waiting/shared-types-dev", | ||
"author": "waiting", | ||
"version": "18.0.5", | ||
"version": "19.0.0", | ||
"description": "shared typescript types develop", | ||
@@ -36,3 +36,3 @@ "private": false, | ||
"@waiting/shared-core": "^23.22.0", | ||
"ts-morph": "^23.0.0" | ||
"ts-morph": "^24.0.0" | ||
}, | ||
@@ -76,3 +76,3 @@ "engines": { | ||
}, | ||
"gitHead": "422b9ebbab51772a0559380f0b5c86f72cbb696b" | ||
"gitHead": "231ce139cc382dff913d6227ba9ec45c3225393d" | ||
} |
@@ -161,4 +161,4 @@ import assert from 'node:assert' | ||
// } | ||
const typeText = typeReferenceText | ||
// const typeText = type.getText() | ||
const typeText = patchJsExtForImportModulePath(typeReferenceText) | ||
const aliasName = 'T' + Math.random().toString().slice(-5) | ||
@@ -182,2 +182,20 @@ | ||
/** | ||
* From 'import("F:/.../test/literal/types").DbDict<import("F:/.../test/literal/types").Db>' to | ||
* 'import("F:/.../test/literal/types.js").DbDict<import("F:/.../test/literal/types.js").Db>' | ||
*/ | ||
function patchJsExtForImportModulePath(path: string): string { | ||
const ret = path.replaceAll(/import\("([^")]+?)"\)/gu, (substring: string) => { | ||
if (substring.endsWith('.js")')) { | ||
return substring | ||
} | ||
if (substring.endsWith('.ts")')) { | ||
return substring.replace('.ts"', '.js"') | ||
} | ||
return substring.replace('")', '.js")') | ||
}) | ||
return ret | ||
} | ||
export function genTypeAliasDeclarationFaster( | ||
@@ -184,0 +202,0 @@ checker: TypeChecker, |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
43454
19
1288
+ Added@ts-morph/common@0.25.0(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedfdir@6.4.2(transitive)
+ Addedpicomatch@4.0.2(transitive)
+ Addedtinyglobby@0.2.10(transitive)
+ Addedts-morph@24.0.0(transitive)
+ Addedzx@8.2.4(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@ts-morph/common@0.24.0(transitive)
- Removed@types/node@22.10.0(transitive)
- Removedbraces@3.0.3(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmkdirp@3.0.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedts-morph@23.0.0(transitive)
- Removedzx@8.2.2(transitive)
Updatedts-morph@^24.0.0