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

@kosko/require

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kosko/require - npm Package Compare versions

Comparing version 0.0.0-20240218093713 to 0.0.0-20240317094138

13

dist/types.d.ts

@@ -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 { }

9

package.json
{
"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

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