@gem-sdk/core 2.1.9 → 2.1.11

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.
@@ -3,7 +3,7 @@
3
3
  var shop = require('./shop.js');
4
4
 
5
5
  const shopifyPriceRounding = (amount, precision)=>{
6
- return parseFloat(`${amount}`).toFixed(Number(precision) + 1).slice(0, -1);
6
+ return parseFloat(`${amount}`).toFixed(Number(precision));
7
7
  };
8
8
  const formatMoney = function(cents, format) {
9
9
  let value = '';
@@ -1,7 +1,7 @@
1
1
  import { useMoneyFormat } from './shop.js';
2
2
 
3
3
  const shopifyPriceRounding = (amount, precision)=>{
4
- return parseFloat(`${amount}`).toFixed(Number(precision) + 1).slice(0, -1);
4
+ return parseFloat(`${amount}`).toFixed(Number(precision));
5
5
  };
6
6
  const formatMoney = function(cents, format) {
7
7
  let value = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",