unplugin-utils
Advanced tools
+1
-3
@@ -45,5 +45,3 @@ import { isAbsolute, join, resolve } from "pathe"; | ||
| const pattern = getMatcherString(id, resolutionBase); | ||
| const fn = pm(pattern, { dot: true }); | ||
| const result = fn(what); | ||
| return result; | ||
| return pm(pattern, { dot: true })(what); | ||
| } }; | ||
@@ -50,0 +48,0 @@ const includeMatchers = toArray(include).map(getMatcher); |
+1
-1
| The MIT License (MIT) | ||
| Copyright © 2024 三咲智子 Kevin Deng (https://github.com/sxzz) | ||
| Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz) | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
+10
-10
| { | ||
| "name": "unplugin-utils", | ||
| "version": "0.3.0", | ||
| "version": "0.3.1", | ||
| "description": "A set of utility functions commonly used by unplugins.", | ||
@@ -15,3 +15,3 @@ "type": "module", | ||
| }, | ||
| "author": "三咲智子 Kevin Deng <sxzz@sxzz.moe>", | ||
| "author": "Kevin Deng <sxzz@sxzz.moe>", | ||
| "funding": "https://github.com/sponsors/sxzz", | ||
@@ -36,14 +36,14 @@ "files": [ | ||
| "devDependencies": { | ||
| "@sxzz/eslint-config": "^7.1.4", | ||
| "@sxzz/eslint-config": "^7.2.7", | ||
| "@sxzz/prettier-config": "^2.2.4", | ||
| "@types/node": "^24.3.0", | ||
| "@types/node": "^24.7.0", | ||
| "@types/picomatch": "^4.0.2", | ||
| "@vitest/coverage-v8": "3.2.4", | ||
| "bumpp": "^10.2.3", | ||
| "eslint": "^9.33.0", | ||
| "oxc-transform": "^0.82.2", | ||
| "bumpp": "^10.3.1", | ||
| "eslint": "^9.37.0", | ||
| "oxc-transform": "^0.94.0", | ||
| "prettier": "^3.6.2", | ||
| "tsdown": "^0.14.1", | ||
| "tsx": "^4.20.4", | ||
| "typescript": "^5.9.2", | ||
| "tsdown": "^0.15.6", | ||
| "tsx": "^4.20.6", | ||
| "typescript": "^5.9.3", | ||
| "vitest": "^3.2.4" | ||
@@ -50,0 +50,0 @@ }, |
+17
-3
@@ -1,4 +0,7 @@ | ||
| # unplugin-utils [](https://npmjs.com/package/unplugin-utils) [](https://codecov.io/gh/sxzz/unplugin-utils) | ||
| # unplugin-utils | ||
| [](https://github.com/sxzz/unplugin-utils/actions/workflows/unit-test.yml) | ||
| [![npm version][npm-version-src]][npm-version-href] | ||
| [![npm downloads][npm-downloads-src]][npm-downloads-href] | ||
| [![Unit Test][unit-test-src]][unit-test-href] | ||
| [![codecov][codecov-src]][codecov-href] | ||
@@ -58,4 +61,15 @@ A set of utility functions commonly used by unplugins. | ||
| [MIT](./LICENSE) License © 2025 [三咲智子 Kevin Deng](https://github.com/sxzz) | ||
| [MIT](./LICENSE) License © 2025-PRESENT [Kevin Deng](https://github.com/sxzz) | ||
| [MIT](./LICENSE) Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors) | ||
| <!-- Badges --> | ||
| [npm-version-src]: https://img.shields.io/npm/v/unplugin-utils.svg | ||
| [npm-version-href]: https://npmjs.com/package/unplugin-utils | ||
| [npm-downloads-src]: https://img.shields.io/npm/dm/unplugin-utils | ||
| [npm-downloads-href]: https://www.npmcharts.com/compare/unplugin-utils?interval=30 | ||
| [unit-test-src]: https://github.com/sxzz/unplugin-utils/actions/workflows/unit-test.yml/badge.svg | ||
| [unit-test-href]: https://github.com/sxzz/unplugin-utils/actions/workflows/unit-test.yml | ||
| [codecov-src]: https://codecov.io/gh/sxzz/unplugin-utils/graph/badge.svg?token=VDWXCPSL1O | ||
| [codecov-href]: https://codecov.io/gh/sxzz/unplugin-utils |
10045
3.72%75
22.95%92
-2.13%