🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

local-pkg

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-pkg - npm Package Compare versions

Comparing version
1.2.0
to
1.2.1
+9
-9
dist/index.d.cts

@@ -1,2 +0,2 @@

import * as quansync_macro from 'quansync/macro';
import * as quansync_types from 'quansync/types';
import { PackageJson } from 'pkg-types';

@@ -19,10 +19,10 @@

}
declare function resolveModule(name: string, options?: PackageResolvingOptions): any;
declare function resolveModule(name: string, options?: PackageResolvingOptions): string | undefined;
declare function importModule<T = any>(path: string): Promise<T>;
declare function isPackageExists(name: string, options?: PackageResolvingOptions): boolean;
declare const getPackageInfo: quansync_macro.QuansyncFn<{
declare const getPackageInfo: quansync_types.QuansyncFn<{
name: string;
version: string | undefined;
rootPath: any;
packageJsonPath: any;
rootPath: string;
packageJsonPath: string;
packageJson: PackageJson;

@@ -33,9 +33,9 @@ } | undefined, [name: string, options?: PackageResolvingOptions | undefined]>;

version: string | undefined;
rootPath: any;
packageJsonPath: any;
rootPath: string;
packageJsonPath: string;
packageJson: PackageJson;
} | undefined;
declare const loadPackageJSON: quansync_macro.QuansyncFn<PackageJson | null, [cwd?: Args[0] | undefined]>;
declare const loadPackageJSON: quansync_types.QuansyncFn<PackageJson | null, [cwd?: Args[0] | undefined]>;
declare const loadPackageJSONSync: (cwd?: Args[0] | undefined) => PackageJson | null;
declare const isPackageListed: quansync_macro.QuansyncFn<boolean, [name: string, cwd?: string | undefined]>;
declare const isPackageListed: quansync_types.QuansyncFn<boolean, [name: string, cwd?: string | undefined]>;
declare const isPackageListedSync: (name: string, cwd?: string | undefined) => boolean;

@@ -42,0 +42,0 @@

@@ -1,2 +0,2 @@

import * as quansync_macro from 'quansync/macro';
import * as quansync_types from 'quansync/types';
import { PackageJson } from 'pkg-types';

@@ -19,10 +19,10 @@

}
declare function resolveModule(name: string, options?: PackageResolvingOptions): any;
declare function resolveModule(name: string, options?: PackageResolvingOptions): string | undefined;
declare function importModule<T = any>(path: string): Promise<T>;
declare function isPackageExists(name: string, options?: PackageResolvingOptions): boolean;
declare const getPackageInfo: quansync_macro.QuansyncFn<{
declare const getPackageInfo: quansync_types.QuansyncFn<{
name: string;
version: string | undefined;
rootPath: any;
packageJsonPath: any;
rootPath: string;
packageJsonPath: string;
packageJson: PackageJson;

@@ -33,9 +33,9 @@ } | undefined, [name: string, options?: PackageResolvingOptions | undefined]>;

version: string | undefined;
rootPath: any;
packageJsonPath: any;
rootPath: string;
packageJsonPath: string;
packageJson: PackageJson;
} | undefined;
declare const loadPackageJSON: quansync_macro.QuansyncFn<PackageJson | null, [cwd?: Args[0] | undefined]>;
declare const loadPackageJSON: quansync_types.QuansyncFn<PackageJson | null, [cwd?: Args[0] | undefined]>;
declare const loadPackageJSONSync: (cwd?: Args[0] | undefined) => PackageJson | null;
declare const isPackageListed: quansync_macro.QuansyncFn<boolean, [name: string, cwd?: string | undefined]>;
declare const isPackageListed: quansync_types.QuansyncFn<boolean, [name: string, cwd?: string | undefined]>;
declare const isPackageListedSync: (name: string, cwd?: string | undefined) => boolean;

@@ -42,0 +42,0 @@

@@ -1,2 +0,2 @@

import * as quansync_macro from 'quansync/macro';
import * as quansync_types from 'quansync/types';
import { PackageJson } from 'pkg-types';

@@ -19,10 +19,10 @@

}
declare function resolveModule(name: string, options?: PackageResolvingOptions): any;
declare function resolveModule(name: string, options?: PackageResolvingOptions): string | undefined;
declare function importModule<T = any>(path: string): Promise<T>;
declare function isPackageExists(name: string, options?: PackageResolvingOptions): boolean;
declare const getPackageInfo: quansync_macro.QuansyncFn<{
declare const getPackageInfo: quansync_types.QuansyncFn<{
name: string;
version: string | undefined;
rootPath: any;
packageJsonPath: any;
rootPath: string;
packageJsonPath: string;
packageJson: PackageJson;

@@ -33,9 +33,9 @@ } | undefined, [name: string, options?: PackageResolvingOptions | undefined]>;

version: string | undefined;
rootPath: any;
packageJsonPath: any;
rootPath: string;
packageJsonPath: string;
packageJson: PackageJson;
} | undefined;
declare const loadPackageJSON: quansync_macro.QuansyncFn<PackageJson | null, [cwd?: Args[0] | undefined]>;
declare const loadPackageJSON: quansync_types.QuansyncFn<PackageJson | null, [cwd?: Args[0] | undefined]>;
declare const loadPackageJSONSync: (cwd?: Args[0] | undefined) => PackageJson | null;
declare const isPackageListed: quansync_macro.QuansyncFn<boolean, [name: string, cwd?: string | undefined]>;
declare const isPackageListed: quansync_types.QuansyncFn<boolean, [name: string, cwd?: string | undefined]>;
declare const isPackageListedSync: (name: string, cwd?: string | undefined) => boolean;

@@ -42,0 +42,0 @@

{
"name": "local-pkg",
"type": "module",
"version": "1.2.0",
"version": "1.2.1",
"description": "Get information on local packages.",

@@ -38,21 +38,21 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

"dependencies": {
"mlly": "^1.8.2",
"pkg-types": "^2.3.1",
"quansync": "^1.0.0"
"mlly": "^1.7.4",
"pkg-types": "^2.3.0",
"quansync": "^0.2.11"
},
"devDependencies": {
"@antfu/eslint-config": "^9.0.0",
"@antfu/ni": "^30.1.0",
"@antfu/utils": "^9.3.0",
"@types/chai": "^5.2.3",
"@types/node": "^25.9.1",
"bumpp": "^11.1.0",
"chai": "^6.2.2",
"eslint": "^10.4.0",
"@antfu/eslint-config": "^5.2.1",
"@antfu/ni": "^25.0.0",
"@antfu/utils": "^9.2.0",
"@types/chai": "^5.2.2",
"@types/node": "^24.3.0",
"bumpp": "^10.2.3",
"chai": "^5.3.1",
"eslint": "^9.33.0",
"esno": "^4.8.0",
"find-up-simple": "^1.0.1",
"typescript": "^6.0.3",
"typescript": "^5.9.2",
"unbuild": "^3.6.1",
"unplugin-quansync": "^0.5.2",
"vitest": "^4.1.6"
"unplugin-quansync": "^0.4.4",
"vitest": "^3.2.4"
},

@@ -59,0 +59,0 @@ "scripts": {

@@ -49,3 +49,3 @@ # local-pkg

<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt="Sponsors"/>
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
</a>

@@ -52,0 +52,0 @@ </p>