@harvest-profit/units
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -5,6 +5,2 @@ Object.defineProperty(exports, "__esModule", { | ||
var _Math = require('./Math'); | ||
var _Math2 = _interopRequireDefault(_Math); | ||
var _UnitsHelper = require('./UnitsHelper'); | ||
@@ -16,3 +12,3 @@ | ||
exports['default'] = { math: _Math2['default'], UnitsHelper: _UnitsHelper2['default'] }; | ||
exports['default'] = _UnitsHelper2['default']; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@harvest-profit/units", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Units helper for Harvest Profit javascript applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,3 +16,3 @@ <div style="text-align: center"> | ||
```js | ||
import { UnitsHelper } from '@harvest-profit/units' | ||
import UnitsHelper from '@harvest-profit/units' | ||
@@ -23,10 +23,2 @@ const isCompatibleUnit = UnitsHelper.isCompatibleUnit('lbs', 'tons'); | ||
You can also import our flavor of `math.js` if you need it: | ||
```js | ||
import { math } from '@harvest-profit/units' | ||
const total = math.add(1, 2) | ||
console.log(total); // 3 | ||
``` | ||
## Development | ||
@@ -33,0 +25,0 @@ To deploy a new version to NPM, bump the version number, commit/merge to `master`, and run the following: |
Sorry, the diff of this file is not supported yet
23559
155
36