@kosko/require
Advanced tools
Comparing version 0.0.0-20240218093713 to 0.0.0-20240317094138
@@ -28,7 +28,8 @@ /** | ||
/** | ||
* Resolves path to the specified module. | ||
* Returns full file path of the given module id. | ||
* | ||
* @param id - A relative or absolute path to a file or directory, or a module name. | ||
* @public | ||
*/ | ||
export declare function resolve(id: string, options?: ResolveOptions): Promise<string | undefined>; | ||
export declare function resolveModule(id: string, options?: ResolveOptions): Promise<string | undefined>; | ||
@@ -53,2 +54,10 @@ /** | ||
/** | ||
* Returns full file path of the given path. This function only supports | ||
* relative or absolute paths of files or directories. | ||
* | ||
* @public | ||
*/ | ||
export declare function resolvePath(path: string, options?: ResolveOptions): Promise<string | undefined>; | ||
export { } |
{ | ||
"name": "@kosko/require", | ||
"version": "0.0.0-20240218093713", | ||
"version": "0.0.0-20240317094138", | ||
"description": "Import and resolve modules.", | ||
@@ -43,3 +43,4 @@ "homepage": "https://kosko.dev", | ||
"dependencies": { | ||
"@kosko/common-utils": "^0.0.0-20240218093713" | ||
"resolve-from": "^5.0.0", | ||
"@kosko/common-utils": "^0.0.0-20240317094138" | ||
}, | ||
@@ -52,4 +53,4 @@ "devDependencies": { | ||
"@kosko/build-scripts": "^0.0.0", | ||
"@kosko/jest-preset": "^0.0.0", | ||
"@kosko/test-utils": "^0.0.0" | ||
"@kosko/test-utils": "^0.0.0", | ||
"@kosko/jest-preset": "^0.0.0" | ||
}, | ||
@@ -56,0 +57,0 @@ "jest": { |
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 not supported yet
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 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
35214
258
2
2
+ Addedresolve-from@^5.0.0
+ Addedresolve-from@5.0.0(transitive)