read-pkg-up
Advanced tools
Comparing version 9.1.0 to 10.1.0
@@ -1,3 +0,3 @@ | ||
import {Except} from 'type-fest'; | ||
import {readPackage, readPackageSync, Options as ReadPackageOptions, NormalizeOptions as ReadPackageNormalizeOptions, PackageJson, NormalizedPackageJson} from 'read-pkg'; | ||
import {type Except} from 'type-fest'; | ||
import {readPackage, readPackageSync, type Options as ReadPackageOptions, type NormalizeOptions as ReadPackageNormalizeOptions, type PackageJson, type NormalizedPackageJson} from 'read-pkg'; | ||
@@ -22,15 +22,10 @@ export type Options = { | ||
export interface ReadResult { | ||
export type ReadResult = { | ||
packageJson: PackageJson; | ||
path: string; | ||
} | ||
}; | ||
export interface NormalizedReadResult { | ||
export type NormalizedReadResult = { | ||
packageJson: NormalizedPackageJson; | ||
path: string; | ||
} | ||
export { | ||
PackageJson, | ||
NormalizedPackageJson, | ||
}; | ||
@@ -79,1 +74,3 @@ | ||
export function readPackageUpSync(options: Options): ReadResult | undefined; | ||
export {PackageJson, NormalizedPackageJson} from 'read-pkg'; |
{ | ||
"name": "read-pkg-up", | ||
"version": "9.1.0", | ||
"version": "10.1.0", | ||
"description": "Read the closest package.json file", | ||
@@ -14,5 +14,8 @@ "license": "MIT", | ||
"type": "module", | ||
"exports": "./index.js", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
"node": ">=16" | ||
}, | ||
@@ -54,10 +57,15 @@ "scripts": { | ||
"find-up": "^6.3.0", | ||
"read-pkg": "^7.1.0", | ||
"type-fest": "^2.5.0" | ||
"read-pkg": "^8.1.0", | ||
"type-fest": "^4.2.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^3.15.0", | ||
"tsd": "^0.18.0", | ||
"xo": "^0.45.0" | ||
"ava": "^5.3.1", | ||
"tsd": "^0.28.1", | ||
"xo": "^0.56.0" | ||
}, | ||
"xo": { | ||
"rules": { | ||
"@typescript-eslint/no-redundant-type-constituents": "off" | ||
} | ||
} | ||
} |
@@ -63,8 +63,2 @@ # read-pkg-up | ||
## read-pkg-up for enterprise | ||
Available as part of the Tidelift Subscription. | ||
The maintainers of read-pkg-up and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-read-pkg-up?utm_source=npm-read-pkg-up&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) | ||
## Related | ||
@@ -71,0 +65,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6218
84
69
+ Added@babel/code-frame@7.26.2(transitive)
+ Addedhosted-git-info@7.0.2(transitive)
+ Addedjson-parse-even-better-errors@3.0.2(transitive)
+ Addedlines-and-columns@2.0.4(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addednormalize-package-data@6.0.2(transitive)
+ Addedparse-json@7.1.1(transitive)
+ Addedread-pkg@8.1.0(transitive)
+ Addedtype-fest@3.13.14.26.1(transitive)
- Removed@babel/code-frame@7.26.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@4.1.0(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removednormalize-package-data@3.0.3(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedread-pkg@7.1.0(transitive)
- Removedtype-fest@2.19.0(transitive)
- Removedyallist@4.0.0(transitive)
Updatedread-pkg@^8.1.0
Updatedtype-fest@^4.2.0