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

calculator-plugin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calculator-plugin - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

26

index.js

@@ -0,2 +1,10 @@

const initState = {
containerStyle: {}
};
class Calculator {
constructor(state = initState) {
this.state = state;
}
sum(num1, num2) {

@@ -13,18 +21,14 @@ return num1 + num2;

}
}
class CalculatorUi {
containerStyle = {};
constructor({ containerStyle }) {
this.containerStyle = containerStyle;
}
ui() {
const container = document.getElementById('calculator-container');
container.innerHTML = `<h1> CalculatorUi Container </h1>`;
container.innerHTML = `
<h1> CalculatorUi Container </h1>
<input type="number" />
<hr/>
<button>Calculate </button>
`;
}
}
this.Calculator = Calculator;
this.CalculatorUi = CalculatorUi;
this.Calculator = Calculator;
{
"name": "calculator-plugin",
"version": "1.1.1",
"version": "2.0.0",
"description": "",

@@ -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