@felvin-community/bmiconverter
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"name": "@felvin-community/bmiconverter", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs.js", |
@@ -117,9 +117,4 @@ import React, { useState } from "react"; | ||
}; | ||
// let height, weight; | ||
const handleCalculate = () => { | ||
//height /= 100; | ||
// setHeight((prev) => prev / 100); | ||
// let divider = Math.pow(height, 2); | ||
console.log(height, weight); | ||
//let result = weight / divider; | ||
let result = [Number(weight) / Number(height) / Number(height)] * 10000; | ||
@@ -138,7 +133,5 @@ result = Math.round(result); | ||
<input | ||
//onChange={(e) => (height = e.target.value)} | ||
onChange={(e) => setHeight(e.target.value)} | ||
type="number" | ||
id="height" | ||
//value={height} | ||
/> | ||
@@ -148,7 +141,5 @@ <br /> | ||
<input | ||
//onChange={(e) => (weight = e.target.value)} | ||
onChange={(e) => setWeight(e.target.value)} | ||
type="number" | ||
id="weight" | ||
// value={weight} | ||
/> | ||
@@ -155,0 +146,0 @@ <Button onClick={handleCalculate}>Calculate</Button> |
@@ -10,6 +10,6 @@ import { InstantApp } from "@felvin-search/core"; | ||
Component, | ||
// screenshotPath: "./files/screenshot.png", | ||
// exampleSearchQueries: [], | ||
screenshotPath: "./files/screenshot.png", | ||
exampleSearchQueries: [["BMI", "BMI CALCULATOR"]], | ||
}; | ||
export default App; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
244626
0
100
1
165