Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

ts-api-utils

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-api-utils - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

lib/index.cjs.map

103

package.json
{
"name": "ts-api-utils",
"version": "1.0.3",
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils.",
"version": "1.1.0",
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. ๐Ÿ› ๏ธ๏ธ",
"repository": {

@@ -10,3 +10,6 @@ "type": "git",

"license": "MIT",
"author": "Josh Goldberg <npm@joshuakgoldberg.com>",
"author": {
"name": "JoshuaKGoldberg",
"email": "npm@joshuakgoldberg.com"
},
"type": "module",

@@ -31,13 +34,12 @@ "exports": {

"scripts": {
"build": "tsup src/index.ts --clean --format cjs,esm --outDir lib --dts && cp lib/index.d.ts lib/index.d.cts",
"build": "tsup src/index.ts && cp lib/index.d.ts lib/index.d.cts",
"docs": "typedoc",
"docs:serve": "http-server docs/generated",
"docs:serve": "npx --yes http-server docs/generated",
"format": "prettier \"**/*\" --ignore-unknown",
"format:write": "pnpm format --write",
"lint": "eslint . --max-warnings 0 --report-unused-disable-directives",
"lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
"lint:knip": "knip --config knip.jsonc",
"lint:knip": "knip",
"lint:knip:production": "knip --config knip.production.jsonc --production",
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
"lint:package": "npmPkgJsonLint .",
"lint:package-json": "npmPkgJsonLint .",
"lint:packages": "pnpm dedupe --check",

@@ -48,3 +50,3 @@ "lint:spelling": "cspell \"**\" \".github/**/*\"",

"test": "vitest",
"type-check": "tsc --noEmit"
"tsc": "tsc"
},

@@ -56,44 +58,46 @@ "lint-staged": {

"@phenomnomnominal/tsquery": "^6.1.3",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "6.6.0",
"@release-it/conventional-changelog": "^8.0.1",
"@types/eslint": "^8.56.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "6.20.0",
"@typescript/vfs": "^1.5.0",
"@vitest/coverage-istanbul": "^0.34.0",
"cspell": "^7.0.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-deprecation": "^1.3.3",
"@vitest/coverage-v8": "^1.1.0",
"console-fail-test": "^0.2.3",
"cspell": "^8.2.3",
"eslint": "^8.56.0",
"eslint-plugin-deprecation": "^2.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^46.0.0",
"eslint-plugin-jsonc": "^2.6.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-jsdoc": "^48.0.0",
"eslint-plugin-jsonc": "^2.11.2",
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-n": "^16.5.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-regexp": "^1.12.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-typescript-sort-keys": "^3.0.0",
"eslint-plugin-unicorn": "^48.0.0",
"eslint-plugin-vitest": "^0.3.0",
"http-server": "^14.1.1",
"husky": "^8.0.3",
"jsonc-eslint-parser": "^2.1.0",
"knip": "^2.19.5",
"lint-staged": "^14.0.0",
"markdownlint": "^0.30.0",
"markdownlint-cli": "^0.36.0",
"npm-package-json-lint": "^7.0.0",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-regexp": "^2.1.2",
"eslint-plugin-vitest": "^0.3.18",
"eslint-plugin-yml": "^1.11.0",
"husky": "^9.0.0",
"jsonc-eslint-parser": "^2.4.0",
"knip": "^4.0.0",
"lint-staged": "^15.2.0",
"markdownlint": "^0.33.0",
"markdownlint-cli": "^0.39.0",
"npm-package-json-lint": "^7.1.0",
"npm-package-json-lint-config-default": "^6.0.0",
"prettier": "^3.0.0",
"prettier-plugin-packagejson": "^2.4.2",
"release-it": "^16.0.0",
"prettier": "^3.1.1",
"prettier-plugin-curly": "^0.1.3",
"prettier-plugin-packagejson": "^2.4.7",
"release-it": "^17.0.1",
"sentences-per-line": "^0.2.1",
"should-semantic-release": "^0.1.0",
"tsup": "^7.0.0",
"typedoc": "^0.24.0",
"typedoc-plugin-coverage": "^2.0.0",
"typedoc-plugin-custom-validation": "^1.1.0",
"should-semantic-release": "^0.2.1",
"tsup": "^8.0.1",
"typedoc": "^0.24.8",
"typedoc-plugin-coverage": "^2.2.0",
"typedoc-plugin-custom-validation": "^1.1.1",
"typedoc-plugin-konamimojisplosion": "^0.0.2",
"typedoc-plugin-mdn-links": "^3.0.0",
"typedoc-plugin-versions": "^0.2.3",
"typescript": "^5.1.6",
"vitest": "^0.34.0"
"typedoc-plugin-mdn-links": "^3.1.8",
"typedoc-plugin-versions": "^0.2.4",
"typescript": "^5.3.3",
"vitest": "^1.1.0",
"yaml-eslint-parser": "^1.2.2"
},

@@ -103,6 +107,9 @@ "peerDependencies": {

},
"packageManager": "pnpm@8.7.3",
"packageManager": "pnpm@8.15.1",
"engines": {
"node": ">=16.13.0"
"node": ">=18"
},
"publishConfig": {
"provenance": true
}
}

@@ -5,3 +5,3 @@ <h1 align="center">TypeScript API Utils</h1>

Utility functions for working with TypeScript's API.
Successor to the wonderful <a href="https://github.com/ajafff/tsutils">tsutils</a>.
Successor to the wonderful Successor to the wonderful <a href="https://github.com/ajafff/tsutils">tsutils</a>. ๐Ÿ› ๏ธ๏ธ
</p>

@@ -13,3 +13,3 @@

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<img alt="All Contributors: 4" src="https://img.shields.io/badge/all_contributors-4-21bb42.svg" />
<img alt="All Contributors: 5 ๐Ÿ‘ช" src="https://img.shields.io/badge/all_contributors-5_๐Ÿ‘ช-21bb42.svg" />
<!-- ALL-CONTRIBUTORS-BADGE:END -->

@@ -19,7 +19,4 @@ <!-- prettier-ignore-end -->

<a href="https://codecov.io/gh/JoshuaKGoldberg/ts-api-utils" target="_blank">
<img alt="Codecov Test Coverage" src="https://codecov.io/gh/JoshuaKGoldberg/ts-api-utils/branch/main/graph/badge.svg?token=eVIFY4MhfQ"/>
<img alt="Codecov Test Coverage" src="https://codecov.io/gh/JoshuaKGoldberg/ts-api-utils/branch/main/graph/badge.svg"/>
</a>
<a href="#" target="_blank">
<img alt="Documentation Coverage" src="./docs/coverage.svg"/>
</a>
<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank">

@@ -29,9 +26,10 @@ <img alt="Contributor Covenant" src="https://img.shields.io/badge/code_of_conduct-enforced-21bb42" />

<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/LICENSE.md" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/github/license/JoshuaKGoldberg/ts-api-utils?color=21bb42">
</a>
<img alt="License: MIT" src="https://img.shields.io/github/license/JoshuaKGoldberg/ts-api-utils?color=21bb42">
</a>
<a href="https://github.com/sponsors/JoshuaKGoldberg" target="_blank">
<img alt="Sponsor: On GitHub" src="https://img.shields.io/badge/sponsor-on_github-21bb42.svg" />
</a>
<img alt="Sponsor: On GitHub" src="https://img.shields.io/badge/sponsor-on_github-21bb42.svg" />
</a>
<img alt="Style: Prettier" src="https://img.shields.io/badge/style-prettier-21bb42.svg" />
<img alt="TypeScript: Strict" src="https://img.shields.io/badge/typescript-strict-21bb42.svg" />
<img alt="TypeScript: Strict" src="https://img.shields.io/badge/typescript-strict-21bb42.svg" />
<img alt="npm package version" src="https://img.shields.io/npm/v/ts-api-utils?color=21bb42" />
</p>

@@ -47,2 +45,4 @@

import * as tsutils from "ts-api-utils";
tsutils.forEachToken(/* ... */);
```

@@ -75,6 +75,7 @@

<tr>
<td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">๐Ÿ›</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg" title="Code">๐Ÿ’ป</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg" title="Documentation">๐Ÿ“–</a> <a href="#projectManagement-JoshuaKGoldberg" title="Project Management">๐Ÿ“†</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg" title="Tests">โš ๏ธ</a> <a href="#tool-JoshuaKGoldberg" title="Tools">๐Ÿ”ง</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">๐Ÿ›</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">๐Ÿ’ป</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">๐Ÿ“–</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">๐Ÿ“†</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">โš ๏ธ</a> <a href="#tool-RebeccaStevens" title="Tools">๐Ÿ”ง</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://blog.jmchor.dev"><img src="https://avatars.githubusercontent.com/u/110151013?v=4?s=100" width="100px;" alt="Johannes Chorzempa"/><br /><sub><b>Johannes Chorzempa</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=jmchor" title="Documentation">๐Ÿ“–</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=jmchor" title="Code">๐Ÿ’ป</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">๐Ÿ›</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg" title="Code">๐Ÿ’ป</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg" title="Documentation">๐Ÿ“–</a> <a href="#projectManagement-JoshuaKGoldberg" title="Project Management">๐Ÿ“†</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg" title="Tests">โš ๏ธ</a> <a href="#tool-JoshuaKGoldberg" title="Tools">๐Ÿ”ง</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">๐Ÿšง</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">๐Ÿš‡</a> <a href="#ideas-JoshuaKGoldberg" title="Ideas, Planning, & Feedback">๐Ÿค”</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/kirjs"><img src="https://avatars.githubusercontent.com/u/2545357?v=4?s=100" width="100px;" alt="Kirill Cherkashin"/><br /><sub><b>Kirill Cherkashin</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=kirjs" title="Code">๐Ÿ’ป</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ajafff"><img src="https://avatars.githubusercontent.com/u/11968040?v=4?s=100" width="100px;" alt="Klaus Meinhardt"/><br /><sub><b>Klaus Meinhardt</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=ajafff" title="Code">๐Ÿ’ป</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=ajafff" title="Tests">โš ๏ธ</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://blog.jmchor.dev"><img src="https://avatars.githubusercontent.com/u/110151013?v=4?s=100" width="100px;" alt="Johannes Chorzempa"/><br /><sub><b>Johannes Chorzempa</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=jmchor" title="Documentation">๐Ÿ“–</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">๐Ÿ›</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">๐Ÿ’ป</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">๐Ÿ“–</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">๐Ÿ“†</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">โš ๏ธ</a> <a href="#tool-RebeccaStevens" title="Tools">๐Ÿ”ง</a> <a href="#infra-RebeccaStevens" title="Infrastructure (Hosting, Build-Tools, etc)">๐Ÿš‡</a> <a href="#maintenance-RebeccaStevens" title="Maintenance">๐Ÿšง</a> <a href="#ideas-RebeccaStevens" title="Ideas, Planning, & Feedback">๐Ÿค”</a></td>
</tr>

@@ -92,4 +93,4 @@ </tbody>

> ๐Ÿ’™ This package is templated from [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [template-typescript-node-package](https://github.com/JoshuaKGoldberg/template-typescript-node-package).
> ๐Ÿ’™ This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
> _"My tools! I have to have my tools!" - Dennis Reynolds_

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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