@umijs/runtime
Advanced tools
Comparing version 3.4.3-beta.1 to 3.4.3
@@ -7,1 +7,2 @@ export { Link, NavLink, Prompt, Redirect, Route, Router, StaticRouter, MemoryRouter, Switch, matchPath, withRouter, useHistory, useLocation, useParams, useRouteMatch, } from 'react-router-dom'; | ||
export { default as dynamic } from './dynamic/dynamic'; | ||
export { isBrowser } from './utils/index'; |
@@ -224,2 +224,10 @@ export { Link, MemoryRouter, NavLink, Prompt, Redirect, Route, Router, StaticRouter, Switch, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter } from 'react-router-dom'; | ||
/** | ||
* whether in browser env | ||
*/ | ||
var isBrowser = function isBrowser() { | ||
return typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'; | ||
}; | ||
var ApplyPluginsType; | ||
@@ -804,2 +812,2 @@ | ||
export { ApplyPluginsType, Plugin, dynamic }; | ||
export { ApplyPluginsType, Plugin, dynamic, isBrowser }; |
@@ -228,2 +228,10 @@ 'use strict'; | ||
/** | ||
* whether in browser env | ||
*/ | ||
var isBrowser = function isBrowser() { | ||
return typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'; | ||
}; | ||
(function (ApplyPluginsType) { | ||
@@ -922,1 +930,2 @@ ApplyPluginsType["compose"] = "compose"; | ||
exports.dynamic = dynamic; | ||
exports.isBrowser = isBrowser; |
import assert from './assert'; | ||
export { assert }; | ||
/** | ||
* whether in browser env | ||
*/ | ||
export declare const isBrowser: () => boolean; |
{ | ||
"name": "@umijs/runtime", | ||
"version": "3.4.3-beta.1", | ||
"version": "3.4.3", | ||
"description": "@umijs/runtime", | ||
@@ -28,8 +28,8 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@types/react-router": "5.1.8", | ||
"@types/react-router-dom": "5.1.5", | ||
"@types/react-router": "5.1.12", | ||
"@types/react-router-dom": "5.1.7", | ||
"history-with-query": "4.10.4", | ||
"react-router": "5.2.0", | ||
"react-router-dom": "5.2.0", | ||
"use-subscription": "1.4.1" | ||
"use-subscription": "1.5.1" | ||
}, | ||
@@ -36,0 +36,0 @@ "peerDependencies": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
49987
1527
1
+ Added@types/react-router@5.1.12(transitive)
+ Added@types/react-router-dom@5.1.7(transitive)
+ Addeduse-subscription@1.5.1(transitive)
- Removed@types/react-router@5.1.8(transitive)
- Removed@types/react-router-dom@5.1.5(transitive)
- Removedreact@16.14.0(transitive)
- Removeduse-subscription@1.4.1(transitive)
Updated@types/react-router@5.1.12
Updateduse-subscription@1.5.1