Socket
Socket
Sign inDemoInstall

knip

Package Overview
Dependencies
Maintainers
1
Versions
407
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knip - npm Package Compare versions

Comparing version 5.17.0 to 5.17.1

2

dist/CacheConsultant.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc