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

@felvin-community/bmiconverter

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@felvin-community/bmiconverter - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

src/files/screenshot.png

2

package.json
{
"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

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