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

@umijs/runtime

Package Overview
Dependencies
Maintainers
13
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umijs/runtime - npm Package Compare versions

Comparing version 3.0.0-beta.27 to 3.0.0-beta.28

dist/dynamic/dynamic.test.d.ts

11

dist/index.esm.js

@@ -732,12 +732,11 @@ export { Link, MemoryRouter, NavLink, Prompt, Redirect, Route, Router, Switch, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter } from 'react-router-dom';

}; // Support for direct import(),
// eg: dynamic(import('../hello-world'))
// eg: dynamic(() => import('../hello-world'))
if (typeof opts.then === 'function') {
loadableOptions.loader = function () {
return opts;
}; // Support for having first argument being options,
if (typeof opts === 'function') {
loadableOptions.loader = opts; // Support for having first argument being options,
// eg: dynamic({loader: import('../hello-world')})
} else if (_typeof(opts) === 'object') {
loadableOptions = _objectSpread2({}, loadableOptions, {}, opts);
} else {
throw new Error("Unexpect arguments ".concat(opts));
} // Support for passing options,

@@ -744,0 +743,0 @@ // eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})

@@ -737,12 +737,11 @@ 'use strict';

}; // Support for direct import(),
// eg: dynamic(import('../hello-world'))
// eg: dynamic(() => import('../hello-world'))
if (typeof opts.then === 'function') {
loadableOptions.loader = function () {
return opts;
}; // Support for having first argument being options,
if (typeof opts === 'function') {
loadableOptions.loader = opts; // Support for having first argument being options,
// eg: dynamic({loader: import('../hello-world')})
} else if (_typeof(opts) === 'object') {
loadableOptions = _objectSpread2({}, loadableOptions, {}, opts);
} else {
throw new Error("Unexpect arguments ".concat(opts));
} // Support for passing options,

@@ -749,0 +748,0 @@ // eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})

{
"name": "@umijs/runtime",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"description": "@umijs/runtime",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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