@cocreate/calculate 1.14.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.14.2](https://github.com/CoCreate-app/CoCreate-calculate/compare/v1.14.1...v1.14.2) (2023-12-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* typo ([a19301a](https://github.com/CoCreate-app/CoCreate-calculate/commit/a19301ab5d2e66d155f00e7277ef98fc83d8fedc))
|
|
7
|
+
|
|
1
8
|
## [1.14.1](https://github.com/CoCreate-app/CoCreate-calculate/compare/v1.14.0...v1.14.1) (2023-11-26)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/calculate",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "A handy vanilla JavaScript calculator, concatenate multiple elements containing integers & execute calculates. Can be used for creating invoices,making payments & any kind of complex calculate. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"calculate",
|
package/src/index.js
CHANGED
|
@@ -105,9 +105,8 @@ function initEvent(element, input) {
|
|
|
105
105
|
|
|
106
106
|
async function setCalcationResult(element) {
|
|
107
107
|
const { object, isRealtime } = getAttributes(element);
|
|
108
|
-
let calculate = element.getAttribute('calculate');
|
|
109
108
|
|
|
110
|
-
let calString = await getValues(calculate);
|
|
109
|
+
let calString = await getValues(element.getAttribute('calculate'));
|
|
111
110
|
|
|
112
111
|
if (calString) {
|
|
113
112
|
let result = calculate(calString);
|