Socket
Socket
Sign inDemoInstall

pkg-types

Package Overview
Dependencies
6
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

27

package.json
{
"name": "pkg-types",
"version": "1.0.2",
"version": "1.0.3",
"description": "Node.js utilities and TypeScript definitions for `package.json` and `tsconfig.json`",

@@ -9,2 +9,3 @@ "license": "MIT",

"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",

@@ -29,19 +30,19 @@ "require": "./dist/index.cjs"

"jsonc-parser": "^3.2.0",
"mlly": "^1.1.1",
"mlly": "^1.2.0",
"pathe": "^1.1.0"
},
"devDependencies": {
"@types/node": "^18.13.0",
"@vitest/coverage-c8": "^0.28.5",
"changelogen": "^0.4.1",
"eslint": "^8.34.0",
"@types/node": "^18.16.3",
"@vitest/coverage-c8": "^0.30.1",
"changelogen": "^0.5.3",
"eslint": "^8.39.0",
"eslint-config-unjs": "^0.1.0",
"expect-type": "^0.15.0",
"jiti": "^1.17.0",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"unbuild": "^1.1.1",
"vitest": "^0.28.5"
"jiti": "^1.18.2",
"prettier": "^2.8.8",
"typescript": "^5.0.4",
"unbuild": "^1.2.1",
"vitest": "^0.30.1"
},
"packageManager": "pnpm@7.27.0"
}
"packageManager": "pnpm@8.3.1"
}

@@ -54,4 +54,5 @@ # pkg-types

import { readTSConfig } from 'pkg-types'
const pkg = await readTSConfig('path/to/tsconfig.json')
const tsconfig = await readTSConfig()
// or
const tsconfig = await readTSConfig('/fully/resolved/path/to/folder')
```

@@ -76,11 +77,2 @@

### `readTSConfig`
```js
import { readTSConfig } from 'pkg-types'
const filename = await readTSConfig()
// or
const tsconfig = await readTSConfig('/fully/resolved/path/to/folder')
```
### `resolveFile`

@@ -87,0 +79,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc