Comparing version 1.2.1 to 1.3.0
@@ -6,10 +6,4 @@ interface ResolveOptions { | ||
} | ||
/** | ||
* @deprecated please use `resolve` instead of `resolveSync` | ||
*/ | ||
declare function resolveSync(id: string, options?: ResolveOptions): string; | ||
declare function resolve(id: string, options?: ResolveOptions): Promise<string>; | ||
/** | ||
* @deprecated please use `resolvePath` instead of `resolvePathSync` | ||
*/ | ||
declare function resolvePathSync(id: string, options?: ResolveOptions): string; | ||
@@ -16,0 +10,0 @@ declare function resolvePath(id: string, options?: ResolveOptions): Promise<any>; |
{ | ||
"name": "mlly", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Missing ECMAScript module utils for Node.js", | ||
@@ -34,9 +34,9 @@ "repository": "unjs/mlly", | ||
"devDependencies": { | ||
"@types/node": "^20.1.2", | ||
"@vitest/coverage-c8": "^0.31.0", | ||
"@types/node": "^20.2.3", | ||
"@vitest/coverage-c8": "^0.31.1", | ||
"c8": "^7.13.0", | ||
"changelogen": "^0.5.3", | ||
"eslint": "^8.40.0", | ||
"eslint-config-unjs": "^0.1.0", | ||
"import-meta-resolve": "^2.2.2", | ||
"eslint": "^8.41.0", | ||
"eslint-config-unjs": "^0.2.0", | ||
"import-meta-resolve": "^3.0.0", | ||
"jiti": "^1.18.2", | ||
@@ -46,5 +46,5 @@ "prettier": "^2.8.8", | ||
"unbuild": "^1.2.1", | ||
"vitest": "^0.31.0" | ||
"vitest": "^0.31.1" | ||
}, | ||
"packageManager": "pnpm@8.5.0" | ||
"packageManager": "pnpm@8.5.1" | ||
} |
@@ -43,3 +43,3 @@ # mlly | ||
### `resolve` | ||
### `resolve` / `resolveSync` | ||
@@ -52,3 +52,3 @@ Resolve a module by respecting [ECMAScript Resolver algorithm](https://nodejs.org/dist/latest-v14.x/docs/api/esm.html#esm_resolver_algorithm) | ||
```js | ||
import { resolve } from "mlly"; | ||
import { resolve, resolveSync } from "mlly"; | ||
@@ -65,3 +65,3 @@ // file:///home/user/project/module.mjs | ||
### `resolvePath` | ||
### `resolvePath` / `resolvePathSync` | ||
@@ -71,3 +71,3 @@ Similar to `resolve` but returns a path instead of URL using `fileURLToPath`. | ||
```js | ||
import { resolvePath } from "mlly"; | ||
import { resolvePath, resolveSync } from "mlly"; | ||
@@ -74,0 +74,0 @@ // /home/user/project/module.mjs |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
153251
4523