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

metro-resolver

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-resolver - npm Package Compare versions

Comparing version 0.77.0 to 0.78.0

5

package.json
{
"name": "metro-resolver",
"version": "0.77.0",
"version": "0.78.0",
"description": "🚇 Implementation of Metro's resolution logic.",

@@ -17,3 +17,6 @@ "main": "src",

"node": ">=18"
},
"devDependencies": {
"metro": "0.78.0"
}
}

3

src/createDefaultContext.js

@@ -20,6 +20,7 @@ "use strict";

*/
function createDefaultContext(context) {
function createDefaultContext(context, dependency) {
return {
redirectModulePath: (modulePath) =>
(0, _PackageResolve.redirectModulePath)(context, modulePath),
dependency,
...context,

@@ -26,0 +27,0 @@ };

@@ -435,3 +435,3 @@ /**

}
if (context.preferNativePlatform) {
if (context.preferNativePlatform && sourceExt !== "") {
const filePath = resolveSourceFileForExt(context, `.native${sourceExt}`);

@@ -438,0 +438,0 @@ if (filePath) {

@@ -11,2 +11,4 @@ /**

import {TransformResultDependency} from 'metro';
export type Result<TResolution, TCandidates> =

@@ -107,2 +109,9 @@ | {readonly type: 'resolved'; readonly resolution: TResolution}

/**
* The dependency descriptor, within the origin module, corresponding to the
* current resolution request. This is provided for diagnostic purposes ONLY
* and may not be used for resolution purposes.
*/
readonly dependency?: TransformResultDependency;
/**
* The ordered list of fields to read in `package.json` to resolve a main

@@ -115,3 +124,4 @@ * entry point based on the "browser" field spec.

* Full path of the module that is requiring or importing the module to be
* resolved.
* resolved. This may not be the only place this dependency was found,
* as resolutions can be cached.
*/

@@ -118,0 +128,0 @@ readonly originModulePath: string;

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

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