MCPcopy Create free account

hub / github.com/raineorshine/npm-check-updates / functions

Functions302 in github.com/raineorshine/npm-check-updates

↓ 217 callersFunctionncu
( args: string[], spawnPleaseOptions?: Parameters<typeof spawn>[2], spawnOptions?: Parameters<typeof spa
test/doctor.test.ts:28
↓ 164 callersFunctionstubVersions
(mockReturnedVersions: MockedVersions, { spawn }: { spawn?: boolean } = {})
test/helpers/stubVersions.ts:6
↓ 112 callersFunctionremoveDir
* Helper function to remove a directory while avoiding errors like: * Error: EBUSY: resource busy or locked, rmdir 'C:\Users\alice\AppData\Local\Temp
test/helpers/removeDir.ts:10
↓ 85 callersFunctionprint
( options: Options, message: any, loglevel: LogLevel = null, method: 'log' | 'warn' | 'info' | 'error'
src/lib/logging.ts:54
↓ 74 callersFunctioncreateMockVersion
({ name, versions, distTags }: CreateMockParams)
test/helpers/createMockVersion.ts:18
↓ 47 callersFunctionchaiSetup
()
test/helpers/chaiSetup.ts:6
↓ 44 callersFunctiongetCurrentDependencies
* Get the current dependencies from the package file. * * @param [pkgData={}] Object with dependencies, devDependencies, peerDependencies, and/or op
src/lib/getCurrentDependencies.ts:36
↓ 36 callersFunctionprogramError
Print an error. Exit the process if in CLI mode.
src/lib/programError.ts:6
↓ 35 callersMethodentries
(_matcher)
src/lib/figgy-pudding/index.js:33
↓ 28 callersMethodcontainIgnoreCase
(expected: string)
test/helpers/chai.d.ts:17
↓ 28 callersFunctionkeyValueBy
( input: T[] | Index<T>, // if no keyValue is given, sets all values to true keyValue?: ArrayKeyValueGen
src/lib/keyValueBy.ts:16
↓ 26 callersFunctionqueryVersions
* Get the latest or greatest versions from the NPM repository based on the version target. * * @param packageMap An object whose keys are package
src/lib/queryVersions.ts:25
↓ 24 callersFunctiongetTime
(daysAgo: number)
test/cache.test.ts:18
↓ 22 callersFunctioncodeInline
(code: string)
src/cli-options.ts:140
↓ 21 callersFunctionexists
(path: string)
src/lib/exists.ts:4
↓ 21 callersFunctionsilenceProgressBar
()
test/helpers/silenceProgressBar.ts:15
↓ 19 callersFunctionupgradeDependencies
* Upgrade a dependencies collection based on latest available versions. Supports npm aliases. * * @param currentDependencies current dependencies co
src/lib/upgradeDependencies.ts:27
↓ 17 callersFunctiongetAllPackagesForTest
convenience function to call getAllPackages for a given test-path
test/getAllPackages.test.ts:26
↓ 16 callersFunctionparseJson
(jsonString: string)
src/lib/utils/parseJson.ts:58
↓ 16 callersFunctionsetup
( workspaces: string[] | { packages: string[] } = ['packages/**'], { pnpm, }: { // add workspace
test/workspaces.test.ts:28
↓ 15 callersFunctioncodeBlock
(code: string, { markdown }: { markdown?: boolean } = {})
src/cli-options.ts:22
↓ 14 callersFunctiondeterminePackageManager
( options: Options, // only for testing readdir: (_path: string) => Promise<string[]> = fs.readdir, )
src/lib/determinePackageManager.ts:60
↓ 13 callersFunctionchalkInit
(color?: boolean | null)
src/lib/chalk.ts:54
↓ 13 callersFunctiongetRepoUrl
* @param packageName A package name as listed in package.json's dependencies list * @param packageJson Optional param to specify an object representa
src/lib/getRepoUrl.ts:26
↓ 12 callersFunctionisUpgradeable
* Check if a version satisfies the latest, and is not beyond the latest). Ignores `v` prefix. * * @param current * @param latest * @param downgrad
src/lib/isUpgradeable.ts:15
↓ 11 callersFunctiongetNormalizedLogs
(logSpy: Sinon.SinonStub<any[], void>)
test/cooldown.test.ts:29
↓ 10 callersFunctionspawnCommand
* Spawn a command. On Windows, prefer `<command>.cmd` but fall back to `<command>` when the * `.cmd` shim is not available (e.g. mise, scoop).
src/lib/spawnCommand.ts:13
↓ 9 callersFunctioneq
( o1: Record<string, unknown> | null, o2: Record<string, unknown> | null, result: Record<str
test/deep.test.ts:293
↓ 9 callersFunctiongetPreferredWildcard
* * @param dependencies A dependencies collection * @returns Returns whether the user prefers ^, ~, .*, or .x * (simply counts the greatest number
src/lib/getPreferredWildcard.ts:12
↓ 8 callersFunctionprintSorted
(options: Options, obj: T, loglevel: LogLevel)
src/lib/logging.ts:89
↓ 8 callersFunctionquoteGlobalPackageSpec
(spec: string)
src/lib/quoteGlobalPackageSpec.ts:8
↓ 8 callersFunctionupdateYamlCatalogDependencies
({ fileContent, upgrade, options, filePath, }: UpdateYamlCatalogDependenciesArgs)
src/lib/upgradeYamlCatalogDependencies.ts:93
↓ 7 callersFunctiongetCliInvocation
(...args: string[])
test/deep.test.ts:23
↓ 7 callersFunctiongroupTestScaffold
* Sets up and tears down the temporary directories required to run each test
test/group.test.ts:20
↓ 7 callersFunctionpickBy
( object: R | null | undefined, predicate: (value: R[K], key: keyof R) => any, )
src/lib/pick.ts:16
↓ 7 callersFunctiontable
({ colAligns, markdown, rows, }: { colAligns?: ('left' | 'right')[] markdown?: boolean rows: strin
src/lib/table.ts:14
↓ 7 callersFunctionwithNpmConfigFromYarn
(getVersion: GetVersion)
src/package-managers/yarn.ts:364
↓ 7 callersFunctionwithNpmWorkspaceConfig
(getVersion: GetVersion)
src/package-managers/pnpm.ts:188
↓ 6 callersFunctionfilterObject
(obj: Index<T>, predicate: (key: string, value: T) => boolean)
src/lib/filterObject.ts:5
↓ 6 callersFunctiongetChalk
(color?: boolean | null)
src/lib/chalk.ts:49
↓ 6 callersFunctiongetPeerDependenciesFromRegistry
* Get the latest or greatest versions from the NPM repository based on the version target. * * @param packageMap An object whose keys are package
src/lib/getPeerDependenciesFromRegistry.ts:56
↓ 6 callersFunctionpadLeft
(s: string, n: number)
src/cli-options.ts:15
↓ 5 callersFunctioncolorizeDiff
(from: string, to: string)
src/lib/version-util.ts:247
↓ 5 callersFunctioncreateNcuRegExp
(input: string)
test/helpers/doctorHelpers.ts:31
↓ 5 callersFunctioncreateTempYarnrc
Creates a temp directory with a yarn.lock and a .yarnrc.yml for testing.
test/package-managers/yarn/index.test.ts:175
↓ 5 callersFunctionfindTargetAndFallback
({ packageName, currentVersion, options, versions, time, filter = () => true, compare = versionU
src/package-managers/npm.ts:146
↓ 5 callersFunctionformatDays
(d: number, r = Math.round(d * 10) / 10)
src/lib/initOptions.ts:49
↓ 5 callersFunctiongetPackageManager
* Resolves the package manager from a string or object. Throws an error if an invalid packageManager is provided. * * @param packageManagerNameOrObj
src/lib/getPackageManager.ts:15
↓ 5 callersFunctiongetVersion
* Extract just the version number from a package.json dep * * @param dep Raw dependency, could be version / npm: string / Git url
src/lib/logging.ts:138
↓ 5 callersFunctionisPackument
(o: any)
src/package-managers/npm.ts:545
↓ 5 callersFunctionparseCooldown
* Parses a cooldown string (e.g. "6d", "12h", "30m") into a number of days. * Returns `null` if the string does not match a valid format.
src/lib/parseCooldown.ts:8
↓ 5 callersFunctionparseFilterExpression
Trims and filters out empty values from a filter expression.
src/lib/initOptions.ts:23
↓ 5 callersFunctionparseNumberOption
(optionName: string)
src/cli-options.ts:30
↓ 5 callersFunctiontoVersionResult
({ packageName, currentVersion, options, time, targetVersion, fallbackVersion, targetBlockedByCo
src/package-managers/npm.ts:244
↓ 4 callersFunctionasPosixPath
forces path to a posix version (windows-style)
test/getAllPackages.test.ts:12
↓ 4 callersFunctioncomposeFilter
* Creates a filter function from a given filter string. * Supports strings, wildcards, comma-or-space-delimited lists, and regexes. * The filter fun
src/lib/filterAndReject.ts:16
↓ 4 callersFunctionescapeRegExp
(str: string)
src/lib/escapeRegExp.ts:2
↓ 4 callersFunctionfindPackage
* Finds the package file and data. * * Searches as follows: * --packageData flag * --packageFile flag * --stdin * --findUp
src/lib/findPackage.ts:19
↓ 4 callersMethodforEach
(fn, thisArg = this)
src/lib/figgy-pudding/index.js:28
↓ 4 callersFunctiongetAllPackages
* Gets all local packages, including workspaces (depending on -w, -ws, and -root). * * @param options the application options, used to determine whi
src/lib/getAllPackages.ts:250
↓ 4 callersFunctiongetEnginesNodeFromRegistry
* Get the engines.node versions from the NPM repository based on the version target. * * @param packageMap An object whose keys are package name a
src/lib/getEnginesNodeFromRegistry.ts:15
↓ 4 callersFunctiongetSpawnCommands
(command: string, platform: NodeJS.Platform = process.platform)
src/lib/spawnCommand.ts:6
↓ 4 callersFunctionnpm
( args: string[], options: Options, print?: boolean, { spawnOptions, spawnPleaseOptions }: { spawnOpti
src/lib/doctor.ts:22
↓ 4 callersFunctionrunInstall
()
src/lib/doctor.ts:114
↓ 4 callersFunctionstringify
(semver: SemVer, precision?: VersionPart)
src/lib/version-util.ts:91
↓ 4 callersFunctiontoDependencyTable
({ from: fromDeps, to: toDeps, skippedByCooldown, format, ownersChangedDeps, pkgFile, time, }: {
src/lib/logging.ts:169
↓ 4 callersMethodtoJSON
()
src/lib/figgy-pudding/index.js:21
↓ 4 callersFunctionupgradePackageDefinitions
( currentDependencies: Index<VersionSpec>, options: Options, )
src/lib/upgradePackageDefinitions.ts:75
↓ 3 callersFunctionassertChalk
()
src/lib/chalk.ts:59
↓ 3 callersFunctionfetchPartialPackument
( name: string, fields: (keyof Packument)[], tag: string | null, opts: npmRegistryFetch.FetchOptions =
src/package-managers/npm.ts:44
↓ 3 callersMethodget
(key)
src/lib/figgy-pudding/index.js:18
↓ 3 callersFunctiongetGitTags
* Fetches and extracts all git tags from a git url. * * @param url - url to a github repository. * @returns the extracted git tags.
src/package-managers/gitTags.ts:23
↓ 3 callersFunctiongetIgnoredUpgradesDueToPeerDeps
( current: Index<VersionSpec>, upgraded: Index<VersionSpec>, upgradedPeerDependencies: Index<Index<Versi
src/lib/getIgnoredUpgradesDueToPeerDeps.ts:11
↓ 3 callersFunctiongetPackageDataFromFile
Reads the contents of a package file.
src/lib/findPackage.ts:30
↓ 3 callersFunctiongetPackageJson
Gets the package.json contents of an installed package.
src/lib/getPackageJson.ts:10
↓ 3 callersFunctiongetSortedVersions
Gets remote versions sorted.
src/package-managers/gitTags.ts:34
↓ 3 callersFunctionloadPackageInfoFromFile
(options: Options, filepath: string)
src/lib/loadPackageInfoFromFile.ts:8
↓ 3 callersFunctionmaybeReadIni
Try to read the given ini file.
src/lib/libnpmconfig/index.js:80
↓ 3 callersFunctionminor
( packageName, currentVersion, options = {}, npmConfig?: NpmConfig, npmConfigProject?: NpmConfig, )
src/package-managers/npm.ts:1155
↓ 3 callersFunctionparseNpmAlias
(alias: string)
src/lib/version-util.ts:411
↓ 3 callersFunctionprintJson
(options: Options, object: any)
src/lib/logging.ts:73
↓ 3 callersFunctionprintUpgrades
( options: Options, { current, latest, upgraded, skippedByCooldown, total, numCool
src/lib/logging.ts:433
↓ 3 callersFunctionreadMinimumReleaseAgeLayer
( filePath: string, format: 'yaml' | 'ini', )
src/package-managers/pnpm.ts:119
↓ 3 callersFunctionrenderDependencyTable
Create a table with the appropriate columns and alignment to render dependency upgrades.
src/lib/logging.ts:99
↓ 3 callersFunctionrenderExtendedHelp
(option: CLIOption, { markdown }: { markdown?: boolean } = {})
src/cli-options.ts:45
↓ 3 callersFunctionresolveDepSections
(dep?: string | readonly string[])
src/lib/resolveDepSections.ts:14
↓ 3 callersFunctionrunTests
()
src/lib/doctor.ts:125
↓ 3 callersFunctionsatisfiesCooldownPeriod
( packageName: string, version: Maybe<string>, versionTimeData: Maybe<string>, cooldownDaysOrPredicate
src/package-managers/filters.ts:69
↓ 3 callersFunctionsetupDeepTest
()
test/deep.test.ts:36
↓ 3 callersFunctionsetupSymlinkedPackages
( workspaces: string[] | { packages: string[] } = ['packages/**'], // applies a custom package name to /pa
test/workspaces.test.ts:80
↓ 3 callersFunctionsortBy
(collection: T[] | null | undefined, selector: (item: T) => any)
src/lib/sortBy.ts:7
↓ 3 callersFunctiontestFail
({ packageManager }: { packageManager: PackageManagerName })
test/helpers/doctorHelpers.ts:122
↓ 3 callersFunctiontestPass
({ packageManager }: { packageManager: PackageManagerName })
test/helpers/doctorHelpers.ts:42
↓ 2 callersFunctionbuildOptions
()
scripts/build-options.ts:122
↓ 2 callersFunctioncheckIfInPeerViolation
( currentDependencies: Index<VersionSpec>, filteredUpgradedDependencies: Index<VersionSpec>, upgradedPee
src/lib/upgradePackageDefinitions.ts:26
↓ 2 callersFunctioncreateNpmAlias
(name: string, version: string)
src/lib/version-util.ts:403
↓ 2 callersFunctionensureLineDisplay
* Ensures the code line or a hint is always displayed for the code snippet. * If the line is empty, it outputs `<empty>`. * If the line is larger th
src/lib/utils/parseJson.ts:14
↓ 2 callersFunctionfiggyPudding
(specs, opts)
src/lib/figgy-pudding/index.js:101
↓ 2 callersFunctionfilterAndReject
* Composes a filter function from filter, reject, filterVersion, and rejectVersion patterns. The filter function *may* throw an exception if the filte
src/lib/filterAndReject.ts:77
↓ 2 callersFunctionfilterPredicate
(options: Options)
src/package-managers/filters.ts:98
next →1–100 of 302, ranked by callers