@rnx-kit/align-deps
Advanced tools
Comparing version 2.4.0 to 2.4.1
import type { PackageManifest } from "@rnx-kit/tools-node/package"; | ||
import type { AlignDepsConfig, Changes, ErrorCode, ManifestProfile, Options } from "../types"; | ||
type Report = { | ||
changes: Changes; | ||
changesCount: number; | ||
unmanagedDependencies: [string, string][]; | ||
errors: Changes; | ||
errorCount: number; | ||
warnings: Changes["capabilities"]; | ||
}; | ||
@@ -24,6 +24,6 @@ /** | ||
* @param profile The desired profile to compare against | ||
* @param write Whether misaligned dependencies should be updated | ||
* @param options Whether misaligned dependencies should be updated | ||
* @returns A list of misaligned dependencies | ||
*/ | ||
export declare function inspect(manifest: PackageManifest, profile: ManifestProfile, write: boolean): Report; | ||
export declare function inspect(manifest: PackageManifest, profile: ManifestProfile, { noUnmanaged, write }: Pick<Options, "noUnmanaged" | "write">): Report; | ||
/** | ||
@@ -42,3 +42,3 @@ * Checks the specified package manifest for misaligned dependencies in place. | ||
*/ | ||
export declare function checkPackageManifestUnconfigured(manifestPath: string, { excludePackages, noUnmanaged, write }: Options, config: AlignDepsConfig, logError?: { | ||
export declare function checkPackageManifestUnconfigured(manifestPath: string, options: Options, config: AlignDepsConfig, logError?: { | ||
(...data: any[]): void; | ||
@@ -45,0 +45,0 @@ (message?: any, ...optionalParams: any[]): void; |
import type { PackageManifest } from "@rnx-kit/tools-node/package"; | ||
import type { Changes } from "./types"; | ||
export declare function diff(manifest: PackageManifest, updatedManifest: PackageManifest): Changes | undefined; | ||
export declare function stringify(allChanges: Changes, output?: string[]): string; | ||
export declare function stringify(allChanges: Partial<Changes>, output?: string[]): string; | ||
//# sourceMappingURL=diff.d.ts.map |
import type { PackageManifest } from "@rnx-kit/tools-node/package"; | ||
export declare const dependencySections: readonly ["dependencies", "peerDependencies", "devDependencies"]; | ||
export declare function compare<T>(lhs: T, rhs: T): -1 | 0 | 1; | ||
@@ -3,0 +4,0 @@ export declare function dropPatchFromVersion(version: string): string; |
@@ -25,2 +25,7 @@ import type { Capability, KitConfig, KitType } from "@rnx-kit/config"; | ||
devDependencies: Change[]; | ||
capabilities: { | ||
type: "unmanaged"; | ||
dependency: string; | ||
capability: string; | ||
}[]; | ||
}; | ||
@@ -48,3 +53,3 @@ export type Options = { | ||
export type DependencyType = "direct" | "development" | "peer"; | ||
export type ErrorCode = "success" | "excluded" | "invalid-app-requirements" | "invalid-configuration" | "invalid-manifest" | "missing-react-native" | "not-configured" | "unmanaged-capabilities" | "unsatisfied"; | ||
export type ErrorCode = "success" | "excluded" | "invalid-app-requirements" | "invalid-configuration" | "invalid-manifest" | "missing-react-native" | "not-configured" | "unsatisfied"; | ||
export type Command = (manifest: string) => ErrorCode; | ||
@@ -51,0 +56,0 @@ export type MetaPackage = { |
{ | ||
"name": "@rnx-kit/align-deps", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Manage dependencies within a repository and across many repositories", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/align-deps#readme", |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
969738
26441
40