@rustledger/wasm 0.6.0 → 0.7.1

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/README.md CHANGED
@@ -49,21 +49,21 @@ Parse and validate your ledger faster than Python beancount.
49
49
  ## Quick Start
50
50
 
51
51
  ```bash
52
- rledger-check ledger.beancount
53
- rledger-query ledger.beancount "SELECT account, SUM(position) GROUP BY account"
52
+ rledger check ledger.beancount
53
+ rledger query ledger.beancount "SELECT account, SUM(position) GROUP BY account"
54
54
  ```
55
55
 
56
56
  ## CLI Commands
57
57
 
58
58
  | Command | Description |
59
59
  |---------|-------------|
60
- | `rledger-check` | Validate ledger files with detailed error messages |
61
- | `rledger-query` | Run BQL queries (interactive shell or one-shot) |
62
- | `rledger-format` | Auto-format beancount files |
63
- | `rledger-report` | Generate balance, account, and statistics reports |
64
- | `rledger-doctor` | Debugging tools for ledger issues |
65
- | `rledger-extract` | Import transactions from CSV/OFX bank statements |
66
- | `rledger-price` | Fetch commodity prices from online sources |
60
+ | `rledger check` | Validate ledger files with detailed error messages |
61
+ | `rledger query` | Run BQL queries (interactive shell or one-shot) |
62
+ | `rledger format` | Auto-format beancount files |
63
+ | `rledger report` | Generate balance, account, and statistics reports |
64
+ | `rledger doctor` | Debugging tools for ledger issues |
65
+ | `rledger extract` | Import transactions from CSV/OFX bank statements |
66
+ | `rledger price` | Fetch commodity prices from online sources |
67
67
 
68
68
  Python beancount users can also use `bean-check`, `bean-query`, etc.
69
69
 
@@ -72,20 +72,20 @@ Python beancount users can also use `bean-check`, `bean-query`, etc.
72
72
 
73
73
  ```bash
74
74
  # Validate with plugins
75
- rledger-check --native-plugin auto_accounts ledger.beancount
75
+ rledger check --native-plugin auto_accounts ledger.beancount
76
76
 
77
77
  # Interactive query shell
78
- rledger-query ledger.beancount
78
+ rledger query ledger.beancount
79
79
 
80
80
  # One-shot query
81
- rledger-query ledger.beancount "SELECT date, narration WHERE account ~ 'Expenses:Food'"
81
+ rledger query ledger.beancount "SELECT date, narration WHERE account ~ 'Expenses:Food'"
82
82
 
83
83
  # Reports
84
- rledger-report ledger.beancount balances
85
- rledger-report ledger.beancount stats
84
+ rledger report ledger.beancount balances
85
+ rledger report ledger.beancount stats
86
86
 
87
87
  # Format in place
88
- rledger-format --in-place ledger.beancount
88
+ rledger format --in-place ledger.beancount
89
89
  ```
90
90
 
91
91
  </details>
@@ -94,7 +94,7 @@ rledger-format --in-place ledger.beancount
94
94
 
95
95
  | Crate | Description |
96
96
  |-------|-------------|
97
- | `rustledger` | CLI tools (rledger-check, rledger-query, etc.) |
97
+ | `rustledger` | CLI tool (`rledger check`, `rledger query`, etc.) |
98
98
  | `rustledger-core` | Core types: Amount, Position, Inventory |
99
99
  | `rustledger-parser` | Lexer and parser with error recovery |
100
100
  | `rustledger-loader` | File loading and includes |
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Rustledger Contributors"
6
6
  ],
7
7
  "description": "Beancount WebAssembly bindings for JavaScript/TypeScript",
8
- "version": "0.6.0",
8
+ "version": "0.7.1",
9
9
  "license": "GPL-3.0-only",
10
10
  "repository": {
11
11
  "type": "git",
@@ -652,6 +652,10 @@ function __wbg_get_imports() {
652
652
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
653
653
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
654
654
  },
655
+ __wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
656
+ const ret = typeof(getObject(arg0)) === 'string';
657
+ return ret;
658
+ },
655
659
  __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
656
660
  throw new Error(getStringFromWasm0(arg0, arg1));
657
661
  },
@@ -694,6 +698,14 @@ function __wbg_get_imports() {
694
698
  const ret = new Error();
695
699
  return addHeapObject(ret);
696
700
  },
701
+ __wbg_new_dca287b076112a51: function() {
702
+ const ret = new Map();
703
+ return addHeapObject(ret);
704
+ },
705
+ __wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
706
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
707
+ return addHeapObject(ret);
708
+ },
697
709
  __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
698
710
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
699
711
  },
Binary file