@actual-app/api 2.0.1 → 4.0.3

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/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  let bundle = require('./app/bundle.api.js');
2
+ let injected = require('./injected');
2
3
  let methods = require('./methods');
3
4
  let utils = require('./utils');
4
-
5
- let injected = require('./injected');
6
5
  let actualApp;
7
6
 
8
7
  async function init({ budgetId, config } = {}) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@actual-app/api",
3
- "version": "2.0.1",
3
+ "version": "4.0.3",
4
+ "license": "MIT",
4
5
  "description": "An API for Actual",
5
6
  "main": "index.js",
6
- "license": "MIT",
7
7
  "dependencies": {
8
8
  "better-sqlite3": "^7.5.0",
9
- "uuid": "3.3.2",
10
- "node-fetch": "^1.6.3"
9
+ "node-fetch": "^1.6.3",
10
+ "uuid": "3.3.2"
11
11
  }
12
12
  }
package/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function amountToInteger(n) {
2
- return Math.round(n * 100) | 0;
2
+ return Math.round(n * 100);
3
3
  }
4
4
 
5
5
  function integerToAmount(n) {