Socket
Socket
Sign inDemoInstall

metro-resolver

Package Overview
Dependencies
Maintainers
2
Versions
143
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.76.4 to 0.76.5

2

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

@@ -5,0 +5,0 @@ "main": "src",

@@ -256,6 +256,20 @@ /**

if (pkg != null && exportsField != null) {
let conditionNamesOverride = context.unstable_conditionNames;
// HACK!: Do not assert the "import" condition for `@babel/runtime`. This
// is a workaround for ESM <-> CJS interop, as we need the CJS versions of
// `@babel/runtime` helpers.
// TODO(T154157178): Remove with better "require"/"import" solution
if (pkg.packageJson.name === "@babel/runtime") {
conditionNamesOverride = context.unstable_conditionNames.filter(
(condition) => condition !== "import"
);
}
try {
const packageExportsResult = (0,
_PackageExportsResolve.resolvePackageTargetFromExports)(
context,
{
...context,
unstable_conditionNames: conditionNamesOverride,
},
pkg.rootPath,

@@ -262,0 +276,0 @@ modulePath,

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