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

airlight-resolve

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airlight-resolve - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

package.json
{
"name": "airlight-resolve",
"version": "0.4.1",
"version": "0.4.2",
"description": "[WIP] `require.resolve` faster implementation based on oxc-resolver",

@@ -5,0 +5,0 @@ "type": "module",

import { ResolverFactory } from 'oxc-resolver';
/** @type {Partial<import('./interface.js').ResolveOptions>} */
const defaultOptions = {

@@ -10,3 +11,5 @@ preferAbsolute: true,

export const create = (opts = {}) => {
export const create = (
/** @type {Partial<import('./interface.js').ResolveOptions>} */ opts = {}
) => {
const options = Object.assign(

@@ -21,6 +24,7 @@ {

const factory = new ResolverFactory(options);
/** @type {Map<string, string | undefined>} */
const cache = new Map();
// eslint-disable-next-line complexity
return (...args) => {
return (/** @type {string[]} */ ...args) => {
const key = args.length < 2 ? args[0] : args.join('/');

@@ -27,0 +31,0 @@

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