Socket
Socket
Sign inDemoInstall

read-pkg-up

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-pkg-up - npm Package Compare versions

Comparing version 9.1.0 to 10.0.0

17

index.d.ts

@@ -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.0.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.0.0",
"type-fest": "^3.12.0"
},
"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.18.0",
"xo": "^0.45.0"
"ava": "^5.3.1",
"tsd": "^0.28.1",
"xo": "^0.54.2"
},
"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 @@

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