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

react-native-math-expressions-mb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-math-expressions-mb - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

12

components/addNumbers.js

@@ -6,17 +6,17 @@ function addNumbers(...arg) {

}
let onlyInt = params.filter((value, index) => {
let nonIntegers = params.filter((value, index) => {
return /^\d+$/.test(value);
});
if (onlyInt.length === 0) {
if (nonIntegers.length === 0) {
if (params.length === 1) {
let intValue = params[0].split(",");
params = intValue;
let onlyInt = params.filter((value, index) => {
let nonIntegers = params.filter((value, index) => {
return /^\d+$/.test(value);
});
if (params.length !== onlyInt.length) {
throw "Only numbers are allowed in subNumbers function.";
if (params.length !== nonIntegers.length) {
throw "Only numbers are allowed in addNumber function.";
}
}
} else if (params.length !== onlyInt.length) {
} else if (params.length !== nonIntegers.length) {
throw "Only numbers are allowed in addNumber function.";

@@ -23,0 +23,0 @@ }

@@ -6,17 +6,17 @@ function subNumbers(...arg) {

}
let onlyInt = params.filter((value, index) => {
let nonIntegers = params.filter((value, index) => {
return /^\d+$/.test(value);
});
if (onlyInt.length === 0) {
if (nonIntegers.length === 0) {
if (params.length === 1) {
let intValue = params[0].split(",");
params = intValue;
let onlyInt = params.filter((value, index) => {
let nonIntegers = params.filter((value, index) => {
return /^\d+$/.test(value);
});
if (params.length !== onlyInt.length) {
if (params.length !== nonIntegers.length) {
throw "Only numbers are allowed in subNumbers function.";
}
}
} else if (params.length !== onlyInt.length) {
} else if (params.length !== nonIntegers.length) {
throw "Only numbers are allowed in subNumbers function.";

@@ -23,0 +23,0 @@ }

{
"name": "react-native-math-expressions-mb",
"version": "1.0.1",
"version": "1.0.2",
"description": "react-native math expressions",

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

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