New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-navigators

Package Overview
Dependencies
Maintainers
5
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-navigators - npm Package Compare versions

Comparing version 0.3.0-29 to 0.3.0-30

6

lib/splitNavigatorRules.js

@@ -5,6 +5,6 @@ export function calculateSplitPrimarySceneWidth(splitRules, width) {

const range = rule.navigatorWidthRange;
// 宽度大于当前规则的最小范围
if (width > range[0] && rule.primarySceneWidth <= width) {
// 宽度大于等于当前规则的最小范围
if (width >= range[0] && rule.primarySceneWidth <= width) {
// 宽度在当前规则的闭合区间内,匹配成功
if (typeof range[1] === 'number' && width < range[1]) {
if (typeof range[1] === 'number' && width <= range[1]) {
return rule.primarySceneWidth;

@@ -11,0 +11,0 @@ }

{
"version": "0.3.0-29",
"version": "0.3.0-30",
"name": "react-native-navigators",

@@ -4,0 +4,0 @@ "repository": {

@@ -10,6 +10,6 @@ import { NativeNavigatorSplitRules } from './types';

const range = rule.navigatorWidthRange;
// 宽度大于当前规则的最小范围
if (width > range[0] && rule.primarySceneWidth <= width) {
// 宽度大于等于当前规则的最小范围
if (width >= range[0] && rule.primarySceneWidth <= width) {
// 宽度在当前规则的闭合区间内,匹配成功
if (typeof range[1] === 'number' && width < range[1]) {
if (typeof range[1] === 'number' && width <= range[1]) {
return rule.primarySceneWidth;

@@ -16,0 +16,0 @@ } else if (typeof range[1] !== 'number') {

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