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

metro-runtime

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-runtime - npm Package Compare versions

Comparing version 0.72.0 to 0.72.1

src/modules/fast-refresh.js

5

package.json
{
"name": "metro-runtime",
"version": "0.72.0",
"version": "0.72.1",
"description": "🚇 Module required for evaluating Metro bundles.",

@@ -16,3 +16,4 @@ "main": "src",

"dependencies": {
"@babel/runtime": "^7.0.0"
"@babel/runtime": "^7.0.0",
"react-refresh": "^0.4.0"
},

@@ -19,0 +20,0 @@ "devDependencies": {

17

src/polyfills/require.js

@@ -210,3 +210,18 @@ /**

metroRequire.importAll = metroImportAll;
metroRequire.importAll = metroImportAll; // The `require.context()` syntax is never executed in the runtime because it is converted
// to `require()` in `metro/src/ModuleGraph/worker/collectDependencies.js` after collecting
// dependencies. If the feature flag is not enabled then the conversion never takes place and this error is thrown (development only).
metroRequire.context = function fallbackRequireContext() {
if (__DEV__) {
throw new Error(
"The experimental Metro feature `require.context` is not enabled in your project.\nThis can be enabled by setting the `transformer.unstable_allowRequireContext` property to `true` in your Metro configuration."
);
}
throw new Error(
"The experimental Metro feature `require.context` is not enabled in your project."
);
};
let inGuard = false;

@@ -213,0 +228,0 @@

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