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

@chialab/node-resolve

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chialab/node-resolve - npm Package Compare versions

Comparing version 0.12.19 to 0.12.24

8

lib/alias.js
/**
* @typedef {{ [key: string]: string|false }} AliasMap
* @typedef {string|((importer: string) => string|false)|false} Alias
*/
/**
* @typedef {{ [key: string]: Alias }} AliasMap
*/
/**
* Escape RegExp modifiers in a string.

@@ -85,3 +89,3 @@ * @param {string} source

/**
* @type {Map<RegExp, { key: string, value: string|false }>}
* @type {Map<RegExp, { key: string, value: Alias }>}
*/

@@ -88,0 +92,0 @@ const map = new Map();

{
"name": "@chialab/node-resolve",
"type": "module",
"version": "0.12.19",
"version": "0.12.24",
"description": "A promise based node resolution library based on enhanced-resolve.",

@@ -44,3 +44,3 @@ "main": "lib/index.js",

},
"gitHead": "83a72c39b9461439f29bbcbb0ff019267d1a87ad"
"gitHead": "a79495d2c3c31232d30d29d986af5b5e7211e521"
}
/**
* @typedef {{ [key: string]: string|false }} AliasMap
* @typedef {string|((importer: string) => string|false)|false} Alias
*/
/**
* @typedef {{ [key: string]: Alias }} AliasMap
*/
/**
* Escape RegExp modifiers in a string.

@@ -40,3 +43,3 @@ * @param {string} source

key: string;
value: string | false;
value: Alias;
}>;

@@ -55,4 +58,5 @@ /**

}
export type Alias = string | false | ((importer: string) => string | false);
export type AliasMap = {
[key: string]: string | false;
[key: string]: Alias;
};
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