New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

code-info

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-info - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

dist-cjs/index.d.ts

2

dist-cjs/scripts/_getFiles.d.ts

@@ -6,3 +6,3 @@ export interface GetFiles {

}
declare const _default: (targetDir: string | undefined, { exclude, include, type }: GetFiles) => string[];
declare const _default: (targetDir?: string, { exclude, include, type }?: GetFiles) => string[];
export default _default;

@@ -13,3 +13,3 @@ "use strict";

const gitignorePath = path_1.default.resolve('./.gitignore');
exports.default = (targetDir = '.', { exclude = [], include = [], type = [] }) => {
exports.default = (targetDir = '.', { exclude = [], include = [], type = [] } = {}) => {
let ig = (0, ignore_1.default)().add([

@@ -16,0 +16,0 @@ 'yarn.lock',

@@ -9,3 +9,3 @@ import { GetFiles } from './_getFiles.js';

}
declare const _default: (targetDir: string | undefined, config: GetFiles) => FileInfo[];
declare const _default: (targetDir?: string, config?: GetFiles) => FileInfo[];
export default _default;

@@ -9,3 +9,3 @@ "use strict";

const _getFiles_js_1 = __importDefault(require("./_getFiles.js"));
exports.default = (targetDir = '.', config) => {
exports.default = (targetDir, config) => {
const files = (0, _getFiles_js_1.default)(targetDir, config);

@@ -12,0 +12,0 @@ const fileDetails = files.map((filePath) => {

@@ -12,3 +12,3 @@ import { Details } from './getDetails.js';

}
interface Overview {
export interface Overview {
basic: OverviewBasic;

@@ -18,3 +18,3 @@ mostUsedBySize: OverviewLangStats[];

}
declare const _default: (details: Details[]) => Overview;
declare const _default: (details: Details[]) => any;
export default _default;

@@ -35,3 +35,3 @@ "use strict";

});
return {
const output = {
basic,

@@ -41,2 +41,3 @@ mostUsedBySize: sortAlgoFn(mostUsedBySize),

};
return output;
};

@@ -6,3 +6,3 @@ export interface GetFiles {

}
declare const _default: (targetDir: string | undefined, { exclude, include, type }: GetFiles) => string[];
declare const _default: (targetDir?: string, { exclude, include, type }?: GetFiles) => string[];
export default _default;

@@ -8,3 +8,3 @@ import fs from 'fs';

const gitignorePath = path.resolve('./.gitignore');
export default (targetDir = '.', { exclude = [], include = [], type = [] }) => {
export default (targetDir = '.', { exclude = [], include = [], type = [] } = {}) => {
let ig = gitIgnore().add([

@@ -11,0 +11,0 @@ 'yarn.lock',

@@ -9,3 +9,3 @@ import { GetFiles } from './_getFiles.js';

}
declare const _default: (targetDir: string | undefined, config: GetFiles) => FileInfo[];
declare const _default: (targetDir?: string, config?: GetFiles) => FileInfo[];
export default _default;
import fs from 'fs';
import path from 'path';
import getFiles from './_getFiles.js';
export default (targetDir = '.', config) => {
export default (targetDir, config) => {
const files = getFiles(targetDir, config);

@@ -6,0 +6,0 @@ const fileDetails = files.map((filePath) => {

@@ -12,3 +12,3 @@ import { Details } from './getDetails.js';

}
interface Overview {
export interface Overview {
basic: OverviewBasic;

@@ -18,3 +18,3 @@ mostUsedBySize: OverviewLangStats[];

}
declare const _default: (details: Details[]) => Overview;
declare const _default: (details: Details[]) => any;
export default _default;

@@ -33,3 +33,3 @@ const sortAlgoFn = (something) => {

});
return {
const output = {
basic,

@@ -39,2 +39,3 @@ mostUsedBySize: sortAlgoFn(mostUsedBySize),

};
return output;
};
{
"name": "code-info",
"version": "1.0.4",
"version": "1.0.5",
"description": "code-info",

@@ -5,0 +5,0 @@ "preferGlobal": true,

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