Comparing version 5.17.0 to 5.17.1
@@ -11,3 +11,3 @@ import fileEntryCache, {} from 'file-entry-cache'; | ||
const isEnabled = isCache || isWatch; | ||
const version = '2'; | ||
const version = '3'; | ||
export class CacheConsultant { | ||
@@ -14,0 +14,0 @@ cache; |
@@ -26,4 +26,4 @@ import { get } from '#p/util/object.js'; | ||
const generateSet = codegenConfigs | ||
.filter((config) => config !== undefined) | ||
.flatMap(config => Object.values(config?.generates)); | ||
.filter((config) => Boolean(config?.generates)) | ||
.flatMap(config => Object.values(config.generates)); | ||
const configurationOutput = generateSet.filter(isConfigurationOutput); | ||
@@ -30,0 +30,0 @@ const presets = configurationOutput |
@@ -0,7 +1,11 @@ | ||
const keys = new Set(['importedAs', 'reExportedBy', 'reExportedAs', 'reExportedNs']); | ||
const setisfy = (obj) => { | ||
if (obj instanceof Set) | ||
return Array.from(obj); | ||
if (obj instanceof Map) | ||
return setisfy(Object.fromEntries(obj.entries())); | ||
if (typeof obj === 'object') | ||
for (const key in obj) | ||
for (const key in obj) { | ||
obj[key] = setisfy(obj[key]); | ||
} | ||
return obj; | ||
@@ -12,5 +16,12 @@ }; | ||
return new Set(obj); | ||
if (typeof obj === 'object') | ||
for (const key in obj) | ||
obj[key] = unsetisfy(obj[key]); | ||
if (typeof obj === 'object') { | ||
for (const key in obj) { | ||
if (keys.has(key)) { | ||
if (!(obj[key] instanceof Map)) | ||
obj[key] = new Map(Object.entries(obj[key]).map(v => [v[0], unsetisfy(v[1])])); | ||
} | ||
else | ||
obj[key] = unsetisfy(obj[key]); | ||
} | ||
} | ||
return obj; | ||
@@ -17,0 +28,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
export declare const version = "5.17.0"; | ||
export declare const version = "5.17.1"; |
@@ -1,1 +0,1 @@ | ||
export const version = '5.17.0'; | ||
export const version = '5.17.1'; |
{ | ||
"name": "knip", | ||
"version": "5.17.0", | ||
"version": "5.17.1", | ||
"description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects", | ||
@@ -5,0 +5,0 @@ "homepage": "https://knip.dev", |
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
750703
16976